axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ashut...@apache.org
Subject svn commit: r219157 - in /webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src: javax/xml/rpc/handler/soap/ org/apache/axis/jaxrpc/client/
Date Fri, 15 Jul 2005 06:21:59 GMT
Author: ashutosh
Date: Thu Jul 14 23:21:57 2005
New Revision: 219157

URL: http://svn.apache.org/viewcvs?rev=219157&view=rev
Log: (empty)

Added:
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/rpc/handler/soap/SOAPHandler.java
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/org/apache/axis/jaxrpc/client/BindingImpl.java
Modified:
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/org/apache/axis/jaxrpc/client/BindingProviderImpl.java
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/org/apache/axis/jaxrpc/client/JAXRPCContextImpl.java
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/org/apache/axis/jaxrpc/client/ServiceImpl.java

Added: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/rpc/handler/soap/SOAPHandler.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/rpc/handler/soap/SOAPHandler.java?rev=219157&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/rpc/handler/soap/SOAPHandler.java
(added)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/rpc/handler/soap/SOAPHandler.java
Thu Jul 14 23:21:57 2005
@@ -0,0 +1,28 @@
+package javax.xml.rpc.handler.soap;
+
+import javax.xml.rpc.handler.AbstractHandler;
+
+/**
+ * public interface SOAPHandler<C extends SOAPMessageContext>
+ * extends AbstractHandler<C>
+ * <p>
+ * The javax.xml.rpc.handler.SOAPHandler extends AbstractHandler to provide 
+ * typesafety for the message context parameter and add a method to obtain 
+ * access to the headers that may be processed by the handler.
+ * 
+ * @version 1.0
+ * @author shaas02
+ *
+ * @param <C>
+ */
+public interface SOAPHandler<C extends SOAPMessageContext>
+				extends AbstractHandler<C> {
+	
+	/**
+	 * Gets the header blocks that can be processed by this Handler instance.
+	 * @return Set of QNames of header blocks processed by this handler 
+	 * instance. QName is the qualified name of the outermost element of the 
+	 * Header block.
+	 */
+	public java.util.Set<javax.xml.namespace.QName> getHeaders();
+}

Added: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/org/apache/axis/jaxrpc/client/BindingImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/org/apache/axis/jaxrpc/client/BindingImpl.java?rev=219157&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/org/apache/axis/jaxrpc/client/BindingImpl.java
(added)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/org/apache/axis/jaxrpc/client/BindingImpl.java
Thu Jul 14 23:21:57 2005
@@ -0,0 +1,28 @@
+package org.apache.axis.jaxrpc.client;
+
+import java.util.List;
+
+import javax.xml.rpc.Binding;
+import javax.xml.rpc.JAXRPCException;
+import javax.xml.rpc.handler.HandlerInfo;
+import javax.xml.rpc.security.SecurityConfiguration;
+
+public class BindingImpl implements Binding {
+
+	public List<HandlerInfo> getHandlerChain() {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	public void setHandlerChain(List<HandlerInfo> chain) throws JAXRPCException {
+		// TODO Auto-generated method stub
+
+	}
+
+	public SecurityConfiguration getSecurityConfiguration()
+			throws UnsupportedOperationException {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+}

Modified: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/org/apache/axis/jaxrpc/client/BindingProviderImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/org/apache/axis/jaxrpc/client/BindingProviderImpl.java?rev=219157&r1=219156&r2=219157&view=diff
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/org/apache/axis/jaxrpc/client/BindingProviderImpl.java
(original)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/org/apache/axis/jaxrpc/client/BindingProviderImpl.java
Thu Jul 14 23:21:57 2005
@@ -16,14 +16,29 @@
 
 package org.apache.axis.jaxrpc.client;
 
+import java.net.URI;
+import java.util.List;
+import java.util.Map;
+
+import javax.xml.namespace.QName;
 import javax.xml.rpc.Binding;
 import javax.xml.rpc.BindingProvider;
 import javax.xml.rpc.JAXRPCContext;
+import javax.xml.rpc.handler.HandlerInfo;
 
 public class BindingProviderImpl implements BindingProvider {
 
 	protected JAXRPCRequestContext requestContext;
 	protected JAXRPCResponseContext responseContext;
+	protected BindingImpl binding;
+	
+	protected List<HandlerInfo> serviceHandlerChain;
+	protected Map<URI, List> bindingHandlerChain;
+	protected Map<QName, List> portHandlerChain;
+	
+	public BindingProviderImpl(){
+		//default constructor
+	}
 	
 	public JAXRPCContext getRequestContext() {
 		if(requestContext == null)
@@ -39,7 +54,11 @@
 
 	public Binding getBinding() {
 		
-		return null;
+		return binding;
+	}
+	
+	public void setBinding(BindingImpl binding) {
+		this.binding = binding;
 	}
 
 }

Modified: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/org/apache/axis/jaxrpc/client/JAXRPCContextImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/org/apache/axis/jaxrpc/client/JAXRPCContextImpl.java?rev=219157&r1=219156&r2=219157&view=diff
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/org/apache/axis/jaxrpc/client/JAXRPCContextImpl.java
(original)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/org/apache/axis/jaxrpc/client/JAXRPCContextImpl.java
Thu Jul 14 23:21:57 2005
@@ -26,6 +26,11 @@
 import javax.xml.rpc.JAXRPCContext;
 import javax.xml.rpc.JAXRPCException;
 
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.axis2.engine.AxisConfiguration;
+import org.apache.axis2.engine.AxisConfigurationImpl;
+import org.apache.axis2.engine.AxisEngine;
+
 public class JAXRPCContextImpl implements JAXRPCContext {
 
 	protected static List<String> standardProperties;
@@ -76,6 +81,15 @@
 		if(standardProperties.indexOf(name) == -1 && name.startsWith("javax.xml.rpc"))
 			throw new JAXRPCException("User-Defined property can not start with javax.ml.rpc");
 
+	}
+	/*
+	 * Get an instance of Axis2 Engine, to be used by service, call etc
+	 */
+	public AxisEngine getAxis2Engine(){
+		AxisConfiguration axisConfig = new AxisConfigurationImpl();
+		ConfigurationContext configContext = new ConfigurationContext(axisConfig);
+		AxisEngine engine = new AxisEngine(configContext);
+		return engine;
 	}
 
 }

Modified: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/org/apache/axis/jaxrpc/client/ServiceImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/org/apache/axis/jaxrpc/client/ServiceImpl.java?rev=219157&r1=219156&r2=219157&view=diff
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/org/apache/axis/jaxrpc/client/ServiceImpl.java
(original)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/org/apache/axis/jaxrpc/client/ServiceImpl.java
Thu Jul 14 23:21:57 2005
@@ -75,6 +75,10 @@
 	public Call createCall() throws ServiceException {
 		Call call = new CallImpl();
 		((CallImpl)call).setService(this);
+		((CallImpl)call).serviceHandlerChain = this.handlerRegistry.serviceHandlerChain;
+		((CallImpl)call).portHandlerChain = this.handlerRegistry.portHandlerChain;
+		((CallImpl)call).bindingHandlerChain = this.handlerRegistry.bindingHandlerChain;
+		((CallImpl)call).setBinding(new BindingImpl());
 		return call;
 	}
 	
@@ -213,7 +217,7 @@
 		if(wsdlService == null)
 			throw new ServiceException("A service wasn't yet created from wsdl");
 		
-		Call call = new CallImpl();
+		Call call = createCall();
 
 		URL wsdlLocationURL;
 		try {



Mime
View raw message