ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ashut...@apache.org
Subject svn commit: r193100 - in /webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc: ./ encoding/ handler/ security/
Date Thu, 23 Jun 2005 07:35:52 GMT
Author: ashutosh
Date: Thu Jun 23 00:35:51 2005
New Revision: 193100

URL: http://svn.apache.org/viewcvs?rev=193100&view=rev
Log:
Adding JDK1.5 specific classes and some code corrections

Added:
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/AbstractHandler.java
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/LogicalHandler.java
Modified:
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/Dispatch.java
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/NamespaceConstants.java
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/Response.java
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/Service.java
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/encoding/XMLType.java
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/GenericHandler.java
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/LogicalMessageContext.java
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/MessageContext.java
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/security/SecurityConfiguration.java

Modified: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/Dispatch.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/Dispatch.java?rev=193100&r1=193099&r2=193100&view=diff
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/Dispatch.java
(original)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/Dispatch.java
Thu Jun 23 00:35:51 2005
@@ -34,7 +34,7 @@
 	 * @return The response message or message payload to the operation invocation.
 	 * @throws JAXRPCException - If there is any error in the configuration of the Dispatch
instance.
 	 */
-	Response<T> invokeAsync(T msg) throws JAXRPCException
+	Response<T> invokeAsync(T msg) throws JAXRPCException;
 	
 	/**
 	 * Method invokeAsync

Modified: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/NamespaceConstants.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/NamespaceConstants.java?rev=193100&r1=193099&r2=193100&view=diff
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/NamespaceConstants.java
(original)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/NamespaceConstants.java
Thu Jun 23 00:35:51 2005
@@ -28,7 +28,7 @@
 	/**
 	 * Namespace prefix for XML Schema XSI 
 	 */
-	public static final java.lang.String NSPREFIX_SCHEMA_XSI
+	public static final java.lang.String NSPREFIX_SCHEMA_XSI = null;
 	
 	/**
 	 * Nameapace URI for SOAP 1.1 Envelope 

Modified: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/Response.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/Response.java?rev=193100&r1=193099&r2=193100&view=diff
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/Response.java
(original)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/Response.java
Thu Jun 23 00:35:51 2005
@@ -6,15 +6,15 @@
  */
 package javax.xml.rpc;
 
-import java.util.concurrent.Future<T>;
+import java.util.concurrent.Future;
 
+//TODO: Needs a revisit, b'coz generics are involved.
 /**
  * Interface Response<T>
  * 
  * @author sunja07
  */
