Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 47212 invoked from network); 23 Jun 2005 07:35:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jun 2005 07:35:57 -0000 Received: (qmail 84816 invoked by uid 500); 23 Jun 2005 07:35:55 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 84768 invoked by uid 500); 23 Jun 2005 07:35:55 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 84755 invoked by uid 99); 23 Jun 2005 07:35:55 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 23 Jun 2005 00:35:54 -0700 Received: (qmail 47167 invoked by uid 65534); 23 Jun 2005 07:35:54 -0000 Message-ID: <20050623073554.47165.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: axis-cvs@ws.apache.org From: ashutosh@apache.org X-Mailer: svnmailer-1.0.2 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 invokeAsync(T msg) throws JAXRPCException + Response 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; +import java.util.concurrent.Future; +//TODO: Needs a revisit, b'coz generics are involved. /** * Interface Response * * @author sunja07 */ -//TODO: Needs a revisit, b'coz generics are involved. -public interface Response extends java.util.concurrent.Future { +public interface Response extends Future { /** * 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 { + public static enum Mode { //extends java.lang.Enum { - public static final Mode MESSAGE = null; + MESSAGE, - public static final Mode PAYLOAD = null; + PAYLOAD; /** * Method values @@ -42,10 +42,10 @@ * * @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 AbstractHandlerMessageContext> + * extends HandlerLifecycle + *

+ * The javax.xml.rpc.handler.AbstractHandler interface is the base interface for JAXRPC 2.0 handlers. + * @version 1.0 + * @author shaas02 + * + * @param + */ +public interface AbstractHandler 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 LogicalHandlerLogicalMessageContext> + * extends AbstractHandler + *

+ * The javax.xml.rpc.handler.LogicalHandler extends AbstractHandler to provide typesafety for the message context + * parameter. + * @version 1.0 + * @author shaas02 + * + */ +public interface LogicalHandler 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 MessageContext 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 @@ *

* Type: boolean */ - static final java.lang.String MESSAGE_OUTBOUND_PROPERTY; + static final java.lang.String MESSAGE_OUTBOUND_PROPERTY = null; /** * Standard property: security configuration. *

* 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 { + public static enum SecurityFeature { //extends java.lang.Enum { - 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 @@ * * @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 { } +*/ } /**