-//TODO: Needs a revisit, b'coz generics are involved.
-public interface Response<T> extends java.util.concurrent.Future<T> {
+public interface Response<T> extends Future<T> {
 	
 	/**
 	 * Method getContext

Modified: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/Service.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/Service.java?rev=193100&r1=193099&r2=193100&view=diff
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/Service.java
(original)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/Service.java
Thu Jun 23 00:35:51 2005
@@ -27,11 +27,11 @@
 	 * I've tried to create a nested class in here. Absolutely
 	 * needs a revisit. Don't rely on this as it exists now.
 	 */
-	public static enum Mode extends java.lang.Enum<Service.Mode> {
+	public static enum Mode { //extends java.lang.Enum<Service.Mode> {
 		
-		public static final Mode MESSAGE = null;
+		MESSAGE,
 		
-		public static final Mode PAYLOAD = null;
+		PAYLOAD;
 		
 		/**
 		 * Method values
@@ -42,10 +42,10 @@
 		 * </code>
 		 * @return
 		 */
-		public static final Mode[] values() {
+/*		public static final Mode[] values() {
 			return null;
 		}
-		
+*/		
 		/**
 		 * Method valueOf
 		 * Returns the enum constant of this type with the specified name. The string must match
exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace
characters are not permitted.) 
@@ -53,10 +53,10 @@
 		 * @return the enum constant with the specified name
 		 * @throws java.lang.IllegalArgumentException if this enum type has no constant with the
specified name
 		 */
-		public static Service.Mode valueOf(java.lang.String name) throws java.lang.IllegalArgumentException
{
+/*		public static Service.Mode valueOf(java.lang.String name) throws java.lang.IllegalArgumentException
{
 			return null;
 		}
-		
+*/		
 	}
 	
 	/**

Modified: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/encoding/XMLType.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/encoding/XMLType.java?rev=193100&r1=193099&r2=193100&view=diff
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/encoding/XMLType.java
(original)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/encoding/XMLType.java
Thu Jun 23 00:35:51 2005
@@ -19,122 +19,122 @@
 	/**
 	 * The name of the xsd:string type.
 	 */
-	public static final javax.xml.namespace.QName XSD_STRING;
+	public static final javax.xml.namespace.QName XSD_STRING = null;
 	
 	/**
 	 * The name of the xsd:float type.
 	 */
-	public static final javax.xml.namespace.QName XSD_FLOAT;
+	public static final javax.xml.namespace.QName XSD_FLOAT = null;
 	
 	/**
 	 * The name of the xsd:boolean type.
 	 */
-	public static final javax.xml.namespace.QName XSD_BOOLEAN;
+	public static final javax.xml.namespace.QName XSD_BOOLEAN = null;
 	
 	/**
 	 * The name of the xsd:double type.
 	 */
-	public static final javax.xml.namespace.QName XSD_DOUBLE;
+	public static final javax.xml.namespace.QName XSD_DOUBLE = null;
 	
 	/**
 	 * The name of the xsd:integer type.
 	 */
-	public static final javax.xml.namespace.QName XSD_INTEGER;
+	public static final javax.xml.namespace.QName XSD_INTEGER = null;
 	
 	/**
 	 * The name of the xsd:int type.
 	 */
-	public static final javax.xml.namespace.QName XSD_INT;
+	public static final javax.xml.namespace.QName XSD_INT = null;
 	
 	/**
 	 * The name of the xsd:long type.
 	 */
-	public static final javax.xml.namespace.QName XSD_LONG;
+	public static final javax.xml.namespace.QName XSD_LONG = null;
 	
 	/**
 	 * The name of the xsd:short type
 	 */
-	public static final javax.xml.namespace.QName XSD_SHORT;
+	public static final javax.xml.namespace.QName XSD_SHORT = null;
 	
 	/**
 	 * The name of the xsd:decimal type.
 	 */
-	public static final javax.xml.namespace.QName XSD_DECIMAL;
+	public static final javax.xml.namespace.QName XSD_DECIMAL = null;
 	
 	/**
 	 * The name of the xsd:base64Binary type.
 	 */
-	public static final javax.xml.namespace.QName XSD_BASE64;
+	public static final javax.xml.namespace.QName XSD_BASE64 = null;
 	
 	/**
 	 * The name of the xsd:hexBinary type.
 	 */
-	public static final javax.xml.namespace.QName XSD_HEXBINARY;
+	public static final javax.xml.namespace.QName XSD_HEXBINARY = null;
 	
 	/**
 	 * The name of the xsd:byte type.
 	 */
-	public static final javax.xml.namespace.QName XSD_BYTE;
+	public static final javax.xml.namespace.QName XSD_BYTE = null;
 	
 	/**
 	 * The name of the xsd:dateTime type
 	 */
-	public static final javax.xml.namespace.QName XSD_DATETIME;
+	public static final javax.xml.namespace.QName XSD_DATETIME = null;
 	
 	/**
 	 * The name of the xsd:QName type.
 	 */
-	public static final javax.xml.namespace.QName XSD_QNAME;
+	public static final javax.xml.namespace.QName XSD_QNAME = null;
 	
 	/**
 	 * The name of the SOAP-ENC:string type.
 	 */
-	public static final javax.xml.namespace.QName SOAP_STRING;
+	public static final javax.xml.namespace.QName SOAP_STRING = null;
 	
 	/**
 	 * The name of the SOAP-ENC:boolean type..
 	 */
-	public static final javax.xml.namespace.QName SOAP_BOOLEAN;
+	public static final javax.xml.namespace.QName SOAP_BOOLEAN = null;
 	
 	/**
 	 * The name of the SOAP-ENC:double type.
 	 */
-	public static final javax.xml.namespace.QName SOAP_DOUBLE;
+	public static final javax.xml.namespace.QName SOAP_DOUBLE = null;
 	
 	/**
 	 * The name of the SOAP-ENC:base64 type.
 	 */
-	public static final javax.xml.namespace.QName SOAP_BASE64;
+	public static final javax.xml.namespace.QName SOAP_BASE64 = null;
 	
 	/**
 	 * The name of the SOAP-ENC:float type.
 	 */
-	public static final javax.xml.namespace.QName SOAP_FLOAT;
+	public static final javax.xml.namespace.QName SOAP_FLOAT = null;
 	
 	/**
 	 * The name of the SOAP-ENC:int type.
 	 */
-	public static final javax.xml.namespace.QName SOAP_INT;
+	public static final javax.xml.namespace.QName SOAP_INT = null;
 	
 	/**
 	 * The name of the SOAP-ENC:long type.
 	 */
-	public static final javax.xml.namespace.QName SOAP_LONG;
+	public static final javax.xml.namespace.QName SOAP_LONG = null;
 	
 	/**
 	 * The name of the SOAP-ENC:short type.
 	 */
-	public static final javax.xml.namespace.QName SOAP_SHORT;
+	public static final javax.xml.namespace.QName SOAP_SHORT = null;
 	
 	/**
 	 * The name of the SOAP-ENC:byte type.
 	 */
-	public static final javax.xml.namespace.QName SOAP_BYTE;
+	public static final javax.xml.namespace.QName SOAP_BYTE = null;
 	
 	/**
 	 * The name of the SOAP-ENC:Array type.
 	 */
-	public static final javax.xml.namespace.QName SOAP_ARRAY;
+	public static final javax.xml.namespace.QName SOAP_ARRAY = null;
 	
 	/**
 	 * 

Added: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/AbstractHandler.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/AbstractHandler.java?rev=193100&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/AbstractHandler.java
(added)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/AbstractHandler.java
Thu Jun 23 00:35:51 2005
@@ -0,0 +1,52 @@
+package javax.xml.rpc.handler;
+
+import javax.xml.rpc.ProtocolException;
+
+/**
+ * public interface AbstractHandler<C extends <code>MessageContext</code>>
+ * extends <code>HandlerLifecycle</code>
+ * <p>
+ * The javax.xml.rpc.handler.AbstractHandler interface is the base interface for JAXRPC 2.0
handlers.
+ * @version 1.0
+ * @author shaas02
+ *
+ * @param <C>
+ */
+public interface AbstractHandler<C extends MessageContext> extends HandlerLifecycle
{
+
+	/**
+	 * The handleMessage method is invoked for normal processing of inbound and outbound messages.
Refer to the
+	 * description of the handler framework in the JAX-RPC 2.0 specification for full details.
+	 * 
+	 * @param context - the message context.
+	 * @return An indication of whether handler processing should continue for the current message
+	 *  - Return true to continue processing.
+	 *  - Return false to block processing.
+	 * @throws java.lang.RuntimeException - Causes the JAX-RPC runtime to cease handler processing
and generate a
+	 * fault.
+	 * @throws ProtocolException - Causes the JAX-RPC runtime to switch to fault message processing.
+	 */
+	boolean handleMessage(C context) throws java.lang.RuntimeException, ProtocolException;
+	
+	/**
+	 * The handleFault method is invoked for fault message processing. Refer to the description
of the handler framework in
+	 * the JAX-RPC 2.0 specification for full details.
+	 * 
+	 * @param context - the message context
+	 * @return An indication of whether handler fault processing should continue for the current
message
+	 *  - Return true to continue processing.
+	 *  - Return false to block processing.
+	 * @throws java.lang.RuntimeException - Causes the JAX-RPC runtime to cease handler fault
processing and dispatch
+	 * the fault.
+	 * @throws ProtocolException - Causes the JAX-RPC runtime to cease handler fault processing
and dispatch the fault.
+	 */
+	boolean handleFault(C context) throws java.lang.RuntimeException, ProtocolException;
+	
+	/**
+	 * Called at the conclusion of a message exchange pattern just prior to the JAX-RPC runtime
disptaching a message, fault or
+	 * exception. Refer to the description of the handler framework in the JAX-RPC 2.0 specification
for full details.
+	 *  
+	 * @param context - the message context
+	 */
+	void close(MessageContext context);
+}

Modified: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/GenericHandler.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/GenericHandler.java?rev=193100&r1=193099&r2=193100&view=diff
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/GenericHandler.java
(original)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/GenericHandler.java
Thu Jun 23 00:35:51 2005
@@ -7,6 +7,8 @@
 package javax.xml.rpc.handler;
 
 import javax.xml.namespace.QName;
+import javax.xml.rpc.JAXRPCException;
+import javax.xml.rpc.soap.SOAPFaultException;
 
 
 /**

Added: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/LogicalHandler.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/LogicalHandler.java?rev=193100&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/LogicalHandler.java
(added)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/LogicalHandler.java
Thu Jun 23 00:35:51 2005
@@ -0,0 +1,15 @@
+package javax.xml.rpc.handler;
+
+/**
+ * public interface LogicalHandler<C extends <code>LogicalMessageContext</code>>
+ * extends <code>AbstractHandler</code><C>
+ * <p>
+ * The javax.xml.rpc.handler.LogicalHandler extends AbstractHandler to provide typesafety
for the message context
+ * parameter.
+ * @version 1.0
+ * @author shaas02
+ *
+ */
+public interface LogicalHandler<C extends LogicalMessageContext> extends AbstractHandler
{
+
+}

Modified: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/LogicalMessageContext.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/LogicalMessageContext.java?rev=193100&r1=193099&r2=193100&view=diff
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/LogicalMessageContext.java
(original)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/LogicalMessageContext.java
Thu Jun 23 00:35:51 2005
@@ -6,6 +6,8 @@
  */
 package javax.xml.rpc.handler;
 
+import javax.xml.rpc.LogicalMessage;
+
 /**
  * public interface LogicalMessageContext
  * extends <code>MessageContext</code>

Modified: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/MessageContext.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/MessageContext.java?rev=193100&r1=193099&r2=193100&view=diff
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/MessageContext.java
(original)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/handler/MessageContext.java
Thu Jun 23 00:35:51 2005
@@ -26,14 +26,14 @@
 	 * <p>
 	 * Type: boolean
 	 */
-	static final java.lang.String MESSAGE_OUTBOUND_PROPERTY;
+	static final java.lang.String MESSAGE_OUTBOUND_PROPERTY = null;
 	
 	/**
 	 * Standard property: security configuration.
 	 * <p>
 	 * Type: javax.xml.rpc.security.SecurityConfiguration
 	 */
-	static final java.lang.String MESSAGE_SECURITY_CONFIGURATION;
+	static final java.lang.String MESSAGE_SECURITY_CONFIGURATION = null;
 	
 	/**
 	 * Sets the scope of a property.

Modified: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/security/SecurityConfiguration.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/security/SecurityConfiguration.java?rev=193100&r1=193099&r2=193100&view=diff
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/security/SecurityConfiguration.java
(original)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/JAX-WS2/javax/xml/rpc/security/SecurityConfiguration.java
Thu Jun 23 00:35:51 2005
@@ -25,13 +25,9 @@
 	 * 	Authentication 
 	 * 		Establish or constrain the identity of the source and/or recipient of a message 
 	 */
-	public static enum SecurityFeature extends java.lang.Enum <SecurityConfiguration.SecurityFeature>
{
+	public static enum SecurityFeature { //extends java.lang.Enum <SecurityConfiguration.SecurityFeature>
{
 		
-		public static final SecurityConfiguration.SecurityFeature CONFIDENTIALITY=null;
-		
-		public static final SecurityConfiguration.SecurityFeature INTEGRITY = null;
-		
-		public static final SecurityConfiguration.SecurityFeature AUTHENTICATION = null;
+		CONFIDENTIALITY , INTEGRITY , AUTHENTICATION ;
 		
 		/**
 		 * Method values
@@ -42,10 +38,10 @@
 		 * </code>
 		 * @return an array containing the constants of this enum type, in the order they're declared
 		 */
-		public static final SecurityConfiguration.SecurityFeature[] values() {
+/*		public static final SecurityConfiguration.SecurityFeature[] values() {
 			
 		}
-		
+*/		
 		/**
 		 * Method valueOf
 		 * Returns the enum constant of this type with the specified name. The string must match
exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace
characters are not permitted.)
@@ -53,9 +49,10 @@
 		 * @return the enum constant with the specified name 
 		 * @throws java.lang.IllegalArgumentException - if this enum type has no constant with
the specified name
 		 */
-		public static SecurityConfiguration.SecurityFeature valueOf(java.lang.String name) throws
java.lang.IllegalArgumentException {
+/*		public static SecurityConfiguration.SecurityFeature valueOf(java.lang.String name) throws
java.lang.IllegalArgumentException {
 			
 		}
+*/
 	}
 	
 	/**



Mime
View raw message