JBossWS SVN: r6806 - in stack/native/branches/tdiesler/trunk/modules/jaxws-impl: src/main and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-30 13:33:44 -0400 (Wed, 30 Apr 2008)
New Revision: 6806
Added:
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/resources/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/resources/jboss-jaxws-ext.jar/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/resources/jboss-jaxws.jar/
Modified:
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/pom.xml
Log:
Modified: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/pom.xml
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/pom.xml 2008-04-30 17:26:13 UTC (rev 6805)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/pom.xml 2008-04-30 17:33:44 UTC (rev 6806)
@@ -28,6 +28,12 @@
<!-- Build -->
<build>
+ <resources>
+ <resource>
+ <targetPath>/</targetPath>
+ <directory>src/main/resources/jboss-jaxws.jar</directory>
+ </resource>
+ </resources>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
Copied: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/resources/jboss-jaxws-ext.jar (from rev 6799, stack/native/branches/tdiesler/trunk/src/main/resources/jboss-jaxws-ext.jar)
Copied: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/resources/jboss-jaxws.jar (from rev 6799, stack/native/branches/tdiesler/trunk/src/main/resources/jboss-jaxws.jar)
16 years, 8 months
JBossWS SVN: r6805 - stack/native/branches/tdiesler/trunk/modules/jaxws-impl.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-30 13:26:13 -0400 (Wed, 30 Apr 2008)
New Revision: 6805
Removed:
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/jaxws-ext/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/
Modified:
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/pom.xml
Log:
Modified: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/pom.xml
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/pom.xml 2008-04-30 17:19:18 UTC (rev 6804)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/pom.xml 2008-04-30 17:26:13 UTC (rev 6805)
@@ -12,11 +12,6 @@
<artifactId>jbossws-native</artifactId>
<version>3.0.2-SNAPSHOT</version>
</parent>
-
- <!-- Modules -->
- <modules>
- <module>jaxws-ext</module>
- </modules>
<!-- Dependencies -->
<dependencies>
@@ -31,4 +26,30 @@
</dependency>
</dependencies>
+ <!-- Build -->
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <exclude>javax/xml/ws/**/*21.class"</exclude>
+ <exclude>javax/xml/ws/Action.class"</exclude>
+ <exclude>javax/xml/ws/EndpointReference.class"</exclude>
+ <exclude>javax/xml/ws/FaultAction.class"</exclude>
+ <exclude>javax/xml/ws/RespectBinding.class"</exclude>
+ <exclude>javax/xml/ws/RespectBindingFeature.class"</exclude>
+ <exclude>javax/xml/ws/WebServiceFeature.class"</exclude>
+ <exclude>javax/xml/ws/addressing/**"</exclude>
+ <exclude>javax/xml/ws/spi/WebServiceFeatureAnnotation.class"</exclude>
+ <exclude>javax/xml/ws/soap/AddressingFeature.class"</exclude>
+ <exclude>javax/xml/ws/soap/Addressing.class"</exclude>
+ <exclude>javax/xml/ws/soap/MTOM.class"</exclude>
+ <exclude>javax/xml/ws/soap/MTOMFeature.class"</exclude>
+ <exclude>javax/xml/ws/wsaddressing/**"</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
16 years, 8 months
JBossWS SVN: r6804 - in stack/native/branches/tdiesler/trunk/modules/jaxws-impl: jaxws-ext and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-30 13:19:18 -0400 (Wed, 30 Apr 2008)
New Revision: 6804
Added:
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/jaxws-ext/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/jaxws-ext/pom.xml
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/jaxws-ext/src/
Removed:
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/jaxws-ext/pom.xml
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/jaxws-ext/src/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/
Modified:
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/pom.xml
Log:
Copied: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/jaxws-ext (from rev 6801, stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext)
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/jaxws-ext/pom.xml
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/pom.xml 2008-04-30 17:10:12 UTC (rev 6801)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/jaxws-ext/pom.xml 2008-04-30 17:19:18 UTC (rev 6804)
@@ -1,29 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <name>JBoss Web Services - Stack Native JAX-WS</name>
- <artifactId>jbossws-native-jaxws</artifactId>
- <packaging>jar</packaging>
-
- <!-- Parent -->
- <parent>
- <groupId>org.jboss.ws</groupId>
- <artifactId>jbossws-native</artifactId>
- <version>3.0.2-SNAPSHOT</version>
- </parent>
-
- <!-- Dependencies -->
- <dependencies>
- <dependency>
- <groupId>org.jboss.ws</groupId>
- <artifactId>jbossws-native-saaj</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>javax.xml.bind</groupId>
- <artifactId>jaxb-api</artifactId>
- </dependency>
- </dependencies>
-
-</project>
Copied: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/jaxws-ext/pom.xml (from rev 6803, stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/pom.xml)
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/jaxws-ext/pom.xml (rev 0)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/jaxws-ext/pom.xml 2008-04-30 17:19:18 UTC (rev 6804)
@@ -0,0 +1,16 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <name>JBoss Web Services - Stack Native JAX-WS Ext</name>
+ <artifactId>jbossws-native-jaxws-ext</artifactId>
+ <packaging>jar</packaging>
+
+ <!-- Parent -->
+ <parent>
+ <groupId>org.jboss.ws</groupId>
+ <artifactId>jbossws-native-jaxws</artifactId>
+ <version>3.0.2-SNAPSHOT</version>
+ </parent>
+
+</project>
Copied: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/jaxws-ext/src (from rev 6803, stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src)
Modified: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/pom.xml
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/pom.xml 2008-04-30 17:16:14 UTC (rev 6803)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/pom.xml 2008-04-30 17:19:18 UTC (rev 6804)
@@ -12,6 +12,11 @@
<artifactId>jbossws-native</artifactId>
<version>3.0.2-SNAPSHOT</version>
</parent>
+
+ <!-- Modules -->
+ <modules>
+ <module>jaxws-ext</module>
+ </modules>
<!-- Dependencies -->
<dependencies>
16 years, 8 months
JBossWS SVN: r6803 - in stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws: handler and 2 other directories.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-30 13:16:14 -0400 (Wed, 30 Apr 2008)
New Revision: 6803
Removed:
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/AsyncHandler.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Binding.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingProvider.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingType.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Dispatch.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Endpoint.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Holder.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/LogicalMessage.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ProtocolException.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Provider.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/RequestWrapper.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Response.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ResponseWrapper.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Service.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ServiceMode.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebEndpoint.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebFault.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceClient.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceContext.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceException.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServicePermission.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceProvider.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRef.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRefs.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/Handler.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/HandlerResolver.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalHandler.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalMessageContext.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/MessageContext.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/PortInfo.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/soap/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/http/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPBinding.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPFaultException.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/Provider.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ProviderLoader.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ServiceDelegate.java
Log:
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/AsyncHandler.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/AsyncHandler.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/AsyncHandler.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,41 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/** The <code>AsyncHandler</code> interface is implemented by
- * clients that wish to receive callback notification of the completion of
- * service endpoint operations invoked asynchronously.
- *
- * @since JAX-WS 2.0
- **/
-public interface AsyncHandler<T>
-{
-
- /** Called when the response to an asynchronous operation is available.
- *
- * @param res The response to the operation invocation.
- *
- **/
- void handleResponse(Response<T> res);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Binding.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Binding.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Binding.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,56 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-
-/** The <code>Binding</code> interface is the base interface
- * for JAX-WS protocol bindings.
- *
- * @since JAX-WS 2.0
- **/
-public interface Binding
-{
-
- /**
- * Gets a copy of the handler chain for a protocol binding instance.
- * If the returned chain is modified a call to <code>setHandlerChain</code>
- * is required to configure the binding instance with the new chain.
- *
- * @return java.util.List<javax.xml.ws.handler.HandlerInfo> Handler chain
- */
- public java.util.List<javax.xml.ws.handler.Handler> getHandlerChain();
-
- /**
- * Sets the handler chain for the protocol binding instance.
- *
- * @param chain A List of handler configuration entries
- * @throws WebServiceException On an error in the configuration of
- * the handler chain
- * @throws java.lang.UnsupportedOperationException If this
- * operation is not supported. This may be done to
- * avoid any overriding of a pre-configured handler
- * chain.
- */
- public void setHandlerChain(java.util.List<javax.xml.ws.handler.Handler> chain);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingProvider.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingProvider.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingProvider.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,109 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.util.Map;
-
-/** The <code>BindingProvider</code> interface provides access to the
- * protocol binding and associated context objects for request and
- * response message processing.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.xml.ws.Binding
- **/
-public interface BindingProvider
-{
- /** Standard property: User name for authentication.
- * <p>Type: java.lang.String
- **/
- public static final String USERNAME_PROPERTY = "javax.xml.ws.security.auth.username";
-
- /** Standard property: Password for authentication.
- * <p>Type: java.lang.String
- **/
- public static final String PASSWORD_PROPERTY = "javax.xml.ws.security.auth.password";
-
- /** Standard property: Target service endpoint address. The
- * URI scheme for the endpoint address specification MUST
- * correspond to the protocol/transport binding for the
- * binding in use.
- * <p>Type: java.lang.String
- **/
- public static final String ENDPOINT_ADDRESS_PROPERTY = "javax.xml.ws.service.endpoint.address";
-
- /** Standard property: This boolean property is used by a service
- * client to indicate whether or not it wants to participate in
- * a session with a service endpoint. If this property is set to
- * true, the service client indicates that it wants the session
- * to be maintained. If set to false, the session is not maintained.
- * The default value for this property is false.
- * <p>Type: java.lang.Boolean
- **/
- public static final String SESSION_MAINTAIN_PROPERTY = "javax.xml.ws.session.maintain";
-
- /** Standard property for SOAPAction. This boolean property
- * indicates whether or not SOAPAction is to be used. The
- * default value of this property is false indicating that
- * the SOAPAction is not used.
- * <p>Type: <code>java.lang.Boolean</code>
- **/
- public static final String SOAPACTION_USE_PROPERTY = "javax.xml.ws.soap.http.soapaction.use";
-
- /** Standard property for SOAPAction. Indicates the SOAPAction
- * URI if the <code>javax.xml.ws.soap.http.soapaction.use</code>
- * property is set to <code>true</code>.
- * <p>Type: <code>java.lang.String</code>
- **/
- public static final String SOAPACTION_URI_PROPERTY = "javax.xml.ws.soap.http.soapaction.uri";
-
- /** Get the context that is used to initialize the message context
- * for request messages.
- *
- * Modifications to the request context do not affect the message context of
- * either synchronous or asynchronous operations that have already been
- * started.
- *
- * @return The context that is used in processing request messages.
- **/
- Map<String, Object> getRequestContext();
-
- /** Get the context that resulted from processing a response message.
- *
- * The returned context is for the most recently completed synchronous
- * operation. Subsequent synchronous operation invocations overwrite the
- * response context. Asynchronous operations return their response context
- * via the Response interface.
- *
- * @return The context that resulted from processing the latest
- * response messages.
- **/
- Map<String, Object> getResponseContext();
-
- /** Get the Binding for this binding provider.
- *
- * @return The Binding for this binding provider.
- **/
- Binding getBinding();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingType.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingType.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingType.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,59 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * The <code>BindingType</code> annotation is used to
- * specify the binding to use for a web service
- * endpoint implementation class. As well as specify
- * additional features that may be enabled.
- *
- * @since JAX-WS 2.0
- *
- **/
-
-(a)Target(ElementType.TYPE)
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface BindingType {
- /**
- * A binding identifier (a URI).
- * If not specified, the default is the SOAP 1.1 / HTTP binding.
- * <p>
- * See the <code>SOAPBinding</code> and <code>HTTPBinding</code>
- * for the definition of the standard binding identifiers.
- *
- * @see javax.xml.ws.Binding
- * @see javax.xml.ws.soap.SOAPBinding#SOAP11HTTP_BINDING
- * @see javax.xml.ws.soap.SOAPBinding#SOAP12HTTP_BINDING
- * @see javax.xml.ws.http.HTTPBinding#HTTP_BINDING
- */
- String value() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Dispatch.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Dispatch.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Dispatch.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,115 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.util.concurrent.Future;
-
-/** The <code>Dispatch</code> interface provides support
- * for the dynamic invocation of a service endpoint operations. The
- * <code>javax.xml.ws.Service</code>
- * interface acts as a factory for the creation of <code>Dispatch</code>
- * instances.
- *
- * @since JAX-WS 2.0
- **/
-public interface Dispatch<T> extends BindingProvider
-{
-
- /** Invoke a service operation synchronously.
- *
- * The client is responsible for ensuring that the <code>msg</code> object
- * when marshalled is formed according to the requirements of the protocol
- * binding in use.
- *
- * @param msg An object that will form the message or payload of
- * the message used to invoke the operation.
- * @return The response message or message payload to the
- * operation invocation.
- * @throws WebServiceException If a fault occurs during communication with
- * the service
- * @throws WebServiceException If there is any error in the configuration of
- * the <code>Dispatch</code> instance
- **/
- public T invoke(T msg);
-
- /** Invoke a service operation asynchronously. The
- * method returns without waiting for the response to the operation
- * invocation, the results of the operation are obtained by polling the
- * returned <code>Response</code>.
- *
- * The client is responsible for ensuring that the <code>msg</code> object
- * when marshalled is formed according to the requirements of the protocol
- * binding in use.
- *
- * @param msg An object that will form the message or payload of
- * the message used to invoke the operation.
- * @return The response message or message payload to the
- * operation invocation.
- * @throws WebServiceException If there is any error in the configuration of
- * the <code>Dispatch</code> instance
- **/
- public Response<T> invokeAsync(T msg);
-
- /** Invoke a service operation asynchronously. The
- * method returns without waiting for the response to the operation
- * invocation, the results of the operation are communicated to the client
- * via the passed in handler.
- *
- * The client is responsible for ensuring that the <code>msg</code> object
- * when marshalled is formed according to the requirements of the protocol
- * binding in use.
- *
- * @param msg An object that will form the message or payload of
- * the message used to invoke the operation.
- * @param handler The handler object that will receive the
- * response to the operation invocation.
- * @return A <code>Future</code> object that may be used to check the status
- * of the operation invocation. This object MUST NOT be used to try to
- * obtain the results of the operation - the object returned from
- * <code>Future<?>.get()</code> is implementation dependent
- * and any use of it will result in non-portable behaviour.
- * @throws WebServiceException If there is any error in the configuration of
- * the <code>Dispatch</code> instance
- **/
- public Future<?> invokeAsync(T msg, AsyncHandler<T> handler);
-
- /** Invokes a service operation using the one-way
- * interaction mode. The operation invocation is logically non-blocking,
- * subject to the capabilities of the underlying protocol, no results
- * are returned. When
- * the protocol in use is SOAP/HTTP, this method MUST block until
- * an HTTP response code has been received or an error occurs.
- *
- * The client is responsible for ensuring that the <code>msg</code> object
- * when marshalled is formed according to the requirements of the protocol
- * binding in use.
- *
- * @param msg An object that will form the message or payload of
- * the message used to invoke the operation.
- * @throws WebServiceException If there is any error in the configuration of
- * the <code>Dispatch</code> instance or if an error occurs during the
- * invocation.
- **/
- public void invokeOneWay(T msg);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Endpoint.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Endpoint.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Endpoint.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,297 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import javax.xml.ws.soap.SOAPBinding;
-import javax.xml.ws.spi.Provider;
-import java.util.List;
-import java.util.Map;
-
-/**
- * A Web service endpoint.
- *
- * <p>Endpoints are created using the static methods defined in this
- * class. An endpoint is always tied to one <code>Binding</code>
- * and one implementor, both set at endpoint creation time.
- *
- * <p>An endpoint is either in a published or an unpublished state.
- * The <code>publish</code> methods can be used to start publishing
- * an endpoint, at which point it starts accepting incoming requests.
- * Conversely, the <code>stop</code> method can be used to stop
- * accepting incoming requests and take the endpoint down.
- * Once stopped, an endpoint cannot be published again.
- *
- * <p>An <code>Executor</code> may be set on the endpoint in order
- * to gain better control over the threads used to dispatch incoming
- * requests. For instance, thread pooling with certain parameters
- * can be enabled by creating a <code>ThreadPoolExecutor</code> and
- * registering it with the endpoint.
- *
- * <p>Handler chains can be set using the contained <code>Binding</code>.
- *
- * <p>An endpoint may have a list of metadata documents, such as WSDL
- * and XMLSchema documents, bound to it. At publishing time, the
- * JAX-WS implementation will try to reuse as much of that metadata
- * as possible instead of generating new one based on the annotations
- * present on the implementor.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.xml.ws.Binding
- * @see javax.xml.ws.BindingType
- * @see javax.xml.ws.soap.SOAPBinding
- * @see java.util.concurrent.Executor
- *
- **/
-public abstract class Endpoint
-{
-
- /** Standard property: name of WSDL service.
- * <p>Type: javax.xml.namespace.QName
- **/
- public static final String WSDL_SERVICE = "javax.xml.ws.wsdl.service";
-
- /** Standard property: name of WSDL port.
- * <p>Type: javax.xml.namespace.QName
- **/
- public static final String WSDL_PORT = "javax.xml.ws.wsdl.port";
-
- /**
- * Creates an endpoint with the specified implementor object. If there is
- * a binding specified via a BindingType annotation then it MUST be used else
- * a default of SOAP 1.1 / HTTP binding MUST be used.
- * <p>
- * The newly created endpoint may be published by calling
- * one of the javax.xml.ws.Endpoint#publish(String) and
- * javax.xml.ws.Endpoint#publish(Object) methods.
- *
- *
- * @param implementor The endpoint implementor.
- *
- * @return The newly created endpoint.
- *
- **/
- public static Endpoint create(Object implementor)
- {
- if (implementor == null)
- throw new IllegalArgumentException("Implementor cannot be null");
-
- String bindingId = SOAPBinding.SOAP11HTTP_BINDING;
- BindingType anBindingType = implementor.getClass().getAnnotation(BindingType.class);
- if (anBindingType != null)
- bindingId = anBindingType.value();
-
- return create(bindingId, implementor);
- }
-
- /**
- * Creates an endpoint with the specified binding type and
- * implementor object.
- * <p>
- * The newly created endpoint may be published by calling
- * one of the javax.xml.ws.Endpoint#publish(String) and
- * javax.xml.ws.Endpoint#publish(Object) methods.
- *
- * @param bindingId A URI specifying the binding to use. If the bindingID is
- * <code>null</code> and no binding is specified via a BindingType
- * annotation then a default SOAP 1.1 / HTTP binding MUST be used.
- *
- * @param implementor The endpoint implementor.
- *
- * @return The newly created endpoint.
- *
- **/
- public static Endpoint create(String bindingId, Object implementor)
- {
- return Provider.provider().createEndpoint(bindingId, implementor);
- }
-
- /**
- * Returns the binding for this endpoint.
- *
- * @return The binding for this endpoint
- **/
- public abstract Binding getBinding();
-
- /**
- * Returns the implementation object for this endpoint.
- *
- * @return The implementor for this endpoint
- **/
- public abstract Object getImplementor();
-
- /**
- * Publishes this endpoint at the given address.
- * The necessary server infrastructure will be created and
- * configured by the JAX-WS implementation using some default configuration.
- * In order to get more control over the server configuration, please
- * use the javax.xml.ws.Endpoint#publish(Object) method instead.
- *
- * @param address A URI specifying the address to use. The address
- * MUST be compatible with the binding specified at the
- * time the endpoint was created.
- *
- * @throws java.lang.IllegalArgumentException
- * If the provided address URI is not usable
- * in conjunction with the endpoint's binding.
- *
- * @throws java.lang.IllegalStateException
- * If the endpoint has been published already or it has been stopped.
- **/
- public abstract void publish(String address);
-
- /**
- * Creates and publishes an endpoint for the specified implementor
- * object at the given address.
- * <p>
- * The necessary server infrastructure will be created and
- * configured by the JAX-WS implementation using some default configuration.
- *
- * In order to get more control over the server configuration, please
- * use the javax.xml.ws.Endpoint#create(String,Object) and
- * javax.xml.ws.Endpoint#publish(Object) method instead.
- *
- * @param address A URI specifying the address and transport/protocol
- * to use. A http: URI MUST result in the SOAP 1.1/HTTP
- * binding being used. Implementations may support other
- * URI schemes.
- * @param implementor The endpoint implementor.
- *
- * @return The newly created endpoint.
- *
- **/
- public static Endpoint publish(String address, Object implementor)
- {
- return Provider.provider().createAndPublishEndpoint(address, implementor);
- }
-
- /**
- * Publishes this endpoint at the provided server context.
- * A server context encapsulates the server infrastructure
- * and addressing information for a particular transport.
- * For a call to this method to succeed, the server context
- * passed as an argument to it MUST be compatible with the
- * endpoint's binding.
- *
- * @param serverContext An object representing a server
- * context to be used for publishing the endpoint.
- *
- * @throws java.lang.IllegalArgumentException
- * If the provided server context is not
- * supported by the implementation or turns
- * out to be unusable in conjunction with the
- * endpoint's binding.
- *
- * @throws java.lang.IllegalStateException
- * If the endpoint has been published already or it has been stopped.
- **/
- public abstract void publish(Object serverContext);
-
- /**
- * Stops publishing this endpoint.
- *
- * If the endpoint is not in a published state, this method
- * has not effect.
- *
- **/
- public abstract void stop();
-
- /**
- * Returns true if the endpoint is in the published state.
- *
- * @return <code>true</code> if the endpoint is in the published state.
- **/
- public abstract boolean isPublished();
-
- /**
- * Returns a list of metadata documents for the service.
- *
- * @return <code>List<javax.xml.transform.Source></code> A list of metadata documents for the service
- **/
- public abstract List<javax.xml.transform.Source> getMetadata();
-
- /**
- * Sets the metadata for this endpoint.
- *
- * @param metadata A list of XML document sources containing
- * metadata information for the endpoint (e.g.
- * WSDL or XML Schema documents)
- *
- * @throws java.lang.IllegalStateException If the endpoint
- * has already been published.
- **/
- public abstract void setMetadata(List<javax.xml.transform.Source> metadata);
-
- /**
- * Returns the executor for this <code>Endpoint</code>instance.
- *
- * The executor is used to dispatch an incoming request to
- * the implementor object.
- *
- * @return The <code>java.util.concurrent.Executor</code> to be
- * used to dispatch a request.
- *
- * @see java.util.concurrent.Executor
- **/
- public abstract java.util.concurrent.Executor getExecutor();
-
- /**
- * Sets the executor for this <code>Endpoint</code> instance.
- *
- * The executor is used to dispatch an incoming request to
- * the implementor object.
- *
- * If this <code>Endpoint</code> is published using the
- * <code>publish(Object)</code> method and the specified server
- * context defines its own threading behavior, the executor
- * may be ignored.
- *
- * @param executor The <code>java.util.concurrent.Executor</code>
- * to be used to dispatch a request.
- *
- * @throws SecurityException If the instance does not support
- * setting an executor for security reasons (e.g. the
- * necessary permissions are missing).
- *
- * @see java.util.concurrent.Executor
- **/
- public abstract void setExecutor(java.util.concurrent.Executor executor);
-
- /**
- * Returns the property bag for this <code>Endpoint</code> instance.
- *
- * @return Map<String,Object> The property bag
- * associated with this instance.
- **/
- public abstract Map<String, Object> getProperties();
-
- /**
- * Sets the property bag for this <code>Endpoint</code> instance.
- *
- * @param properties The property bag associated with
- * this instance.
- **/
- public abstract void setProperties(Map<String, Object> properties);
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Holder.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Holder.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Holder.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,55 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/**
- * Holds a value of type <code>T</code>.
- *
- * @since JAX-WS 2.0
- **/
-public final class Holder<T>
-{
-
- /**
- * The value contained in the holder.
- **/
- public T value;
-
- /**
- * Creates a new holder with a <code>null</code> value.
- **/
- public Holder()
- {
- }
-
- /**
- * Create a new holder with the specified value.
- *
- * @param value The value to be stored in the holder.
- **/
- public Holder(T value)
- {
- this.value = value;
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/LogicalMessage.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/LogicalMessage.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/LogicalMessage.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,90 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import javax.xml.bind.JAXBContext;
-import javax.xml.transform.Source;
-
-/** The <code>LogicalMessage</code> interface represents a
- * protocol agnostic XML message and contains methods that
- * provide access to the payload of the message.
- *
- * @since JAX-WS 2.0
- **/
-public interface LogicalMessage
-{
-
- /** Gets the message payload as an XML source, may be called
- * multiple times on the same LogicalMessage instance, always
- * returns a new Source that may be used to retrieve the entire
- * message payload.
- *
- * <p>If the returned Source is an instance of DOMSource, then
- * modifications to the encapsulated DOM tree change the message
- * payload in-place, there is no need to susequently call
- * <code>setPayload</code>. Other types of Source provide only
- * read access to the message payload.
- *
- * @return The contained message payload; returns null if no
- * payload is present in this message.
- **/
- public Source getPayload();
-
- /** Sets the message payload
- *
- * @param payload message payload
- * @throws WebServiceException If any error during the setting
- * of the payload in this message
- * @throws java.lang.UnsupportedOperationException If this
- * operation is not supported
- **/
- public void setPayload(Source payload);
-
- /** Gets the message payload as a JAXB object. Note that there is no
- * connection between the returned object and the message payload,
- * changes to the payload require calling <code>setPayload</code>.
- *
- * @param context The JAXBContext that should be used to unmarshall
- * the message payload
- * @return The contained message payload; returns null if no
- * payload is present in this message
- * @throws WebServiceException If an error occurs when using a supplied
- * JAXBContext to unmarshall the payload. The cause of
- * the WebServiceException is the original JAXBException.
- **/
- public Object getPayload(JAXBContext context);
-
- /** Sets the message payload
- *
- * @param payload message payload
- * @param context The JAXBContext that should be used to marshall
- * the payload
- * @throws java.lang.UnsupportedOperationException If this
- * operation is not supported
- * @throws WebServiceException If an error occurs when using the supplied
- * JAXBContext to marshall the payload. The cause of
- * the WebServiceException is the original JAXBException.
- **/
- public void setPayload(Object payload, JAXBContext context);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ProtocolException.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ProtocolException.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ProtocolException.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,93 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/** The <code>ProtocolException</code> class is a
- * base class for exceptions related to a specific protocol binding. Subclasses
- * are used to communicate protocol level fault information to clients and may
- * be used on the server to control the protocol specific fault representation.
- *
- * @since JAX-WS 2.0
- **/
-public class ProtocolException extends WebServiceException
-{
- private static final long serialVersionUID = 6688436881502883481L;
-
- /**
- * Constructs a new protocol exception with null as its detail message. The
- * cause is not initialized, and may subsequently be initialized by a call
- * to Throwable.initCause(java.lang.Throwable).
- */
- public ProtocolException()
- {
- super();
- }
-
- /**
- * Constructs a new protocol exception with the specified detail message.
- * The cause is not initialized, and may subsequently be initialized by a
- * call to Throwable.initCause(java.lang.Throwable).
- *
- * @param message the detail message. The detail message is saved for later
- * retrieval by the Throwable.getMessage() method.
- */
- public ProtocolException(String message)
- {
- super(message);
- }
-
- /**
- * Constructs a new runtime exception with the specified detail message and
- * cause.
- *
- * Note that the detail message associated with cause is not automatically
- * incorporated in this runtime exception's detail message.
- *
- * @param message the detail message (which is saved for later retrieval by
- * the Throwable.getMessage() method).
- * @param cause the cause (which is saved for later retrieval by the
- * Throwable.getCause() method). (A null value is permitted, and indicates
- * that the cause is nonexistent or unknown.)
- */
- public ProtocolException(String message, Throwable cause)
- {
- super(message, cause);
- }
-
- /**
- * Constructs a new runtime exception with the specified cause and a detail
- * message of (cause==null ? null : cause.toString()) (which typically
- * contains the class and detail message of cause). This constructor is
- * useful for runtime exceptions that are little more than wrappers for
- * other throwables.
- *
- * @param cause the cause (which is saved for later retrieval by the
- * Throwable.getCause() method). (A null value is permitted, and indicates
- * that the cause is nonexistent or unknown.)
- */
- public ProtocolException(Throwable cause)
- {
- super(cause);
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Provider.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Provider.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Provider.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,62 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/**
- * <p>Service endpoints may implement the <code>Provider</code>
- * interface as a dynamic alternative to an SEI.
- *
- * <p>Implementations are required to support <code>Provider<Source></code>,
- * <code>Provider<SOAPMessage></code> and
- * <code>Provider<DataSource></code>, depending on the binding
- * in use and the service mode.
- *
- * <p>The <code>ServiceMode</code> annotation can be used to control whether
- * the <code>Provider</code> instance will receive entire protocol messages
- * or just message payloads.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.xml.transform.Source
- * @see javax.xml.soap.SOAPMessage
- * @see javax.xml.ws.ServiceMode
- **/
-public interface Provider<T>
-{
-
- /** Invokes an operation occording to the contents of the request
- * message.
- *
- * @param request The request message or message payload.
- * @return The response message or message payload. May be null if
- there is no response.
- * @throws WebServiceException If there is an error processing request.
- * The cause of the WebServiceException may be set to a subclass
- * of ProtocolException to control the protocol level
- * representation of the exception.
- * @see javax.xml.ws.handler.MessageContext
- * @see javax.xml.ws.ProtocolException
- **/
- public T invoke(T request);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/RequestWrapper.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/RequestWrapper.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/RequestWrapper.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,64 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
-
- * Used to annotate methods in the Service Endpoint Interface with the request
- * wrapper bean to be used at runtime. The default value of the localName is
- * the operationName, as defined in WebMethod annotation and the
- * targetNamespace is the target namespace of the SEI.
- * <p> When starting from Java this annotation is used resolve
- * overloading conflicts in document literal mode. Only the className
- * is required in this case.
- *
- * @since JAX-WS 2.0
- **/
-
-(a)Target(ElementType.METHOD)
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface RequestWrapper {
- /**
- * Elements local name.
- **/
- public String localName() default "";
-
- /**
- * Elements namespace name.
- **/
- public String targetNamespace() default "";
-
- /**
- * Request wrapper bean name.
- **/
- public String className() default "";
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Response.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Response.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Response.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,51 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.util.Map;
-import java.util.concurrent.Future;
-
-/** The <code>Response</code> interface provides methods used to obtain the
- * payload and context of a message sent in response to an operation
- * invocation.
- *
- * <p>For asynchronous operation invocations it provides additional methods
- * to check the status of the request. The <code>get(...)</code> methods may
- * throw the standard
- * set of exceptions and their cause may be a RemoteException or a
- * WebServiceException that represents the error that occured during the
- * asynchronous method invocation.</p>
- *
- * @since JAX-WS 2.0
- **/
-public interface Response<T> extends Future<T>
-{
- /** Gets the contained response context.
- *
- * @return The contained response context. May be <code>null</code> if a
- * response is not yet available.
- *
- **/
- Map<String, Object> getContext();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ResponseWrapper.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ResponseWrapper.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ResponseWrapper.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,73 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to annotate methods in the Service Endpoint Interface with the response
- * wrapper bean to be used at runtime. The default value of the localName is
- * the operationName as defined in WebMethod annotation appended with
- * Response and the targetNamespace is the target namespace of the SEI.
- * <p> When starting from Java this annotation is used resolve
- * overloading conflicts in document literal mode. Only the className
- * is required in this case.
- *
- * @since JAX-WS 2.0
- **/
-
-(a)Target(ElementType.METHOD)
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface ResponseWrapper {
-
- /**
-
- * Elements local name.
-
- **/
-
- public String localName() default "";
-
- /**
-
- * Elements namespace name.
-
- **/
-
- public String targetNamespace() default "";
-
- /**
-
- * Response wrapper bean name.
-
- **/
-
- public String className() default "";
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Service.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Service.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Service.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,347 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.net.URL;
-import java.util.Iterator;
-
-import javax.xml.bind.JAXBContext;
-import javax.xml.namespace.QName;
-import javax.xml.ws.handler.HandlerResolver;
-import javax.xml.ws.spi.Provider;
-import javax.xml.ws.spi.ServiceDelegate21;
-
-/**
- * <code>Service</code> objects provide the client view of a Web service.
- * <p><code>Service</code> acts as a factory of the following:
- * <ul>
- * <li>Proxies for a target service endpoint.
- * <li>Instances of <code>javax.xml.ws.Dispatch</code> for
- * dynamic message-oriented invocation of a remote
- * operation.
- * </li>
- *
- * <p>The ports available on a service can be enumerated using the
- * <code>getPorts</code> method. Alternatively, you can pass a
- * service endpoint interface to the unary <code>getPort</code> method
- * and let the runtime select a compatible port.
- *
- * <p>Handler chains for all the objects created by a <code>Service</code>
- * can be set by means of a <code>HandlerResolver</code>.
- *
- * <p>An <code>Executor</code> may be set on the service in order
- * to gain better control over the threads used to dispatch asynchronous
- * callbacks. For instance, thread pooling with certain parameters
- * can be enabled by creating a <code>ThreadPoolExecutor</code> and
- * registering it with the service.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.xml.ws.spi.Provider
- * @see javax.xml.ws.handler.HandlerResolver
- * @see java.util.concurrent.Executor
- **/
-public class Service
-{
- ServiceDelegate21 delegate;
-
- /**
- * The orientation of a dynamic client or service. MESSAGE provides
- * access to entire protocol message, PAYLOAD to protocol message
- * payload only.
- **/
- public enum Mode
- {
- MESSAGE, PAYLOAD
- };
-
- protected Service(java.net.URL wsdlDocumentLocation, QName serviceName)
- {
- delegate = (ServiceDelegate21)Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass());
- }
-
- /**
- * Create a <code>Service</code> instance.
- *
- * The specified WSDL document location and service qualified name MUST
- * uniquely identify a <code>wsdl:service</code> element.
- *
- * @param wsdlLocation URL for the WSDL document location
- * for the service
- * @param serviceName QName for the service
- * @throws WebServiceException If any error in creation of the
- * specified service.
- **/
- public static Service create(URL wsdlLocation, QName serviceName)
- {
- return new Service(wsdlLocation, serviceName);
- }
-
- /**
- * Create a <code>Service</code> instance.
- *
- * @param serviceName QName for the service
- * @throws WebServiceException If any error in creation of the
- * specified service
- */
- public static Service create(QName serviceName)
- {
- return create(null, serviceName);
- }
-
- /**
- * The getPort method returns a proxy. A service client
- * uses this proxy to invoke operations on the target
- * service endpoint. The <code>serviceEndpointInterface</code>
- * specifies the service endpoint interface that is supported by
- * the created dynamic proxy instance.
- *
- * @param portName Qualified name of the service endpoint in
- * the WSDL service description.
- * @param serviceEndpointInterface Service endpoint interface
- * supported by the dynamic proxy instance.
- * @return Object Proxy instance that
- * supports the specified service endpoint
- * interface.
- * @throws WebServiceException This exception is thrown in the
- * following cases:
- * <UL>
- * <LI>If there is an error in creation of
- * the proxy.
- * <LI>If there is any missing WSDL metadata
- * as required by this method.
- * <LI>If an illegal
- * <code>serviceEndpointInterface</code>
- * or <code>portName</code> is specified.
- * </UL>
- * @see java.lang.reflect.Proxy
- * @see java.lang.reflect.InvocationHandler
- **/
- public <T> T getPort(QName portName, Class<T> serviceEndpointInterface)
- {
- return delegate.getPort(portName, serviceEndpointInterface);
- }
-
- /**
- * The getPort method returns a proxy. The parameter
- * <code>serviceEndpointInterface</code> specifies the service
- * endpoint interface that is supported by the returned proxy.
- * In the implementation of this method, the JAX-WS
- * runtime system takes the responsibility of selecting a protocol
- * binding (and a port) and configuring the proxy accordingly.
- * The returned proxy should not be reconfigured by the client.
- *
- * @param serviceEndpointInterface Service endpoint interface.
- * @return Object instance that supports the
- * specified service endpoint interface.
- * @throws WebServiceException
- * <UL>
- * <LI>If there is an error during creation
- * of the proxy.
- * <LI>If there is any missing WSDL metadata
- * as required by this method.
- * <LI>If an illegal.
- * <code>serviceEndpointInterface</code>
- * is specified.
- * </UL>
- **/
- public <T> T getPort(Class<T> serviceEndpointInterface)
- {
- return delegate.getPort(serviceEndpointInterface);
- }
-
- /**
- * Creates a new port for the service. Ports created in this way contain
- * no WSDL port type information and can only be used for creating
- * <code>Dispatch</code>instances.
- *
- * @param portName Qualified name for the target service endpoint.
- * @param bindingId A String identifier of a binding.
- * @param endpointAddress Address of the target service endpoint as a URI.
- * @throws WebServiceException If any error in the creation of
- * the port.
- *
- * @see javax.xml.ws.soap.SOAPBinding#SOAP11HTTP_BINDING
- * @see javax.xml.ws.soap.SOAPBinding#SOAP12HTTP_BINDING
- * @see javax.xml.ws.http.HTTPBinding#HTTP_BINDING
- **/
- public void addPort(QName portName, String bindingId, String endpointAddress)
- {
- delegate.addPort(portName, bindingId, endpointAddress);
- }
-
- /**
- * Creates a <code>Dispatch</code> instance for use with objects of
- * the users choosing.
- *
- * @param portName Qualified name for the target service endpoint
- * @param type The class of object used for messages or message
- * payloads. Implementations are required to support
- * <code>javax.xml.transform.Source</code>, <code>javax.xml.soap.SOAPMessage</code>
- * and <code>javax.activation.DataSource</code>, depending on
- * the binding in use.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body. Mode MUST be MESSAGE
- * when type is SOAPMessage.
- *
- * @return Dispatch instance.
- * @throws WebServiceException If any error in the creation of
- * the <code>Dispatch</code> object.
- *
- * @see javax.xml.transform.Source
- * @see javax.xml.soap.SOAPMessage
- **/
- public <T> Dispatch<T> createDispatch(QName portName, Class<T> type, Mode mode)
- {
- return delegate.createDispatch(portName, type, mode);
- }
-
- /**
- * Creates a <code>Dispatch</code> instance for use with JAXB
- * generated objects.
- *
- * @param portName Qualified name for the target service endpoint
- * @param context The JAXB context used to marshall and unmarshall
- * messages or message payloads.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body.
- *
- * @return Dispatch instance.
- * @throws WebServiceException If any error in the creation of
- * the <code>Dispatch</code> object.
- *
- * @see javax.xml.bind.JAXBContext
- **/
- public Dispatch<Object> createDispatch(QName portName, JAXBContext context, Mode mode)
- {
- return delegate.createDispatch(portName, context, mode);
- }
-
- /**
- * Gets the name of this service.
- * @return Qualified name of this service
- **/
- public QName getServiceName()
- {
- return delegate.getServiceName();
- }
-
- /**
- * Returns an <code>Iterator</code> for the list of
- * <code>QName</code>s of service endpoints grouped by this
- * service
- *
- * @return Returns <code>java.util.Iterator</code> with elements
- * of type <code>javax.xml.namespace.QName</code>.
- * @throws WebServiceException If this Service class does not
- * have access to the required WSDL metadata.
- **/
- public Iterator<javax.xml.namespace.QName> getPorts()
- {
- return delegate.getPorts();
- }
-
- /**
- * Gets the location of the WSDL document for this Service.
- *
- * @return URL for the location of the WSDL document for
- * this service.
- **/
- public java.net.URL getWSDLDocumentLocation()
- {
- return delegate.getWSDLDocumentLocation();
- }
-
- /**
- * Returns the configured handler resolver.
- *
- * @return HandlerResolver The <code>HandlerResolver</code> being
- * used by this <code>Service</code> instance, or <code>null</code>
- * if there isn't one.
- **/
- public HandlerResolver getHandlerResolver()
- {
- return delegate.getHandlerResolver();
- }
-
- /**
- * Sets the <code>HandlerResolver</code> for this <code>Service</code>
- * instance.
- * <p>
- * The handler resolver, if present, will be called once for each
- * proxy or dispatch instance that is created, and the handler chain
- * returned by the resolver will be set on the instance.
- *
- * @param handlerResolver The <code>HandlerResolver</code> to use
- * for all subsequently created proxy/dispatch objects.
- *
- * @see javax.xml.ws.handler.HandlerResolver
- **/
- public void setHandlerResolver(HandlerResolver handlerResolver)
- {
- delegate.setHandlerResolver(handlerResolver);
- }
-
- /**
- * Returns the executor for this <code>Service</code>instance.
- *
- * The executor is used for all asynchronous invocations that
- * require callbacks.
- *
- * @return The <code>java.util.concurrent.Executor</code> to be
- * used to invoke a callback.
- *
- * @see java.util.concurrent.Executor
- **/
- public java.util.concurrent.Executor getExecutor()
- {
- return delegate.getExecutor();
- }
-
- /**
- * Sets the executor for this <code>Service</code> instance.
- *
- * The executor is used for all asynchronous invocations that
- * require callbacks.
- *
- * @param executor The <code>java.util.concurrent.Executor</code>
- * to be used to invoke a callback.
- *
- * @throws SecurityException If the instance does not support
- * setting an executor for security reasons (e.g. the
- * necessary permissions are missing).
- *
- * @see java.util.concurrent.Executor
- **/
- public void setExecutor(java.util.concurrent.Executor executor)
- {
- delegate.setExecutor(executor);
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ServiceMode.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ServiceMode.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ServiceMode.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,51 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Inherited;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to indicate whether a Provider implementation wishes to work
- * with entire protocol messages or just with protocol message payloads.
- *
- * @since JAX-WS 2.0
- **/
-@Target( { ElementType.TYPE })
-(a)Retention(RetentionPolicy.RUNTIME)
-@Inherited
-@Documented
-public @interface ServiceMode {
- /**
- * Service mode. PAYLOAD indicates that the Provider implementation
- * wishes to work with protocol message payloads only. MESSAGE indicates
- * that the Provider implementation wishes to work with entire protocol
- * messages.
- **/
- public Service.Mode value() default Service.Mode.PAYLOAD;
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebEndpoint.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebEndpoint.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebEndpoint.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,54 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to annotate the <code>get<em>PortName</em>()</code>
- * methods of a generated service interface.
- *
- * <p>The information specified in this annotation is sufficient
- * to uniquely identify a <code>wsdl:port</code> element
- * inside a <code>wsdl:service</code>. The latter is
- * determined based on the value of the <code>WebServiceClient</code>
- * annotation on the generated service interface itself.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.xml.ws.WebServiceClient
- **/
-@Target( { ElementType.METHOD })
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebEndpoint {
- /**
- * The local name of the endpoint.
- **/
- String name() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebFault.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebFault.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebFault.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,57 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to annotate service specific exception classes to customize
- * to the local and namespace name of the fault element and the name
- * of the fault bean.
- *
- * @since JAX-WS 2.0
- **/
-@Target( { ElementType.TYPE })
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebFault {
- /**
- * Elements local name.
- **/
- public String name() default "";
-
- /**
- * Elements namespace name.
- **/
- public String targetNamespace() default "";
-
- /**
- * Fault bean name.
- **/
- public String faultBean() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceClient.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceClient.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceClient.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,61 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to annotate a generated service interface.
- *
- * <p>The information specified in this annotation is sufficient
- * to uniquely identify a <code>wsdl:service</code>
- * element inside a WSDL document. This <code>wsdl:service</code>
- * element represents the Web service for which the generated
- * service interface provides a client view.
- *
- * @since JAX-WS 2.0
- **/
-@Target( { ElementType.TYPE })
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebServiceClient {
- /**
- * The local name of the Web service.
- **/
- String name() default "";
-
- /**
- * The namespace for the Web service.
- **/
- String targetNamespace() default "";
-
- /**
- * The location of the WSDL document for the service (a URL).
- **/
- String wsdlLocation() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceContext.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceContext.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceContext.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,97 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import javax.xml.ws.handler.MessageContext;
-import java.security.Principal;
-
-/**
- * A <code>WebServiceContext</code> makes it possible for
- * a web service endpoint implementation class to access
- * message context and security information relative to
- * a request being served.
- *
- * Typically a <code>WebServiceContext</code> is injected
- * into an endpoint implementation class using the
- * <code>Resource</code> annotation.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.annotation.Resource
- **/
-public interface WebServiceContext
-{
-
- /**
- * Returns the MessageContext for the request being served
- * at the time this method is called. Only properties with
- * APPLICATION scope will be visible to the application.
- *
- * @return MessageContext The message context.
- *
- * @throws IllegalStateException This exception is thrown
- * if the method is called while no request is
- * being serviced.
- *
- * @see javax.xml.ws.handler.MessageContext
- * @see javax.xml.ws.handler.MessageContext.Scope
- * @see java.lang.IllegalStateException
- **/
- public MessageContext getMessageContext();
-
- /**
- * Returns the Principal that identifies the sender
- * of the request currently being serviced. If the
- * sender has not been authenticated, the method
- * returns <code>null</code>.
- *
- * @return Principal The principal object.
- *
- * @throws IllegalStateException This exception is thrown
- * if the method is called while no request is
- * being serviced.
- *
- * @see java.security.Principal
- * @see java.lang.IllegalStateException
- **/
- public Principal getUserPrincipal();
-
- /**
- * Returns a boolean indicating whether the
- * authenticated user is included in the specified
- * logical role. If the user has not been
- * authenticated, the method returns </code>false</code>.
- *
- * @param role A <code>String</code> specifying the name of the role
- *
- * @return a <code>boolean</code> indicating whether
- * the sender of the request belongs to a given role
- *
- * @throws IllegalStateException This exception is thrown
- * if the method is called while no request is
- * being serviced.
- **/
- public boolean isUserInRole(String role);
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceException.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceException.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceException.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,83 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/** The <code>WebServiceException</code> class is the base
- * exception class for all JAX-WS API runtime exceptions.
- *
- * @since JAX-WS 2.0
- **/
-
-public class WebServiceException extends java.lang.RuntimeException
-{
- private static final long serialVersionUID = 9050257594613372011L;
-
- /** Constructs a new exception with <code>null</code> as its
- * detail message. The cause is not initialized.
- **/
- public WebServiceException()
- {
- super();
- }
-
- /** Constructs a new exception with the specified detail
- * message. The cause is not initialized.
- * @param message The detail message which is later
- * retrieved using the getMessage method
- **/
- public WebServiceException(String message)
- {
- super(message);
- }
-
- /** Constructs a new exception with the specified detail
- * message and cause.
- *
- * @param message The detail message which is later retrieved
- * using the getMessage method
- * @param cause The cause which is saved for the later
- * retrieval throw by the getCause method
- **/
- public WebServiceException(String message, Throwable cause)
- {
- super(message, cause);
- }
-
- /** Constructs a new WebServiceException with the specified cause
- * and a detail message of <tt>(cause==null ? null :
- * cause.toString())</tt> (which typically contains the
- * class and detail message of <tt>cause</tt>).
- *
- * @param cause The cause which is saved for the later
- * retrieval throw by the getCause method.
- * (A <tt>null</tt> value is permitted, and
- * indicates that the cause is nonexistent or
- * unknown.)
- **/
- public WebServiceException(Throwable cause)
- {
- super(cause);
- }
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServicePermission.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServicePermission.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServicePermission.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,80 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.security.BasicPermission;
-
-/**
- * This class defines web service permissions.
- * <p>
- * Web service Permissions are identified by name (also referred to as
- * a "target name") alone. There are no actions associated
- * with them.
- * <p>
- * The following permission target name is defined:
- * <p>
- * <dl>
- * <dt>publishEndpoint
- * </dl>
- * <p>
- * The <code>publishEndpoint</code> permission allows publishing a
- * web service endpoint using the <code>publish</code> methods
- * defined by the <code>javax.xml.ws.Endpoint</code> class.
- *
- * @see javax.xml.ws.Endpoint
- * @see java.security.BasicPermission
- * @see java.security.Permission
- * @see java.security.Permissions
- * @see java.lang.SecurityManager
- */
-public final class WebServicePermission extends BasicPermission
-{
-
- private static final long serialVersionUID = -146474640053770988L;
-
- /**
- * Creates a new permission with the specified name.
- *
- * @param name the name of the <code>WebServicePermission</code>
- */
- public WebServicePermission(String name)
- {
- super(name);
- }
-
- /**
- * Creates a new permission with the specified name and actions.
- *
- * The <code>actions</code> parameter is currently unused and
- * it should be <code>null</code>.
- *
- * @param name the name of the <code>WebServicePermission</code>
- * @param actions should be <code>null</code>
- */
- public WebServicePermission(String name, String actions)
- {
- super(name, actions);
- }
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceProvider.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceProvider.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceProvider.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,61 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to annotate a Provider implementation class.
- *
- * @since JAX-WS 2.0
- * @see javax.xml.ws.Provider
- */
-(a)Target(ElementType.TYPE)
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebServiceProvider {
- /**
- * Location of the WSDL description for the service.
- */
- String wsdlLocation() default "";
-
- /**
- * Service name.
- */
- String serviceName() default "";
-
- /**
- * Target namespace for the service
- */
- String targetNamespace() default "";
-
- /**
- * Port name.
- */
- String portName() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRef.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRef.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRef.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,97 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * The <code>WebServiceRef</code> annotation is used to
- * define a reference to a web service and
- * (optionally) an injection target for it.
- *
- * Web service references are resources in the Java EE 5 sense.
- *
- * @see javax.annotation.Resource
- *
- * @since JAX-WS 2.0
- *
- **/
-
-@Target( { ElementType.TYPE, ElementType.METHOD, ElementType.FIELD })
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebServiceRef {
- /**
- * The JNDI name of the resource. For field annotations,
- * the default is the field name. For method annotations,
- * the default is the JavaBeans property name corresponding
- * to the method. For class annotations, there is no default
- * and this MUST be specified.
- */
- String name() default "";
-
- /**
- * The Java type of the resource. For field annotations,
- * the default is the type of the field. For method annotations,
- * the default is the type of the JavaBeans property.
- * For class annotations, there is no default and this MUST be
- * specified.
- */
- Class type() default Object.class;
-
- /**
- * A product specific name that this resource should be mapped to.
- * The name of this resource, as defined by the <code>name</code>
- * element or defaulted, is a name that is local to the application
- * component using the resource. (It's a name in the JNDI
- * <code>java:comp/env</code> namespace.) Many application servers
- * provide a way to map these local names to names of resources
- * known to the application server. This mapped name is often a
- * <i>global</i> JNDI name, but may be a name of any form. <p>
- *
- * Application servers are not required to support any particular
- * form or type of mapped name, nor the ability to use mapped names.
- * The mapped name is product-dependent and often installation-dependent.
- * No use of a mapped name is portable.
- */
- String mappedName() default "";
-
- /**
- * The service class, always a type extending
- * <code>javax.xml.ws.Service</code>. This element MUST be specified
- * whenever the type of the reference is a service endpoint interface.
- */
- Class value() default Object.class;
-
- /**
- * A URL pointing to the WSDL document for the web service.
- * If not specified, the WSDL location specified by annotations
- * on the resource type is used instead.
- */
- String wsdlLocation() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRefs.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRefs.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRefs.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,50 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import static java.lang.annotation.ElementType.TYPE;
-import static java.lang.annotation.RetentionPolicy.RUNTIME;
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.Retention;
-import java.lang.annotation.Target;
-
-/**
- * The <code>WebServiceRefs</code> annotation allows
- * multiple web service references to be declared at the
- * class level.
- *
- * @see javax.xml.ws.WebServiceRef
- * @since 2.0
- */
-
-@Documented
-@Retention(RUNTIME)
-@Target(TYPE)
-public @interface WebServiceRefs {
- /**
- * Array used for multiple web service reference declarations.
- */
- WebServiceRef[] value();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/Handler.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/Handler.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/Handler.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,84 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-import javax.xml.ws.ProtocolException;
-
-/** The <code>Handler</code> interface
- * is the base interface for JAX-WS handlers.
- *
- * @since JAX-WS 2.0
-**/
-public interface Handler<C extends MessageContext> {
-
- /** The <code>handleMessage</code> method is invoked for normal processing
- * of inbound and outbound messages. Refer to the description of the handler
- * framework in the JAX-WS specification for full details.
- *
- * @param context the message context.
- * @return An indication of whether handler processing should continue for
- * the current message
- * <ul>
- * <li>Return <code>true</code> to continue
- * processing.</li>
- * <li>Return <code>false</code> to block
- * processing.</li>
- * </ul>
- * @throws RuntimeException Causes the JAX-WS runtime to cease
- * handler processing and generate a fault.
- * @throws ProtocolException Causes the JAX-WS runtime to switch to
- * fault message processing.
- **/
- public boolean handleMessage(C context);
-
- /** The <code>handleFault</code> method is invoked for fault message
- * processing. Refer to the description of the handler
- * framework in the JAX-WS specification for full details.
- *
- * @param context the message context
- * @return An indication of whether handler fault processing should continue
- * for the current message
- * <ul>
- * <li>Return <code>true</code> to continue
- * processing.</li>
- * <li>Return <code>false</code> to block
- * processing.</li>
- * </ul>
- * @throws RuntimeException Causes the JAX-WS runtime to cease
- * handler fault processing and dispatch the fault.
- * @throws ProtocolException Causes the JAX-WS runtime to cease
- * handler fault processing and dispatch the fault.
- **/
- public boolean handleFault(C context);
-
- /**
- * Called at the conclusion of a message exchange pattern just prior to
- * the JAX-WS runtime disptaching a message, fault or exception. Refer to
- * the description of the handler
- * framework in the JAX-WS specification for full details.
- *
- * @param context the message context
- **/
- public void close(MessageContext context);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/HandlerResolver.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/HandlerResolver.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/HandlerResolver.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,51 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-/**
- * <code>HandlerResolver</code> is an interface implemented
- * by an application to get control over the handler chain
- * set on proxy/dispatch objects at the time of their creation.
- * <p>
- * A <code>HandlerResolver</code> may be set on a <code>Service</code>
- * using the <code>setHandlerResolver</code> method.
- * <p>
- * When the runtime invokes a <code>HandlerResolver</code>, it will
- * pass it a <code>PortInfo</code> object containing information
- * about the port that the proxy/dispatch object will be accessing.
- *
- * @see javax.xml.ws.Service#setHandlerResolver
- *
- * @since JAX-WS 2.0
-**/
-public interface HandlerResolver {
-
- /**
- * Gets the handler chain for the specified port.
- *
- * @param portInfo Contains information about the port being accessed.
- * @return java.util.List Handler chain
- **/
- public java.util.List<Handler> getHandlerChain(PortInfo portInfo);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalHandler.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalHandler.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalHandler.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,32 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-/** The <code>LogicalHandler</code> extends
- * Handler to provide typesafety for the message context parameter.
- *
- * @since JAX-WS 2.0
-**/
-public interface LogicalHandler<C extends LogicalMessageContext> extends Handler<C> {
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalMessageContext.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalMessageContext.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalMessageContext.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,44 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-import javax.xml.ws.LogicalMessage;
-
-/** The <code>LogicalMessageContext</code> interface extends
- * <code>MessageContext</code> to
- * provide access to a the contained message as a protocol neutral
- * LogicalMessage
- *
- * @since JAX-WS 2.0
-**/
-public interface LogicalMessageContext
- extends MessageContext {
-
- /** Gets the message from this message context
- *
- * @return The contained message; returns null if no
- * message is present in this message context
- **/
- public LogicalMessage getMessage();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/MessageContext.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/MessageContext.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/MessageContext.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,180 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-import java.util.Map;
-
-/**
- * The interface <code>MessageContext</code> abstracts the message
- * context that is processed by a handler in the <code>handle</code>
- * method.
- *
- * <p>The <code>MessageContext</code> interface provides methods to
- * manage a property set. <code>MessageContext</code> properties
- * enable handlers in a handler chain to share processing related
- * state.
- *
- * @since JAX-WS 2.0
- */
-public interface MessageContext extends Map<String, Object>
-{
-
- /**
- * Standard property: message direction, <code>true</code> for
- * outbound messages, <code>false</code> for inbound.
- * <p>Type: boolean
- */
- public static final String MESSAGE_OUTBOUND_PROPERTY = "javax.xml.ws.handler.message.outbound";
-
- /**
- * Standard property: Map of attachments to a message for the inbound
- * message, key is the MIME Content-ID, value is a DataHandler.
- * <p>Type: java.util.Map<String,DataHandler>
- */
- public static final String INBOUND_MESSAGE_ATTACHMENTS = "javax.xml.ws.binding.attachments.inbound";
-
- /**
- * Standard property: Map of attachments to a message for the outbound
- * message, key is the MIME Content-ID, value is a DataHandler.
- * <p>Type: java.util.Map<String,DataHandler>
- */
- public static final String OUTBOUND_MESSAGE_ATTACHMENTS = "javax.xml.ws.binding.attachments.outbound";
-
- /**
- * Standard property: input source for WSDL document.
- * <p>Type: org.xml.sax.InputSource
- */
- public static final String WSDL_DESCRIPTION = "javax.xml.ws.wsdl.description";
-
- /**
- * Standard property: name of WSDL service.
- * <p>Type: javax.xml.namespace.QName
- */
- public static final String WSDL_SERVICE = "javax.xml.ws.wsdl.service";
-
- /**
- * Standard property: name of WSDL port.
- * <p>Type: javax.xml.namespace.QName
- */
- public static final String WSDL_PORT = "javax.xml.ws.wsdl.port";
-
- /**
- * Standard property: name of wsdl interface (2.0) or port type (1.1).
- * <p>Type: javax.xml.namespace.QName
- */
- public static final String WSDL_INTERFACE = "javax.xml.ws.wsdl.interface";
-
- /**
- * Standard property: name of WSDL operation.
- * <p>Type: javax.xml.namespace.QName
- */
- public static final String WSDL_OPERATION = "javax.xml.ws.wsdl.operation";
-
- /**
- * Standard property: HTTP response status code.
- * <p>Type: java.lang.Integer
- */
- public static final String HTTP_RESPONSE_CODE = "javax.xml.ws.http.response.code";
-
- /**
- * Standard property: HTTP request headers.
- * <p>Type: java.util.Map<java.lang.String, java.util.List<java.lang.String>>
- */
- public static final String HTTP_REQUEST_HEADERS = "javax.xml.ws.http.request.headers";
-
- /**
- * Standard property: HTTP response headers.
- * <p>Type: java.util.Map<java.lang.String, java.util.List<java.lang.String>>
- */
- public static final String HTTP_RESPONSE_HEADERS = "javax.xml.ws.http.response.headers";
-
- /**
- * Standard property: HTTP request method.
- * <p>Type: java.lang.String
- */
- public static final String HTTP_REQUEST_METHOD = "javax.xml.ws.http.request.method";
-
- /**
- * Standard property: servlet request object.
- * <p>Type: javax.servlet.http.HttpServletRequest
- */
- public static final String SERVLET_REQUEST = "javax.xml.ws.servlet.request";
-
- /**
- * Standard property: servlet response object.
- * <p>Type: javax.servlet.http.HttpServletResponse
- */
- public static final String SERVLET_RESPONSE = "javax.xml.ws.servlet.response";
-
- /**
- * Standard property: servlet context object.
- * <p>Type: javax.servlet.ServletContext
- */
- public static final String SERVLET_CONTEXT = "javax.xml.ws.servlet.context";
-
- /**
- * Standard property: Query string for request.
- * <p>Type: String
- **/
- public static final String QUERY_STRING = "javax.xml.ws.http.request.querystring";
-
- /**
- * Standard property: Request Path Info
- * <p>Type: String
- */
- public static final String PATH_INFO = "javax.xml.ws.http.request.pathinfo";
-
- /**
- * Property scope. Properties scoped as <code>APPLICATION</code> are
- * visible to handlers,
- * client applications and service endpoints; properties scoped as
- * <code>HANDLER</code>
- * are only normally visible to handlers.
- */
- public enum Scope
- {
- APPLICATION, HANDLER
- };
-
- /**
- * Sets the scope of a property.
- *
- * @param name Name of the property associated with the
- * <code>MessageContext</code>
- * @param scope Desired scope of the property
- * @throws java.lang.IllegalArgumentException if an illegal
- * property name is specified
- */
- public void setScope(String name, Scope scope);
-
- /**
- * Gets the scope of a property.
- *
- * @param name Name of the property
- * @return Scope of the property
- * @throws java.lang.IllegalArgumentException if a non-existant
- * property name is specified
- */
- public Scope getScope(String name);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/PortInfo.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/PortInfo.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/PortInfo.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,64 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-
-/**
- * The <code>PortInfo</code> interface is used by a
- * <code>HandlerResolver</code> to query information about
- * the port it is being asked to create a handler chain for.
- * <p>
- * This interface is never implemented by an application,
- * only by a JAX-WS implementation.
- *
- * @since JAX-WS 2.0
-**/
-public interface PortInfo {
-
- /**
- * Gets the qualified name of the WSDL service name containing
- * the port being accessed.
- *
- * @return javax.xml.namespace.QName The qualified name of the WSDL service.
- **/
- public QName getServiceName();
-
- /**
- * Gets the qualified name of the WSDL port being accessed.
- *
- * @return javax.xml.namespace.QName The qualified name of the WSDL port.
- **/
- public QName getPortName();
-
- /**
- * Gets the URI identifying the binding used by the port being accessed.
- *
- * @return String The binding identifier for the port.
- *
- * @see javax.xml.ws.Binding
- **/
- public String getBindingID();
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPBinding.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPBinding.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPBinding.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,107 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.soap;
-
-// $Id$
-
-import javax.xml.soap.MessageFactory;
-import javax.xml.soap.SOAPFactory;
-import javax.xml.ws.Binding;
-import javax.xml.ws.WebServiceException;
-import java.util.Set;
-
-/** The <code>SOAPBinding</code> interface is an abstraction for
- * the SOAP binding.
- *
- * @since JAX-WS 2.0
- **/
-public interface SOAPBinding extends Binding
-{
- /**
- * A constant representing the identity of the SOAP 1.1 over HTTP binding.
- */
- public static final String SOAP11HTTP_BINDING = "http://schemas.xmlsoap.org/wsdl/soap/http";
-
- /**
- * A constant representing the identity of the SOAP 1.2 over HTTP binding.
- */
- public static final String SOAP12HTTP_BINDING = "http://www.w3.org/2003/05/soap/bindings/HTTP/";
-
- /**
- * A constant representing the identity of the SOAP 1.1 over HTTP binding
- * with MTOM enabled by default.
- */
- public static final String SOAP11HTTP_MTOM_BINDING = "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true";
-
- /**
- * A constant representing the identity of the SOAP 1.2 over HTTP binding
- * with MTOM enabled by default.
- */
- public static final String SOAP12HTTP_MTOM_BINDING = "http://www.w3.org/2003/05/soap/bindings/HTTP/?mtom=true";
-
- /** Gets the roles played by the SOAP binding instance.
- *
- * @return Set<String> The set of roles played by the binding instance.
- **/
- public Set<String> getRoles();
-
- /** Sets the roles played by the SOAP binding instance.
- *
- * @param roles The set of roles played by the binding instance.
- * @throws WebServiceException On an error in the configuration of
- * the list of roles.
- **/
- public void setRoles(Set<String> roles);
-
- /**
- * Returns <code>true</code> if the use of MTOM is enabled.
- *
- * @return <code>true</code> if and only if the use of MTOM is enabled.
- **/
-
- public boolean isMTOMEnabled();
-
- /**
- * Enables or disables use of MTOM.
- *
- * @param flag A <code>boolean</code> specifying whether the use of MTOM should
- * be enabled or disabled.
- * @throws WebServiceException If the specified setting is not supported
- * by this binding instance.
- * *
- **/
- public void setMTOMEnabled(boolean flag);
-
- /**
- * Gets the SAAJ <code>SOAPFactory</code> instance used by this SOAP binding.
- *
- * @return SOAPFactory instance used by this SOAP binding.
- **/
- public SOAPFactory getSOAPFactory();
-
- /**
- * Gets the SAAJ <code>MessageFactory</code> instance used by this SOAP binding.
- *
- * @return MessageFactory instance used by this SOAP binding.
- **/
- public MessageFactory getMessageFactory();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPFaultException.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPFaultException.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPFaultException.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,77 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.soap;
-
-// $Id$
-
-import javax.xml.soap.SOAPFault;
-
-/** The <code>SOAPFaultException</code> exception represents a
- * SOAP 1.1 or 1.2 fault.
- *
- * <p>A <code>SOAPFaultException</code> wraps a SAAJ <code>SOAPFault</code>
- * that manages the SOAP-specific representation of faults.
- * The <code>createFault</code> method of
- * <code>javax.xml.soap.SOAPFactory</code> may be used to create an instance
- * of <code>javax.xml.soap.SOAPFault</code> for use with the
- * constructor. <code>SOAPBinding</code> contains an accessor for the
- * <code>SOAPFactory</code> used by the binding instance.
- *
- * <p>Note that the value of <code>getFault</code> is the only part of the
- * exception used when searializing a SOAP fault.
- *
- * <p>Refer to the SOAP specification for a complete
- * description of SOAP faults.
- *
- * @see javax.xml.soap.SOAPFault
- * @see javax.xml.ws.soap.SOAPBinding#getSOAPFactory
- * @see javax.xml.ws.ProtocolException
- *
- * @since JAX-WS 2.0
- **/
-public class SOAPFaultException extends javax.xml.ws.ProtocolException
-{
- private static final long serialVersionUID = 3948617580148536298L;
-
- private SOAPFault fault;
-
- /** Constructor for SOAPFaultException
- * @param fault <code>SOAPFault</code> representing the fault
- *
- * @see javax.xml.soap.SOAPFactory#createFault
- **/
- public SOAPFaultException(SOAPFault fault)
- {
- super(fault.getFaultString());
- this.fault = fault;
- }
-
- /** Gets the embedded <code>SOAPFault</code> instance.
- *
- * @return <code>javax.xml.soap.SOAPFault</code> SOAP
- * fault element
- **/
- public javax.xml.soap.SOAPFault getFault()
- {
- return this.fault;
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/Provider.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/Provider.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/Provider.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,137 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.spi;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.Endpoint;
-import javax.xml.ws.WebServiceException;
-
-/**
- * Service provider for ServiceDelegate and Endpoint objects.
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 03-May-2006
- */
-public abstract class Provider
-{
- public static final String JAXWSPROVIDER_PROPERTY = "javax.xml.ws.spi.Provider";
- private static final String DEFAULT_JAXWSPROVIDER = "org.jboss.ws.core.jaxws.spi.ProviderImpl";
-
- /**
- * Creates a new instance of Provider
- */
- protected Provider()
- {
- }
-
- /**
- *
- * Creates a new provider object.
- * <p>
- * The algorithm used to locate the provider subclass to use consists
- * of the following steps:
- * <p>
- * <ul>
- * <li>
- * If a resource with the name of
- * <code>META-INF/services/javax.xml.ws.spi.Provider</code>
- * exists, then its first line, if present, is used as the UTF-8 encoded
- * name of the implementation class.
- * </li>
- * <li>
- * If the $java.home/lib/jaxws.properties file exists and it is readable by
- * the <code>java.util.Properties.load(InputStream)</code> method and it contains
- * an entry whose key is <code>javax.xml.ws.spi.Provider</code>, then the value of
- * that entry is used as the name of the implementation class.
- * </li>
- * <li>
- * If a system property with the name <code>javax.xml.ws.spi.Provider</code>
- * is defined, then its value is used as the name of the implementation class.
- * </li>
- * <li>
- * Finally, a default implementation class name is used.
- * </li>
- * </ul>
- *
- */
- public static Provider provider()
- {
- try
- {
- return (Provider)ProviderLoader.loadProvider(DEFAULT_JAXWSPROVIDER);
- }
- catch (WebServiceException ex)
- {
- throw ex;
- }
- catch (Exception ex)
- {
- throw new WebServiceException("Unable to load Provider: " + ex.getMessage(), ex);
- }
-
- }
-
- /**
- * Creates a service delegate object.
- * <p>
- * @param wsdlDocumentLocation A URL pointing to the WSDL document
- * for the service, or <code>null</code> if there isn't one.
- * @param serviceName The qualified name of the service.
- * @param serviceClass The service class, which MUST be either
- * <code>javax.xml.ws.Service</code> or a subclass thereof.
- * @return The newly created service delegate.
- */
- public abstract ServiceDelegate createServiceDelegate(java.net.URL wsdlDocumentLocation, QName serviceName, Class serviceClass);
-
- /**
- *
- * Creates an endpoint object with the provided binding and implementation
- * object.
- *
- * @param bindingId A URI specifying the desired binding (e.g. SOAP/HTTP)
- * @param implementor A service implementation object to which
- * incoming requests will be dispatched. The corresponding
- * class MUST be annotated with all the necessary Web service
- * annotations.
- * @return The newly created endpoint.
- */
- public abstract Endpoint createEndpoint(String bindingId, Object implementor);
-
- /**
- * Creates and publishes an endpoint object with the specified
- * address and implementation object.
- *
- * @param address A URI specifying the address and transport/protocol
- * to use. A http: URI MUST result in the SOAP 1.1/HTTP
- * binding being used. Implementations may support other
- * URI schemes.
- * @param implementor A service implementation object to which
- * incoming requests will be dispatched. The corresponding
- * class MUST be annotated with all the necessary Web service
- * annotations.
- * @return The newly created endpoint.
- */
- public abstract Endpoint createAndPublishEndpoint(String address, Object implementor);
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ProviderLoader.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ProviderLoader.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ProviderLoader.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,205 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.spi;
-
-// $Id$
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.security.AccessController;
-import java.security.PrivilegedAction;
-import java.util.Properties;
-
-/**
- * Load the provider using the following algorithm.
- *
- * 1. If a resource with the name of META-INF/services/javax.xml.ws.spi.Provider exists, then
- * its first line, if present, is used as the UTF-8 encoded name of the implementation class.
- *
- * 2. If the ${java.home}/lib/jaxws.properties file exists and it is readable by the
- * java.util.Properties.load(InputStream) method and it contains an entry whose key is
- * javax.xml.ws.spi.Provider, then the value of that entry is used as the name of the implementation class.
- *
- * 3. If a system property with the name javax.xml.ws.spi.Provider is defined, then its value is used
- * as the name of the implementation class.
- *
- * 4. Finally, a default implementation class name is used.
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 03-May-2006
- */
-abstract class ProviderLoader
-{
- /**
- * This method uses the algirithm described above.
- *
- * 1. If a resource with the name of META-INF/services/javax.xml.ws.spi.Provider exists, then
- * its first line, if present, is used as the UTF-8 encoded name of the implementation class.
- *
- * 2. If the ${java.home}/lib/jaxws.properties file exists and it is readable by the
- * java.util.Properties.load(InputStream) method and it contains an entry whose key is
- * javax.xml.ws.spi.Provider, then the value of that entry is used as the name of the implementation class.
- *
- * 3. If a system property with the name javax.xml.ws.spi.Provider is defined, then its value is used
- * as the name of the implementation class.
- *
- * 4. Finally, a default implementation class name is used.
- */
- public static Provider loadProvider(String defaultFactory)
- {
- Object factory = null;
- String factoryName = null;
- ClassLoader loader = Thread.currentThread().getContextClassLoader();
-
- // Use the Services API (as detailed in the JAR specification), if available, to determine the classname.
- String propertyName = Provider.JAXWSPROVIDER_PROPERTY;
- String filename = "META-INF/services/" + propertyName;
- InputStream inStream = loader.getResourceAsStream(filename);
- if (inStream != null)
- {
- try
- {
- BufferedReader br = new BufferedReader(new InputStreamReader(inStream, "UTF-8"));
- factoryName = br.readLine();
- br.close();
- if (factoryName != null)
- {
- Class factoryClass = loader.loadClass(factoryName);
- factory = factoryClass.newInstance();
- }
- }
- catch (Throwable t)
- {
- throw new IllegalStateException("Failed to load " + propertyName + ": " + factoryName, t);
- }
- }
-
- // Use the properties file "lib/jaxws.properties" in the JRE directory.
- // This configuration file is in standard java.util.Properties format and contains the fully qualified name of the implementation class with the key being the system property defined above.
- if (factory == null)
- {
- PrivilegedAction action = new PropertyAccessAction("java.home");
- String javaHome = (String)AccessController.doPrivileged(action);
- File jaxmFile = new File(javaHome + "/lib/jaxws.properties");
- if (jaxmFile.exists())
- {
- try
- {
- action = new PropertyFileAccessAction(jaxmFile.getCanonicalPath());
- Properties jaxmProperties = (Properties)AccessController.doPrivileged(action);
- factoryName = jaxmProperties.getProperty(propertyName);
- if (factoryName != null)
- {
- //if(log.isDebugEnabled()) log.debug("Load from " + jaxmFile + ": " + factoryName);
- Class factoryClass = loader.loadClass(factoryName);
- factory = factoryClass.newInstance();
- }
- }
- catch (Throwable t)
- {
- throw new IllegalStateException("Failed to load " + propertyName + ": " + factoryName, t);
- }
- }
- }
-
- // Use system property
- if (factory == null)
- {
- PrivilegedAction action = new PropertyAccessAction(propertyName);
- factoryName = (String)AccessController.doPrivileged(action);
- if (factoryName != null)
- {
- try
- {
- //if(log.isDebugEnabled()) log.debug("Load from system property: " + factoryName);
- Class factoryClass = loader.loadClass(factoryName);
- factory = factoryClass.newInstance();
- }
- catch (Throwable t)
- {
- throw new IllegalStateException("Failed to load " + propertyName + ": " + factoryName, t);
- }
- }
- }
-
- // Use the default factory implementation class.
- if (factory == null && defaultFactory != null)
- {
- try
- {
- //if(log.isDebugEnabled()) log.debug("Load from default: " + factoryName);
- Class factoryClass = loader.loadClass(defaultFactory);
- factory = factoryClass.newInstance();
- }
- catch (Throwable t)
- {
- throw new IllegalStateException("Failed to load: " + defaultFactory, t);
- }
- }
-
- return (Provider)factory;
- }
-
- private static class PropertyAccessAction implements PrivilegedAction
- {
- private String name;
-
- PropertyAccessAction(String name)
- {
- this.name = name;
- }
-
- public Object run()
- {
- return System.getProperty(name);
- }
- }
-
- private static class PropertyFileAccessAction implements PrivilegedAction
- {
- private String filename;
-
- PropertyFileAccessAction(String filename)
- {
- this.filename = filename;
- }
-
- public Object run()
- {
- try
- {
- InputStream inStream = new FileInputStream(filename);
- Properties props = new Properties();
- props.load(inStream);
- return props;
- }
- catch (IOException ex)
- {
- throw new SecurityException("Cannot load properties: " + filename, ex);
- }
- }
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ServiceDelegate.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ServiceDelegate.java 2008-04-30 17:10:33 UTC (rev 6802)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ServiceDelegate.java 2008-04-30 17:16:14 UTC (rev 6803)
@@ -1,250 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.spi;
-
-// $Id$
-
-import java.util.Iterator;
-
-import javax.xml.bind.JAXBContext;
-import javax.xml.namespace.QName;
-import javax.xml.ws.Dispatch;
-import javax.xml.ws.Service;
-import javax.xml.ws.WebServiceException;
-import javax.xml.ws.handler.HandlerResolver;
-
-/**
- * Service delegates are used internally by <code>Service</code> objects
- * to allow pluggability of JAX-WS implementations.
- * <p>
- * Every <code>Service</code> object has its own delegate, created using
- * the javax.xml.ws.Provider#createServiceDelegate method. A <code>Service</code>
- * object delegates all of its instance methods to its delegate.
- *
- * @see javax.xml.ws.Service
- * @see javax.xml.ws.spi.Provider
- *
- * @since JAX-WS 2.0
- */
-public abstract class ServiceDelegate
-{
- protected ServiceDelegate()
- {
- }
-
- /**
- * The getPort method returns a proxy. A service client
- * uses this proxy to invoke operations on the target
- * service endpoint. The <code>serviceEndpointInterface</code>
- * specifies the service endpoint interface that is supported by
- * the created dynamic proxy instance.
- *
- * @param portName Qualified name of the service endpoint in
- * the WSDL service description
- * @param serviceEndpointInterface Service endpoint interface
- * supported by the dynamic proxy
- * @return Object Proxy instance that
- * supports the specified service endpoint
- * interface
- * @throws WebServiceException This exception is thrown in the
- * following cases:
- * <UL>
- * <LI>If there is an error in creation of
- * the proxy
- * <LI>If there is any missing WSDL metadata
- * as required by this method
- * <LI>If an illegal
- * <code>serviceEndpointInterface</code>
- * or <code>portName</code> is specified
- * </UL>
- * @see java.lang.reflect.Proxy
- * @see java.lang.reflect.InvocationHandler
- **/
- public abstract <T> T getPort(QName portName, Class<T> serviceEndpointInterface);
-
- /**
- * The getPort method returns a proxy. The parameter
- * <code>serviceEndpointInterface</code> specifies the service
- * endpoint interface that is supported by the returned proxy.
- * In the implementation of this method, the JAX-WS
- * runtime system takes the responsibility of selecting a protocol
- * binding (and a port) and configuring the proxy accordingly.
- * The returned proxy should not be reconfigured by the client.
- *
- * @param serviceEndpointInterface Service endpoint interface
- * @return Object instance that supports the
- * specified service endpoint interface
- * @throws WebServiceException
- * <UL>
- * <LI>If there is an error during creation
- * of the proxy
- * <LI>If there is any missing WSDL metadata
- * as required by this method
- * <LI>If an illegal
- * <code>serviceEndpointInterface</code>
- * is specified
- * </UL>
- **/
- public abstract <T> T getPort(Class<T> serviceEndpointInterface);
-
- /**
- * Creates a new port for the service. Ports created in this way contain
- * no WSDL port type information and can only be used for creating
- * <code>Dispatch</code>instances.
- *
- * @param portName Qualified name for the target service endpoint
- * @param bindingId A URI identifier of a binding.
- * @param endpointAddress Address of the target service endpoint as a URI
- * @throws WebServiceException If any error in the creation of
- * the port
- *
- * @see javax.xml.ws.soap.SOAPBinding#SOAP11HTTP_BINDING
- * @see javax.xml.ws.soap.SOAPBinding#SOAP12HTTP_BINDING
- * @see javax.xml.ws.http.HTTPBinding#HTTP_BINDING
- **/
- public abstract void addPort(QName portName, String bindingId, String endpointAddress);
-
- /**
- * Creates a <code>Dispatch</code> instance for use with objects of
- * the users choosing.
- *
- * @param portName Qualified name for the target service endpoint
- * @param type The class of object used for messages or message
- * payloads. Implementations are required to support
- * javax.xml.transform.Source and javax.xml.soap.SOAPMessage.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body. Mode MUST be MESSAGE
- * when type is SOAPMessage.
- *
- * @return Dispatch instance
- * @throws WebServiceException If any error in the creation of
- * the <code>Dispatch</code> object
- * @see javax.xml.transform.Source
- * @see javax.xml.soap.SOAPMessage
- **/
- public abstract <T> Dispatch<T> createDispatch(QName portName, Class<T> type, Service.Mode mode);
-
- /**
- * Creates a <code>Dispatch</code> instance for use with JAXB
- * generated objects.
- *
- * @param portName Qualified name for the target service endpoint
- * @param context The JAXB context used to marshall and unmarshall
- * messages or message payloads.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body.
- *
- * @return Dispatch instance
- * @throws ServiceException If any error in the creation of
- * the <code>Dispatch</code> object
- *
- * @see javax.xml.bind.JAXBContext
- **/
- public abstract Dispatch<Object> createDispatch(QName portName, JAXBContext context, Service.Mode mode);
-
- /**
- * Gets the name of this service.
- * @return Qualified name of this service
- **/
- public abstract QName getServiceName();
-
- /**
- * Returns an <code>Iterator</code> for the list of
- * <code>QName</code>s of service endpoints grouped by this
- * service
- *
- * @return Returns <code>java.util.Iterator</code> with elements
- * of type <code>javax.xml.namespace.QName</code>
- * @throws WebServiceException If this Service class does not
- * have access to the required WSDL metadata
- **/
- public abstract Iterator<javax.xml.namespace.QName> getPorts();
-
- /**
- * Gets the location of the WSDL document for this Service.
- *
- * @return URL for the location of the WSDL document for
- * this service
- **/
- public abstract java.net.URL getWSDLDocumentLocation();
-
- /**
- * Returns the configured handler resolver.
- *
- * @return HandlerResolver The <code>HandlerResolver</code> being
- * used by this <code>Service</code> instance, or <code>null</code>
- * if there isn't one.
- **/
- public abstract HandlerResolver getHandlerResolver();
-
- /**
- * Sets the <code>HandlerResolver</code> for this <code>Service</code>
- * instance.
- * <p>
- * The handler resolver, if present, will be called once for each
- * proxy or dispatch instance that is created, and the handler chain
- * returned by the resolver will be set on the instance.
- *
- * @param handlerResolver The <code>HandlerResolver</code> to use
- * for all subsequently created proxy/dispatch objects.
- *
- * @see javax.xml.ws.handler.HandlerResolver
- **/
- public abstract void setHandlerResolver(HandlerResolver handlerResolver);
-
- /**
- * Returns the executor for this <code>Service</code>instance.
- *
- * The executor is used for all asynchronous invocations that
- * require callbacks.
- *
- * @return The <code>java.util.concurrent.Executor</code> to be
- * used to invoke a callback.
- *
- * @see java.util.concurrent.Executor
- **/
- public abstract java.util.concurrent.Executor getExecutor();
-
- /**
- * Sets the executor for this <code>Service</code> instance.
- *
- * The executor is used for all asynchronous invocations that
- * require callbacks.
- *
- * @param executor The <code>java.util.concurrent.Executor</code>
- * to be used to invoke a callback.
- *
- * @throws SecurityException If the instance does not support
- * setting an executor for security reasons (e.g. the
- * necessary permissions are missing).
- *
- * @see java.util.concurrent.Executor
- **/
- public abstract void setExecutor(java.util.concurrent.Executor executor);
-
-}
16 years, 8 months
JBossWS SVN: r6802 - in stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext: src/main/java/javax and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-30 13:10:33 -0400 (Wed, 30 Apr 2008)
New Revision: 6802
Added:
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/
Removed:
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/jws/
Log:
Copied: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src (from rev 6796, stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src)
16 years, 8 months
JBossWS SVN: r6801 - in stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext: src/main/java/javax and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-30 13:10:12 -0400 (Wed, 30 Apr 2008)
New Revision: 6801
Added:
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/
Removed:
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/jws/
Log:
Copied: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src (from rev 6796, stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src)
16 years, 8 months
JBossWS SVN: r6800 - in stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext: src/main/java/javax and 4 other directories.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-30 13:08:53 -0400 (Wed, 30 Apr 2008)
New Revision: 6800
Added:
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/
Removed:
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/jws/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/AsyncHandler.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Binding.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingProvider.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingType.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Dispatch.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Endpoint.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Holder.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/LogicalMessage.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ProtocolException.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Provider.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/RequestWrapper.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Response.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ResponseWrapper.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Service.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ServiceMode.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebEndpoint.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebFault.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceClient.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceContext.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceException.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServicePermission.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceProvider.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRef.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRefs.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/Handler.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/HandlerResolver.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalHandler.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalMessageContext.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/MessageContext.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/PortInfo.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPBinding.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPFaultException.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/Provider.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ProviderLoader.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ServiceDelegate.java
Log:
Copied: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src (from rev 6796, stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src)
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/AsyncHandler.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/AsyncHandler.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/AsyncHandler.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,41 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/** The <code>AsyncHandler</code> interface is implemented by
- * clients that wish to receive callback notification of the completion of
- * service endpoint operations invoked asynchronously.
- *
- * @since JAX-WS 2.0
- **/
-public interface AsyncHandler<T>
-{
-
- /** Called when the response to an asynchronous operation is available.
- *
- * @param res The response to the operation invocation.
- *
- **/
- void handleResponse(Response<T> res);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Binding.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Binding.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Binding.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,56 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-
-/** The <code>Binding</code> interface is the base interface
- * for JAX-WS protocol bindings.
- *
- * @since JAX-WS 2.0
- **/
-public interface Binding
-{
-
- /**
- * Gets a copy of the handler chain for a protocol binding instance.
- * If the returned chain is modified a call to <code>setHandlerChain</code>
- * is required to configure the binding instance with the new chain.
- *
- * @return java.util.List<javax.xml.ws.handler.HandlerInfo> Handler chain
- */
- public java.util.List<javax.xml.ws.handler.Handler> getHandlerChain();
-
- /**
- * Sets the handler chain for the protocol binding instance.
- *
- * @param chain A List of handler configuration entries
- * @throws WebServiceException On an error in the configuration of
- * the handler chain
- * @throws java.lang.UnsupportedOperationException If this
- * operation is not supported. This may be done to
- * avoid any overriding of a pre-configured handler
- * chain.
- */
- public void setHandlerChain(java.util.List<javax.xml.ws.handler.Handler> chain);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingProvider.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/BindingProvider.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingProvider.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,109 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.util.Map;
-
-/** The <code>BindingProvider</code> interface provides access to the
- * protocol binding and associated context objects for request and
- * response message processing.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.xml.ws.Binding
- **/
-public interface BindingProvider
-{
- /** Standard property: User name for authentication.
- * <p>Type: java.lang.String
- **/
- public static final String USERNAME_PROPERTY = "javax.xml.ws.security.auth.username";
-
- /** Standard property: Password for authentication.
- * <p>Type: java.lang.String
- **/
- public static final String PASSWORD_PROPERTY = "javax.xml.ws.security.auth.password";
-
- /** Standard property: Target service endpoint address. The
- * URI scheme for the endpoint address specification MUST
- * correspond to the protocol/transport binding for the
- * binding in use.
- * <p>Type: java.lang.String
- **/
- public static final String ENDPOINT_ADDRESS_PROPERTY = "javax.xml.ws.service.endpoint.address";
-
- /** Standard property: This boolean property is used by a service
- * client to indicate whether or not it wants to participate in
- * a session with a service endpoint. If this property is set to
- * true, the service client indicates that it wants the session
- * to be maintained. If set to false, the session is not maintained.
- * The default value for this property is false.
- * <p>Type: java.lang.Boolean
- **/
- public static final String SESSION_MAINTAIN_PROPERTY = "javax.xml.ws.session.maintain";
-
- /** Standard property for SOAPAction. This boolean property
- * indicates whether or not SOAPAction is to be used. The
- * default value of this property is false indicating that
- * the SOAPAction is not used.
- * <p>Type: <code>java.lang.Boolean</code>
- **/
- public static final String SOAPACTION_USE_PROPERTY = "javax.xml.ws.soap.http.soapaction.use";
-
- /** Standard property for SOAPAction. Indicates the SOAPAction
- * URI if the <code>javax.xml.ws.soap.http.soapaction.use</code>
- * property is set to <code>true</code>.
- * <p>Type: <code>java.lang.String</code>
- **/
- public static final String SOAPACTION_URI_PROPERTY = "javax.xml.ws.soap.http.soapaction.uri";
-
- /** Get the context that is used to initialize the message context
- * for request messages.
- *
- * Modifications to the request context do not affect the message context of
- * either synchronous or asynchronous operations that have already been
- * started.
- *
- * @return The context that is used in processing request messages.
- **/
- Map<String, Object> getRequestContext();
-
- /** Get the context that resulted from processing a response message.
- *
- * The returned context is for the most recently completed synchronous
- * operation. Subsequent synchronous operation invocations overwrite the
- * response context. Asynchronous operations return their response context
- * via the Response interface.
- *
- * @return The context that resulted from processing the latest
- * response messages.
- **/
- Map<String, Object> getResponseContext();
-
- /** Get the Binding for this binding provider.
- *
- * @return The Binding for this binding provider.
- **/
- Binding getBinding();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingType.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/BindingType.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingType.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,59 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * The <code>BindingType</code> annotation is used to
- * specify the binding to use for a web service
- * endpoint implementation class. As well as specify
- * additional features that may be enabled.
- *
- * @since JAX-WS 2.0
- *
- **/
-
-(a)Target(ElementType.TYPE)
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface BindingType {
- /**
- * A binding identifier (a URI).
- * If not specified, the default is the SOAP 1.1 / HTTP binding.
- * <p>
- * See the <code>SOAPBinding</code> and <code>HTTPBinding</code>
- * for the definition of the standard binding identifiers.
- *
- * @see javax.xml.ws.Binding
- * @see javax.xml.ws.soap.SOAPBinding#SOAP11HTTP_BINDING
- * @see javax.xml.ws.soap.SOAPBinding#SOAP12HTTP_BINDING
- * @see javax.xml.ws.http.HTTPBinding#HTTP_BINDING
- */
- String value() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Dispatch.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Dispatch.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Dispatch.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,115 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.util.concurrent.Future;
-
-/** The <code>Dispatch</code> interface provides support
- * for the dynamic invocation of a service endpoint operations. The
- * <code>javax.xml.ws.Service</code>
- * interface acts as a factory for the creation of <code>Dispatch</code>
- * instances.
- *
- * @since JAX-WS 2.0
- **/
-public interface Dispatch<T> extends BindingProvider
-{
-
- /** Invoke a service operation synchronously.
- *
- * The client is responsible for ensuring that the <code>msg</code> object
- * when marshalled is formed according to the requirements of the protocol
- * binding in use.
- *
- * @param msg An object that will form the message or payload of
- * the message used to invoke the operation.
- * @return The response message or message payload to the
- * operation invocation.
- * @throws WebServiceException If a fault occurs during communication with
- * the service
- * @throws WebServiceException If there is any error in the configuration of
- * the <code>Dispatch</code> instance
- **/
- public T invoke(T msg);
-
- /** Invoke a service operation asynchronously. The
- * method returns without waiting for the response to the operation
- * invocation, the results of the operation are obtained by polling the
- * returned <code>Response</code>.
- *
- * The client is responsible for ensuring that the <code>msg</code> object
- * when marshalled is formed according to the requirements of the protocol
- * binding in use.
- *
- * @param msg An object that will form the message or payload of
- * the message used to invoke the operation.
- * @return The response message or message payload to the
- * operation invocation.
- * @throws WebServiceException If there is any error in the configuration of
- * the <code>Dispatch</code> instance
- **/
- public Response<T> invokeAsync(T msg);
-
- /** Invoke a service operation asynchronously. The
- * method returns without waiting for the response to the operation
- * invocation, the results of the operation are communicated to the client
- * via the passed in handler.
- *
- * The client is responsible for ensuring that the <code>msg</code> object
- * when marshalled is formed according to the requirements of the protocol
- * binding in use.
- *
- * @param msg An object that will form the message or payload of
- * the message used to invoke the operation.
- * @param handler The handler object that will receive the
- * response to the operation invocation.
- * @return A <code>Future</code> object that may be used to check the status
- * of the operation invocation. This object MUST NOT be used to try to
- * obtain the results of the operation - the object returned from
- * <code>Future<?>.get()</code> is implementation dependent
- * and any use of it will result in non-portable behaviour.
- * @throws WebServiceException If there is any error in the configuration of
- * the <code>Dispatch</code> instance
- **/
- public Future<?> invokeAsync(T msg, AsyncHandler<T> handler);
-
- /** Invokes a service operation using the one-way
- * interaction mode. The operation invocation is logically non-blocking,
- * subject to the capabilities of the underlying protocol, no results
- * are returned. When
- * the protocol in use is SOAP/HTTP, this method MUST block until
- * an HTTP response code has been received or an error occurs.
- *
- * The client is responsible for ensuring that the <code>msg</code> object
- * when marshalled is formed according to the requirements of the protocol
- * binding in use.
- *
- * @param msg An object that will form the message or payload of
- * the message used to invoke the operation.
- * @throws WebServiceException If there is any error in the configuration of
- * the <code>Dispatch</code> instance or if an error occurs during the
- * invocation.
- **/
- public void invokeOneWay(T msg);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Endpoint.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Endpoint.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Endpoint.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,297 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import javax.xml.ws.soap.SOAPBinding;
-import javax.xml.ws.spi.Provider;
-import java.util.List;
-import java.util.Map;
-
-/**
- * A Web service endpoint.
- *
- * <p>Endpoints are created using the static methods defined in this
- * class. An endpoint is always tied to one <code>Binding</code>
- * and one implementor, both set at endpoint creation time.
- *
- * <p>An endpoint is either in a published or an unpublished state.
- * The <code>publish</code> methods can be used to start publishing
- * an endpoint, at which point it starts accepting incoming requests.
- * Conversely, the <code>stop</code> method can be used to stop
- * accepting incoming requests and take the endpoint down.
- * Once stopped, an endpoint cannot be published again.
- *
- * <p>An <code>Executor</code> may be set on the endpoint in order
- * to gain better control over the threads used to dispatch incoming
- * requests. For instance, thread pooling with certain parameters
- * can be enabled by creating a <code>ThreadPoolExecutor</code> and
- * registering it with the endpoint.
- *
- * <p>Handler chains can be set using the contained <code>Binding</code>.
- *
- * <p>An endpoint may have a list of metadata documents, such as WSDL
- * and XMLSchema documents, bound to it. At publishing time, the
- * JAX-WS implementation will try to reuse as much of that metadata
- * as possible instead of generating new one based on the annotations
- * present on the implementor.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.xml.ws.Binding
- * @see javax.xml.ws.BindingType
- * @see javax.xml.ws.soap.SOAPBinding
- * @see java.util.concurrent.Executor
- *
- **/
-public abstract class Endpoint
-{
-
- /** Standard property: name of WSDL service.
- * <p>Type: javax.xml.namespace.QName
- **/
- public static final String WSDL_SERVICE = "javax.xml.ws.wsdl.service";
-
- /** Standard property: name of WSDL port.
- * <p>Type: javax.xml.namespace.QName
- **/
- public static final String WSDL_PORT = "javax.xml.ws.wsdl.port";
-
- /**
- * Creates an endpoint with the specified implementor object. If there is
- * a binding specified via a BindingType annotation then it MUST be used else
- * a default of SOAP 1.1 / HTTP binding MUST be used.
- * <p>
- * The newly created endpoint may be published by calling
- * one of the javax.xml.ws.Endpoint#publish(String) and
- * javax.xml.ws.Endpoint#publish(Object) methods.
- *
- *
- * @param implementor The endpoint implementor.
- *
- * @return The newly created endpoint.
- *
- **/
- public static Endpoint create(Object implementor)
- {
- if (implementor == null)
- throw new IllegalArgumentException("Implementor cannot be null");
-
- String bindingId = SOAPBinding.SOAP11HTTP_BINDING;
- BindingType anBindingType = implementor.getClass().getAnnotation(BindingType.class);
- if (anBindingType != null)
- bindingId = anBindingType.value();
-
- return create(bindingId, implementor);
- }
-
- /**
- * Creates an endpoint with the specified binding type and
- * implementor object.
- * <p>
- * The newly created endpoint may be published by calling
- * one of the javax.xml.ws.Endpoint#publish(String) and
- * javax.xml.ws.Endpoint#publish(Object) methods.
- *
- * @param bindingId A URI specifying the binding to use. If the bindingID is
- * <code>null</code> and no binding is specified via a BindingType
- * annotation then a default SOAP 1.1 / HTTP binding MUST be used.
- *
- * @param implementor The endpoint implementor.
- *
- * @return The newly created endpoint.
- *
- **/
- public static Endpoint create(String bindingId, Object implementor)
- {
- return Provider.provider().createEndpoint(bindingId, implementor);
- }
-
- /**
- * Returns the binding for this endpoint.
- *
- * @return The binding for this endpoint
- **/
- public abstract Binding getBinding();
-
- /**
- * Returns the implementation object for this endpoint.
- *
- * @return The implementor for this endpoint
- **/
- public abstract Object getImplementor();
-
- /**
- * Publishes this endpoint at the given address.
- * The necessary server infrastructure will be created and
- * configured by the JAX-WS implementation using some default configuration.
- * In order to get more control over the server configuration, please
- * use the javax.xml.ws.Endpoint#publish(Object) method instead.
- *
- * @param address A URI specifying the address to use. The address
- * MUST be compatible with the binding specified at the
- * time the endpoint was created.
- *
- * @throws java.lang.IllegalArgumentException
- * If the provided address URI is not usable
- * in conjunction with the endpoint's binding.
- *
- * @throws java.lang.IllegalStateException
- * If the endpoint has been published already or it has been stopped.
- **/
- public abstract void publish(String address);
-
- /**
- * Creates and publishes an endpoint for the specified implementor
- * object at the given address.
- * <p>
- * The necessary server infrastructure will be created and
- * configured by the JAX-WS implementation using some default configuration.
- *
- * In order to get more control over the server configuration, please
- * use the javax.xml.ws.Endpoint#create(String,Object) and
- * javax.xml.ws.Endpoint#publish(Object) method instead.
- *
- * @param address A URI specifying the address and transport/protocol
- * to use. A http: URI MUST result in the SOAP 1.1/HTTP
- * binding being used. Implementations may support other
- * URI schemes.
- * @param implementor The endpoint implementor.
- *
- * @return The newly created endpoint.
- *
- **/
- public static Endpoint publish(String address, Object implementor)
- {
- return Provider.provider().createAndPublishEndpoint(address, implementor);
- }
-
- /**
- * Publishes this endpoint at the provided server context.
- * A server context encapsulates the server infrastructure
- * and addressing information for a particular transport.
- * For a call to this method to succeed, the server context
- * passed as an argument to it MUST be compatible with the
- * endpoint's binding.
- *
- * @param serverContext An object representing a server
- * context to be used for publishing the endpoint.
- *
- * @throws java.lang.IllegalArgumentException
- * If the provided server context is not
- * supported by the implementation or turns
- * out to be unusable in conjunction with the
- * endpoint's binding.
- *
- * @throws java.lang.IllegalStateException
- * If the endpoint has been published already or it has been stopped.
- **/
- public abstract void publish(Object serverContext);
-
- /**
- * Stops publishing this endpoint.
- *
- * If the endpoint is not in a published state, this method
- * has not effect.
- *
- **/
- public abstract void stop();
-
- /**
- * Returns true if the endpoint is in the published state.
- *
- * @return <code>true</code> if the endpoint is in the published state.
- **/
- public abstract boolean isPublished();
-
- /**
- * Returns a list of metadata documents for the service.
- *
- * @return <code>List<javax.xml.transform.Source></code> A list of metadata documents for the service
- **/
- public abstract List<javax.xml.transform.Source> getMetadata();
-
- /**
- * Sets the metadata for this endpoint.
- *
- * @param metadata A list of XML document sources containing
- * metadata information for the endpoint (e.g.
- * WSDL or XML Schema documents)
- *
- * @throws java.lang.IllegalStateException If the endpoint
- * has already been published.
- **/
- public abstract void setMetadata(List<javax.xml.transform.Source> metadata);
-
- /**
- * Returns the executor for this <code>Endpoint</code>instance.
- *
- * The executor is used to dispatch an incoming request to
- * the implementor object.
- *
- * @return The <code>java.util.concurrent.Executor</code> to be
- * used to dispatch a request.
- *
- * @see java.util.concurrent.Executor
- **/
- public abstract java.util.concurrent.Executor getExecutor();
-
- /**
- * Sets the executor for this <code>Endpoint</code> instance.
- *
- * The executor is used to dispatch an incoming request to
- * the implementor object.
- *
- * If this <code>Endpoint</code> is published using the
- * <code>publish(Object)</code> method and the specified server
- * context defines its own threading behavior, the executor
- * may be ignored.
- *
- * @param executor The <code>java.util.concurrent.Executor</code>
- * to be used to dispatch a request.
- *
- * @throws SecurityException If the instance does not support
- * setting an executor for security reasons (e.g. the
- * necessary permissions are missing).
- *
- * @see java.util.concurrent.Executor
- **/
- public abstract void setExecutor(java.util.concurrent.Executor executor);
-
- /**
- * Returns the property bag for this <code>Endpoint</code> instance.
- *
- * @return Map<String,Object> The property bag
- * associated with this instance.
- **/
- public abstract Map<String, Object> getProperties();
-
- /**
- * Sets the property bag for this <code>Endpoint</code> instance.
- *
- * @param properties The property bag associated with
- * this instance.
- **/
- public abstract void setProperties(Map<String, Object> properties);
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Holder.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Holder.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Holder.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,55 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/**
- * Holds a value of type <code>T</code>.
- *
- * @since JAX-WS 2.0
- **/
-public final class Holder<T>
-{
-
- /**
- * The value contained in the holder.
- **/
- public T value;
-
- /**
- * Creates a new holder with a <code>null</code> value.
- **/
- public Holder()
- {
- }
-
- /**
- * Create a new holder with the specified value.
- *
- * @param value The value to be stored in the holder.
- **/
- public Holder(T value)
- {
- this.value = value;
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/LogicalMessage.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/LogicalMessage.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/LogicalMessage.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,90 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import javax.xml.bind.JAXBContext;
-import javax.xml.transform.Source;
-
-/** The <code>LogicalMessage</code> interface represents a
- * protocol agnostic XML message and contains methods that
- * provide access to the payload of the message.
- *
- * @since JAX-WS 2.0
- **/
-public interface LogicalMessage
-{
-
- /** Gets the message payload as an XML source, may be called
- * multiple times on the same LogicalMessage instance, always
- * returns a new Source that may be used to retrieve the entire
- * message payload.
- *
- * <p>If the returned Source is an instance of DOMSource, then
- * modifications to the encapsulated DOM tree change the message
- * payload in-place, there is no need to susequently call
- * <code>setPayload</code>. Other types of Source provide only
- * read access to the message payload.
- *
- * @return The contained message payload; returns null if no
- * payload is present in this message.
- **/
- public Source getPayload();
-
- /** Sets the message payload
- *
- * @param payload message payload
- * @throws WebServiceException If any error during the setting
- * of the payload in this message
- * @throws java.lang.UnsupportedOperationException If this
- * operation is not supported
- **/
- public void setPayload(Source payload);
-
- /** Gets the message payload as a JAXB object. Note that there is no
- * connection between the returned object and the message payload,
- * changes to the payload require calling <code>setPayload</code>.
- *
- * @param context The JAXBContext that should be used to unmarshall
- * the message payload
- * @return The contained message payload; returns null if no
- * payload is present in this message
- * @throws WebServiceException If an error occurs when using a supplied
- * JAXBContext to unmarshall the payload. The cause of
- * the WebServiceException is the original JAXBException.
- **/
- public Object getPayload(JAXBContext context);
-
- /** Sets the message payload
- *
- * @param payload message payload
- * @param context The JAXBContext that should be used to marshall
- * the payload
- * @throws java.lang.UnsupportedOperationException If this
- * operation is not supported
- * @throws WebServiceException If an error occurs when using the supplied
- * JAXBContext to marshall the payload. The cause of
- * the WebServiceException is the original JAXBException.
- **/
- public void setPayload(Object payload, JAXBContext context);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ProtocolException.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/ProtocolException.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ProtocolException.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,93 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/** The <code>ProtocolException</code> class is a
- * base class for exceptions related to a specific protocol binding. Subclasses
- * are used to communicate protocol level fault information to clients and may
- * be used on the server to control the protocol specific fault representation.
- *
- * @since JAX-WS 2.0
- **/
-public class ProtocolException extends WebServiceException
-{
- private static final long serialVersionUID = 6688436881502883481L;
-
- /**
- * Constructs a new protocol exception with null as its detail message. The
- * cause is not initialized, and may subsequently be initialized by a call
- * to Throwable.initCause(java.lang.Throwable).
- */
- public ProtocolException()
- {
- super();
- }
-
- /**
- * Constructs a new protocol exception with the specified detail message.
- * The cause is not initialized, and may subsequently be initialized by a
- * call to Throwable.initCause(java.lang.Throwable).
- *
- * @param message the detail message. The detail message is saved for later
- * retrieval by the Throwable.getMessage() method.
- */
- public ProtocolException(String message)
- {
- super(message);
- }
-
- /**
- * Constructs a new runtime exception with the specified detail message and
- * cause.
- *
- * Note that the detail message associated with cause is not automatically
- * incorporated in this runtime exception's detail message.
- *
- * @param message the detail message (which is saved for later retrieval by
- * the Throwable.getMessage() method).
- * @param cause the cause (which is saved for later retrieval by the
- * Throwable.getCause() method). (A null value is permitted, and indicates
- * that the cause is nonexistent or unknown.)
- */
- public ProtocolException(String message, Throwable cause)
- {
- super(message, cause);
- }
-
- /**
- * Constructs a new runtime exception with the specified cause and a detail
- * message of (cause==null ? null : cause.toString()) (which typically
- * contains the class and detail message of cause). This constructor is
- * useful for runtime exceptions that are little more than wrappers for
- * other throwables.
- *
- * @param cause the cause (which is saved for later retrieval by the
- * Throwable.getCause() method). (A null value is permitted, and indicates
- * that the cause is nonexistent or unknown.)
- */
- public ProtocolException(Throwable cause)
- {
- super(cause);
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Provider.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Provider.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Provider.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,62 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/**
- * <p>Service endpoints may implement the <code>Provider</code>
- * interface as a dynamic alternative to an SEI.
- *
- * <p>Implementations are required to support <code>Provider<Source></code>,
- * <code>Provider<SOAPMessage></code> and
- * <code>Provider<DataSource></code>, depending on the binding
- * in use and the service mode.
- *
- * <p>The <code>ServiceMode</code> annotation can be used to control whether
- * the <code>Provider</code> instance will receive entire protocol messages
- * or just message payloads.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.xml.transform.Source
- * @see javax.xml.soap.SOAPMessage
- * @see javax.xml.ws.ServiceMode
- **/
-public interface Provider<T>
-{
-
- /** Invokes an operation occording to the contents of the request
- * message.
- *
- * @param request The request message or message payload.
- * @return The response message or message payload. May be null if
- there is no response.
- * @throws WebServiceException If there is an error processing request.
- * The cause of the WebServiceException may be set to a subclass
- * of ProtocolException to control the protocol level
- * representation of the exception.
- * @see javax.xml.ws.handler.MessageContext
- * @see javax.xml.ws.ProtocolException
- **/
- public T invoke(T request);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/RequestWrapper.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/RequestWrapper.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/RequestWrapper.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,64 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
-
- * Used to annotate methods in the Service Endpoint Interface with the request
- * wrapper bean to be used at runtime. The default value of the localName is
- * the operationName, as defined in WebMethod annotation and the
- * targetNamespace is the target namespace of the SEI.
- * <p> When starting from Java this annotation is used resolve
- * overloading conflicts in document literal mode. Only the className
- * is required in this case.
- *
- * @since JAX-WS 2.0
- **/
-
-(a)Target(ElementType.METHOD)
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface RequestWrapper {
- /**
- * Elements local name.
- **/
- public String localName() default "";
-
- /**
- * Elements namespace name.
- **/
- public String targetNamespace() default "";
-
- /**
- * Request wrapper bean name.
- **/
- public String className() default "";
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Response.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Response.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Response.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,51 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.util.Map;
-import java.util.concurrent.Future;
-
-/** The <code>Response</code> interface provides methods used to obtain the
- * payload and context of a message sent in response to an operation
- * invocation.
- *
- * <p>For asynchronous operation invocations it provides additional methods
- * to check the status of the request. The <code>get(...)</code> methods may
- * throw the standard
- * set of exceptions and their cause may be a RemoteException or a
- * WebServiceException that represents the error that occured during the
- * asynchronous method invocation.</p>
- *
- * @since JAX-WS 2.0
- **/
-public interface Response<T> extends Future<T>
-{
- /** Gets the contained response context.
- *
- * @return The contained response context. May be <code>null</code> if a
- * response is not yet available.
- *
- **/
- Map<String, Object> getContext();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ResponseWrapper.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/ResponseWrapper.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ResponseWrapper.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,73 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to annotate methods in the Service Endpoint Interface with the response
- * wrapper bean to be used at runtime. The default value of the localName is
- * the operationName as defined in WebMethod annotation appended with
- * Response and the targetNamespace is the target namespace of the SEI.
- * <p> When starting from Java this annotation is used resolve
- * overloading conflicts in document literal mode. Only the className
- * is required in this case.
- *
- * @since JAX-WS 2.0
- **/
-
-(a)Target(ElementType.METHOD)
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface ResponseWrapper {
-
- /**
-
- * Elements local name.
-
- **/
-
- public String localName() default "";
-
- /**
-
- * Elements namespace name.
-
- **/
-
- public String targetNamespace() default "";
-
- /**
-
- * Response wrapper bean name.
-
- **/
-
- public String className() default "";
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Service.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Service.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Service.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,347 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.net.URL;
-import java.util.Iterator;
-
-import javax.xml.bind.JAXBContext;
-import javax.xml.namespace.QName;
-import javax.xml.ws.handler.HandlerResolver;
-import javax.xml.ws.spi.Provider;
-import javax.xml.ws.spi.ServiceDelegate21;
-
-/**
- * <code>Service</code> objects provide the client view of a Web service.
- * <p><code>Service</code> acts as a factory of the following:
- * <ul>
- * <li>Proxies for a target service endpoint.
- * <li>Instances of <code>javax.xml.ws.Dispatch</code> for
- * dynamic message-oriented invocation of a remote
- * operation.
- * </li>
- *
- * <p>The ports available on a service can be enumerated using the
- * <code>getPorts</code> method. Alternatively, you can pass a
- * service endpoint interface to the unary <code>getPort</code> method
- * and let the runtime select a compatible port.
- *
- * <p>Handler chains for all the objects created by a <code>Service</code>
- * can be set by means of a <code>HandlerResolver</code>.
- *
- * <p>An <code>Executor</code> may be set on the service in order
- * to gain better control over the threads used to dispatch asynchronous
- * callbacks. For instance, thread pooling with certain parameters
- * can be enabled by creating a <code>ThreadPoolExecutor</code> and
- * registering it with the service.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.xml.ws.spi.Provider
- * @see javax.xml.ws.handler.HandlerResolver
- * @see java.util.concurrent.Executor
- **/
-public class Service
-{
- ServiceDelegate21 delegate;
-
- /**
- * The orientation of a dynamic client or service. MESSAGE provides
- * access to entire protocol message, PAYLOAD to protocol message
- * payload only.
- **/
- public enum Mode
- {
- MESSAGE, PAYLOAD
- };
-
- protected Service(java.net.URL wsdlDocumentLocation, QName serviceName)
- {
- delegate = (ServiceDelegate21)Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass());
- }
-
- /**
- * Create a <code>Service</code> instance.
- *
- * The specified WSDL document location and service qualified name MUST
- * uniquely identify a <code>wsdl:service</code> element.
- *
- * @param wsdlLocation URL for the WSDL document location
- * for the service
- * @param serviceName QName for the service
- * @throws WebServiceException If any error in creation of the
- * specified service.
- **/
- public static Service create(URL wsdlLocation, QName serviceName)
- {
- return new Service(wsdlLocation, serviceName);
- }
-
- /**
- * Create a <code>Service</code> instance.
- *
- * @param serviceName QName for the service
- * @throws WebServiceException If any error in creation of the
- * specified service
- */
- public static Service create(QName serviceName)
- {
- return create(null, serviceName);
- }
-
- /**
- * The getPort method returns a proxy. A service client
- * uses this proxy to invoke operations on the target
- * service endpoint. The <code>serviceEndpointInterface</code>
- * specifies the service endpoint interface that is supported by
- * the created dynamic proxy instance.
- *
- * @param portName Qualified name of the service endpoint in
- * the WSDL service description.
- * @param serviceEndpointInterface Service endpoint interface
- * supported by the dynamic proxy instance.
- * @return Object Proxy instance that
- * supports the specified service endpoint
- * interface.
- * @throws WebServiceException This exception is thrown in the
- * following cases:
- * <UL>
- * <LI>If there is an error in creation of
- * the proxy.
- * <LI>If there is any missing WSDL metadata
- * as required by this method.
- * <LI>If an illegal
- * <code>serviceEndpointInterface</code>
- * or <code>portName</code> is specified.
- * </UL>
- * @see java.lang.reflect.Proxy
- * @see java.lang.reflect.InvocationHandler
- **/
- public <T> T getPort(QName portName, Class<T> serviceEndpointInterface)
- {
- return delegate.getPort(portName, serviceEndpointInterface);
- }
-
- /**
- * The getPort method returns a proxy. The parameter
- * <code>serviceEndpointInterface</code> specifies the service
- * endpoint interface that is supported by the returned proxy.
- * In the implementation of this method, the JAX-WS
- * runtime system takes the responsibility of selecting a protocol
- * binding (and a port) and configuring the proxy accordingly.
- * The returned proxy should not be reconfigured by the client.
- *
- * @param serviceEndpointInterface Service endpoint interface.
- * @return Object instance that supports the
- * specified service endpoint interface.
- * @throws WebServiceException
- * <UL>
- * <LI>If there is an error during creation
- * of the proxy.
- * <LI>If there is any missing WSDL metadata
- * as required by this method.
- * <LI>If an illegal.
- * <code>serviceEndpointInterface</code>
- * is specified.
- * </UL>
- **/
- public <T> T getPort(Class<T> serviceEndpointInterface)
- {
- return delegate.getPort(serviceEndpointInterface);
- }
-
- /**
- * Creates a new port for the service. Ports created in this way contain
- * no WSDL port type information and can only be used for creating
- * <code>Dispatch</code>instances.
- *
- * @param portName Qualified name for the target service endpoint.
- * @param bindingId A String identifier of a binding.
- * @param endpointAddress Address of the target service endpoint as a URI.
- * @throws WebServiceException If any error in the creation of
- * the port.
- *
- * @see javax.xml.ws.soap.SOAPBinding#SOAP11HTTP_BINDING
- * @see javax.xml.ws.soap.SOAPBinding#SOAP12HTTP_BINDING
- * @see javax.xml.ws.http.HTTPBinding#HTTP_BINDING
- **/
- public void addPort(QName portName, String bindingId, String endpointAddress)
- {
- delegate.addPort(portName, bindingId, endpointAddress);
- }
-
- /**
- * Creates a <code>Dispatch</code> instance for use with objects of
- * the users choosing.
- *
- * @param portName Qualified name for the target service endpoint
- * @param type The class of object used for messages or message
- * payloads. Implementations are required to support
- * <code>javax.xml.transform.Source</code>, <code>javax.xml.soap.SOAPMessage</code>
- * and <code>javax.activation.DataSource</code>, depending on
- * the binding in use.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body. Mode MUST be MESSAGE
- * when type is SOAPMessage.
- *
- * @return Dispatch instance.
- * @throws WebServiceException If any error in the creation of
- * the <code>Dispatch</code> object.
- *
- * @see javax.xml.transform.Source
- * @see javax.xml.soap.SOAPMessage
- **/
- public <T> Dispatch<T> createDispatch(QName portName, Class<T> type, Mode mode)
- {
- return delegate.createDispatch(portName, type, mode);
- }
-
- /**
- * Creates a <code>Dispatch</code> instance for use with JAXB
- * generated objects.
- *
- * @param portName Qualified name for the target service endpoint
- * @param context The JAXB context used to marshall and unmarshall
- * messages or message payloads.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body.
- *
- * @return Dispatch instance.
- * @throws WebServiceException If any error in the creation of
- * the <code>Dispatch</code> object.
- *
- * @see javax.xml.bind.JAXBContext
- **/
- public Dispatch<Object> createDispatch(QName portName, JAXBContext context, Mode mode)
- {
- return delegate.createDispatch(portName, context, mode);
- }
-
- /**
- * Gets the name of this service.
- * @return Qualified name of this service
- **/
- public QName getServiceName()
- {
- return delegate.getServiceName();
- }
-
- /**
- * Returns an <code>Iterator</code> for the list of
- * <code>QName</code>s of service endpoints grouped by this
- * service
- *
- * @return Returns <code>java.util.Iterator</code> with elements
- * of type <code>javax.xml.namespace.QName</code>.
- * @throws WebServiceException If this Service class does not
- * have access to the required WSDL metadata.
- **/
- public Iterator<javax.xml.namespace.QName> getPorts()
- {
- return delegate.getPorts();
- }
-
- /**
- * Gets the location of the WSDL document for this Service.
- *
- * @return URL for the location of the WSDL document for
- * this service.
- **/
- public java.net.URL getWSDLDocumentLocation()
- {
- return delegate.getWSDLDocumentLocation();
- }
-
- /**
- * Returns the configured handler resolver.
- *
- * @return HandlerResolver The <code>HandlerResolver</code> being
- * used by this <code>Service</code> instance, or <code>null</code>
- * if there isn't one.
- **/
- public HandlerResolver getHandlerResolver()
- {
- return delegate.getHandlerResolver();
- }
-
- /**
- * Sets the <code>HandlerResolver</code> for this <code>Service</code>
- * instance.
- * <p>
- * The handler resolver, if present, will be called once for each
- * proxy or dispatch instance that is created, and the handler chain
- * returned by the resolver will be set on the instance.
- *
- * @param handlerResolver The <code>HandlerResolver</code> to use
- * for all subsequently created proxy/dispatch objects.
- *
- * @see javax.xml.ws.handler.HandlerResolver
- **/
- public void setHandlerResolver(HandlerResolver handlerResolver)
- {
- delegate.setHandlerResolver(handlerResolver);
- }
-
- /**
- * Returns the executor for this <code>Service</code>instance.
- *
- * The executor is used for all asynchronous invocations that
- * require callbacks.
- *
- * @return The <code>java.util.concurrent.Executor</code> to be
- * used to invoke a callback.
- *
- * @see java.util.concurrent.Executor
- **/
- public java.util.concurrent.Executor getExecutor()
- {
- return delegate.getExecutor();
- }
-
- /**
- * Sets the executor for this <code>Service</code> instance.
- *
- * The executor is used for all asynchronous invocations that
- * require callbacks.
- *
- * @param executor The <code>java.util.concurrent.Executor</code>
- * to be used to invoke a callback.
- *
- * @throws SecurityException If the instance does not support
- * setting an executor for security reasons (e.g. the
- * necessary permissions are missing).
- *
- * @see java.util.concurrent.Executor
- **/
- public void setExecutor(java.util.concurrent.Executor executor)
- {
- delegate.setExecutor(executor);
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ServiceMode.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/ServiceMode.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ServiceMode.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,51 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Inherited;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to indicate whether a Provider implementation wishes to work
- * with entire protocol messages or just with protocol message payloads.
- *
- * @since JAX-WS 2.0
- **/
-@Target( { ElementType.TYPE })
-(a)Retention(RetentionPolicy.RUNTIME)
-@Inherited
-@Documented
-public @interface ServiceMode {
- /**
- * Service mode. PAYLOAD indicates that the Provider implementation
- * wishes to work with protocol message payloads only. MESSAGE indicates
- * that the Provider implementation wishes to work with entire protocol
- * messages.
- **/
- public Service.Mode value() default Service.Mode.PAYLOAD;
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebEndpoint.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebEndpoint.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebEndpoint.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,54 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to annotate the <code>get<em>PortName</em>()</code>
- * methods of a generated service interface.
- *
- * <p>The information specified in this annotation is sufficient
- * to uniquely identify a <code>wsdl:port</code> element
- * inside a <code>wsdl:service</code>. The latter is
- * determined based on the value of the <code>WebServiceClient</code>
- * annotation on the generated service interface itself.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.xml.ws.WebServiceClient
- **/
-@Target( { ElementType.METHOD })
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebEndpoint {
- /**
- * The local name of the endpoint.
- **/
- String name() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebFault.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebFault.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebFault.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,57 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to annotate service specific exception classes to customize
- * to the local and namespace name of the fault element and the name
- * of the fault bean.
- *
- * @since JAX-WS 2.0
- **/
-@Target( { ElementType.TYPE })
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebFault {
- /**
- * Elements local name.
- **/
- public String name() default "";
-
- /**
- * Elements namespace name.
- **/
- public String targetNamespace() default "";
-
- /**
- * Fault bean name.
- **/
- public String faultBean() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceClient.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceClient.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceClient.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,61 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to annotate a generated service interface.
- *
- * <p>The information specified in this annotation is sufficient
- * to uniquely identify a <code>wsdl:service</code>
- * element inside a WSDL document. This <code>wsdl:service</code>
- * element represents the Web service for which the generated
- * service interface provides a client view.
- *
- * @since JAX-WS 2.0
- **/
-@Target( { ElementType.TYPE })
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebServiceClient {
- /**
- * The local name of the Web service.
- **/
- String name() default "";
-
- /**
- * The namespace for the Web service.
- **/
- String targetNamespace() default "";
-
- /**
- * The location of the WSDL document for the service (a URL).
- **/
- String wsdlLocation() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceContext.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceContext.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceContext.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,97 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import javax.xml.ws.handler.MessageContext;
-import java.security.Principal;
-
-/**
- * A <code>WebServiceContext</code> makes it possible for
- * a web service endpoint implementation class to access
- * message context and security information relative to
- * a request being served.
- *
- * Typically a <code>WebServiceContext</code> is injected
- * into an endpoint implementation class using the
- * <code>Resource</code> annotation.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.annotation.Resource
- **/
-public interface WebServiceContext
-{
-
- /**
- * Returns the MessageContext for the request being served
- * at the time this method is called. Only properties with
- * APPLICATION scope will be visible to the application.
- *
- * @return MessageContext The message context.
- *
- * @throws IllegalStateException This exception is thrown
- * if the method is called while no request is
- * being serviced.
- *
- * @see javax.xml.ws.handler.MessageContext
- * @see javax.xml.ws.handler.MessageContext.Scope
- * @see java.lang.IllegalStateException
- **/
- public MessageContext getMessageContext();
-
- /**
- * Returns the Principal that identifies the sender
- * of the request currently being serviced. If the
- * sender has not been authenticated, the method
- * returns <code>null</code>.
- *
- * @return Principal The principal object.
- *
- * @throws IllegalStateException This exception is thrown
- * if the method is called while no request is
- * being serviced.
- *
- * @see java.security.Principal
- * @see java.lang.IllegalStateException
- **/
- public Principal getUserPrincipal();
-
- /**
- * Returns a boolean indicating whether the
- * authenticated user is included in the specified
- * logical role. If the user has not been
- * authenticated, the method returns </code>false</code>.
- *
- * @param role A <code>String</code> specifying the name of the role
- *
- * @return a <code>boolean</code> indicating whether
- * the sender of the request belongs to a given role
- *
- * @throws IllegalStateException This exception is thrown
- * if the method is called while no request is
- * being serviced.
- **/
- public boolean isUserInRole(String role);
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceException.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceException.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceException.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,83 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/** The <code>WebServiceException</code> class is the base
- * exception class for all JAX-WS API runtime exceptions.
- *
- * @since JAX-WS 2.0
- **/
-
-public class WebServiceException extends java.lang.RuntimeException
-{
- private static final long serialVersionUID = 9050257594613372011L;
-
- /** Constructs a new exception with <code>null</code> as its
- * detail message. The cause is not initialized.
- **/
- public WebServiceException()
- {
- super();
- }
-
- /** Constructs a new exception with the specified detail
- * message. The cause is not initialized.
- * @param message The detail message which is later
- * retrieved using the getMessage method
- **/
- public WebServiceException(String message)
- {
- super(message);
- }
-
- /** Constructs a new exception with the specified detail
- * message and cause.
- *
- * @param message The detail message which is later retrieved
- * using the getMessage method
- * @param cause The cause which is saved for the later
- * retrieval throw by the getCause method
- **/
- public WebServiceException(String message, Throwable cause)
- {
- super(message, cause);
- }
-
- /** Constructs a new WebServiceException with the specified cause
- * and a detail message of <tt>(cause==null ? null :
- * cause.toString())</tt> (which typically contains the
- * class and detail message of <tt>cause</tt>).
- *
- * @param cause The cause which is saved for the later
- * retrieval throw by the getCause method.
- * (A <tt>null</tt> value is permitted, and
- * indicates that the cause is nonexistent or
- * unknown.)
- **/
- public WebServiceException(Throwable cause)
- {
- super(cause);
- }
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServicePermission.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServicePermission.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServicePermission.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,80 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.security.BasicPermission;
-
-/**
- * This class defines web service permissions.
- * <p>
- * Web service Permissions are identified by name (also referred to as
- * a "target name") alone. There are no actions associated
- * with them.
- * <p>
- * The following permission target name is defined:
- * <p>
- * <dl>
- * <dt>publishEndpoint
- * </dl>
- * <p>
- * The <code>publishEndpoint</code> permission allows publishing a
- * web service endpoint using the <code>publish</code> methods
- * defined by the <code>javax.xml.ws.Endpoint</code> class.
- *
- * @see javax.xml.ws.Endpoint
- * @see java.security.BasicPermission
- * @see java.security.Permission
- * @see java.security.Permissions
- * @see java.lang.SecurityManager
- */
-public final class WebServicePermission extends BasicPermission
-{
-
- private static final long serialVersionUID = -146474640053770988L;
-
- /**
- * Creates a new permission with the specified name.
- *
- * @param name the name of the <code>WebServicePermission</code>
- */
- public WebServicePermission(String name)
- {
- super(name);
- }
-
- /**
- * Creates a new permission with the specified name and actions.
- *
- * The <code>actions</code> parameter is currently unused and
- * it should be <code>null</code>.
- *
- * @param name the name of the <code>WebServicePermission</code>
- * @param actions should be <code>null</code>
- */
- public WebServicePermission(String name, String actions)
- {
- super(name, actions);
- }
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceProvider.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceProvider.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceProvider.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,61 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to annotate a Provider implementation class.
- *
- * @since JAX-WS 2.0
- * @see javax.xml.ws.Provider
- */
-(a)Target(ElementType.TYPE)
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebServiceProvider {
- /**
- * Location of the WSDL description for the service.
- */
- String wsdlLocation() default "";
-
- /**
- * Service name.
- */
- String serviceName() default "";
-
- /**
- * Target namespace for the service
- */
- String targetNamespace() default "";
-
- /**
- * Port name.
- */
- String portName() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRef.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceRef.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRef.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,97 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * The <code>WebServiceRef</code> annotation is used to
- * define a reference to a web service and
- * (optionally) an injection target for it.
- *
- * Web service references are resources in the Java EE 5 sense.
- *
- * @see javax.annotation.Resource
- *
- * @since JAX-WS 2.0
- *
- **/
-
-@Target( { ElementType.TYPE, ElementType.METHOD, ElementType.FIELD })
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebServiceRef {
- /**
- * The JNDI name of the resource. For field annotations,
- * the default is the field name. For method annotations,
- * the default is the JavaBeans property name corresponding
- * to the method. For class annotations, there is no default
- * and this MUST be specified.
- */
- String name() default "";
-
- /**
- * The Java type of the resource. For field annotations,
- * the default is the type of the field. For method annotations,
- * the default is the type of the JavaBeans property.
- * For class annotations, there is no default and this MUST be
- * specified.
- */
- Class type() default Object.class;
-
- /**
- * A product specific name that this resource should be mapped to.
- * The name of this resource, as defined by the <code>name</code>
- * element or defaulted, is a name that is local to the application
- * component using the resource. (It's a name in the JNDI
- * <code>java:comp/env</code> namespace.) Many application servers
- * provide a way to map these local names to names of resources
- * known to the application server. This mapped name is often a
- * <i>global</i> JNDI name, but may be a name of any form. <p>
- *
- * Application servers are not required to support any particular
- * form or type of mapped name, nor the ability to use mapped names.
- * The mapped name is product-dependent and often installation-dependent.
- * No use of a mapped name is portable.
- */
- String mappedName() default "";
-
- /**
- * The service class, always a type extending
- * <code>javax.xml.ws.Service</code>. This element MUST be specified
- * whenever the type of the reference is a service endpoint interface.
- */
- Class value() default Object.class;
-
- /**
- * A URL pointing to the WSDL document for the web service.
- * If not specified, the WSDL location specified by annotations
- * on the resource type is used instead.
- */
- String wsdlLocation() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRefs.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceRefs.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRefs.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,50 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import static java.lang.annotation.ElementType.TYPE;
-import static java.lang.annotation.RetentionPolicy.RUNTIME;
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.Retention;
-import java.lang.annotation.Target;
-
-/**
- * The <code>WebServiceRefs</code> annotation allows
- * multiple web service references to be declared at the
- * class level.
- *
- * @see javax.xml.ws.WebServiceRef
- * @since 2.0
- */
-
-@Documented
-@Retention(RUNTIME)
-@Target(TYPE)
-public @interface WebServiceRefs {
- /**
- * Array used for multiple web service reference declarations.
- */
- WebServiceRef[] value();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/Handler.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/Handler.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/Handler.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,84 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-import javax.xml.ws.ProtocolException;
-
-/** The <code>Handler</code> interface
- * is the base interface for JAX-WS handlers.
- *
- * @since JAX-WS 2.0
-**/
-public interface Handler<C extends MessageContext> {
-
- /** The <code>handleMessage</code> method is invoked for normal processing
- * of inbound and outbound messages. Refer to the description of the handler
- * framework in the JAX-WS specification for full details.
- *
- * @param context the message context.
- * @return An indication of whether handler processing should continue for
- * the current message
- * <ul>
- * <li>Return <code>true</code> to continue
- * processing.</li>
- * <li>Return <code>false</code> to block
- * processing.</li>
- * </ul>
- * @throws RuntimeException Causes the JAX-WS runtime to cease
- * handler processing and generate a fault.
- * @throws ProtocolException Causes the JAX-WS runtime to switch to
- * fault message processing.
- **/
- public boolean handleMessage(C context);
-
- /** The <code>handleFault</code> method is invoked for fault message
- * processing. Refer to the description of the handler
- * framework in the JAX-WS specification for full details.
- *
- * @param context the message context
- * @return An indication of whether handler fault processing should continue
- * for the current message
- * <ul>
- * <li>Return <code>true</code> to continue
- * processing.</li>
- * <li>Return <code>false</code> to block
- * processing.</li>
- * </ul>
- * @throws RuntimeException Causes the JAX-WS runtime to cease
- * handler fault processing and dispatch the fault.
- * @throws ProtocolException Causes the JAX-WS runtime to cease
- * handler fault processing and dispatch the fault.
- **/
- public boolean handleFault(C context);
-
- /**
- * Called at the conclusion of a message exchange pattern just prior to
- * the JAX-WS runtime disptaching a message, fault or exception. Refer to
- * the description of the handler
- * framework in the JAX-WS specification for full details.
- *
- * @param context the message context
- **/
- public void close(MessageContext context);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/HandlerResolver.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/HandlerResolver.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/HandlerResolver.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,51 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-/**
- * <code>HandlerResolver</code> is an interface implemented
- * by an application to get control over the handler chain
- * set on proxy/dispatch objects at the time of their creation.
- * <p>
- * A <code>HandlerResolver</code> may be set on a <code>Service</code>
- * using the <code>setHandlerResolver</code> method.
- * <p>
- * When the runtime invokes a <code>HandlerResolver</code>, it will
- * pass it a <code>PortInfo</code> object containing information
- * about the port that the proxy/dispatch object will be accessing.
- *
- * @see javax.xml.ws.Service#setHandlerResolver
- *
- * @since JAX-WS 2.0
-**/
-public interface HandlerResolver {
-
- /**
- * Gets the handler chain for the specified port.
- *
- * @param portInfo Contains information about the port being accessed.
- * @return java.util.List Handler chain
- **/
- public java.util.List<Handler> getHandlerChain(PortInfo portInfo);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalHandler.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/LogicalHandler.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalHandler.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,32 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-/** The <code>LogicalHandler</code> extends
- * Handler to provide typesafety for the message context parameter.
- *
- * @since JAX-WS 2.0
-**/
-public interface LogicalHandler<C extends LogicalMessageContext> extends Handler<C> {
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalMessageContext.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/LogicalMessageContext.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalMessageContext.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,44 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-import javax.xml.ws.LogicalMessage;
-
-/** The <code>LogicalMessageContext</code> interface extends
- * <code>MessageContext</code> to
- * provide access to a the contained message as a protocol neutral
- * LogicalMessage
- *
- * @since JAX-WS 2.0
-**/
-public interface LogicalMessageContext
- extends MessageContext {
-
- /** Gets the message from this message context
- *
- * @return The contained message; returns null if no
- * message is present in this message context
- **/
- public LogicalMessage getMessage();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/MessageContext.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/MessageContext.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/MessageContext.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,180 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-import java.util.Map;
-
-/**
- * The interface <code>MessageContext</code> abstracts the message
- * context that is processed by a handler in the <code>handle</code>
- * method.
- *
- * <p>The <code>MessageContext</code> interface provides methods to
- * manage a property set. <code>MessageContext</code> properties
- * enable handlers in a handler chain to share processing related
- * state.
- *
- * @since JAX-WS 2.0
- */
-public interface MessageContext extends Map<String, Object>
-{
-
- /**
- * Standard property: message direction, <code>true</code> for
- * outbound messages, <code>false</code> for inbound.
- * <p>Type: boolean
- */
- public static final String MESSAGE_OUTBOUND_PROPERTY = "javax.xml.ws.handler.message.outbound";
-
- /**
- * Standard property: Map of attachments to a message for the inbound
- * message, key is the MIME Content-ID, value is a DataHandler.
- * <p>Type: java.util.Map<String,DataHandler>
- */
- public static final String INBOUND_MESSAGE_ATTACHMENTS = "javax.xml.ws.binding.attachments.inbound";
-
- /**
- * Standard property: Map of attachments to a message for the outbound
- * message, key is the MIME Content-ID, value is a DataHandler.
- * <p>Type: java.util.Map<String,DataHandler>
- */
- public static final String OUTBOUND_MESSAGE_ATTACHMENTS = "javax.xml.ws.binding.attachments.outbound";
-
- /**
- * Standard property: input source for WSDL document.
- * <p>Type: org.xml.sax.InputSource
- */
- public static final String WSDL_DESCRIPTION = "javax.xml.ws.wsdl.description";
-
- /**
- * Standard property: name of WSDL service.
- * <p>Type: javax.xml.namespace.QName
- */
- public static final String WSDL_SERVICE = "javax.xml.ws.wsdl.service";
-
- /**
- * Standard property: name of WSDL port.
- * <p>Type: javax.xml.namespace.QName
- */
- public static final String WSDL_PORT = "javax.xml.ws.wsdl.port";
-
- /**
- * Standard property: name of wsdl interface (2.0) or port type (1.1).
- * <p>Type: javax.xml.namespace.QName
- */
- public static final String WSDL_INTERFACE = "javax.xml.ws.wsdl.interface";
-
- /**
- * Standard property: name of WSDL operation.
- * <p>Type: javax.xml.namespace.QName
- */
- public static final String WSDL_OPERATION = "javax.xml.ws.wsdl.operation";
-
- /**
- * Standard property: HTTP response status code.
- * <p>Type: java.lang.Integer
- */
- public static final String HTTP_RESPONSE_CODE = "javax.xml.ws.http.response.code";
-
- /**
- * Standard property: HTTP request headers.
- * <p>Type: java.util.Map<java.lang.String, java.util.List<java.lang.String>>
- */
- public static final String HTTP_REQUEST_HEADERS = "javax.xml.ws.http.request.headers";
-
- /**
- * Standard property: HTTP response headers.
- * <p>Type: java.util.Map<java.lang.String, java.util.List<java.lang.String>>
- */
- public static final String HTTP_RESPONSE_HEADERS = "javax.xml.ws.http.response.headers";
-
- /**
- * Standard property: HTTP request method.
- * <p>Type: java.lang.String
- */
- public static final String HTTP_REQUEST_METHOD = "javax.xml.ws.http.request.method";
-
- /**
- * Standard property: servlet request object.
- * <p>Type: javax.servlet.http.HttpServletRequest
- */
- public static final String SERVLET_REQUEST = "javax.xml.ws.servlet.request";
-
- /**
- * Standard property: servlet response object.
- * <p>Type: javax.servlet.http.HttpServletResponse
- */
- public static final String SERVLET_RESPONSE = "javax.xml.ws.servlet.response";
-
- /**
- * Standard property: servlet context object.
- * <p>Type: javax.servlet.ServletContext
- */
- public static final String SERVLET_CONTEXT = "javax.xml.ws.servlet.context";
-
- /**
- * Standard property: Query string for request.
- * <p>Type: String
- **/
- public static final String QUERY_STRING = "javax.xml.ws.http.request.querystring";
-
- /**
- * Standard property: Request Path Info
- * <p>Type: String
- */
- public static final String PATH_INFO = "javax.xml.ws.http.request.pathinfo";
-
- /**
- * Property scope. Properties scoped as <code>APPLICATION</code> are
- * visible to handlers,
- * client applications and service endpoints; properties scoped as
- * <code>HANDLER</code>
- * are only normally visible to handlers.
- */
- public enum Scope
- {
- APPLICATION, HANDLER
- };
-
- /**
- * Sets the scope of a property.
- *
- * @param name Name of the property associated with the
- * <code>MessageContext</code>
- * @param scope Desired scope of the property
- * @throws java.lang.IllegalArgumentException if an illegal
- * property name is specified
- */
- public void setScope(String name, Scope scope);
-
- /**
- * Gets the scope of a property.
- *
- * @param name Name of the property
- * @return Scope of the property
- * @throws java.lang.IllegalArgumentException if a non-existant
- * property name is specified
- */
- public Scope getScope(String name);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/PortInfo.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/PortInfo.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/PortInfo.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,64 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-
-/**
- * The <code>PortInfo</code> interface is used by a
- * <code>HandlerResolver</code> to query information about
- * the port it is being asked to create a handler chain for.
- * <p>
- * This interface is never implemented by an application,
- * only by a JAX-WS implementation.
- *
- * @since JAX-WS 2.0
-**/
-public interface PortInfo {
-
- /**
- * Gets the qualified name of the WSDL service name containing
- * the port being accessed.
- *
- * @return javax.xml.namespace.QName The qualified name of the WSDL service.
- **/
- public QName getServiceName();
-
- /**
- * Gets the qualified name of the WSDL port being accessed.
- *
- * @return javax.xml.namespace.QName The qualified name of the WSDL port.
- **/
- public QName getPortName();
-
- /**
- * Gets the URI identifying the binding used by the port being accessed.
- *
- * @return String The binding identifier for the port.
- *
- * @see javax.xml.ws.Binding
- **/
- public String getBindingID();
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPBinding.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/SOAPBinding.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPBinding.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,107 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.soap;
-
-// $Id$
-
-import javax.xml.soap.MessageFactory;
-import javax.xml.soap.SOAPFactory;
-import javax.xml.ws.Binding;
-import javax.xml.ws.WebServiceException;
-import java.util.Set;
-
-/** The <code>SOAPBinding</code> interface is an abstraction for
- * the SOAP binding.
- *
- * @since JAX-WS 2.0
- **/
-public interface SOAPBinding extends Binding
-{
- /**
- * A constant representing the identity of the SOAP 1.1 over HTTP binding.
- */
- public static final String SOAP11HTTP_BINDING = "http://schemas.xmlsoap.org/wsdl/soap/http";
-
- /**
- * A constant representing the identity of the SOAP 1.2 over HTTP binding.
- */
- public static final String SOAP12HTTP_BINDING = "http://www.w3.org/2003/05/soap/bindings/HTTP/";
-
- /**
- * A constant representing the identity of the SOAP 1.1 over HTTP binding
- * with MTOM enabled by default.
- */
- public static final String SOAP11HTTP_MTOM_BINDING = "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true";
-
- /**
- * A constant representing the identity of the SOAP 1.2 over HTTP binding
- * with MTOM enabled by default.
- */
- public static final String SOAP12HTTP_MTOM_BINDING = "http://www.w3.org/2003/05/soap/bindings/HTTP/?mtom=true";
-
- /** Gets the roles played by the SOAP binding instance.
- *
- * @return Set<String> The set of roles played by the binding instance.
- **/
- public Set<String> getRoles();
-
- /** Sets the roles played by the SOAP binding instance.
- *
- * @param roles The set of roles played by the binding instance.
- * @throws WebServiceException On an error in the configuration of
- * the list of roles.
- **/
- public void setRoles(Set<String> roles);
-
- /**
- * Returns <code>true</code> if the use of MTOM is enabled.
- *
- * @return <code>true</code> if and only if the use of MTOM is enabled.
- **/
-
- public boolean isMTOMEnabled();
-
- /**
- * Enables or disables use of MTOM.
- *
- * @param flag A <code>boolean</code> specifying whether the use of MTOM should
- * be enabled or disabled.
- * @throws WebServiceException If the specified setting is not supported
- * by this binding instance.
- * *
- **/
- public void setMTOMEnabled(boolean flag);
-
- /**
- * Gets the SAAJ <code>SOAPFactory</code> instance used by this SOAP binding.
- *
- * @return SOAPFactory instance used by this SOAP binding.
- **/
- public SOAPFactory getSOAPFactory();
-
- /**
- * Gets the SAAJ <code>MessageFactory</code> instance used by this SOAP binding.
- *
- * @return MessageFactory instance used by this SOAP binding.
- **/
- public MessageFactory getMessageFactory();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPFaultException.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/SOAPFaultException.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPFaultException.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,77 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.soap;
-
-// $Id$
-
-import javax.xml.soap.SOAPFault;
-
-/** The <code>SOAPFaultException</code> exception represents a
- * SOAP 1.1 or 1.2 fault.
- *
- * <p>A <code>SOAPFaultException</code> wraps a SAAJ <code>SOAPFault</code>
- * that manages the SOAP-specific representation of faults.
- * The <code>createFault</code> method of
- * <code>javax.xml.soap.SOAPFactory</code> may be used to create an instance
- * of <code>javax.xml.soap.SOAPFault</code> for use with the
- * constructor. <code>SOAPBinding</code> contains an accessor for the
- * <code>SOAPFactory</code> used by the binding instance.
- *
- * <p>Note that the value of <code>getFault</code> is the only part of the
- * exception used when searializing a SOAP fault.
- *
- * <p>Refer to the SOAP specification for a complete
- * description of SOAP faults.
- *
- * @see javax.xml.soap.SOAPFault
- * @see javax.xml.ws.soap.SOAPBinding#getSOAPFactory
- * @see javax.xml.ws.ProtocolException
- *
- * @since JAX-WS 2.0
- **/
-public class SOAPFaultException extends javax.xml.ws.ProtocolException
-{
- private static final long serialVersionUID = 3948617580148536298L;
-
- private SOAPFault fault;
-
- /** Constructor for SOAPFaultException
- * @param fault <code>SOAPFault</code> representing the fault
- *
- * @see javax.xml.soap.SOAPFactory#createFault
- **/
- public SOAPFaultException(SOAPFault fault)
- {
- super(fault.getFaultString());
- this.fault = fault;
- }
-
- /** Gets the embedded <code>SOAPFault</code> instance.
- *
- * @return <code>javax.xml.soap.SOAPFault</code> SOAP
- * fault element
- **/
- public javax.xml.soap.SOAPFault getFault()
- {
- return this.fault;
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/Provider.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/Provider.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/Provider.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,137 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.spi;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.Endpoint;
-import javax.xml.ws.WebServiceException;
-
-/**
- * Service provider for ServiceDelegate and Endpoint objects.
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 03-May-2006
- */
-public abstract class Provider
-{
- public static final String JAXWSPROVIDER_PROPERTY = "javax.xml.ws.spi.Provider";
- private static final String DEFAULT_JAXWSPROVIDER = "org.jboss.ws.core.jaxws.spi.ProviderImpl";
-
- /**
- * Creates a new instance of Provider
- */
- protected Provider()
- {
- }
-
- /**
- *
- * Creates a new provider object.
- * <p>
- * The algorithm used to locate the provider subclass to use consists
- * of the following steps:
- * <p>
- * <ul>
- * <li>
- * If a resource with the name of
- * <code>META-INF/services/javax.xml.ws.spi.Provider</code>
- * exists, then its first line, if present, is used as the UTF-8 encoded
- * name of the implementation class.
- * </li>
- * <li>
- * If the $java.home/lib/jaxws.properties file exists and it is readable by
- * the <code>java.util.Properties.load(InputStream)</code> method and it contains
- * an entry whose key is <code>javax.xml.ws.spi.Provider</code>, then the value of
- * that entry is used as the name of the implementation class.
- * </li>
- * <li>
- * If a system property with the name <code>javax.xml.ws.spi.Provider</code>
- * is defined, then its value is used as the name of the implementation class.
- * </li>
- * <li>
- * Finally, a default implementation class name is used.
- * </li>
- * </ul>
- *
- */
- public static Provider provider()
- {
- try
- {
- return (Provider)ProviderLoader.loadProvider(DEFAULT_JAXWSPROVIDER);
- }
- catch (WebServiceException ex)
- {
- throw ex;
- }
- catch (Exception ex)
- {
- throw new WebServiceException("Unable to load Provider: " + ex.getMessage(), ex);
- }
-
- }
-
- /**
- * Creates a service delegate object.
- * <p>
- * @param wsdlDocumentLocation A URL pointing to the WSDL document
- * for the service, or <code>null</code> if there isn't one.
- * @param serviceName The qualified name of the service.
- * @param serviceClass The service class, which MUST be either
- * <code>javax.xml.ws.Service</code> or a subclass thereof.
- * @return The newly created service delegate.
- */
- public abstract ServiceDelegate createServiceDelegate(java.net.URL wsdlDocumentLocation, QName serviceName, Class serviceClass);
-
- /**
- *
- * Creates an endpoint object with the provided binding and implementation
- * object.
- *
- * @param bindingId A URI specifying the desired binding (e.g. SOAP/HTTP)
- * @param implementor A service implementation object to which
- * incoming requests will be dispatched. The corresponding
- * class MUST be annotated with all the necessary Web service
- * annotations.
- * @return The newly created endpoint.
- */
- public abstract Endpoint createEndpoint(String bindingId, Object implementor);
-
- /**
- * Creates and publishes an endpoint object with the specified
- * address and implementation object.
- *
- * @param address A URI specifying the address and transport/protocol
- * to use. A http: URI MUST result in the SOAP 1.1/HTTP
- * binding being used. Implementations may support other
- * URI schemes.
- * @param implementor A service implementation object to which
- * incoming requests will be dispatched. The corresponding
- * class MUST be annotated with all the necessary Web service
- * annotations.
- * @return The newly created endpoint.
- */
- public abstract Endpoint createAndPublishEndpoint(String address, Object implementor);
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ProviderLoader.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/ProviderLoader.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ProviderLoader.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,205 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.spi;
-
-// $Id$
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.security.AccessController;
-import java.security.PrivilegedAction;
-import java.util.Properties;
-
-/**
- * Load the provider using the following algorithm.
- *
- * 1. If a resource with the name of META-INF/services/javax.xml.ws.spi.Provider exists, then
- * its first line, if present, is used as the UTF-8 encoded name of the implementation class.
- *
- * 2. If the ${java.home}/lib/jaxws.properties file exists and it is readable by the
- * java.util.Properties.load(InputStream) method and it contains an entry whose key is
- * javax.xml.ws.spi.Provider, then the value of that entry is used as the name of the implementation class.
- *
- * 3. If a system property with the name javax.xml.ws.spi.Provider is defined, then its value is used
- * as the name of the implementation class.
- *
- * 4. Finally, a default implementation class name is used.
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 03-May-2006
- */
-abstract class ProviderLoader
-{
- /**
- * This method uses the algirithm described above.
- *
- * 1. If a resource with the name of META-INF/services/javax.xml.ws.spi.Provider exists, then
- * its first line, if present, is used as the UTF-8 encoded name of the implementation class.
- *
- * 2. If the ${java.home}/lib/jaxws.properties file exists and it is readable by the
- * java.util.Properties.load(InputStream) method and it contains an entry whose key is
- * javax.xml.ws.spi.Provider, then the value of that entry is used as the name of the implementation class.
- *
- * 3. If a system property with the name javax.xml.ws.spi.Provider is defined, then its value is used
- * as the name of the implementation class.
- *
- * 4. Finally, a default implementation class name is used.
- */
- public static Provider loadProvider(String defaultFactory)
- {
- Object factory = null;
- String factoryName = null;
- ClassLoader loader = Thread.currentThread().getContextClassLoader();
-
- // Use the Services API (as detailed in the JAR specification), if available, to determine the classname.
- String propertyName = Provider.JAXWSPROVIDER_PROPERTY;
- String filename = "META-INF/services/" + propertyName;
- InputStream inStream = loader.getResourceAsStream(filename);
- if (inStream != null)
- {
- try
- {
- BufferedReader br = new BufferedReader(new InputStreamReader(inStream, "UTF-8"));
- factoryName = br.readLine();
- br.close();
- if (factoryName != null)
- {
- Class factoryClass = loader.loadClass(factoryName);
- factory = factoryClass.newInstance();
- }
- }
- catch (Throwable t)
- {
- throw new IllegalStateException("Failed to load " + propertyName + ": " + factoryName, t);
- }
- }
-
- // Use the properties file "lib/jaxws.properties" in the JRE directory.
- // This configuration file is in standard java.util.Properties format and contains the fully qualified name of the implementation class with the key being the system property defined above.
- if (factory == null)
- {
- PrivilegedAction action = new PropertyAccessAction("java.home");
- String javaHome = (String)AccessController.doPrivileged(action);
- File jaxmFile = new File(javaHome + "/lib/jaxws.properties");
- if (jaxmFile.exists())
- {
- try
- {
- action = new PropertyFileAccessAction(jaxmFile.getCanonicalPath());
- Properties jaxmProperties = (Properties)AccessController.doPrivileged(action);
- factoryName = jaxmProperties.getProperty(propertyName);
- if (factoryName != null)
- {
- //if(log.isDebugEnabled()) log.debug("Load from " + jaxmFile + ": " + factoryName);
- Class factoryClass = loader.loadClass(factoryName);
- factory = factoryClass.newInstance();
- }
- }
- catch (Throwable t)
- {
- throw new IllegalStateException("Failed to load " + propertyName + ": " + factoryName, t);
- }
- }
- }
-
- // Use system property
- if (factory == null)
- {
- PrivilegedAction action = new PropertyAccessAction(propertyName);
- factoryName = (String)AccessController.doPrivileged(action);
- if (factoryName != null)
- {
- try
- {
- //if(log.isDebugEnabled()) log.debug("Load from system property: " + factoryName);
- Class factoryClass = loader.loadClass(factoryName);
- factory = factoryClass.newInstance();
- }
- catch (Throwable t)
- {
- throw new IllegalStateException("Failed to load " + propertyName + ": " + factoryName, t);
- }
- }
- }
-
- // Use the default factory implementation class.
- if (factory == null && defaultFactory != null)
- {
- try
- {
- //if(log.isDebugEnabled()) log.debug("Load from default: " + factoryName);
- Class factoryClass = loader.loadClass(defaultFactory);
- factory = factoryClass.newInstance();
- }
- catch (Throwable t)
- {
- throw new IllegalStateException("Failed to load: " + defaultFactory, t);
- }
- }
-
- return (Provider)factory;
- }
-
- private static class PropertyAccessAction implements PrivilegedAction
- {
- private String name;
-
- PropertyAccessAction(String name)
- {
- this.name = name;
- }
-
- public Object run()
- {
- return System.getProperty(name);
- }
- }
-
- private static class PropertyFileAccessAction implements PrivilegedAction
- {
- private String filename;
-
- PropertyFileAccessAction(String filename)
- {
- this.filename = filename;
- }
-
- public Object run()
- {
- try
- {
- InputStream inStream = new FileInputStream(filename);
- Properties props = new Properties();
- props.load(inStream);
- return props;
- }
- catch (IOException ex)
- {
- throw new SecurityException("Cannot load properties: " + filename, ex);
- }
- }
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ServiceDelegate.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/ServiceDelegate.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ServiceDelegate.java 2008-04-30 17:08:53 UTC (rev 6800)
@@ -1,250 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.spi;
-
-// $Id$
-
-import java.util.Iterator;
-
-import javax.xml.bind.JAXBContext;
-import javax.xml.namespace.QName;
-import javax.xml.ws.Dispatch;
-import javax.xml.ws.Service;
-import javax.xml.ws.WebServiceException;
-import javax.xml.ws.handler.HandlerResolver;
-
-/**
- * Service delegates are used internally by <code>Service</code> objects
- * to allow pluggability of JAX-WS implementations.
- * <p>
- * Every <code>Service</code> object has its own delegate, created using
- * the javax.xml.ws.Provider#createServiceDelegate method. A <code>Service</code>
- * object delegates all of its instance methods to its delegate.
- *
- * @see javax.xml.ws.Service
- * @see javax.xml.ws.spi.Provider
- *
- * @since JAX-WS 2.0
- */
-public abstract class ServiceDelegate
-{
- protected ServiceDelegate()
- {
- }
-
- /**
- * The getPort method returns a proxy. A service client
- * uses this proxy to invoke operations on the target
- * service endpoint. The <code>serviceEndpointInterface</code>
- * specifies the service endpoint interface that is supported by
- * the created dynamic proxy instance.
- *
- * @param portName Qualified name of the service endpoint in
- * the WSDL service description
- * @param serviceEndpointInterface Service endpoint interface
- * supported by the dynamic proxy
- * @return Object Proxy instance that
- * supports the specified service endpoint
- * interface
- * @throws WebServiceException This exception is thrown in the
- * following cases:
- * <UL>
- * <LI>If there is an error in creation of
- * the proxy
- * <LI>If there is any missing WSDL metadata
- * as required by this method
- * <LI>If an illegal
- * <code>serviceEndpointInterface</code>
- * or <code>portName</code> is specified
- * </UL>
- * @see java.lang.reflect.Proxy
- * @see java.lang.reflect.InvocationHandler
- **/
- public abstract <T> T getPort(QName portName, Class<T> serviceEndpointInterface);
-
- /**
- * The getPort method returns a proxy. The parameter
- * <code>serviceEndpointInterface</code> specifies the service
- * endpoint interface that is supported by the returned proxy.
- * In the implementation of this method, the JAX-WS
- * runtime system takes the responsibility of selecting a protocol
- * binding (and a port) and configuring the proxy accordingly.
- * The returned proxy should not be reconfigured by the client.
- *
- * @param serviceEndpointInterface Service endpoint interface
- * @return Object instance that supports the
- * specified service endpoint interface
- * @throws WebServiceException
- * <UL>
- * <LI>If there is an error during creation
- * of the proxy
- * <LI>If there is any missing WSDL metadata
- * as required by this method
- * <LI>If an illegal
- * <code>serviceEndpointInterface</code>
- * is specified
- * </UL>
- **/
- public abstract <T> T getPort(Class<T> serviceEndpointInterface);
-
- /**
- * Creates a new port for the service. Ports created in this way contain
- * no WSDL port type information and can only be used for creating
- * <code>Dispatch</code>instances.
- *
- * @param portName Qualified name for the target service endpoint
- * @param bindingId A URI identifier of a binding.
- * @param endpointAddress Address of the target service endpoint as a URI
- * @throws WebServiceException If any error in the creation of
- * the port
- *
- * @see javax.xml.ws.soap.SOAPBinding#SOAP11HTTP_BINDING
- * @see javax.xml.ws.soap.SOAPBinding#SOAP12HTTP_BINDING
- * @see javax.xml.ws.http.HTTPBinding#HTTP_BINDING
- **/
- public abstract void addPort(QName portName, String bindingId, String endpointAddress);
-
- /**
- * Creates a <code>Dispatch</code> instance for use with objects of
- * the users choosing.
- *
- * @param portName Qualified name for the target service endpoint
- * @param type The class of object used for messages or message
- * payloads. Implementations are required to support
- * javax.xml.transform.Source and javax.xml.soap.SOAPMessage.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body. Mode MUST be MESSAGE
- * when type is SOAPMessage.
- *
- * @return Dispatch instance
- * @throws WebServiceException If any error in the creation of
- * the <code>Dispatch</code> object
- * @see javax.xml.transform.Source
- * @see javax.xml.soap.SOAPMessage
- **/
- public abstract <T> Dispatch<T> createDispatch(QName portName, Class<T> type, Service.Mode mode);
-
- /**
- * Creates a <code>Dispatch</code> instance for use with JAXB
- * generated objects.
- *
- * @param portName Qualified name for the target service endpoint
- * @param context The JAXB context used to marshall and unmarshall
- * messages or message payloads.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body.
- *
- * @return Dispatch instance
- * @throws ServiceException If any error in the creation of
- * the <code>Dispatch</code> object
- *
- * @see javax.xml.bind.JAXBContext
- **/
- public abstract Dispatch<Object> createDispatch(QName portName, JAXBContext context, Service.Mode mode);
-
- /**
- * Gets the name of this service.
- * @return Qualified name of this service
- **/
- public abstract QName getServiceName();
-
- /**
- * Returns an <code>Iterator</code> for the list of
- * <code>QName</code>s of service endpoints grouped by this
- * service
- *
- * @return Returns <code>java.util.Iterator</code> with elements
- * of type <code>javax.xml.namespace.QName</code>
- * @throws WebServiceException If this Service class does not
- * have access to the required WSDL metadata
- **/
- public abstract Iterator<javax.xml.namespace.QName> getPorts();
-
- /**
- * Gets the location of the WSDL document for this Service.
- *
- * @return URL for the location of the WSDL document for
- * this service
- **/
- public abstract java.net.URL getWSDLDocumentLocation();
-
- /**
- * Returns the configured handler resolver.
- *
- * @return HandlerResolver The <code>HandlerResolver</code> being
- * used by this <code>Service</code> instance, or <code>null</code>
- * if there isn't one.
- **/
- public abstract HandlerResolver getHandlerResolver();
-
- /**
- * Sets the <code>HandlerResolver</code> for this <code>Service</code>
- * instance.
- * <p>
- * The handler resolver, if present, will be called once for each
- * proxy or dispatch instance that is created, and the handler chain
- * returned by the resolver will be set on the instance.
- *
- * @param handlerResolver The <code>HandlerResolver</code> to use
- * for all subsequently created proxy/dispatch objects.
- *
- * @see javax.xml.ws.handler.HandlerResolver
- **/
- public abstract void setHandlerResolver(HandlerResolver handlerResolver);
-
- /**
- * Returns the executor for this <code>Service</code>instance.
- *
- * The executor is used for all asynchronous invocations that
- * require callbacks.
- *
- * @return The <code>java.util.concurrent.Executor</code> to be
- * used to invoke a callback.
- *
- * @see java.util.concurrent.Executor
- **/
- public abstract java.util.concurrent.Executor getExecutor();
-
- /**
- * Sets the executor for this <code>Service</code> instance.
- *
- * The executor is used for all asynchronous invocations that
- * require callbacks.
- *
- * @param executor The <code>java.util.concurrent.Executor</code>
- * to be used to invoke a callback.
- *
- * @throws SecurityException If the instance does not support
- * setting an executor for security reasons (e.g. the
- * necessary permissions are missing).
- *
- * @see java.util.concurrent.Executor
- **/
- public abstract void setExecutor(java.util.concurrent.Executor executor);
-
-}
16 years, 8 months
JBossWS SVN: r6799 - in stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext: src/main/java/javax and 4 other directories.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-30 13:07:52 -0400 (Wed, 30 Apr 2008)
New Revision: 6799
Added:
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/
Removed:
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/jws/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/AsyncHandler.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Binding.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingProvider.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingType.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Dispatch.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Endpoint.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Holder.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/LogicalMessage.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ProtocolException.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Provider.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/RequestWrapper.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Response.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ResponseWrapper.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Service.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ServiceMode.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebEndpoint.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebFault.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceClient.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceContext.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceException.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServicePermission.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceProvider.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRef.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRefs.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/Handler.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/HandlerResolver.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalHandler.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalMessageContext.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/MessageContext.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/PortInfo.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/soap/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPBinding.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPFaultException.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/Provider.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ProviderLoader.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ServiceDelegate.java
Log:
Copied: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src (from rev 6796, stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src)
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/AsyncHandler.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/AsyncHandler.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/AsyncHandler.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,41 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/** The <code>AsyncHandler</code> interface is implemented by
- * clients that wish to receive callback notification of the completion of
- * service endpoint operations invoked asynchronously.
- *
- * @since JAX-WS 2.0
- **/
-public interface AsyncHandler<T>
-{
-
- /** Called when the response to an asynchronous operation is available.
- *
- * @param res The response to the operation invocation.
- *
- **/
- void handleResponse(Response<T> res);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Binding.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Binding.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Binding.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,56 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-
-/** The <code>Binding</code> interface is the base interface
- * for JAX-WS protocol bindings.
- *
- * @since JAX-WS 2.0
- **/
-public interface Binding
-{
-
- /**
- * Gets a copy of the handler chain for a protocol binding instance.
- * If the returned chain is modified a call to <code>setHandlerChain</code>
- * is required to configure the binding instance with the new chain.
- *
- * @return java.util.List<javax.xml.ws.handler.HandlerInfo> Handler chain
- */
- public java.util.List<javax.xml.ws.handler.Handler> getHandlerChain();
-
- /**
- * Sets the handler chain for the protocol binding instance.
- *
- * @param chain A List of handler configuration entries
- * @throws WebServiceException On an error in the configuration of
- * the handler chain
- * @throws java.lang.UnsupportedOperationException If this
- * operation is not supported. This may be done to
- * avoid any overriding of a pre-configured handler
- * chain.
- */
- public void setHandlerChain(java.util.List<javax.xml.ws.handler.Handler> chain);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingProvider.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/BindingProvider.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingProvider.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,109 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.util.Map;
-
-/** The <code>BindingProvider</code> interface provides access to the
- * protocol binding and associated context objects for request and
- * response message processing.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.xml.ws.Binding
- **/
-public interface BindingProvider
-{
- /** Standard property: User name for authentication.
- * <p>Type: java.lang.String
- **/
- public static final String USERNAME_PROPERTY = "javax.xml.ws.security.auth.username";
-
- /** Standard property: Password for authentication.
- * <p>Type: java.lang.String
- **/
- public static final String PASSWORD_PROPERTY = "javax.xml.ws.security.auth.password";
-
- /** Standard property: Target service endpoint address. The
- * URI scheme for the endpoint address specification MUST
- * correspond to the protocol/transport binding for the
- * binding in use.
- * <p>Type: java.lang.String
- **/
- public static final String ENDPOINT_ADDRESS_PROPERTY = "javax.xml.ws.service.endpoint.address";
-
- /** Standard property: This boolean property is used by a service
- * client to indicate whether or not it wants to participate in
- * a session with a service endpoint. If this property is set to
- * true, the service client indicates that it wants the session
- * to be maintained. If set to false, the session is not maintained.
- * The default value for this property is false.
- * <p>Type: java.lang.Boolean
- **/
- public static final String SESSION_MAINTAIN_PROPERTY = "javax.xml.ws.session.maintain";
-
- /** Standard property for SOAPAction. This boolean property
- * indicates whether or not SOAPAction is to be used. The
- * default value of this property is false indicating that
- * the SOAPAction is not used.
- * <p>Type: <code>java.lang.Boolean</code>
- **/
- public static final String SOAPACTION_USE_PROPERTY = "javax.xml.ws.soap.http.soapaction.use";
-
- /** Standard property for SOAPAction. Indicates the SOAPAction
- * URI if the <code>javax.xml.ws.soap.http.soapaction.use</code>
- * property is set to <code>true</code>.
- * <p>Type: <code>java.lang.String</code>
- **/
- public static final String SOAPACTION_URI_PROPERTY = "javax.xml.ws.soap.http.soapaction.uri";
-
- /** Get the context that is used to initialize the message context
- * for request messages.
- *
- * Modifications to the request context do not affect the message context of
- * either synchronous or asynchronous operations that have already been
- * started.
- *
- * @return The context that is used in processing request messages.
- **/
- Map<String, Object> getRequestContext();
-
- /** Get the context that resulted from processing a response message.
- *
- * The returned context is for the most recently completed synchronous
- * operation. Subsequent synchronous operation invocations overwrite the
- * response context. Asynchronous operations return their response context
- * via the Response interface.
- *
- * @return The context that resulted from processing the latest
- * response messages.
- **/
- Map<String, Object> getResponseContext();
-
- /** Get the Binding for this binding provider.
- *
- * @return The Binding for this binding provider.
- **/
- Binding getBinding();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingType.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/BindingType.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingType.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,59 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * The <code>BindingType</code> annotation is used to
- * specify the binding to use for a web service
- * endpoint implementation class. As well as specify
- * additional features that may be enabled.
- *
- * @since JAX-WS 2.0
- *
- **/
-
-(a)Target(ElementType.TYPE)
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface BindingType {
- /**
- * A binding identifier (a URI).
- * If not specified, the default is the SOAP 1.1 / HTTP binding.
- * <p>
- * See the <code>SOAPBinding</code> and <code>HTTPBinding</code>
- * for the definition of the standard binding identifiers.
- *
- * @see javax.xml.ws.Binding
- * @see javax.xml.ws.soap.SOAPBinding#SOAP11HTTP_BINDING
- * @see javax.xml.ws.soap.SOAPBinding#SOAP12HTTP_BINDING
- * @see javax.xml.ws.http.HTTPBinding#HTTP_BINDING
- */
- String value() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Dispatch.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Dispatch.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Dispatch.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,115 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.util.concurrent.Future;
-
-/** The <code>Dispatch</code> interface provides support
- * for the dynamic invocation of a service endpoint operations. The
- * <code>javax.xml.ws.Service</code>
- * interface acts as a factory for the creation of <code>Dispatch</code>
- * instances.
- *
- * @since JAX-WS 2.0
- **/
-public interface Dispatch<T> extends BindingProvider
-{
-
- /** Invoke a service operation synchronously.
- *
- * The client is responsible for ensuring that the <code>msg</code> object
- * when marshalled is formed according to the requirements of the protocol
- * binding in use.
- *
- * @param msg An object that will form the message or payload of
- * the message used to invoke the operation.
- * @return The response message or message payload to the
- * operation invocation.
- * @throws WebServiceException If a fault occurs during communication with
- * the service
- * @throws WebServiceException If there is any error in the configuration of
- * the <code>Dispatch</code> instance
- **/
- public T invoke(T msg);
-
- /** Invoke a service operation asynchronously. The
- * method returns without waiting for the response to the operation
- * invocation, the results of the operation are obtained by polling the
- * returned <code>Response</code>.
- *
- * The client is responsible for ensuring that the <code>msg</code> object
- * when marshalled is formed according to the requirements of the protocol
- * binding in use.
- *
- * @param msg An object that will form the message or payload of
- * the message used to invoke the operation.
- * @return The response message or message payload to the
- * operation invocation.
- * @throws WebServiceException If there is any error in the configuration of
- * the <code>Dispatch</code> instance
- **/
- public Response<T> invokeAsync(T msg);
-
- /** Invoke a service operation asynchronously. The
- * method returns without waiting for the response to the operation
- * invocation, the results of the operation are communicated to the client
- * via the passed in handler.
- *
- * The client is responsible for ensuring that the <code>msg</code> object
- * when marshalled is formed according to the requirements of the protocol
- * binding in use.
- *
- * @param msg An object that will form the message or payload of
- * the message used to invoke the operation.
- * @param handler The handler object that will receive the
- * response to the operation invocation.
- * @return A <code>Future</code> object that may be used to check the status
- * of the operation invocation. This object MUST NOT be used to try to
- * obtain the results of the operation - the object returned from
- * <code>Future<?>.get()</code> is implementation dependent
- * and any use of it will result in non-portable behaviour.
- * @throws WebServiceException If there is any error in the configuration of
- * the <code>Dispatch</code> instance
- **/
- public Future<?> invokeAsync(T msg, AsyncHandler<T> handler);
-
- /** Invokes a service operation using the one-way
- * interaction mode. The operation invocation is logically non-blocking,
- * subject to the capabilities of the underlying protocol, no results
- * are returned. When
- * the protocol in use is SOAP/HTTP, this method MUST block until
- * an HTTP response code has been received or an error occurs.
- *
- * The client is responsible for ensuring that the <code>msg</code> object
- * when marshalled is formed according to the requirements of the protocol
- * binding in use.
- *
- * @param msg An object that will form the message or payload of
- * the message used to invoke the operation.
- * @throws WebServiceException If there is any error in the configuration of
- * the <code>Dispatch</code> instance or if an error occurs during the
- * invocation.
- **/
- public void invokeOneWay(T msg);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Endpoint.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Endpoint.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Endpoint.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,297 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import javax.xml.ws.soap.SOAPBinding;
-import javax.xml.ws.spi.Provider;
-import java.util.List;
-import java.util.Map;
-
-/**
- * A Web service endpoint.
- *
- * <p>Endpoints are created using the static methods defined in this
- * class. An endpoint is always tied to one <code>Binding</code>
- * and one implementor, both set at endpoint creation time.
- *
- * <p>An endpoint is either in a published or an unpublished state.
- * The <code>publish</code> methods can be used to start publishing
- * an endpoint, at which point it starts accepting incoming requests.
- * Conversely, the <code>stop</code> method can be used to stop
- * accepting incoming requests and take the endpoint down.
- * Once stopped, an endpoint cannot be published again.
- *
- * <p>An <code>Executor</code> may be set on the endpoint in order
- * to gain better control over the threads used to dispatch incoming
- * requests. For instance, thread pooling with certain parameters
- * can be enabled by creating a <code>ThreadPoolExecutor</code> and
- * registering it with the endpoint.
- *
- * <p>Handler chains can be set using the contained <code>Binding</code>.
- *
- * <p>An endpoint may have a list of metadata documents, such as WSDL
- * and XMLSchema documents, bound to it. At publishing time, the
- * JAX-WS implementation will try to reuse as much of that metadata
- * as possible instead of generating new one based on the annotations
- * present on the implementor.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.xml.ws.Binding
- * @see javax.xml.ws.BindingType
- * @see javax.xml.ws.soap.SOAPBinding
- * @see java.util.concurrent.Executor
- *
- **/
-public abstract class Endpoint
-{
-
- /** Standard property: name of WSDL service.
- * <p>Type: javax.xml.namespace.QName
- **/
- public static final String WSDL_SERVICE = "javax.xml.ws.wsdl.service";
-
- /** Standard property: name of WSDL port.
- * <p>Type: javax.xml.namespace.QName
- **/
- public static final String WSDL_PORT = "javax.xml.ws.wsdl.port";
-
- /**
- * Creates an endpoint with the specified implementor object. If there is
- * a binding specified via a BindingType annotation then it MUST be used else
- * a default of SOAP 1.1 / HTTP binding MUST be used.
- * <p>
- * The newly created endpoint may be published by calling
- * one of the javax.xml.ws.Endpoint#publish(String) and
- * javax.xml.ws.Endpoint#publish(Object) methods.
- *
- *
- * @param implementor The endpoint implementor.
- *
- * @return The newly created endpoint.
- *
- **/
- public static Endpoint create(Object implementor)
- {
- if (implementor == null)
- throw new IllegalArgumentException("Implementor cannot be null");
-
- String bindingId = SOAPBinding.SOAP11HTTP_BINDING;
- BindingType anBindingType = implementor.getClass().getAnnotation(BindingType.class);
- if (anBindingType != null)
- bindingId = anBindingType.value();
-
- return create(bindingId, implementor);
- }
-
- /**
- * Creates an endpoint with the specified binding type and
- * implementor object.
- * <p>
- * The newly created endpoint may be published by calling
- * one of the javax.xml.ws.Endpoint#publish(String) and
- * javax.xml.ws.Endpoint#publish(Object) methods.
- *
- * @param bindingId A URI specifying the binding to use. If the bindingID is
- * <code>null</code> and no binding is specified via a BindingType
- * annotation then a default SOAP 1.1 / HTTP binding MUST be used.
- *
- * @param implementor The endpoint implementor.
- *
- * @return The newly created endpoint.
- *
- **/
- public static Endpoint create(String bindingId, Object implementor)
- {
- return Provider.provider().createEndpoint(bindingId, implementor);
- }
-
- /**
- * Returns the binding for this endpoint.
- *
- * @return The binding for this endpoint
- **/
- public abstract Binding getBinding();
-
- /**
- * Returns the implementation object for this endpoint.
- *
- * @return The implementor for this endpoint
- **/
- public abstract Object getImplementor();
-
- /**
- * Publishes this endpoint at the given address.
- * The necessary server infrastructure will be created and
- * configured by the JAX-WS implementation using some default configuration.
- * In order to get more control over the server configuration, please
- * use the javax.xml.ws.Endpoint#publish(Object) method instead.
- *
- * @param address A URI specifying the address to use. The address
- * MUST be compatible with the binding specified at the
- * time the endpoint was created.
- *
- * @throws java.lang.IllegalArgumentException
- * If the provided address URI is not usable
- * in conjunction with the endpoint's binding.
- *
- * @throws java.lang.IllegalStateException
- * If the endpoint has been published already or it has been stopped.
- **/
- public abstract void publish(String address);
-
- /**
- * Creates and publishes an endpoint for the specified implementor
- * object at the given address.
- * <p>
- * The necessary server infrastructure will be created and
- * configured by the JAX-WS implementation using some default configuration.
- *
- * In order to get more control over the server configuration, please
- * use the javax.xml.ws.Endpoint#create(String,Object) and
- * javax.xml.ws.Endpoint#publish(Object) method instead.
- *
- * @param address A URI specifying the address and transport/protocol
- * to use. A http: URI MUST result in the SOAP 1.1/HTTP
- * binding being used. Implementations may support other
- * URI schemes.
- * @param implementor The endpoint implementor.
- *
- * @return The newly created endpoint.
- *
- **/
- public static Endpoint publish(String address, Object implementor)
- {
- return Provider.provider().createAndPublishEndpoint(address, implementor);
- }
-
- /**
- * Publishes this endpoint at the provided server context.
- * A server context encapsulates the server infrastructure
- * and addressing information for a particular transport.
- * For a call to this method to succeed, the server context
- * passed as an argument to it MUST be compatible with the
- * endpoint's binding.
- *
- * @param serverContext An object representing a server
- * context to be used for publishing the endpoint.
- *
- * @throws java.lang.IllegalArgumentException
- * If the provided server context is not
- * supported by the implementation or turns
- * out to be unusable in conjunction with the
- * endpoint's binding.
- *
- * @throws java.lang.IllegalStateException
- * If the endpoint has been published already or it has been stopped.
- **/
- public abstract void publish(Object serverContext);
-
- /**
- * Stops publishing this endpoint.
- *
- * If the endpoint is not in a published state, this method
- * has not effect.
- *
- **/
- public abstract void stop();
-
- /**
- * Returns true if the endpoint is in the published state.
- *
- * @return <code>true</code> if the endpoint is in the published state.
- **/
- public abstract boolean isPublished();
-
- /**
- * Returns a list of metadata documents for the service.
- *
- * @return <code>List<javax.xml.transform.Source></code> A list of metadata documents for the service
- **/
- public abstract List<javax.xml.transform.Source> getMetadata();
-
- /**
- * Sets the metadata for this endpoint.
- *
- * @param metadata A list of XML document sources containing
- * metadata information for the endpoint (e.g.
- * WSDL or XML Schema documents)
- *
- * @throws java.lang.IllegalStateException If the endpoint
- * has already been published.
- **/
- public abstract void setMetadata(List<javax.xml.transform.Source> metadata);
-
- /**
- * Returns the executor for this <code>Endpoint</code>instance.
- *
- * The executor is used to dispatch an incoming request to
- * the implementor object.
- *
- * @return The <code>java.util.concurrent.Executor</code> to be
- * used to dispatch a request.
- *
- * @see java.util.concurrent.Executor
- **/
- public abstract java.util.concurrent.Executor getExecutor();
-
- /**
- * Sets the executor for this <code>Endpoint</code> instance.
- *
- * The executor is used to dispatch an incoming request to
- * the implementor object.
- *
- * If this <code>Endpoint</code> is published using the
- * <code>publish(Object)</code> method and the specified server
- * context defines its own threading behavior, the executor
- * may be ignored.
- *
- * @param executor The <code>java.util.concurrent.Executor</code>
- * to be used to dispatch a request.
- *
- * @throws SecurityException If the instance does not support
- * setting an executor for security reasons (e.g. the
- * necessary permissions are missing).
- *
- * @see java.util.concurrent.Executor
- **/
- public abstract void setExecutor(java.util.concurrent.Executor executor);
-
- /**
- * Returns the property bag for this <code>Endpoint</code> instance.
- *
- * @return Map<String,Object> The property bag
- * associated with this instance.
- **/
- public abstract Map<String, Object> getProperties();
-
- /**
- * Sets the property bag for this <code>Endpoint</code> instance.
- *
- * @param properties The property bag associated with
- * this instance.
- **/
- public abstract void setProperties(Map<String, Object> properties);
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Holder.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Holder.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Holder.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,55 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/**
- * Holds a value of type <code>T</code>.
- *
- * @since JAX-WS 2.0
- **/
-public final class Holder<T>
-{
-
- /**
- * The value contained in the holder.
- **/
- public T value;
-
- /**
- * Creates a new holder with a <code>null</code> value.
- **/
- public Holder()
- {
- }
-
- /**
- * Create a new holder with the specified value.
- *
- * @param value The value to be stored in the holder.
- **/
- public Holder(T value)
- {
- this.value = value;
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/LogicalMessage.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/LogicalMessage.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/LogicalMessage.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,90 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import javax.xml.bind.JAXBContext;
-import javax.xml.transform.Source;
-
-/** The <code>LogicalMessage</code> interface represents a
- * protocol agnostic XML message and contains methods that
- * provide access to the payload of the message.
- *
- * @since JAX-WS 2.0
- **/
-public interface LogicalMessage
-{
-
- /** Gets the message payload as an XML source, may be called
- * multiple times on the same LogicalMessage instance, always
- * returns a new Source that may be used to retrieve the entire
- * message payload.
- *
- * <p>If the returned Source is an instance of DOMSource, then
- * modifications to the encapsulated DOM tree change the message
- * payload in-place, there is no need to susequently call
- * <code>setPayload</code>. Other types of Source provide only
- * read access to the message payload.
- *
- * @return The contained message payload; returns null if no
- * payload is present in this message.
- **/
- public Source getPayload();
-
- /** Sets the message payload
- *
- * @param payload message payload
- * @throws WebServiceException If any error during the setting
- * of the payload in this message
- * @throws java.lang.UnsupportedOperationException If this
- * operation is not supported
- **/
- public void setPayload(Source payload);
-
- /** Gets the message payload as a JAXB object. Note that there is no
- * connection between the returned object and the message payload,
- * changes to the payload require calling <code>setPayload</code>.
- *
- * @param context The JAXBContext that should be used to unmarshall
- * the message payload
- * @return The contained message payload; returns null if no
- * payload is present in this message
- * @throws WebServiceException If an error occurs when using a supplied
- * JAXBContext to unmarshall the payload. The cause of
- * the WebServiceException is the original JAXBException.
- **/
- public Object getPayload(JAXBContext context);
-
- /** Sets the message payload
- *
- * @param payload message payload
- * @param context The JAXBContext that should be used to marshall
- * the payload
- * @throws java.lang.UnsupportedOperationException If this
- * operation is not supported
- * @throws WebServiceException If an error occurs when using the supplied
- * JAXBContext to marshall the payload. The cause of
- * the WebServiceException is the original JAXBException.
- **/
- public void setPayload(Object payload, JAXBContext context);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ProtocolException.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/ProtocolException.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ProtocolException.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,93 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/** The <code>ProtocolException</code> class is a
- * base class for exceptions related to a specific protocol binding. Subclasses
- * are used to communicate protocol level fault information to clients and may
- * be used on the server to control the protocol specific fault representation.
- *
- * @since JAX-WS 2.0
- **/
-public class ProtocolException extends WebServiceException
-{
- private static final long serialVersionUID = 6688436881502883481L;
-
- /**
- * Constructs a new protocol exception with null as its detail message. The
- * cause is not initialized, and may subsequently be initialized by a call
- * to Throwable.initCause(java.lang.Throwable).
- */
- public ProtocolException()
- {
- super();
- }
-
- /**
- * Constructs a new protocol exception with the specified detail message.
- * The cause is not initialized, and may subsequently be initialized by a
- * call to Throwable.initCause(java.lang.Throwable).
- *
- * @param message the detail message. The detail message is saved for later
- * retrieval by the Throwable.getMessage() method.
- */
- public ProtocolException(String message)
- {
- super(message);
- }
-
- /**
- * Constructs a new runtime exception with the specified detail message and
- * cause.
- *
- * Note that the detail message associated with cause is not automatically
- * incorporated in this runtime exception's detail message.
- *
- * @param message the detail message (which is saved for later retrieval by
- * the Throwable.getMessage() method).
- * @param cause the cause (which is saved for later retrieval by the
- * Throwable.getCause() method). (A null value is permitted, and indicates
- * that the cause is nonexistent or unknown.)
- */
- public ProtocolException(String message, Throwable cause)
- {
- super(message, cause);
- }
-
- /**
- * Constructs a new runtime exception with the specified cause and a detail
- * message of (cause==null ? null : cause.toString()) (which typically
- * contains the class and detail message of cause). This constructor is
- * useful for runtime exceptions that are little more than wrappers for
- * other throwables.
- *
- * @param cause the cause (which is saved for later retrieval by the
- * Throwable.getCause() method). (A null value is permitted, and indicates
- * that the cause is nonexistent or unknown.)
- */
- public ProtocolException(Throwable cause)
- {
- super(cause);
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Provider.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Provider.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Provider.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,62 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/**
- * <p>Service endpoints may implement the <code>Provider</code>
- * interface as a dynamic alternative to an SEI.
- *
- * <p>Implementations are required to support <code>Provider<Source></code>,
- * <code>Provider<SOAPMessage></code> and
- * <code>Provider<DataSource></code>, depending on the binding
- * in use and the service mode.
- *
- * <p>The <code>ServiceMode</code> annotation can be used to control whether
- * the <code>Provider</code> instance will receive entire protocol messages
- * or just message payloads.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.xml.transform.Source
- * @see javax.xml.soap.SOAPMessage
- * @see javax.xml.ws.ServiceMode
- **/
-public interface Provider<T>
-{
-
- /** Invokes an operation occording to the contents of the request
- * message.
- *
- * @param request The request message or message payload.
- * @return The response message or message payload. May be null if
- there is no response.
- * @throws WebServiceException If there is an error processing request.
- * The cause of the WebServiceException may be set to a subclass
- * of ProtocolException to control the protocol level
- * representation of the exception.
- * @see javax.xml.ws.handler.MessageContext
- * @see javax.xml.ws.ProtocolException
- **/
- public T invoke(T request);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/RequestWrapper.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/RequestWrapper.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/RequestWrapper.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,64 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
-
- * Used to annotate methods in the Service Endpoint Interface with the request
- * wrapper bean to be used at runtime. The default value of the localName is
- * the operationName, as defined in WebMethod annotation and the
- * targetNamespace is the target namespace of the SEI.
- * <p> When starting from Java this annotation is used resolve
- * overloading conflicts in document literal mode. Only the className
- * is required in this case.
- *
- * @since JAX-WS 2.0
- **/
-
-(a)Target(ElementType.METHOD)
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface RequestWrapper {
- /**
- * Elements local name.
- **/
- public String localName() default "";
-
- /**
- * Elements namespace name.
- **/
- public String targetNamespace() default "";
-
- /**
- * Request wrapper bean name.
- **/
- public String className() default "";
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Response.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Response.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Response.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,51 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.util.Map;
-import java.util.concurrent.Future;
-
-/** The <code>Response</code> interface provides methods used to obtain the
- * payload and context of a message sent in response to an operation
- * invocation.
- *
- * <p>For asynchronous operation invocations it provides additional methods
- * to check the status of the request. The <code>get(...)</code> methods may
- * throw the standard
- * set of exceptions and their cause may be a RemoteException or a
- * WebServiceException that represents the error that occured during the
- * asynchronous method invocation.</p>
- *
- * @since JAX-WS 2.0
- **/
-public interface Response<T> extends Future<T>
-{
- /** Gets the contained response context.
- *
- * @return The contained response context. May be <code>null</code> if a
- * response is not yet available.
- *
- **/
- Map<String, Object> getContext();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ResponseWrapper.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/ResponseWrapper.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ResponseWrapper.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,73 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to annotate methods in the Service Endpoint Interface with the response
- * wrapper bean to be used at runtime. The default value of the localName is
- * the operationName as defined in WebMethod annotation appended with
- * Response and the targetNamespace is the target namespace of the SEI.
- * <p> When starting from Java this annotation is used resolve
- * overloading conflicts in document literal mode. Only the className
- * is required in this case.
- *
- * @since JAX-WS 2.0
- **/
-
-(a)Target(ElementType.METHOD)
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface ResponseWrapper {
-
- /**
-
- * Elements local name.
-
- **/
-
- public String localName() default "";
-
- /**
-
- * Elements namespace name.
-
- **/
-
- public String targetNamespace() default "";
-
- /**
-
- * Response wrapper bean name.
-
- **/
-
- public String className() default "";
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Service.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Service.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Service.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,347 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.net.URL;
-import java.util.Iterator;
-
-import javax.xml.bind.JAXBContext;
-import javax.xml.namespace.QName;
-import javax.xml.ws.handler.HandlerResolver;
-import javax.xml.ws.spi.Provider;
-import javax.xml.ws.spi.ServiceDelegate21;
-
-/**
- * <code>Service</code> objects provide the client view of a Web service.
- * <p><code>Service</code> acts as a factory of the following:
- * <ul>
- * <li>Proxies for a target service endpoint.
- * <li>Instances of <code>javax.xml.ws.Dispatch</code> for
- * dynamic message-oriented invocation of a remote
- * operation.
- * </li>
- *
- * <p>The ports available on a service can be enumerated using the
- * <code>getPorts</code> method. Alternatively, you can pass a
- * service endpoint interface to the unary <code>getPort</code> method
- * and let the runtime select a compatible port.
- *
- * <p>Handler chains for all the objects created by a <code>Service</code>
- * can be set by means of a <code>HandlerResolver</code>.
- *
- * <p>An <code>Executor</code> may be set on the service in order
- * to gain better control over the threads used to dispatch asynchronous
- * callbacks. For instance, thread pooling with certain parameters
- * can be enabled by creating a <code>ThreadPoolExecutor</code> and
- * registering it with the service.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.xml.ws.spi.Provider
- * @see javax.xml.ws.handler.HandlerResolver
- * @see java.util.concurrent.Executor
- **/
-public class Service
-{
- ServiceDelegate21 delegate;
-
- /**
- * The orientation of a dynamic client or service. MESSAGE provides
- * access to entire protocol message, PAYLOAD to protocol message
- * payload only.
- **/
- public enum Mode
- {
- MESSAGE, PAYLOAD
- };
-
- protected Service(java.net.URL wsdlDocumentLocation, QName serviceName)
- {
- delegate = (ServiceDelegate21)Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass());
- }
-
- /**
- * Create a <code>Service</code> instance.
- *
- * The specified WSDL document location and service qualified name MUST
- * uniquely identify a <code>wsdl:service</code> element.
- *
- * @param wsdlLocation URL for the WSDL document location
- * for the service
- * @param serviceName QName for the service
- * @throws WebServiceException If any error in creation of the
- * specified service.
- **/
- public static Service create(URL wsdlLocation, QName serviceName)
- {
- return new Service(wsdlLocation, serviceName);
- }
-
- /**
- * Create a <code>Service</code> instance.
- *
- * @param serviceName QName for the service
- * @throws WebServiceException If any error in creation of the
- * specified service
- */
- public static Service create(QName serviceName)
- {
- return create(null, serviceName);
- }
-
- /**
- * The getPort method returns a proxy. A service client
- * uses this proxy to invoke operations on the target
- * service endpoint. The <code>serviceEndpointInterface</code>
- * specifies the service endpoint interface that is supported by
- * the created dynamic proxy instance.
- *
- * @param portName Qualified name of the service endpoint in
- * the WSDL service description.
- * @param serviceEndpointInterface Service endpoint interface
- * supported by the dynamic proxy instance.
- * @return Object Proxy instance that
- * supports the specified service endpoint
- * interface.
- * @throws WebServiceException This exception is thrown in the
- * following cases:
- * <UL>
- * <LI>If there is an error in creation of
- * the proxy.
- * <LI>If there is any missing WSDL metadata
- * as required by this method.
- * <LI>If an illegal
- * <code>serviceEndpointInterface</code>
- * or <code>portName</code> is specified.
- * </UL>
- * @see java.lang.reflect.Proxy
- * @see java.lang.reflect.InvocationHandler
- **/
- public <T> T getPort(QName portName, Class<T> serviceEndpointInterface)
- {
- return delegate.getPort(portName, serviceEndpointInterface);
- }
-
- /**
- * The getPort method returns a proxy. The parameter
- * <code>serviceEndpointInterface</code> specifies the service
- * endpoint interface that is supported by the returned proxy.
- * In the implementation of this method, the JAX-WS
- * runtime system takes the responsibility of selecting a protocol
- * binding (and a port) and configuring the proxy accordingly.
- * The returned proxy should not be reconfigured by the client.
- *
- * @param serviceEndpointInterface Service endpoint interface.
- * @return Object instance that supports the
- * specified service endpoint interface.
- * @throws WebServiceException
- * <UL>
- * <LI>If there is an error during creation
- * of the proxy.
- * <LI>If there is any missing WSDL metadata
- * as required by this method.
- * <LI>If an illegal.
- * <code>serviceEndpointInterface</code>
- * is specified.
- * </UL>
- **/
- public <T> T getPort(Class<T> serviceEndpointInterface)
- {
- return delegate.getPort(serviceEndpointInterface);
- }
-
- /**
- * Creates a new port for the service. Ports created in this way contain
- * no WSDL port type information and can only be used for creating
- * <code>Dispatch</code>instances.
- *
- * @param portName Qualified name for the target service endpoint.
- * @param bindingId A String identifier of a binding.
- * @param endpointAddress Address of the target service endpoint as a URI.
- * @throws WebServiceException If any error in the creation of
- * the port.
- *
- * @see javax.xml.ws.soap.SOAPBinding#SOAP11HTTP_BINDING
- * @see javax.xml.ws.soap.SOAPBinding#SOAP12HTTP_BINDING
- * @see javax.xml.ws.http.HTTPBinding#HTTP_BINDING
- **/
- public void addPort(QName portName, String bindingId, String endpointAddress)
- {
- delegate.addPort(portName, bindingId, endpointAddress);
- }
-
- /**
- * Creates a <code>Dispatch</code> instance for use with objects of
- * the users choosing.
- *
- * @param portName Qualified name for the target service endpoint
- * @param type The class of object used for messages or message
- * payloads. Implementations are required to support
- * <code>javax.xml.transform.Source</code>, <code>javax.xml.soap.SOAPMessage</code>
- * and <code>javax.activation.DataSource</code>, depending on
- * the binding in use.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body. Mode MUST be MESSAGE
- * when type is SOAPMessage.
- *
- * @return Dispatch instance.
- * @throws WebServiceException If any error in the creation of
- * the <code>Dispatch</code> object.
- *
- * @see javax.xml.transform.Source
- * @see javax.xml.soap.SOAPMessage
- **/
- public <T> Dispatch<T> createDispatch(QName portName, Class<T> type, Mode mode)
- {
- return delegate.createDispatch(portName, type, mode);
- }
-
- /**
- * Creates a <code>Dispatch</code> instance for use with JAXB
- * generated objects.
- *
- * @param portName Qualified name for the target service endpoint
- * @param context The JAXB context used to marshall and unmarshall
- * messages or message payloads.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body.
- *
- * @return Dispatch instance.
- * @throws WebServiceException If any error in the creation of
- * the <code>Dispatch</code> object.
- *
- * @see javax.xml.bind.JAXBContext
- **/
- public Dispatch<Object> createDispatch(QName portName, JAXBContext context, Mode mode)
- {
- return delegate.createDispatch(portName, context, mode);
- }
-
- /**
- * Gets the name of this service.
- * @return Qualified name of this service
- **/
- public QName getServiceName()
- {
- return delegate.getServiceName();
- }
-
- /**
- * Returns an <code>Iterator</code> for the list of
- * <code>QName</code>s of service endpoints grouped by this
- * service
- *
- * @return Returns <code>java.util.Iterator</code> with elements
- * of type <code>javax.xml.namespace.QName</code>.
- * @throws WebServiceException If this Service class does not
- * have access to the required WSDL metadata.
- **/
- public Iterator<javax.xml.namespace.QName> getPorts()
- {
- return delegate.getPorts();
- }
-
- /**
- * Gets the location of the WSDL document for this Service.
- *
- * @return URL for the location of the WSDL document for
- * this service.
- **/
- public java.net.URL getWSDLDocumentLocation()
- {
- return delegate.getWSDLDocumentLocation();
- }
-
- /**
- * Returns the configured handler resolver.
- *
- * @return HandlerResolver The <code>HandlerResolver</code> being
- * used by this <code>Service</code> instance, or <code>null</code>
- * if there isn't one.
- **/
- public HandlerResolver getHandlerResolver()
- {
- return delegate.getHandlerResolver();
- }
-
- /**
- * Sets the <code>HandlerResolver</code> for this <code>Service</code>
- * instance.
- * <p>
- * The handler resolver, if present, will be called once for each
- * proxy or dispatch instance that is created, and the handler chain
- * returned by the resolver will be set on the instance.
- *
- * @param handlerResolver The <code>HandlerResolver</code> to use
- * for all subsequently created proxy/dispatch objects.
- *
- * @see javax.xml.ws.handler.HandlerResolver
- **/
- public void setHandlerResolver(HandlerResolver handlerResolver)
- {
- delegate.setHandlerResolver(handlerResolver);
- }
-
- /**
- * Returns the executor for this <code>Service</code>instance.
- *
- * The executor is used for all asynchronous invocations that
- * require callbacks.
- *
- * @return The <code>java.util.concurrent.Executor</code> to be
- * used to invoke a callback.
- *
- * @see java.util.concurrent.Executor
- **/
- public java.util.concurrent.Executor getExecutor()
- {
- return delegate.getExecutor();
- }
-
- /**
- * Sets the executor for this <code>Service</code> instance.
- *
- * The executor is used for all asynchronous invocations that
- * require callbacks.
- *
- * @param executor The <code>java.util.concurrent.Executor</code>
- * to be used to invoke a callback.
- *
- * @throws SecurityException If the instance does not support
- * setting an executor for security reasons (e.g. the
- * necessary permissions are missing).
- *
- * @see java.util.concurrent.Executor
- **/
- public void setExecutor(java.util.concurrent.Executor executor)
- {
- delegate.setExecutor(executor);
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ServiceMode.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/ServiceMode.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ServiceMode.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,51 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Inherited;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to indicate whether a Provider implementation wishes to work
- * with entire protocol messages or just with protocol message payloads.
- *
- * @since JAX-WS 2.0
- **/
-@Target( { ElementType.TYPE })
-(a)Retention(RetentionPolicy.RUNTIME)
-@Inherited
-@Documented
-public @interface ServiceMode {
- /**
- * Service mode. PAYLOAD indicates that the Provider implementation
- * wishes to work with protocol message payloads only. MESSAGE indicates
- * that the Provider implementation wishes to work with entire protocol
- * messages.
- **/
- public Service.Mode value() default Service.Mode.PAYLOAD;
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebEndpoint.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebEndpoint.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebEndpoint.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,54 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to annotate the <code>get<em>PortName</em>()</code>
- * methods of a generated service interface.
- *
- * <p>The information specified in this annotation is sufficient
- * to uniquely identify a <code>wsdl:port</code> element
- * inside a <code>wsdl:service</code>. The latter is
- * determined based on the value of the <code>WebServiceClient</code>
- * annotation on the generated service interface itself.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.xml.ws.WebServiceClient
- **/
-@Target( { ElementType.METHOD })
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebEndpoint {
- /**
- * The local name of the endpoint.
- **/
- String name() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebFault.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebFault.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebFault.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,57 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to annotate service specific exception classes to customize
- * to the local and namespace name of the fault element and the name
- * of the fault bean.
- *
- * @since JAX-WS 2.0
- **/
-@Target( { ElementType.TYPE })
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebFault {
- /**
- * Elements local name.
- **/
- public String name() default "";
-
- /**
- * Elements namespace name.
- **/
- public String targetNamespace() default "";
-
- /**
- * Fault bean name.
- **/
- public String faultBean() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceClient.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceClient.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceClient.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,61 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to annotate a generated service interface.
- *
- * <p>The information specified in this annotation is sufficient
- * to uniquely identify a <code>wsdl:service</code>
- * element inside a WSDL document. This <code>wsdl:service</code>
- * element represents the Web service for which the generated
- * service interface provides a client view.
- *
- * @since JAX-WS 2.0
- **/
-@Target( { ElementType.TYPE })
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebServiceClient {
- /**
- * The local name of the Web service.
- **/
- String name() default "";
-
- /**
- * The namespace for the Web service.
- **/
- String targetNamespace() default "";
-
- /**
- * The location of the WSDL document for the service (a URL).
- **/
- String wsdlLocation() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceContext.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceContext.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceContext.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,97 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import javax.xml.ws.handler.MessageContext;
-import java.security.Principal;
-
-/**
- * A <code>WebServiceContext</code> makes it possible for
- * a web service endpoint implementation class to access
- * message context and security information relative to
- * a request being served.
- *
- * Typically a <code>WebServiceContext</code> is injected
- * into an endpoint implementation class using the
- * <code>Resource</code> annotation.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.annotation.Resource
- **/
-public interface WebServiceContext
-{
-
- /**
- * Returns the MessageContext for the request being served
- * at the time this method is called. Only properties with
- * APPLICATION scope will be visible to the application.
- *
- * @return MessageContext The message context.
- *
- * @throws IllegalStateException This exception is thrown
- * if the method is called while no request is
- * being serviced.
- *
- * @see javax.xml.ws.handler.MessageContext
- * @see javax.xml.ws.handler.MessageContext.Scope
- * @see java.lang.IllegalStateException
- **/
- public MessageContext getMessageContext();
-
- /**
- * Returns the Principal that identifies the sender
- * of the request currently being serviced. If the
- * sender has not been authenticated, the method
- * returns <code>null</code>.
- *
- * @return Principal The principal object.
- *
- * @throws IllegalStateException This exception is thrown
- * if the method is called while no request is
- * being serviced.
- *
- * @see java.security.Principal
- * @see java.lang.IllegalStateException
- **/
- public Principal getUserPrincipal();
-
- /**
- * Returns a boolean indicating whether the
- * authenticated user is included in the specified
- * logical role. If the user has not been
- * authenticated, the method returns </code>false</code>.
- *
- * @param role A <code>String</code> specifying the name of the role
- *
- * @return a <code>boolean</code> indicating whether
- * the sender of the request belongs to a given role
- *
- * @throws IllegalStateException This exception is thrown
- * if the method is called while no request is
- * being serviced.
- **/
- public boolean isUserInRole(String role);
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceException.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceException.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceException.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,83 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/** The <code>WebServiceException</code> class is the base
- * exception class for all JAX-WS API runtime exceptions.
- *
- * @since JAX-WS 2.0
- **/
-
-public class WebServiceException extends java.lang.RuntimeException
-{
- private static final long serialVersionUID = 9050257594613372011L;
-
- /** Constructs a new exception with <code>null</code> as its
- * detail message. The cause is not initialized.
- **/
- public WebServiceException()
- {
- super();
- }
-
- /** Constructs a new exception with the specified detail
- * message. The cause is not initialized.
- * @param message The detail message which is later
- * retrieved using the getMessage method
- **/
- public WebServiceException(String message)
- {
- super(message);
- }
-
- /** Constructs a new exception with the specified detail
- * message and cause.
- *
- * @param message The detail message which is later retrieved
- * using the getMessage method
- * @param cause The cause which is saved for the later
- * retrieval throw by the getCause method
- **/
- public WebServiceException(String message, Throwable cause)
- {
- super(message, cause);
- }
-
- /** Constructs a new WebServiceException with the specified cause
- * and a detail message of <tt>(cause==null ? null :
- * cause.toString())</tt> (which typically contains the
- * class and detail message of <tt>cause</tt>).
- *
- * @param cause The cause which is saved for the later
- * retrieval throw by the getCause method.
- * (A <tt>null</tt> value is permitted, and
- * indicates that the cause is nonexistent or
- * unknown.)
- **/
- public WebServiceException(Throwable cause)
- {
- super(cause);
- }
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServicePermission.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServicePermission.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServicePermission.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,80 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.security.BasicPermission;
-
-/**
- * This class defines web service permissions.
- * <p>
- * Web service Permissions are identified by name (also referred to as
- * a "target name") alone. There are no actions associated
- * with them.
- * <p>
- * The following permission target name is defined:
- * <p>
- * <dl>
- * <dt>publishEndpoint
- * </dl>
- * <p>
- * The <code>publishEndpoint</code> permission allows publishing a
- * web service endpoint using the <code>publish</code> methods
- * defined by the <code>javax.xml.ws.Endpoint</code> class.
- *
- * @see javax.xml.ws.Endpoint
- * @see java.security.BasicPermission
- * @see java.security.Permission
- * @see java.security.Permissions
- * @see java.lang.SecurityManager
- */
-public final class WebServicePermission extends BasicPermission
-{
-
- private static final long serialVersionUID = -146474640053770988L;
-
- /**
- * Creates a new permission with the specified name.
- *
- * @param name the name of the <code>WebServicePermission</code>
- */
- public WebServicePermission(String name)
- {
- super(name);
- }
-
- /**
- * Creates a new permission with the specified name and actions.
- *
- * The <code>actions</code> parameter is currently unused and
- * it should be <code>null</code>.
- *
- * @param name the name of the <code>WebServicePermission</code>
- * @param actions should be <code>null</code>
- */
- public WebServicePermission(String name, String actions)
- {
- super(name, actions);
- }
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceProvider.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceProvider.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceProvider.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,61 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to annotate a Provider implementation class.
- *
- * @since JAX-WS 2.0
- * @see javax.xml.ws.Provider
- */
-(a)Target(ElementType.TYPE)
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebServiceProvider {
- /**
- * Location of the WSDL description for the service.
- */
- String wsdlLocation() default "";
-
- /**
- * Service name.
- */
- String serviceName() default "";
-
- /**
- * Target namespace for the service
- */
- String targetNamespace() default "";
-
- /**
- * Port name.
- */
- String portName() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRef.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceRef.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRef.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,97 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * The <code>WebServiceRef</code> annotation is used to
- * define a reference to a web service and
- * (optionally) an injection target for it.
- *
- * Web service references are resources in the Java EE 5 sense.
- *
- * @see javax.annotation.Resource
- *
- * @since JAX-WS 2.0
- *
- **/
-
-@Target( { ElementType.TYPE, ElementType.METHOD, ElementType.FIELD })
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebServiceRef {
- /**
- * The JNDI name of the resource. For field annotations,
- * the default is the field name. For method annotations,
- * the default is the JavaBeans property name corresponding
- * to the method. For class annotations, there is no default
- * and this MUST be specified.
- */
- String name() default "";
-
- /**
- * The Java type of the resource. For field annotations,
- * the default is the type of the field. For method annotations,
- * the default is the type of the JavaBeans property.
- * For class annotations, there is no default and this MUST be
- * specified.
- */
- Class type() default Object.class;
-
- /**
- * A product specific name that this resource should be mapped to.
- * The name of this resource, as defined by the <code>name</code>
- * element or defaulted, is a name that is local to the application
- * component using the resource. (It's a name in the JNDI
- * <code>java:comp/env</code> namespace.) Many application servers
- * provide a way to map these local names to names of resources
- * known to the application server. This mapped name is often a
- * <i>global</i> JNDI name, but may be a name of any form. <p>
- *
- * Application servers are not required to support any particular
- * form or type of mapped name, nor the ability to use mapped names.
- * The mapped name is product-dependent and often installation-dependent.
- * No use of a mapped name is portable.
- */
- String mappedName() default "";
-
- /**
- * The service class, always a type extending
- * <code>javax.xml.ws.Service</code>. This element MUST be specified
- * whenever the type of the reference is a service endpoint interface.
- */
- Class value() default Object.class;
-
- /**
- * A URL pointing to the WSDL document for the web service.
- * If not specified, the WSDL location specified by annotations
- * on the resource type is used instead.
- */
- String wsdlLocation() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRefs.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceRefs.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRefs.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,50 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import static java.lang.annotation.ElementType.TYPE;
-import static java.lang.annotation.RetentionPolicy.RUNTIME;
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.Retention;
-import java.lang.annotation.Target;
-
-/**
- * The <code>WebServiceRefs</code> annotation allows
- * multiple web service references to be declared at the
- * class level.
- *
- * @see javax.xml.ws.WebServiceRef
- * @since 2.0
- */
-
-@Documented
-@Retention(RUNTIME)
-@Target(TYPE)
-public @interface WebServiceRefs {
- /**
- * Array used for multiple web service reference declarations.
- */
- WebServiceRef[] value();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/Handler.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/Handler.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/Handler.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,84 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-import javax.xml.ws.ProtocolException;
-
-/** The <code>Handler</code> interface
- * is the base interface for JAX-WS handlers.
- *
- * @since JAX-WS 2.0
-**/
-public interface Handler<C extends MessageContext> {
-
- /** The <code>handleMessage</code> method is invoked for normal processing
- * of inbound and outbound messages. Refer to the description of the handler
- * framework in the JAX-WS specification for full details.
- *
- * @param context the message context.
- * @return An indication of whether handler processing should continue for
- * the current message
- * <ul>
- * <li>Return <code>true</code> to continue
- * processing.</li>
- * <li>Return <code>false</code> to block
- * processing.</li>
- * </ul>
- * @throws RuntimeException Causes the JAX-WS runtime to cease
- * handler processing and generate a fault.
- * @throws ProtocolException Causes the JAX-WS runtime to switch to
- * fault message processing.
- **/
- public boolean handleMessage(C context);
-
- /** The <code>handleFault</code> method is invoked for fault message
- * processing. Refer to the description of the handler
- * framework in the JAX-WS specification for full details.
- *
- * @param context the message context
- * @return An indication of whether handler fault processing should continue
- * for the current message
- * <ul>
- * <li>Return <code>true</code> to continue
- * processing.</li>
- * <li>Return <code>false</code> to block
- * processing.</li>
- * </ul>
- * @throws RuntimeException Causes the JAX-WS runtime to cease
- * handler fault processing and dispatch the fault.
- * @throws ProtocolException Causes the JAX-WS runtime to cease
- * handler fault processing and dispatch the fault.
- **/
- public boolean handleFault(C context);
-
- /**
- * Called at the conclusion of a message exchange pattern just prior to
- * the JAX-WS runtime disptaching a message, fault or exception. Refer to
- * the description of the handler
- * framework in the JAX-WS specification for full details.
- *
- * @param context the message context
- **/
- public void close(MessageContext context);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/HandlerResolver.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/HandlerResolver.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/HandlerResolver.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,51 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-/**
- * <code>HandlerResolver</code> is an interface implemented
- * by an application to get control over the handler chain
- * set on proxy/dispatch objects at the time of their creation.
- * <p>
- * A <code>HandlerResolver</code> may be set on a <code>Service</code>
- * using the <code>setHandlerResolver</code> method.
- * <p>
- * When the runtime invokes a <code>HandlerResolver</code>, it will
- * pass it a <code>PortInfo</code> object containing information
- * about the port that the proxy/dispatch object will be accessing.
- *
- * @see javax.xml.ws.Service#setHandlerResolver
- *
- * @since JAX-WS 2.0
-**/
-public interface HandlerResolver {
-
- /**
- * Gets the handler chain for the specified port.
- *
- * @param portInfo Contains information about the port being accessed.
- * @return java.util.List Handler chain
- **/
- public java.util.List<Handler> getHandlerChain(PortInfo portInfo);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalHandler.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/LogicalHandler.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalHandler.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,32 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-/** The <code>LogicalHandler</code> extends
- * Handler to provide typesafety for the message context parameter.
- *
- * @since JAX-WS 2.0
-**/
-public interface LogicalHandler<C extends LogicalMessageContext> extends Handler<C> {
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalMessageContext.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/LogicalMessageContext.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalMessageContext.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,44 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-import javax.xml.ws.LogicalMessage;
-
-/** The <code>LogicalMessageContext</code> interface extends
- * <code>MessageContext</code> to
- * provide access to a the contained message as a protocol neutral
- * LogicalMessage
- *
- * @since JAX-WS 2.0
-**/
-public interface LogicalMessageContext
- extends MessageContext {
-
- /** Gets the message from this message context
- *
- * @return The contained message; returns null if no
- * message is present in this message context
- **/
- public LogicalMessage getMessage();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/MessageContext.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/MessageContext.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/MessageContext.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,180 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-import java.util.Map;
-
-/**
- * The interface <code>MessageContext</code> abstracts the message
- * context that is processed by a handler in the <code>handle</code>
- * method.
- *
- * <p>The <code>MessageContext</code> interface provides methods to
- * manage a property set. <code>MessageContext</code> properties
- * enable handlers in a handler chain to share processing related
- * state.
- *
- * @since JAX-WS 2.0
- */
-public interface MessageContext extends Map<String, Object>
-{
-
- /**
- * Standard property: message direction, <code>true</code> for
- * outbound messages, <code>false</code> for inbound.
- * <p>Type: boolean
- */
- public static final String MESSAGE_OUTBOUND_PROPERTY = "javax.xml.ws.handler.message.outbound";
-
- /**
- * Standard property: Map of attachments to a message for the inbound
- * message, key is the MIME Content-ID, value is a DataHandler.
- * <p>Type: java.util.Map<String,DataHandler>
- */
- public static final String INBOUND_MESSAGE_ATTACHMENTS = "javax.xml.ws.binding.attachments.inbound";
-
- /**
- * Standard property: Map of attachments to a message for the outbound
- * message, key is the MIME Content-ID, value is a DataHandler.
- * <p>Type: java.util.Map<String,DataHandler>
- */
- public static final String OUTBOUND_MESSAGE_ATTACHMENTS = "javax.xml.ws.binding.attachments.outbound";
-
- /**
- * Standard property: input source for WSDL document.
- * <p>Type: org.xml.sax.InputSource
- */
- public static final String WSDL_DESCRIPTION = "javax.xml.ws.wsdl.description";
-
- /**
- * Standard property: name of WSDL service.
- * <p>Type: javax.xml.namespace.QName
- */
- public static final String WSDL_SERVICE = "javax.xml.ws.wsdl.service";
-
- /**
- * Standard property: name of WSDL port.
- * <p>Type: javax.xml.namespace.QName
- */
- public static final String WSDL_PORT = "javax.xml.ws.wsdl.port";
-
- /**
- * Standard property: name of wsdl interface (2.0) or port type (1.1).
- * <p>Type: javax.xml.namespace.QName
- */
- public static final String WSDL_INTERFACE = "javax.xml.ws.wsdl.interface";
-
- /**
- * Standard property: name of WSDL operation.
- * <p>Type: javax.xml.namespace.QName
- */
- public static final String WSDL_OPERATION = "javax.xml.ws.wsdl.operation";
-
- /**
- * Standard property: HTTP response status code.
- * <p>Type: java.lang.Integer
- */
- public static final String HTTP_RESPONSE_CODE = "javax.xml.ws.http.response.code";
-
- /**
- * Standard property: HTTP request headers.
- * <p>Type: java.util.Map<java.lang.String, java.util.List<java.lang.String>>
- */
- public static final String HTTP_REQUEST_HEADERS = "javax.xml.ws.http.request.headers";
-
- /**
- * Standard property: HTTP response headers.
- * <p>Type: java.util.Map<java.lang.String, java.util.List<java.lang.String>>
- */
- public static final String HTTP_RESPONSE_HEADERS = "javax.xml.ws.http.response.headers";
-
- /**
- * Standard property: HTTP request method.
- * <p>Type: java.lang.String
- */
- public static final String HTTP_REQUEST_METHOD = "javax.xml.ws.http.request.method";
-
- /**
- * Standard property: servlet request object.
- * <p>Type: javax.servlet.http.HttpServletRequest
- */
- public static final String SERVLET_REQUEST = "javax.xml.ws.servlet.request";
-
- /**
- * Standard property: servlet response object.
- * <p>Type: javax.servlet.http.HttpServletResponse
- */
- public static final String SERVLET_RESPONSE = "javax.xml.ws.servlet.response";
-
- /**
- * Standard property: servlet context object.
- * <p>Type: javax.servlet.ServletContext
- */
- public static final String SERVLET_CONTEXT = "javax.xml.ws.servlet.context";
-
- /**
- * Standard property: Query string for request.
- * <p>Type: String
- **/
- public static final String QUERY_STRING = "javax.xml.ws.http.request.querystring";
-
- /**
- * Standard property: Request Path Info
- * <p>Type: String
- */
- public static final String PATH_INFO = "javax.xml.ws.http.request.pathinfo";
-
- /**
- * Property scope. Properties scoped as <code>APPLICATION</code> are
- * visible to handlers,
- * client applications and service endpoints; properties scoped as
- * <code>HANDLER</code>
- * are only normally visible to handlers.
- */
- public enum Scope
- {
- APPLICATION, HANDLER
- };
-
- /**
- * Sets the scope of a property.
- *
- * @param name Name of the property associated with the
- * <code>MessageContext</code>
- * @param scope Desired scope of the property
- * @throws java.lang.IllegalArgumentException if an illegal
- * property name is specified
- */
- public void setScope(String name, Scope scope);
-
- /**
- * Gets the scope of a property.
- *
- * @param name Name of the property
- * @return Scope of the property
- * @throws java.lang.IllegalArgumentException if a non-existant
- * property name is specified
- */
- public Scope getScope(String name);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/PortInfo.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/PortInfo.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/PortInfo.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,64 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-
-/**
- * The <code>PortInfo</code> interface is used by a
- * <code>HandlerResolver</code> to query information about
- * the port it is being asked to create a handler chain for.
- * <p>
- * This interface is never implemented by an application,
- * only by a JAX-WS implementation.
- *
- * @since JAX-WS 2.0
-**/
-public interface PortInfo {
-
- /**
- * Gets the qualified name of the WSDL service name containing
- * the port being accessed.
- *
- * @return javax.xml.namespace.QName The qualified name of the WSDL service.
- **/
- public QName getServiceName();
-
- /**
- * Gets the qualified name of the WSDL port being accessed.
- *
- * @return javax.xml.namespace.QName The qualified name of the WSDL port.
- **/
- public QName getPortName();
-
- /**
- * Gets the URI identifying the binding used by the port being accessed.
- *
- * @return String The binding identifier for the port.
- *
- * @see javax.xml.ws.Binding
- **/
- public String getBindingID();
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPBinding.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/SOAPBinding.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPBinding.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,107 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.soap;
-
-// $Id$
-
-import javax.xml.soap.MessageFactory;
-import javax.xml.soap.SOAPFactory;
-import javax.xml.ws.Binding;
-import javax.xml.ws.WebServiceException;
-import java.util.Set;
-
-/** The <code>SOAPBinding</code> interface is an abstraction for
- * the SOAP binding.
- *
- * @since JAX-WS 2.0
- **/
-public interface SOAPBinding extends Binding
-{
- /**
- * A constant representing the identity of the SOAP 1.1 over HTTP binding.
- */
- public static final String SOAP11HTTP_BINDING = "http://schemas.xmlsoap.org/wsdl/soap/http";
-
- /**
- * A constant representing the identity of the SOAP 1.2 over HTTP binding.
- */
- public static final String SOAP12HTTP_BINDING = "http://www.w3.org/2003/05/soap/bindings/HTTP/";
-
- /**
- * A constant representing the identity of the SOAP 1.1 over HTTP binding
- * with MTOM enabled by default.
- */
- public static final String SOAP11HTTP_MTOM_BINDING = "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true";
-
- /**
- * A constant representing the identity of the SOAP 1.2 over HTTP binding
- * with MTOM enabled by default.
- */
- public static final String SOAP12HTTP_MTOM_BINDING = "http://www.w3.org/2003/05/soap/bindings/HTTP/?mtom=true";
-
- /** Gets the roles played by the SOAP binding instance.
- *
- * @return Set<String> The set of roles played by the binding instance.
- **/
- public Set<String> getRoles();
-
- /** Sets the roles played by the SOAP binding instance.
- *
- * @param roles The set of roles played by the binding instance.
- * @throws WebServiceException On an error in the configuration of
- * the list of roles.
- **/
- public void setRoles(Set<String> roles);
-
- /**
- * Returns <code>true</code> if the use of MTOM is enabled.
- *
- * @return <code>true</code> if and only if the use of MTOM is enabled.
- **/
-
- public boolean isMTOMEnabled();
-
- /**
- * Enables or disables use of MTOM.
- *
- * @param flag A <code>boolean</code> specifying whether the use of MTOM should
- * be enabled or disabled.
- * @throws WebServiceException If the specified setting is not supported
- * by this binding instance.
- * *
- **/
- public void setMTOMEnabled(boolean flag);
-
- /**
- * Gets the SAAJ <code>SOAPFactory</code> instance used by this SOAP binding.
- *
- * @return SOAPFactory instance used by this SOAP binding.
- **/
- public SOAPFactory getSOAPFactory();
-
- /**
- * Gets the SAAJ <code>MessageFactory</code> instance used by this SOAP binding.
- *
- * @return MessageFactory instance used by this SOAP binding.
- **/
- public MessageFactory getMessageFactory();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPFaultException.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/SOAPFaultException.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPFaultException.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,77 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.soap;
-
-// $Id$
-
-import javax.xml.soap.SOAPFault;
-
-/** The <code>SOAPFaultException</code> exception represents a
- * SOAP 1.1 or 1.2 fault.
- *
- * <p>A <code>SOAPFaultException</code> wraps a SAAJ <code>SOAPFault</code>
- * that manages the SOAP-specific representation of faults.
- * The <code>createFault</code> method of
- * <code>javax.xml.soap.SOAPFactory</code> may be used to create an instance
- * of <code>javax.xml.soap.SOAPFault</code> for use with the
- * constructor. <code>SOAPBinding</code> contains an accessor for the
- * <code>SOAPFactory</code> used by the binding instance.
- *
- * <p>Note that the value of <code>getFault</code> is the only part of the
- * exception used when searializing a SOAP fault.
- *
- * <p>Refer to the SOAP specification for a complete
- * description of SOAP faults.
- *
- * @see javax.xml.soap.SOAPFault
- * @see javax.xml.ws.soap.SOAPBinding#getSOAPFactory
- * @see javax.xml.ws.ProtocolException
- *
- * @since JAX-WS 2.0
- **/
-public class SOAPFaultException extends javax.xml.ws.ProtocolException
-{
- private static final long serialVersionUID = 3948617580148536298L;
-
- private SOAPFault fault;
-
- /** Constructor for SOAPFaultException
- * @param fault <code>SOAPFault</code> representing the fault
- *
- * @see javax.xml.soap.SOAPFactory#createFault
- **/
- public SOAPFaultException(SOAPFault fault)
- {
- super(fault.getFaultString());
- this.fault = fault;
- }
-
- /** Gets the embedded <code>SOAPFault</code> instance.
- *
- * @return <code>javax.xml.soap.SOAPFault</code> SOAP
- * fault element
- **/
- public javax.xml.soap.SOAPFault getFault()
- {
- return this.fault;
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/Provider.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/Provider.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/Provider.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,137 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.spi;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.Endpoint;
-import javax.xml.ws.WebServiceException;
-
-/**
- * Service provider for ServiceDelegate and Endpoint objects.
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 03-May-2006
- */
-public abstract class Provider
-{
- public static final String JAXWSPROVIDER_PROPERTY = "javax.xml.ws.spi.Provider";
- private static final String DEFAULT_JAXWSPROVIDER = "org.jboss.ws.core.jaxws.spi.ProviderImpl";
-
- /**
- * Creates a new instance of Provider
- */
- protected Provider()
- {
- }
-
- /**
- *
- * Creates a new provider object.
- * <p>
- * The algorithm used to locate the provider subclass to use consists
- * of the following steps:
- * <p>
- * <ul>
- * <li>
- * If a resource with the name of
- * <code>META-INF/services/javax.xml.ws.spi.Provider</code>
- * exists, then its first line, if present, is used as the UTF-8 encoded
- * name of the implementation class.
- * </li>
- * <li>
- * If the $java.home/lib/jaxws.properties file exists and it is readable by
- * the <code>java.util.Properties.load(InputStream)</code> method and it contains
- * an entry whose key is <code>javax.xml.ws.spi.Provider</code>, then the value of
- * that entry is used as the name of the implementation class.
- * </li>
- * <li>
- * If a system property with the name <code>javax.xml.ws.spi.Provider</code>
- * is defined, then its value is used as the name of the implementation class.
- * </li>
- * <li>
- * Finally, a default implementation class name is used.
- * </li>
- * </ul>
- *
- */
- public static Provider provider()
- {
- try
- {
- return (Provider)ProviderLoader.loadProvider(DEFAULT_JAXWSPROVIDER);
- }
- catch (WebServiceException ex)
- {
- throw ex;
- }
- catch (Exception ex)
- {
- throw new WebServiceException("Unable to load Provider: " + ex.getMessage(), ex);
- }
-
- }
-
- /**
- * Creates a service delegate object.
- * <p>
- * @param wsdlDocumentLocation A URL pointing to the WSDL document
- * for the service, or <code>null</code> if there isn't one.
- * @param serviceName The qualified name of the service.
- * @param serviceClass The service class, which MUST be either
- * <code>javax.xml.ws.Service</code> or a subclass thereof.
- * @return The newly created service delegate.
- */
- public abstract ServiceDelegate createServiceDelegate(java.net.URL wsdlDocumentLocation, QName serviceName, Class serviceClass);
-
- /**
- *
- * Creates an endpoint object with the provided binding and implementation
- * object.
- *
- * @param bindingId A URI specifying the desired binding (e.g. SOAP/HTTP)
- * @param implementor A service implementation object to which
- * incoming requests will be dispatched. The corresponding
- * class MUST be annotated with all the necessary Web service
- * annotations.
- * @return The newly created endpoint.
- */
- public abstract Endpoint createEndpoint(String bindingId, Object implementor);
-
- /**
- * Creates and publishes an endpoint object with the specified
- * address and implementation object.
- *
- * @param address A URI specifying the address and transport/protocol
- * to use. A http: URI MUST result in the SOAP 1.1/HTTP
- * binding being used. Implementations may support other
- * URI schemes.
- * @param implementor A service implementation object to which
- * incoming requests will be dispatched. The corresponding
- * class MUST be annotated with all the necessary Web service
- * annotations.
- * @return The newly created endpoint.
- */
- public abstract Endpoint createAndPublishEndpoint(String address, Object implementor);
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ProviderLoader.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/ProviderLoader.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ProviderLoader.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,205 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.spi;
-
-// $Id$
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.security.AccessController;
-import java.security.PrivilegedAction;
-import java.util.Properties;
-
-/**
- * Load the provider using the following algorithm.
- *
- * 1. If a resource with the name of META-INF/services/javax.xml.ws.spi.Provider exists, then
- * its first line, if present, is used as the UTF-8 encoded name of the implementation class.
- *
- * 2. If the ${java.home}/lib/jaxws.properties file exists and it is readable by the
- * java.util.Properties.load(InputStream) method and it contains an entry whose key is
- * javax.xml.ws.spi.Provider, then the value of that entry is used as the name of the implementation class.
- *
- * 3. If a system property with the name javax.xml.ws.spi.Provider is defined, then its value is used
- * as the name of the implementation class.
- *
- * 4. Finally, a default implementation class name is used.
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 03-May-2006
- */
-abstract class ProviderLoader
-{
- /**
- * This method uses the algirithm described above.
- *
- * 1. If a resource with the name of META-INF/services/javax.xml.ws.spi.Provider exists, then
- * its first line, if present, is used as the UTF-8 encoded name of the implementation class.
- *
- * 2. If the ${java.home}/lib/jaxws.properties file exists and it is readable by the
- * java.util.Properties.load(InputStream) method and it contains an entry whose key is
- * javax.xml.ws.spi.Provider, then the value of that entry is used as the name of the implementation class.
- *
- * 3. If a system property with the name javax.xml.ws.spi.Provider is defined, then its value is used
- * as the name of the implementation class.
- *
- * 4. Finally, a default implementation class name is used.
- */
- public static Provider loadProvider(String defaultFactory)
- {
- Object factory = null;
- String factoryName = null;
- ClassLoader loader = Thread.currentThread().getContextClassLoader();
-
- // Use the Services API (as detailed in the JAR specification), if available, to determine the classname.
- String propertyName = Provider.JAXWSPROVIDER_PROPERTY;
- String filename = "META-INF/services/" + propertyName;
- InputStream inStream = loader.getResourceAsStream(filename);
- if (inStream != null)
- {
- try
- {
- BufferedReader br = new BufferedReader(new InputStreamReader(inStream, "UTF-8"));
- factoryName = br.readLine();
- br.close();
- if (factoryName != null)
- {
- Class factoryClass = loader.loadClass(factoryName);
- factory = factoryClass.newInstance();
- }
- }
- catch (Throwable t)
- {
- throw new IllegalStateException("Failed to load " + propertyName + ": " + factoryName, t);
- }
- }
-
- // Use the properties file "lib/jaxws.properties" in the JRE directory.
- // This configuration file is in standard java.util.Properties format and contains the fully qualified name of the implementation class with the key being the system property defined above.
- if (factory == null)
- {
- PrivilegedAction action = new PropertyAccessAction("java.home");
- String javaHome = (String)AccessController.doPrivileged(action);
- File jaxmFile = new File(javaHome + "/lib/jaxws.properties");
- if (jaxmFile.exists())
- {
- try
- {
- action = new PropertyFileAccessAction(jaxmFile.getCanonicalPath());
- Properties jaxmProperties = (Properties)AccessController.doPrivileged(action);
- factoryName = jaxmProperties.getProperty(propertyName);
- if (factoryName != null)
- {
- //if(log.isDebugEnabled()) log.debug("Load from " + jaxmFile + ": " + factoryName);
- Class factoryClass = loader.loadClass(factoryName);
- factory = factoryClass.newInstance();
- }
- }
- catch (Throwable t)
- {
- throw new IllegalStateException("Failed to load " + propertyName + ": " + factoryName, t);
- }
- }
- }
-
- // Use system property
- if (factory == null)
- {
- PrivilegedAction action = new PropertyAccessAction(propertyName);
- factoryName = (String)AccessController.doPrivileged(action);
- if (factoryName != null)
- {
- try
- {
- //if(log.isDebugEnabled()) log.debug("Load from system property: " + factoryName);
- Class factoryClass = loader.loadClass(factoryName);
- factory = factoryClass.newInstance();
- }
- catch (Throwable t)
- {
- throw new IllegalStateException("Failed to load " + propertyName + ": " + factoryName, t);
- }
- }
- }
-
- // Use the default factory implementation class.
- if (factory == null && defaultFactory != null)
- {
- try
- {
- //if(log.isDebugEnabled()) log.debug("Load from default: " + factoryName);
- Class factoryClass = loader.loadClass(defaultFactory);
- factory = factoryClass.newInstance();
- }
- catch (Throwable t)
- {
- throw new IllegalStateException("Failed to load: " + defaultFactory, t);
- }
- }
-
- return (Provider)factory;
- }
-
- private static class PropertyAccessAction implements PrivilegedAction
- {
- private String name;
-
- PropertyAccessAction(String name)
- {
- this.name = name;
- }
-
- public Object run()
- {
- return System.getProperty(name);
- }
- }
-
- private static class PropertyFileAccessAction implements PrivilegedAction
- {
- private String filename;
-
- PropertyFileAccessAction(String filename)
- {
- this.filename = filename;
- }
-
- public Object run()
- {
- try
- {
- InputStream inStream = new FileInputStream(filename);
- Properties props = new Properties();
- props.load(inStream);
- return props;
- }
- catch (IOException ex)
- {
- throw new SecurityException("Cannot load properties: " + filename, ex);
- }
- }
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ServiceDelegate.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/ServiceDelegate.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ServiceDelegate.java 2008-04-30 17:07:52 UTC (rev 6799)
@@ -1,250 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.spi;
-
-// $Id$
-
-import java.util.Iterator;
-
-import javax.xml.bind.JAXBContext;
-import javax.xml.namespace.QName;
-import javax.xml.ws.Dispatch;
-import javax.xml.ws.Service;
-import javax.xml.ws.WebServiceException;
-import javax.xml.ws.handler.HandlerResolver;
-
-/**
- * Service delegates are used internally by <code>Service</code> objects
- * to allow pluggability of JAX-WS implementations.
- * <p>
- * Every <code>Service</code> object has its own delegate, created using
- * the javax.xml.ws.Provider#createServiceDelegate method. A <code>Service</code>
- * object delegates all of its instance methods to its delegate.
- *
- * @see javax.xml.ws.Service
- * @see javax.xml.ws.spi.Provider
- *
- * @since JAX-WS 2.0
- */
-public abstract class ServiceDelegate
-{
- protected ServiceDelegate()
- {
- }
-
- /**
- * The getPort method returns a proxy. A service client
- * uses this proxy to invoke operations on the target
- * service endpoint. The <code>serviceEndpointInterface</code>
- * specifies the service endpoint interface that is supported by
- * the created dynamic proxy instance.
- *
- * @param portName Qualified name of the service endpoint in
- * the WSDL service description
- * @param serviceEndpointInterface Service endpoint interface
- * supported by the dynamic proxy
- * @return Object Proxy instance that
- * supports the specified service endpoint
- * interface
- * @throws WebServiceException This exception is thrown in the
- * following cases:
- * <UL>
- * <LI>If there is an error in creation of
- * the proxy
- * <LI>If there is any missing WSDL metadata
- * as required by this method
- * <LI>If an illegal
- * <code>serviceEndpointInterface</code>
- * or <code>portName</code> is specified
- * </UL>
- * @see java.lang.reflect.Proxy
- * @see java.lang.reflect.InvocationHandler
- **/
- public abstract <T> T getPort(QName portName, Class<T> serviceEndpointInterface);
-
- /**
- * The getPort method returns a proxy. The parameter
- * <code>serviceEndpointInterface</code> specifies the service
- * endpoint interface that is supported by the returned proxy.
- * In the implementation of this method, the JAX-WS
- * runtime system takes the responsibility of selecting a protocol
- * binding (and a port) and configuring the proxy accordingly.
- * The returned proxy should not be reconfigured by the client.
- *
- * @param serviceEndpointInterface Service endpoint interface
- * @return Object instance that supports the
- * specified service endpoint interface
- * @throws WebServiceException
- * <UL>
- * <LI>If there is an error during creation
- * of the proxy
- * <LI>If there is any missing WSDL metadata
- * as required by this method
- * <LI>If an illegal
- * <code>serviceEndpointInterface</code>
- * is specified
- * </UL>
- **/
- public abstract <T> T getPort(Class<T> serviceEndpointInterface);
-
- /**
- * Creates a new port for the service. Ports created in this way contain
- * no WSDL port type information and can only be used for creating
- * <code>Dispatch</code>instances.
- *
- * @param portName Qualified name for the target service endpoint
- * @param bindingId A URI identifier of a binding.
- * @param endpointAddress Address of the target service endpoint as a URI
- * @throws WebServiceException If any error in the creation of
- * the port
- *
- * @see javax.xml.ws.soap.SOAPBinding#SOAP11HTTP_BINDING
- * @see javax.xml.ws.soap.SOAPBinding#SOAP12HTTP_BINDING
- * @see javax.xml.ws.http.HTTPBinding#HTTP_BINDING
- **/
- public abstract void addPort(QName portName, String bindingId, String endpointAddress);
-
- /**
- * Creates a <code>Dispatch</code> instance for use with objects of
- * the users choosing.
- *
- * @param portName Qualified name for the target service endpoint
- * @param type The class of object used for messages or message
- * payloads. Implementations are required to support
- * javax.xml.transform.Source and javax.xml.soap.SOAPMessage.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body. Mode MUST be MESSAGE
- * when type is SOAPMessage.
- *
- * @return Dispatch instance
- * @throws WebServiceException If any error in the creation of
- * the <code>Dispatch</code> object
- * @see javax.xml.transform.Source
- * @see javax.xml.soap.SOAPMessage
- **/
- public abstract <T> Dispatch<T> createDispatch(QName portName, Class<T> type, Service.Mode mode);
-
- /**
- * Creates a <code>Dispatch</code> instance for use with JAXB
- * generated objects.
- *
- * @param portName Qualified name for the target service endpoint
- * @param context The JAXB context used to marshall and unmarshall
- * messages or message payloads.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body.
- *
- * @return Dispatch instance
- * @throws ServiceException If any error in the creation of
- * the <code>Dispatch</code> object
- *
- * @see javax.xml.bind.JAXBContext
- **/
- public abstract Dispatch<Object> createDispatch(QName portName, JAXBContext context, Service.Mode mode);
-
- /**
- * Gets the name of this service.
- * @return Qualified name of this service
- **/
- public abstract QName getServiceName();
-
- /**
- * Returns an <code>Iterator</code> for the list of
- * <code>QName</code>s of service endpoints grouped by this
- * service
- *
- * @return Returns <code>java.util.Iterator</code> with elements
- * of type <code>javax.xml.namespace.QName</code>
- * @throws WebServiceException If this Service class does not
- * have access to the required WSDL metadata
- **/
- public abstract Iterator<javax.xml.namespace.QName> getPorts();
-
- /**
- * Gets the location of the WSDL document for this Service.
- *
- * @return URL for the location of the WSDL document for
- * this service
- **/
- public abstract java.net.URL getWSDLDocumentLocation();
-
- /**
- * Returns the configured handler resolver.
- *
- * @return HandlerResolver The <code>HandlerResolver</code> being
- * used by this <code>Service</code> instance, or <code>null</code>
- * if there isn't one.
- **/
- public abstract HandlerResolver getHandlerResolver();
-
- /**
- * Sets the <code>HandlerResolver</code> for this <code>Service</code>
- * instance.
- * <p>
- * The handler resolver, if present, will be called once for each
- * proxy or dispatch instance that is created, and the handler chain
- * returned by the resolver will be set on the instance.
- *
- * @param handlerResolver The <code>HandlerResolver</code> to use
- * for all subsequently created proxy/dispatch objects.
- *
- * @see javax.xml.ws.handler.HandlerResolver
- **/
- public abstract void setHandlerResolver(HandlerResolver handlerResolver);
-
- /**
- * Returns the executor for this <code>Service</code>instance.
- *
- * The executor is used for all asynchronous invocations that
- * require callbacks.
- *
- * @return The <code>java.util.concurrent.Executor</code> to be
- * used to invoke a callback.
- *
- * @see java.util.concurrent.Executor
- **/
- public abstract java.util.concurrent.Executor getExecutor();
-
- /**
- * Sets the executor for this <code>Service</code> instance.
- *
- * The executor is used for all asynchronous invocations that
- * require callbacks.
- *
- * @param executor The <code>java.util.concurrent.Executor</code>
- * to be used to invoke a callback.
- *
- * @throws SecurityException If the instance does not support
- * setting an executor for security reasons (e.g. the
- * necessary permissions are missing).
- *
- * @see java.util.concurrent.Executor
- **/
- public abstract void setExecutor(java.util.concurrent.Executor executor);
-
-}
16 years, 8 months
JBossWS SVN: r6798 - in stack/native/branches/tdiesler/trunk/modules/jaxws-impl: modules and 10 other directories.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-30 13:07:14 -0400 (Wed, 30 Apr 2008)
New Revision: 6798
Added:
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/pom.xml
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/
Removed:
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/jws/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/AsyncHandler.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Binding.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingProvider.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingType.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Dispatch.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Endpoint.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Holder.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/LogicalMessage.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ProtocolException.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Provider.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/RequestWrapper.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Response.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ResponseWrapper.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Service.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ServiceMode.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebEndpoint.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebFault.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceClient.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceContext.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceException.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServicePermission.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceProvider.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRef.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRefs.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/Handler.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/HandlerResolver.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalHandler.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalMessageContext.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/MessageContext.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/PortInfo.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/soap/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/http/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPBinding.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPFaultException.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/Provider.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ProviderLoader.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ServiceDelegate.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Action.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Binding21.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Endpoint21.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/EndpointReference.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/FaultAction.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/RespectBinding.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/RespectBindingFeature.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Service21.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceContext21.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceFeature.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/addressing/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/MessageContext21.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/Addressing.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/AddressingFeature.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/MTOM.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/MTOMFeature.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/Provider21.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/ServiceDelegate21.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/WebServiceFeatureAnnotation.java
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/wsaddressing/
Log:
Copied: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/pom.xml (from rev 6796, stack/native/branches/tdiesler/trunk/modules/jaxws-impl/pom.xml)
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/pom.xml (rev 0)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/pom.xml 2008-04-30 17:07:14 UTC (rev 6798)
@@ -0,0 +1,29 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <name>JBoss Web Services - Stack Native JAX-WS</name>
+ <artifactId>jbossws-native-jaxws</artifactId>
+ <packaging>jar</packaging>
+
+ <!-- Parent -->
+ <parent>
+ <groupId>org.jboss.ws</groupId>
+ <artifactId>jbossws-native</artifactId>
+ <version>3.0.2-SNAPSHOT</version>
+ </parent>
+
+ <!-- Dependencies -->
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.ws</groupId>
+ <artifactId>jbossws-native-saaj</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jaxb-api</artifactId>
+ </dependency>
+ </dependencies>
+
+</project>
Copied: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src (from rev 6796, stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src)
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/AsyncHandler.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/AsyncHandler.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/AsyncHandler.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,41 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/** The <code>AsyncHandler</code> interface is implemented by
- * clients that wish to receive callback notification of the completion of
- * service endpoint operations invoked asynchronously.
- *
- * @since JAX-WS 2.0
- **/
-public interface AsyncHandler<T>
-{
-
- /** Called when the response to an asynchronous operation is available.
- *
- * @param res The response to the operation invocation.
- *
- **/
- void handleResponse(Response<T> res);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Binding.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Binding.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Binding.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,56 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-
-/** The <code>Binding</code> interface is the base interface
- * for JAX-WS protocol bindings.
- *
- * @since JAX-WS 2.0
- **/
-public interface Binding
-{
-
- /**
- * Gets a copy of the handler chain for a protocol binding instance.
- * If the returned chain is modified a call to <code>setHandlerChain</code>
- * is required to configure the binding instance with the new chain.
- *
- * @return java.util.List<javax.xml.ws.handler.HandlerInfo> Handler chain
- */
- public java.util.List<javax.xml.ws.handler.Handler> getHandlerChain();
-
- /**
- * Sets the handler chain for the protocol binding instance.
- *
- * @param chain A List of handler configuration entries
- * @throws WebServiceException On an error in the configuration of
- * the handler chain
- * @throws java.lang.UnsupportedOperationException If this
- * operation is not supported. This may be done to
- * avoid any overriding of a pre-configured handler
- * chain.
- */
- public void setHandlerChain(java.util.List<javax.xml.ws.handler.Handler> chain);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingProvider.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/BindingProvider.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingProvider.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,109 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.util.Map;
-
-/** The <code>BindingProvider</code> interface provides access to the
- * protocol binding and associated context objects for request and
- * response message processing.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.xml.ws.Binding
- **/
-public interface BindingProvider
-{
- /** Standard property: User name for authentication.
- * <p>Type: java.lang.String
- **/
- public static final String USERNAME_PROPERTY = "javax.xml.ws.security.auth.username";
-
- /** Standard property: Password for authentication.
- * <p>Type: java.lang.String
- **/
- public static final String PASSWORD_PROPERTY = "javax.xml.ws.security.auth.password";
-
- /** Standard property: Target service endpoint address. The
- * URI scheme for the endpoint address specification MUST
- * correspond to the protocol/transport binding for the
- * binding in use.
- * <p>Type: java.lang.String
- **/
- public static final String ENDPOINT_ADDRESS_PROPERTY = "javax.xml.ws.service.endpoint.address";
-
- /** Standard property: This boolean property is used by a service
- * client to indicate whether or not it wants to participate in
- * a session with a service endpoint. If this property is set to
- * true, the service client indicates that it wants the session
- * to be maintained. If set to false, the session is not maintained.
- * The default value for this property is false.
- * <p>Type: java.lang.Boolean
- **/
- public static final String SESSION_MAINTAIN_PROPERTY = "javax.xml.ws.session.maintain";
-
- /** Standard property for SOAPAction. This boolean property
- * indicates whether or not SOAPAction is to be used. The
- * default value of this property is false indicating that
- * the SOAPAction is not used.
- * <p>Type: <code>java.lang.Boolean</code>
- **/
- public static final String SOAPACTION_USE_PROPERTY = "javax.xml.ws.soap.http.soapaction.use";
-
- /** Standard property for SOAPAction. Indicates the SOAPAction
- * URI if the <code>javax.xml.ws.soap.http.soapaction.use</code>
- * property is set to <code>true</code>.
- * <p>Type: <code>java.lang.String</code>
- **/
- public static final String SOAPACTION_URI_PROPERTY = "javax.xml.ws.soap.http.soapaction.uri";
-
- /** Get the context that is used to initialize the message context
- * for request messages.
- *
- * Modifications to the request context do not affect the message context of
- * either synchronous or asynchronous operations that have already been
- * started.
- *
- * @return The context that is used in processing request messages.
- **/
- Map<String, Object> getRequestContext();
-
- /** Get the context that resulted from processing a response message.
- *
- * The returned context is for the most recently completed synchronous
- * operation. Subsequent synchronous operation invocations overwrite the
- * response context. Asynchronous operations return their response context
- * via the Response interface.
- *
- * @return The context that resulted from processing the latest
- * response messages.
- **/
- Map<String, Object> getResponseContext();
-
- /** Get the Binding for this binding provider.
- *
- * @return The Binding for this binding provider.
- **/
- Binding getBinding();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingType.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/BindingType.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/BindingType.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,59 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * The <code>BindingType</code> annotation is used to
- * specify the binding to use for a web service
- * endpoint implementation class. As well as specify
- * additional features that may be enabled.
- *
- * @since JAX-WS 2.0
- *
- **/
-
-(a)Target(ElementType.TYPE)
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface BindingType {
- /**
- * A binding identifier (a URI).
- * If not specified, the default is the SOAP 1.1 / HTTP binding.
- * <p>
- * See the <code>SOAPBinding</code> and <code>HTTPBinding</code>
- * for the definition of the standard binding identifiers.
- *
- * @see javax.xml.ws.Binding
- * @see javax.xml.ws.soap.SOAPBinding#SOAP11HTTP_BINDING
- * @see javax.xml.ws.soap.SOAPBinding#SOAP12HTTP_BINDING
- * @see javax.xml.ws.http.HTTPBinding#HTTP_BINDING
- */
- String value() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Dispatch.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Dispatch.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Dispatch.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,115 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.util.concurrent.Future;
-
-/** The <code>Dispatch</code> interface provides support
- * for the dynamic invocation of a service endpoint operations. The
- * <code>javax.xml.ws.Service</code>
- * interface acts as a factory for the creation of <code>Dispatch</code>
- * instances.
- *
- * @since JAX-WS 2.0
- **/
-public interface Dispatch<T> extends BindingProvider
-{
-
- /** Invoke a service operation synchronously.
- *
- * The client is responsible for ensuring that the <code>msg</code> object
- * when marshalled is formed according to the requirements of the protocol
- * binding in use.
- *
- * @param msg An object that will form the message or payload of
- * the message used to invoke the operation.
- * @return The response message or message payload to the
- * operation invocation.
- * @throws WebServiceException If a fault occurs during communication with
- * the service
- * @throws WebServiceException If there is any error in the configuration of
- * the <code>Dispatch</code> instance
- **/
- public T invoke(T msg);
-
- /** Invoke a service operation asynchronously. The
- * method returns without waiting for the response to the operation
- * invocation, the results of the operation are obtained by polling the
- * returned <code>Response</code>.
- *
- * The client is responsible for ensuring that the <code>msg</code> object
- * when marshalled is formed according to the requirements of the protocol
- * binding in use.
- *
- * @param msg An object that will form the message or payload of
- * the message used to invoke the operation.
- * @return The response message or message payload to the
- * operation invocation.
- * @throws WebServiceException If there is any error in the configuration of
- * the <code>Dispatch</code> instance
- **/
- public Response<T> invokeAsync(T msg);
-
- /** Invoke a service operation asynchronously. The
- * method returns without waiting for the response to the operation
- * invocation, the results of the operation are communicated to the client
- * via the passed in handler.
- *
- * The client is responsible for ensuring that the <code>msg</code> object
- * when marshalled is formed according to the requirements of the protocol
- * binding in use.
- *
- * @param msg An object that will form the message or payload of
- * the message used to invoke the operation.
- * @param handler The handler object that will receive the
- * response to the operation invocation.
- * @return A <code>Future</code> object that may be used to check the status
- * of the operation invocation. This object MUST NOT be used to try to
- * obtain the results of the operation - the object returned from
- * <code>Future<?>.get()</code> is implementation dependent
- * and any use of it will result in non-portable behaviour.
- * @throws WebServiceException If there is any error in the configuration of
- * the <code>Dispatch</code> instance
- **/
- public Future<?> invokeAsync(T msg, AsyncHandler<T> handler);
-
- /** Invokes a service operation using the one-way
- * interaction mode. The operation invocation is logically non-blocking,
- * subject to the capabilities of the underlying protocol, no results
- * are returned. When
- * the protocol in use is SOAP/HTTP, this method MUST block until
- * an HTTP response code has been received or an error occurs.
- *
- * The client is responsible for ensuring that the <code>msg</code> object
- * when marshalled is formed according to the requirements of the protocol
- * binding in use.
- *
- * @param msg An object that will form the message or payload of
- * the message used to invoke the operation.
- * @throws WebServiceException If there is any error in the configuration of
- * the <code>Dispatch</code> instance or if an error occurs during the
- * invocation.
- **/
- public void invokeOneWay(T msg);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Endpoint.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Endpoint.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Endpoint.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,297 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import javax.xml.ws.soap.SOAPBinding;
-import javax.xml.ws.spi.Provider;
-import java.util.List;
-import java.util.Map;
-
-/**
- * A Web service endpoint.
- *
- * <p>Endpoints are created using the static methods defined in this
- * class. An endpoint is always tied to one <code>Binding</code>
- * and one implementor, both set at endpoint creation time.
- *
- * <p>An endpoint is either in a published or an unpublished state.
- * The <code>publish</code> methods can be used to start publishing
- * an endpoint, at which point it starts accepting incoming requests.
- * Conversely, the <code>stop</code> method can be used to stop
- * accepting incoming requests and take the endpoint down.
- * Once stopped, an endpoint cannot be published again.
- *
- * <p>An <code>Executor</code> may be set on the endpoint in order
- * to gain better control over the threads used to dispatch incoming
- * requests. For instance, thread pooling with certain parameters
- * can be enabled by creating a <code>ThreadPoolExecutor</code> and
- * registering it with the endpoint.
- *
- * <p>Handler chains can be set using the contained <code>Binding</code>.
- *
- * <p>An endpoint may have a list of metadata documents, such as WSDL
- * and XMLSchema documents, bound to it. At publishing time, the
- * JAX-WS implementation will try to reuse as much of that metadata
- * as possible instead of generating new one based on the annotations
- * present on the implementor.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.xml.ws.Binding
- * @see javax.xml.ws.BindingType
- * @see javax.xml.ws.soap.SOAPBinding
- * @see java.util.concurrent.Executor
- *
- **/
-public abstract class Endpoint
-{
-
- /** Standard property: name of WSDL service.
- * <p>Type: javax.xml.namespace.QName
- **/
- public static final String WSDL_SERVICE = "javax.xml.ws.wsdl.service";
-
- /** Standard property: name of WSDL port.
- * <p>Type: javax.xml.namespace.QName
- **/
- public static final String WSDL_PORT = "javax.xml.ws.wsdl.port";
-
- /**
- * Creates an endpoint with the specified implementor object. If there is
- * a binding specified via a BindingType annotation then it MUST be used else
- * a default of SOAP 1.1 / HTTP binding MUST be used.
- * <p>
- * The newly created endpoint may be published by calling
- * one of the javax.xml.ws.Endpoint#publish(String) and
- * javax.xml.ws.Endpoint#publish(Object) methods.
- *
- *
- * @param implementor The endpoint implementor.
- *
- * @return The newly created endpoint.
- *
- **/
- public static Endpoint create(Object implementor)
- {
- if (implementor == null)
- throw new IllegalArgumentException("Implementor cannot be null");
-
- String bindingId = SOAPBinding.SOAP11HTTP_BINDING;
- BindingType anBindingType = implementor.getClass().getAnnotation(BindingType.class);
- if (anBindingType != null)
- bindingId = anBindingType.value();
-
- return create(bindingId, implementor);
- }
-
- /**
- * Creates an endpoint with the specified binding type and
- * implementor object.
- * <p>
- * The newly created endpoint may be published by calling
- * one of the javax.xml.ws.Endpoint#publish(String) and
- * javax.xml.ws.Endpoint#publish(Object) methods.
- *
- * @param bindingId A URI specifying the binding to use. If the bindingID is
- * <code>null</code> and no binding is specified via a BindingType
- * annotation then a default SOAP 1.1 / HTTP binding MUST be used.
- *
- * @param implementor The endpoint implementor.
- *
- * @return The newly created endpoint.
- *
- **/
- public static Endpoint create(String bindingId, Object implementor)
- {
- return Provider.provider().createEndpoint(bindingId, implementor);
- }
-
- /**
- * Returns the binding for this endpoint.
- *
- * @return The binding for this endpoint
- **/
- public abstract Binding getBinding();
-
- /**
- * Returns the implementation object for this endpoint.
- *
- * @return The implementor for this endpoint
- **/
- public abstract Object getImplementor();
-
- /**
- * Publishes this endpoint at the given address.
- * The necessary server infrastructure will be created and
- * configured by the JAX-WS implementation using some default configuration.
- * In order to get more control over the server configuration, please
- * use the javax.xml.ws.Endpoint#publish(Object) method instead.
- *
- * @param address A URI specifying the address to use. The address
- * MUST be compatible with the binding specified at the
- * time the endpoint was created.
- *
- * @throws java.lang.IllegalArgumentException
- * If the provided address URI is not usable
- * in conjunction with the endpoint's binding.
- *
- * @throws java.lang.IllegalStateException
- * If the endpoint has been published already or it has been stopped.
- **/
- public abstract void publish(String address);
-
- /**
- * Creates and publishes an endpoint for the specified implementor
- * object at the given address.
- * <p>
- * The necessary server infrastructure will be created and
- * configured by the JAX-WS implementation using some default configuration.
- *
- * In order to get more control over the server configuration, please
- * use the javax.xml.ws.Endpoint#create(String,Object) and
- * javax.xml.ws.Endpoint#publish(Object) method instead.
- *
- * @param address A URI specifying the address and transport/protocol
- * to use. A http: URI MUST result in the SOAP 1.1/HTTP
- * binding being used. Implementations may support other
- * URI schemes.
- * @param implementor The endpoint implementor.
- *
- * @return The newly created endpoint.
- *
- **/
- public static Endpoint publish(String address, Object implementor)
- {
- return Provider.provider().createAndPublishEndpoint(address, implementor);
- }
-
- /**
- * Publishes this endpoint at the provided server context.
- * A server context encapsulates the server infrastructure
- * and addressing information for a particular transport.
- * For a call to this method to succeed, the server context
- * passed as an argument to it MUST be compatible with the
- * endpoint's binding.
- *
- * @param serverContext An object representing a server
- * context to be used for publishing the endpoint.
- *
- * @throws java.lang.IllegalArgumentException
- * If the provided server context is not
- * supported by the implementation or turns
- * out to be unusable in conjunction with the
- * endpoint's binding.
- *
- * @throws java.lang.IllegalStateException
- * If the endpoint has been published already or it has been stopped.
- **/
- public abstract void publish(Object serverContext);
-
- /**
- * Stops publishing this endpoint.
- *
- * If the endpoint is not in a published state, this method
- * has not effect.
- *
- **/
- public abstract void stop();
-
- /**
- * Returns true if the endpoint is in the published state.
- *
- * @return <code>true</code> if the endpoint is in the published state.
- **/
- public abstract boolean isPublished();
-
- /**
- * Returns a list of metadata documents for the service.
- *
- * @return <code>List<javax.xml.transform.Source></code> A list of metadata documents for the service
- **/
- public abstract List<javax.xml.transform.Source> getMetadata();
-
- /**
- * Sets the metadata for this endpoint.
- *
- * @param metadata A list of XML document sources containing
- * metadata information for the endpoint (e.g.
- * WSDL or XML Schema documents)
- *
- * @throws java.lang.IllegalStateException If the endpoint
- * has already been published.
- **/
- public abstract void setMetadata(List<javax.xml.transform.Source> metadata);
-
- /**
- * Returns the executor for this <code>Endpoint</code>instance.
- *
- * The executor is used to dispatch an incoming request to
- * the implementor object.
- *
- * @return The <code>java.util.concurrent.Executor</code> to be
- * used to dispatch a request.
- *
- * @see java.util.concurrent.Executor
- **/
- public abstract java.util.concurrent.Executor getExecutor();
-
- /**
- * Sets the executor for this <code>Endpoint</code> instance.
- *
- * The executor is used to dispatch an incoming request to
- * the implementor object.
- *
- * If this <code>Endpoint</code> is published using the
- * <code>publish(Object)</code> method and the specified server
- * context defines its own threading behavior, the executor
- * may be ignored.
- *
- * @param executor The <code>java.util.concurrent.Executor</code>
- * to be used to dispatch a request.
- *
- * @throws SecurityException If the instance does not support
- * setting an executor for security reasons (e.g. the
- * necessary permissions are missing).
- *
- * @see java.util.concurrent.Executor
- **/
- public abstract void setExecutor(java.util.concurrent.Executor executor);
-
- /**
- * Returns the property bag for this <code>Endpoint</code> instance.
- *
- * @return Map<String,Object> The property bag
- * associated with this instance.
- **/
- public abstract Map<String, Object> getProperties();
-
- /**
- * Sets the property bag for this <code>Endpoint</code> instance.
- *
- * @param properties The property bag associated with
- * this instance.
- **/
- public abstract void setProperties(Map<String, Object> properties);
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Holder.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Holder.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Holder.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,55 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/**
- * Holds a value of type <code>T</code>.
- *
- * @since JAX-WS 2.0
- **/
-public final class Holder<T>
-{
-
- /**
- * The value contained in the holder.
- **/
- public T value;
-
- /**
- * Creates a new holder with a <code>null</code> value.
- **/
- public Holder()
- {
- }
-
- /**
- * Create a new holder with the specified value.
- *
- * @param value The value to be stored in the holder.
- **/
- public Holder(T value)
- {
- this.value = value;
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/LogicalMessage.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/LogicalMessage.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/LogicalMessage.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,90 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import javax.xml.bind.JAXBContext;
-import javax.xml.transform.Source;
-
-/** The <code>LogicalMessage</code> interface represents a
- * protocol agnostic XML message and contains methods that
- * provide access to the payload of the message.
- *
- * @since JAX-WS 2.0
- **/
-public interface LogicalMessage
-{
-
- /** Gets the message payload as an XML source, may be called
- * multiple times on the same LogicalMessage instance, always
- * returns a new Source that may be used to retrieve the entire
- * message payload.
- *
- * <p>If the returned Source is an instance of DOMSource, then
- * modifications to the encapsulated DOM tree change the message
- * payload in-place, there is no need to susequently call
- * <code>setPayload</code>. Other types of Source provide only
- * read access to the message payload.
- *
- * @return The contained message payload; returns null if no
- * payload is present in this message.
- **/
- public Source getPayload();
-
- /** Sets the message payload
- *
- * @param payload message payload
- * @throws WebServiceException If any error during the setting
- * of the payload in this message
- * @throws java.lang.UnsupportedOperationException If this
- * operation is not supported
- **/
- public void setPayload(Source payload);
-
- /** Gets the message payload as a JAXB object. Note that there is no
- * connection between the returned object and the message payload,
- * changes to the payload require calling <code>setPayload</code>.
- *
- * @param context The JAXBContext that should be used to unmarshall
- * the message payload
- * @return The contained message payload; returns null if no
- * payload is present in this message
- * @throws WebServiceException If an error occurs when using a supplied
- * JAXBContext to unmarshall the payload. The cause of
- * the WebServiceException is the original JAXBException.
- **/
- public Object getPayload(JAXBContext context);
-
- /** Sets the message payload
- *
- * @param payload message payload
- * @param context The JAXBContext that should be used to marshall
- * the payload
- * @throws java.lang.UnsupportedOperationException If this
- * operation is not supported
- * @throws WebServiceException If an error occurs when using the supplied
- * JAXBContext to marshall the payload. The cause of
- * the WebServiceException is the original JAXBException.
- **/
- public void setPayload(Object payload, JAXBContext context);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ProtocolException.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/ProtocolException.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ProtocolException.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,93 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/** The <code>ProtocolException</code> class is a
- * base class for exceptions related to a specific protocol binding. Subclasses
- * are used to communicate protocol level fault information to clients and may
- * be used on the server to control the protocol specific fault representation.
- *
- * @since JAX-WS 2.0
- **/
-public class ProtocolException extends WebServiceException
-{
- private static final long serialVersionUID = 6688436881502883481L;
-
- /**
- * Constructs a new protocol exception with null as its detail message. The
- * cause is not initialized, and may subsequently be initialized by a call
- * to Throwable.initCause(java.lang.Throwable).
- */
- public ProtocolException()
- {
- super();
- }
-
- /**
- * Constructs a new protocol exception with the specified detail message.
- * The cause is not initialized, and may subsequently be initialized by a
- * call to Throwable.initCause(java.lang.Throwable).
- *
- * @param message the detail message. The detail message is saved for later
- * retrieval by the Throwable.getMessage() method.
- */
- public ProtocolException(String message)
- {
- super(message);
- }
-
- /**
- * Constructs a new runtime exception with the specified detail message and
- * cause.
- *
- * Note that the detail message associated with cause is not automatically
- * incorporated in this runtime exception's detail message.
- *
- * @param message the detail message (which is saved for later retrieval by
- * the Throwable.getMessage() method).
- * @param cause the cause (which is saved for later retrieval by the
- * Throwable.getCause() method). (A null value is permitted, and indicates
- * that the cause is nonexistent or unknown.)
- */
- public ProtocolException(String message, Throwable cause)
- {
- super(message, cause);
- }
-
- /**
- * Constructs a new runtime exception with the specified cause and a detail
- * message of (cause==null ? null : cause.toString()) (which typically
- * contains the class and detail message of cause). This constructor is
- * useful for runtime exceptions that are little more than wrappers for
- * other throwables.
- *
- * @param cause the cause (which is saved for later retrieval by the
- * Throwable.getCause() method). (A null value is permitted, and indicates
- * that the cause is nonexistent or unknown.)
- */
- public ProtocolException(Throwable cause)
- {
- super(cause);
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Provider.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Provider.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Provider.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,62 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/**
- * <p>Service endpoints may implement the <code>Provider</code>
- * interface as a dynamic alternative to an SEI.
- *
- * <p>Implementations are required to support <code>Provider<Source></code>,
- * <code>Provider<SOAPMessage></code> and
- * <code>Provider<DataSource></code>, depending on the binding
- * in use and the service mode.
- *
- * <p>The <code>ServiceMode</code> annotation can be used to control whether
- * the <code>Provider</code> instance will receive entire protocol messages
- * or just message payloads.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.xml.transform.Source
- * @see javax.xml.soap.SOAPMessage
- * @see javax.xml.ws.ServiceMode
- **/
-public interface Provider<T>
-{
-
- /** Invokes an operation occording to the contents of the request
- * message.
- *
- * @param request The request message or message payload.
- * @return The response message or message payload. May be null if
- there is no response.
- * @throws WebServiceException If there is an error processing request.
- * The cause of the WebServiceException may be set to a subclass
- * of ProtocolException to control the protocol level
- * representation of the exception.
- * @see javax.xml.ws.handler.MessageContext
- * @see javax.xml.ws.ProtocolException
- **/
- public T invoke(T request);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/RequestWrapper.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/RequestWrapper.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/RequestWrapper.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,64 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
-
- * Used to annotate methods in the Service Endpoint Interface with the request
- * wrapper bean to be used at runtime. The default value of the localName is
- * the operationName, as defined in WebMethod annotation and the
- * targetNamespace is the target namespace of the SEI.
- * <p> When starting from Java this annotation is used resolve
- * overloading conflicts in document literal mode. Only the className
- * is required in this case.
- *
- * @since JAX-WS 2.0
- **/
-
-(a)Target(ElementType.METHOD)
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface RequestWrapper {
- /**
- * Elements local name.
- **/
- public String localName() default "";
-
- /**
- * Elements namespace name.
- **/
- public String targetNamespace() default "";
-
- /**
- * Request wrapper bean name.
- **/
- public String className() default "";
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Response.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Response.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Response.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,51 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.util.Map;
-import java.util.concurrent.Future;
-
-/** The <code>Response</code> interface provides methods used to obtain the
- * payload and context of a message sent in response to an operation
- * invocation.
- *
- * <p>For asynchronous operation invocations it provides additional methods
- * to check the status of the request. The <code>get(...)</code> methods may
- * throw the standard
- * set of exceptions and their cause may be a RemoteException or a
- * WebServiceException that represents the error that occured during the
- * asynchronous method invocation.</p>
- *
- * @since JAX-WS 2.0
- **/
-public interface Response<T> extends Future<T>
-{
- /** Gets the contained response context.
- *
- * @return The contained response context. May be <code>null</code> if a
- * response is not yet available.
- *
- **/
- Map<String, Object> getContext();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ResponseWrapper.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/ResponseWrapper.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ResponseWrapper.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,73 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to annotate methods in the Service Endpoint Interface with the response
- * wrapper bean to be used at runtime. The default value of the localName is
- * the operationName as defined in WebMethod annotation appended with
- * Response and the targetNamespace is the target namespace of the SEI.
- * <p> When starting from Java this annotation is used resolve
- * overloading conflicts in document literal mode. Only the className
- * is required in this case.
- *
- * @since JAX-WS 2.0
- **/
-
-(a)Target(ElementType.METHOD)
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface ResponseWrapper {
-
- /**
-
- * Elements local name.
-
- **/
-
- public String localName() default "";
-
- /**
-
- * Elements namespace name.
-
- **/
-
- public String targetNamespace() default "";
-
- /**
-
- * Response wrapper bean name.
-
- **/
-
- public String className() default "";
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Service.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Service.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/Service.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,347 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.net.URL;
-import java.util.Iterator;
-
-import javax.xml.bind.JAXBContext;
-import javax.xml.namespace.QName;
-import javax.xml.ws.handler.HandlerResolver;
-import javax.xml.ws.spi.Provider;
-import javax.xml.ws.spi.ServiceDelegate21;
-
-/**
- * <code>Service</code> objects provide the client view of a Web service.
- * <p><code>Service</code> acts as a factory of the following:
- * <ul>
- * <li>Proxies for a target service endpoint.
- * <li>Instances of <code>javax.xml.ws.Dispatch</code> for
- * dynamic message-oriented invocation of a remote
- * operation.
- * </li>
- *
- * <p>The ports available on a service can be enumerated using the
- * <code>getPorts</code> method. Alternatively, you can pass a
- * service endpoint interface to the unary <code>getPort</code> method
- * and let the runtime select a compatible port.
- *
- * <p>Handler chains for all the objects created by a <code>Service</code>
- * can be set by means of a <code>HandlerResolver</code>.
- *
- * <p>An <code>Executor</code> may be set on the service in order
- * to gain better control over the threads used to dispatch asynchronous
- * callbacks. For instance, thread pooling with certain parameters
- * can be enabled by creating a <code>ThreadPoolExecutor</code> and
- * registering it with the service.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.xml.ws.spi.Provider
- * @see javax.xml.ws.handler.HandlerResolver
- * @see java.util.concurrent.Executor
- **/
-public class Service
-{
- ServiceDelegate21 delegate;
-
- /**
- * The orientation of a dynamic client or service. MESSAGE provides
- * access to entire protocol message, PAYLOAD to protocol message
- * payload only.
- **/
- public enum Mode
- {
- MESSAGE, PAYLOAD
- };
-
- protected Service(java.net.URL wsdlDocumentLocation, QName serviceName)
- {
- delegate = (ServiceDelegate21)Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass());
- }
-
- /**
- * Create a <code>Service</code> instance.
- *
- * The specified WSDL document location and service qualified name MUST
- * uniquely identify a <code>wsdl:service</code> element.
- *
- * @param wsdlLocation URL for the WSDL document location
- * for the service
- * @param serviceName QName for the service
- * @throws WebServiceException If any error in creation of the
- * specified service.
- **/
- public static Service create(URL wsdlLocation, QName serviceName)
- {
- return new Service(wsdlLocation, serviceName);
- }
-
- /**
- * Create a <code>Service</code> instance.
- *
- * @param serviceName QName for the service
- * @throws WebServiceException If any error in creation of the
- * specified service
- */
- public static Service create(QName serviceName)
- {
- return create(null, serviceName);
- }
-
- /**
- * The getPort method returns a proxy. A service client
- * uses this proxy to invoke operations on the target
- * service endpoint. The <code>serviceEndpointInterface</code>
- * specifies the service endpoint interface that is supported by
- * the created dynamic proxy instance.
- *
- * @param portName Qualified name of the service endpoint in
- * the WSDL service description.
- * @param serviceEndpointInterface Service endpoint interface
- * supported by the dynamic proxy instance.
- * @return Object Proxy instance that
- * supports the specified service endpoint
- * interface.
- * @throws WebServiceException This exception is thrown in the
- * following cases:
- * <UL>
- * <LI>If there is an error in creation of
- * the proxy.
- * <LI>If there is any missing WSDL metadata
- * as required by this method.
- * <LI>If an illegal
- * <code>serviceEndpointInterface</code>
- * or <code>portName</code> is specified.
- * </UL>
- * @see java.lang.reflect.Proxy
- * @see java.lang.reflect.InvocationHandler
- **/
- public <T> T getPort(QName portName, Class<T> serviceEndpointInterface)
- {
- return delegate.getPort(portName, serviceEndpointInterface);
- }
-
- /**
- * The getPort method returns a proxy. The parameter
- * <code>serviceEndpointInterface</code> specifies the service
- * endpoint interface that is supported by the returned proxy.
- * In the implementation of this method, the JAX-WS
- * runtime system takes the responsibility of selecting a protocol
- * binding (and a port) and configuring the proxy accordingly.
- * The returned proxy should not be reconfigured by the client.
- *
- * @param serviceEndpointInterface Service endpoint interface.
- * @return Object instance that supports the
- * specified service endpoint interface.
- * @throws WebServiceException
- * <UL>
- * <LI>If there is an error during creation
- * of the proxy.
- * <LI>If there is any missing WSDL metadata
- * as required by this method.
- * <LI>If an illegal.
- * <code>serviceEndpointInterface</code>
- * is specified.
- * </UL>
- **/
- public <T> T getPort(Class<T> serviceEndpointInterface)
- {
- return delegate.getPort(serviceEndpointInterface);
- }
-
- /**
- * Creates a new port for the service. Ports created in this way contain
- * no WSDL port type information and can only be used for creating
- * <code>Dispatch</code>instances.
- *
- * @param portName Qualified name for the target service endpoint.
- * @param bindingId A String identifier of a binding.
- * @param endpointAddress Address of the target service endpoint as a URI.
- * @throws WebServiceException If any error in the creation of
- * the port.
- *
- * @see javax.xml.ws.soap.SOAPBinding#SOAP11HTTP_BINDING
- * @see javax.xml.ws.soap.SOAPBinding#SOAP12HTTP_BINDING
- * @see javax.xml.ws.http.HTTPBinding#HTTP_BINDING
- **/
- public void addPort(QName portName, String bindingId, String endpointAddress)
- {
- delegate.addPort(portName, bindingId, endpointAddress);
- }
-
- /**
- * Creates a <code>Dispatch</code> instance for use with objects of
- * the users choosing.
- *
- * @param portName Qualified name for the target service endpoint
- * @param type The class of object used for messages or message
- * payloads. Implementations are required to support
- * <code>javax.xml.transform.Source</code>, <code>javax.xml.soap.SOAPMessage</code>
- * and <code>javax.activation.DataSource</code>, depending on
- * the binding in use.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body. Mode MUST be MESSAGE
- * when type is SOAPMessage.
- *
- * @return Dispatch instance.
- * @throws WebServiceException If any error in the creation of
- * the <code>Dispatch</code> object.
- *
- * @see javax.xml.transform.Source
- * @see javax.xml.soap.SOAPMessage
- **/
- public <T> Dispatch<T> createDispatch(QName portName, Class<T> type, Mode mode)
- {
- return delegate.createDispatch(portName, type, mode);
- }
-
- /**
- * Creates a <code>Dispatch</code> instance for use with JAXB
- * generated objects.
- *
- * @param portName Qualified name for the target service endpoint
- * @param context The JAXB context used to marshall and unmarshall
- * messages or message payloads.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body.
- *
- * @return Dispatch instance.
- * @throws WebServiceException If any error in the creation of
- * the <code>Dispatch</code> object.
- *
- * @see javax.xml.bind.JAXBContext
- **/
- public Dispatch<Object> createDispatch(QName portName, JAXBContext context, Mode mode)
- {
- return delegate.createDispatch(portName, context, mode);
- }
-
- /**
- * Gets the name of this service.
- * @return Qualified name of this service
- **/
- public QName getServiceName()
- {
- return delegate.getServiceName();
- }
-
- /**
- * Returns an <code>Iterator</code> for the list of
- * <code>QName</code>s of service endpoints grouped by this
- * service
- *
- * @return Returns <code>java.util.Iterator</code> with elements
- * of type <code>javax.xml.namespace.QName</code>.
- * @throws WebServiceException If this Service class does not
- * have access to the required WSDL metadata.
- **/
- public Iterator<javax.xml.namespace.QName> getPorts()
- {
- return delegate.getPorts();
- }
-
- /**
- * Gets the location of the WSDL document for this Service.
- *
- * @return URL for the location of the WSDL document for
- * this service.
- **/
- public java.net.URL getWSDLDocumentLocation()
- {
- return delegate.getWSDLDocumentLocation();
- }
-
- /**
- * Returns the configured handler resolver.
- *
- * @return HandlerResolver The <code>HandlerResolver</code> being
- * used by this <code>Service</code> instance, or <code>null</code>
- * if there isn't one.
- **/
- public HandlerResolver getHandlerResolver()
- {
- return delegate.getHandlerResolver();
- }
-
- /**
- * Sets the <code>HandlerResolver</code> for this <code>Service</code>
- * instance.
- * <p>
- * The handler resolver, if present, will be called once for each
- * proxy or dispatch instance that is created, and the handler chain
- * returned by the resolver will be set on the instance.
- *
- * @param handlerResolver The <code>HandlerResolver</code> to use
- * for all subsequently created proxy/dispatch objects.
- *
- * @see javax.xml.ws.handler.HandlerResolver
- **/
- public void setHandlerResolver(HandlerResolver handlerResolver)
- {
- delegate.setHandlerResolver(handlerResolver);
- }
-
- /**
- * Returns the executor for this <code>Service</code>instance.
- *
- * The executor is used for all asynchronous invocations that
- * require callbacks.
- *
- * @return The <code>java.util.concurrent.Executor</code> to be
- * used to invoke a callback.
- *
- * @see java.util.concurrent.Executor
- **/
- public java.util.concurrent.Executor getExecutor()
- {
- return delegate.getExecutor();
- }
-
- /**
- * Sets the executor for this <code>Service</code> instance.
- *
- * The executor is used for all asynchronous invocations that
- * require callbacks.
- *
- * @param executor The <code>java.util.concurrent.Executor</code>
- * to be used to invoke a callback.
- *
- * @throws SecurityException If the instance does not support
- * setting an executor for security reasons (e.g. the
- * necessary permissions are missing).
- *
- * @see java.util.concurrent.Executor
- **/
- public void setExecutor(java.util.concurrent.Executor executor)
- {
- delegate.setExecutor(executor);
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ServiceMode.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/ServiceMode.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/ServiceMode.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,51 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Inherited;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to indicate whether a Provider implementation wishes to work
- * with entire protocol messages or just with protocol message payloads.
- *
- * @since JAX-WS 2.0
- **/
-@Target( { ElementType.TYPE })
-(a)Retention(RetentionPolicy.RUNTIME)
-@Inherited
-@Documented
-public @interface ServiceMode {
- /**
- * Service mode. PAYLOAD indicates that the Provider implementation
- * wishes to work with protocol message payloads only. MESSAGE indicates
- * that the Provider implementation wishes to work with entire protocol
- * messages.
- **/
- public Service.Mode value() default Service.Mode.PAYLOAD;
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebEndpoint.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebEndpoint.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebEndpoint.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,54 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to annotate the <code>get<em>PortName</em>()</code>
- * methods of a generated service interface.
- *
- * <p>The information specified in this annotation is sufficient
- * to uniquely identify a <code>wsdl:port</code> element
- * inside a <code>wsdl:service</code>. The latter is
- * determined based on the value of the <code>WebServiceClient</code>
- * annotation on the generated service interface itself.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.xml.ws.WebServiceClient
- **/
-@Target( { ElementType.METHOD })
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebEndpoint {
- /**
- * The local name of the endpoint.
- **/
- String name() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebFault.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebFault.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebFault.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,57 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to annotate service specific exception classes to customize
- * to the local and namespace name of the fault element and the name
- * of the fault bean.
- *
- * @since JAX-WS 2.0
- **/
-@Target( { ElementType.TYPE })
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebFault {
- /**
- * Elements local name.
- **/
- public String name() default "";
-
- /**
- * Elements namespace name.
- **/
- public String targetNamespace() default "";
-
- /**
- * Fault bean name.
- **/
- public String faultBean() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceClient.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceClient.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceClient.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,61 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to annotate a generated service interface.
- *
- * <p>The information specified in this annotation is sufficient
- * to uniquely identify a <code>wsdl:service</code>
- * element inside a WSDL document. This <code>wsdl:service</code>
- * element represents the Web service for which the generated
- * service interface provides a client view.
- *
- * @since JAX-WS 2.0
- **/
-@Target( { ElementType.TYPE })
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebServiceClient {
- /**
- * The local name of the Web service.
- **/
- String name() default "";
-
- /**
- * The namespace for the Web service.
- **/
- String targetNamespace() default "";
-
- /**
- * The location of the WSDL document for the service (a URL).
- **/
- String wsdlLocation() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceContext.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceContext.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceContext.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,97 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import javax.xml.ws.handler.MessageContext;
-import java.security.Principal;
-
-/**
- * A <code>WebServiceContext</code> makes it possible for
- * a web service endpoint implementation class to access
- * message context and security information relative to
- * a request being served.
- *
- * Typically a <code>WebServiceContext</code> is injected
- * into an endpoint implementation class using the
- * <code>Resource</code> annotation.
- *
- * @since JAX-WS 2.0
- *
- * @see javax.annotation.Resource
- **/
-public interface WebServiceContext
-{
-
- /**
- * Returns the MessageContext for the request being served
- * at the time this method is called. Only properties with
- * APPLICATION scope will be visible to the application.
- *
- * @return MessageContext The message context.
- *
- * @throws IllegalStateException This exception is thrown
- * if the method is called while no request is
- * being serviced.
- *
- * @see javax.xml.ws.handler.MessageContext
- * @see javax.xml.ws.handler.MessageContext.Scope
- * @see java.lang.IllegalStateException
- **/
- public MessageContext getMessageContext();
-
- /**
- * Returns the Principal that identifies the sender
- * of the request currently being serviced. If the
- * sender has not been authenticated, the method
- * returns <code>null</code>.
- *
- * @return Principal The principal object.
- *
- * @throws IllegalStateException This exception is thrown
- * if the method is called while no request is
- * being serviced.
- *
- * @see java.security.Principal
- * @see java.lang.IllegalStateException
- **/
- public Principal getUserPrincipal();
-
- /**
- * Returns a boolean indicating whether the
- * authenticated user is included in the specified
- * logical role. If the user has not been
- * authenticated, the method returns </code>false</code>.
- *
- * @param role A <code>String</code> specifying the name of the role
- *
- * @return a <code>boolean</code> indicating whether
- * the sender of the request belongs to a given role
- *
- * @throws IllegalStateException This exception is thrown
- * if the method is called while no request is
- * being serviced.
- **/
- public boolean isUserInRole(String role);
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceException.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceException.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceException.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,83 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/** The <code>WebServiceException</code> class is the base
- * exception class for all JAX-WS API runtime exceptions.
- *
- * @since JAX-WS 2.0
- **/
-
-public class WebServiceException extends java.lang.RuntimeException
-{
- private static final long serialVersionUID = 9050257594613372011L;
-
- /** Constructs a new exception with <code>null</code> as its
- * detail message. The cause is not initialized.
- **/
- public WebServiceException()
- {
- super();
- }
-
- /** Constructs a new exception with the specified detail
- * message. The cause is not initialized.
- * @param message The detail message which is later
- * retrieved using the getMessage method
- **/
- public WebServiceException(String message)
- {
- super(message);
- }
-
- /** Constructs a new exception with the specified detail
- * message and cause.
- *
- * @param message The detail message which is later retrieved
- * using the getMessage method
- * @param cause The cause which is saved for the later
- * retrieval throw by the getCause method
- **/
- public WebServiceException(String message, Throwable cause)
- {
- super(message, cause);
- }
-
- /** Constructs a new WebServiceException with the specified cause
- * and a detail message of <tt>(cause==null ? null :
- * cause.toString())</tt> (which typically contains the
- * class and detail message of <tt>cause</tt>).
- *
- * @param cause The cause which is saved for the later
- * retrieval throw by the getCause method.
- * (A <tt>null</tt> value is permitted, and
- * indicates that the cause is nonexistent or
- * unknown.)
- **/
- public WebServiceException(Throwable cause)
- {
- super(cause);
- }
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServicePermission.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServicePermission.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServicePermission.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,80 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.security.BasicPermission;
-
-/**
- * This class defines web service permissions.
- * <p>
- * Web service Permissions are identified by name (also referred to as
- * a "target name") alone. There are no actions associated
- * with them.
- * <p>
- * The following permission target name is defined:
- * <p>
- * <dl>
- * <dt>publishEndpoint
- * </dl>
- * <p>
- * The <code>publishEndpoint</code> permission allows publishing a
- * web service endpoint using the <code>publish</code> methods
- * defined by the <code>javax.xml.ws.Endpoint</code> class.
- *
- * @see javax.xml.ws.Endpoint
- * @see java.security.BasicPermission
- * @see java.security.Permission
- * @see java.security.Permissions
- * @see java.lang.SecurityManager
- */
-public final class WebServicePermission extends BasicPermission
-{
-
- private static final long serialVersionUID = -146474640053770988L;
-
- /**
- * Creates a new permission with the specified name.
- *
- * @param name the name of the <code>WebServicePermission</code>
- */
- public WebServicePermission(String name)
- {
- super(name);
- }
-
- /**
- * Creates a new permission with the specified name and actions.
- *
- * The <code>actions</code> parameter is currently unused and
- * it should be <code>null</code>.
- *
- * @param name the name of the <code>WebServicePermission</code>
- * @param actions should be <code>null</code>
- */
- public WebServicePermission(String name, String actions)
- {
- super(name, actions);
- }
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceProvider.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceProvider.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceProvider.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,61 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Used to annotate a Provider implementation class.
- *
- * @since JAX-WS 2.0
- * @see javax.xml.ws.Provider
- */
-(a)Target(ElementType.TYPE)
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebServiceProvider {
- /**
- * Location of the WSDL description for the service.
- */
- String wsdlLocation() default "";
-
- /**
- * Service name.
- */
- String serviceName() default "";
-
- /**
- * Target namespace for the service
- */
- String targetNamespace() default "";
-
- /**
- * Port name.
- */
- String portName() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRef.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceRef.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRef.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,97 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * The <code>WebServiceRef</code> annotation is used to
- * define a reference to a web service and
- * (optionally) an injection target for it.
- *
- * Web service references are resources in the Java EE 5 sense.
- *
- * @see javax.annotation.Resource
- *
- * @since JAX-WS 2.0
- *
- **/
-
-@Target( { ElementType.TYPE, ElementType.METHOD, ElementType.FIELD })
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebServiceRef {
- /**
- * The JNDI name of the resource. For field annotations,
- * the default is the field name. For method annotations,
- * the default is the JavaBeans property name corresponding
- * to the method. For class annotations, there is no default
- * and this MUST be specified.
- */
- String name() default "";
-
- /**
- * The Java type of the resource. For field annotations,
- * the default is the type of the field. For method annotations,
- * the default is the type of the JavaBeans property.
- * For class annotations, there is no default and this MUST be
- * specified.
- */
- Class type() default Object.class;
-
- /**
- * A product specific name that this resource should be mapped to.
- * The name of this resource, as defined by the <code>name</code>
- * element or defaulted, is a name that is local to the application
- * component using the resource. (It's a name in the JNDI
- * <code>java:comp/env</code> namespace.) Many application servers
- * provide a way to map these local names to names of resources
- * known to the application server. This mapped name is often a
- * <i>global</i> JNDI name, but may be a name of any form. <p>
- *
- * Application servers are not required to support any particular
- * form or type of mapped name, nor the ability to use mapped names.
- * The mapped name is product-dependent and often installation-dependent.
- * No use of a mapped name is portable.
- */
- String mappedName() default "";
-
- /**
- * The service class, always a type extending
- * <code>javax.xml.ws.Service</code>. This element MUST be specified
- * whenever the type of the reference is a service endpoint interface.
- */
- Class value() default Object.class;
-
- /**
- * A URL pointing to the WSDL document for the web service.
- * If not specified, the WSDL location specified by annotations
- * on the resource type is used instead.
- */
- String wsdlLocation() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRefs.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceRefs.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/WebServiceRefs.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,50 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import static java.lang.annotation.ElementType.TYPE;
-import static java.lang.annotation.RetentionPolicy.RUNTIME;
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.Retention;
-import java.lang.annotation.Target;
-
-/**
- * The <code>WebServiceRefs</code> annotation allows
- * multiple web service references to be declared at the
- * class level.
- *
- * @see javax.xml.ws.WebServiceRef
- * @since 2.0
- */
-
-@Documented
-@Retention(RUNTIME)
-@Target(TYPE)
-public @interface WebServiceRefs {
- /**
- * Array used for multiple web service reference declarations.
- */
- WebServiceRef[] value();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/Handler.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/Handler.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/Handler.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,84 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-import javax.xml.ws.ProtocolException;
-
-/** The <code>Handler</code> interface
- * is the base interface for JAX-WS handlers.
- *
- * @since JAX-WS 2.0
-**/
-public interface Handler<C extends MessageContext> {
-
- /** The <code>handleMessage</code> method is invoked for normal processing
- * of inbound and outbound messages. Refer to the description of the handler
- * framework in the JAX-WS specification for full details.
- *
- * @param context the message context.
- * @return An indication of whether handler processing should continue for
- * the current message
- * <ul>
- * <li>Return <code>true</code> to continue
- * processing.</li>
- * <li>Return <code>false</code> to block
- * processing.</li>
- * </ul>
- * @throws RuntimeException Causes the JAX-WS runtime to cease
- * handler processing and generate a fault.
- * @throws ProtocolException Causes the JAX-WS runtime to switch to
- * fault message processing.
- **/
- public boolean handleMessage(C context);
-
- /** The <code>handleFault</code> method is invoked for fault message
- * processing. Refer to the description of the handler
- * framework in the JAX-WS specification for full details.
- *
- * @param context the message context
- * @return An indication of whether handler fault processing should continue
- * for the current message
- * <ul>
- * <li>Return <code>true</code> to continue
- * processing.</li>
- * <li>Return <code>false</code> to block
- * processing.</li>
- * </ul>
- * @throws RuntimeException Causes the JAX-WS runtime to cease
- * handler fault processing and dispatch the fault.
- * @throws ProtocolException Causes the JAX-WS runtime to cease
- * handler fault processing and dispatch the fault.
- **/
- public boolean handleFault(C context);
-
- /**
- * Called at the conclusion of a message exchange pattern just prior to
- * the JAX-WS runtime disptaching a message, fault or exception. Refer to
- * the description of the handler
- * framework in the JAX-WS specification for full details.
- *
- * @param context the message context
- **/
- public void close(MessageContext context);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/HandlerResolver.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/HandlerResolver.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/HandlerResolver.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,51 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-/**
- * <code>HandlerResolver</code> is an interface implemented
- * by an application to get control over the handler chain
- * set on proxy/dispatch objects at the time of their creation.
- * <p>
- * A <code>HandlerResolver</code> may be set on a <code>Service</code>
- * using the <code>setHandlerResolver</code> method.
- * <p>
- * When the runtime invokes a <code>HandlerResolver</code>, it will
- * pass it a <code>PortInfo</code> object containing information
- * about the port that the proxy/dispatch object will be accessing.
- *
- * @see javax.xml.ws.Service#setHandlerResolver
- *
- * @since JAX-WS 2.0
-**/
-public interface HandlerResolver {
-
- /**
- * Gets the handler chain for the specified port.
- *
- * @param portInfo Contains information about the port being accessed.
- * @return java.util.List Handler chain
- **/
- public java.util.List<Handler> getHandlerChain(PortInfo portInfo);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalHandler.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/LogicalHandler.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalHandler.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,32 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-/** The <code>LogicalHandler</code> extends
- * Handler to provide typesafety for the message context parameter.
- *
- * @since JAX-WS 2.0
-**/
-public interface LogicalHandler<C extends LogicalMessageContext> extends Handler<C> {
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalMessageContext.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/LogicalMessageContext.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/LogicalMessageContext.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,44 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-import javax.xml.ws.LogicalMessage;
-
-/** The <code>LogicalMessageContext</code> interface extends
- * <code>MessageContext</code> to
- * provide access to a the contained message as a protocol neutral
- * LogicalMessage
- *
- * @since JAX-WS 2.0
-**/
-public interface LogicalMessageContext
- extends MessageContext {
-
- /** Gets the message from this message context
- *
- * @return The contained message; returns null if no
- * message is present in this message context
- **/
- public LogicalMessage getMessage();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/MessageContext.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/MessageContext.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/MessageContext.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,180 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-import java.util.Map;
-
-/**
- * The interface <code>MessageContext</code> abstracts the message
- * context that is processed by a handler in the <code>handle</code>
- * method.
- *
- * <p>The <code>MessageContext</code> interface provides methods to
- * manage a property set. <code>MessageContext</code> properties
- * enable handlers in a handler chain to share processing related
- * state.
- *
- * @since JAX-WS 2.0
- */
-public interface MessageContext extends Map<String, Object>
-{
-
- /**
- * Standard property: message direction, <code>true</code> for
- * outbound messages, <code>false</code> for inbound.
- * <p>Type: boolean
- */
- public static final String MESSAGE_OUTBOUND_PROPERTY = "javax.xml.ws.handler.message.outbound";
-
- /**
- * Standard property: Map of attachments to a message for the inbound
- * message, key is the MIME Content-ID, value is a DataHandler.
- * <p>Type: java.util.Map<String,DataHandler>
- */
- public static final String INBOUND_MESSAGE_ATTACHMENTS = "javax.xml.ws.binding.attachments.inbound";
-
- /**
- * Standard property: Map of attachments to a message for the outbound
- * message, key is the MIME Content-ID, value is a DataHandler.
- * <p>Type: java.util.Map<String,DataHandler>
- */
- public static final String OUTBOUND_MESSAGE_ATTACHMENTS = "javax.xml.ws.binding.attachments.outbound";
-
- /**
- * Standard property: input source for WSDL document.
- * <p>Type: org.xml.sax.InputSource
- */
- public static final String WSDL_DESCRIPTION = "javax.xml.ws.wsdl.description";
-
- /**
- * Standard property: name of WSDL service.
- * <p>Type: javax.xml.namespace.QName
- */
- public static final String WSDL_SERVICE = "javax.xml.ws.wsdl.service";
-
- /**
- * Standard property: name of WSDL port.
- * <p>Type: javax.xml.namespace.QName
- */
- public static final String WSDL_PORT = "javax.xml.ws.wsdl.port";
-
- /**
- * Standard property: name of wsdl interface (2.0) or port type (1.1).
- * <p>Type: javax.xml.namespace.QName
- */
- public static final String WSDL_INTERFACE = "javax.xml.ws.wsdl.interface";
-
- /**
- * Standard property: name of WSDL operation.
- * <p>Type: javax.xml.namespace.QName
- */
- public static final String WSDL_OPERATION = "javax.xml.ws.wsdl.operation";
-
- /**
- * Standard property: HTTP response status code.
- * <p>Type: java.lang.Integer
- */
- public static final String HTTP_RESPONSE_CODE = "javax.xml.ws.http.response.code";
-
- /**
- * Standard property: HTTP request headers.
- * <p>Type: java.util.Map<java.lang.String, java.util.List<java.lang.String>>
- */
- public static final String HTTP_REQUEST_HEADERS = "javax.xml.ws.http.request.headers";
-
- /**
- * Standard property: HTTP response headers.
- * <p>Type: java.util.Map<java.lang.String, java.util.List<java.lang.String>>
- */
- public static final String HTTP_RESPONSE_HEADERS = "javax.xml.ws.http.response.headers";
-
- /**
- * Standard property: HTTP request method.
- * <p>Type: java.lang.String
- */
- public static final String HTTP_REQUEST_METHOD = "javax.xml.ws.http.request.method";
-
- /**
- * Standard property: servlet request object.
- * <p>Type: javax.servlet.http.HttpServletRequest
- */
- public static final String SERVLET_REQUEST = "javax.xml.ws.servlet.request";
-
- /**
- * Standard property: servlet response object.
- * <p>Type: javax.servlet.http.HttpServletResponse
- */
- public static final String SERVLET_RESPONSE = "javax.xml.ws.servlet.response";
-
- /**
- * Standard property: servlet context object.
- * <p>Type: javax.servlet.ServletContext
- */
- public static final String SERVLET_CONTEXT = "javax.xml.ws.servlet.context";
-
- /**
- * Standard property: Query string for request.
- * <p>Type: String
- **/
- public static final String QUERY_STRING = "javax.xml.ws.http.request.querystring";
-
- /**
- * Standard property: Request Path Info
- * <p>Type: String
- */
- public static final String PATH_INFO = "javax.xml.ws.http.request.pathinfo";
-
- /**
- * Property scope. Properties scoped as <code>APPLICATION</code> are
- * visible to handlers,
- * client applications and service endpoints; properties scoped as
- * <code>HANDLER</code>
- * are only normally visible to handlers.
- */
- public enum Scope
- {
- APPLICATION, HANDLER
- };
-
- /**
- * Sets the scope of a property.
- *
- * @param name Name of the property associated with the
- * <code>MessageContext</code>
- * @param scope Desired scope of the property
- * @throws java.lang.IllegalArgumentException if an illegal
- * property name is specified
- */
- public void setScope(String name, Scope scope);
-
- /**
- * Gets the scope of a property.
- *
- * @param name Name of the property
- * @return Scope of the property
- * @throws java.lang.IllegalArgumentException if a non-existant
- * property name is specified
- */
- public Scope getScope(String name);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/PortInfo.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/PortInfo.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/handler/PortInfo.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,64 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-
-/**
- * The <code>PortInfo</code> interface is used by a
- * <code>HandlerResolver</code> to query information about
- * the port it is being asked to create a handler chain for.
- * <p>
- * This interface is never implemented by an application,
- * only by a JAX-WS implementation.
- *
- * @since JAX-WS 2.0
-**/
-public interface PortInfo {
-
- /**
- * Gets the qualified name of the WSDL service name containing
- * the port being accessed.
- *
- * @return javax.xml.namespace.QName The qualified name of the WSDL service.
- **/
- public QName getServiceName();
-
- /**
- * Gets the qualified name of the WSDL port being accessed.
- *
- * @return javax.xml.namespace.QName The qualified name of the WSDL port.
- **/
- public QName getPortName();
-
- /**
- * Gets the URI identifying the binding used by the port being accessed.
- *
- * @return String The binding identifier for the port.
- *
- * @see javax.xml.ws.Binding
- **/
- public String getBindingID();
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPBinding.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/SOAPBinding.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPBinding.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,107 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.soap;
-
-// $Id$
-
-import javax.xml.soap.MessageFactory;
-import javax.xml.soap.SOAPFactory;
-import javax.xml.ws.Binding;
-import javax.xml.ws.WebServiceException;
-import java.util.Set;
-
-/** The <code>SOAPBinding</code> interface is an abstraction for
- * the SOAP binding.
- *
- * @since JAX-WS 2.0
- **/
-public interface SOAPBinding extends Binding
-{
- /**
- * A constant representing the identity of the SOAP 1.1 over HTTP binding.
- */
- public static final String SOAP11HTTP_BINDING = "http://schemas.xmlsoap.org/wsdl/soap/http";
-
- /**
- * A constant representing the identity of the SOAP 1.2 over HTTP binding.
- */
- public static final String SOAP12HTTP_BINDING = "http://www.w3.org/2003/05/soap/bindings/HTTP/";
-
- /**
- * A constant representing the identity of the SOAP 1.1 over HTTP binding
- * with MTOM enabled by default.
- */
- public static final String SOAP11HTTP_MTOM_BINDING = "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true";
-
- /**
- * A constant representing the identity of the SOAP 1.2 over HTTP binding
- * with MTOM enabled by default.
- */
- public static final String SOAP12HTTP_MTOM_BINDING = "http://www.w3.org/2003/05/soap/bindings/HTTP/?mtom=true";
-
- /** Gets the roles played by the SOAP binding instance.
- *
- * @return Set<String> The set of roles played by the binding instance.
- **/
- public Set<String> getRoles();
-
- /** Sets the roles played by the SOAP binding instance.
- *
- * @param roles The set of roles played by the binding instance.
- * @throws WebServiceException On an error in the configuration of
- * the list of roles.
- **/
- public void setRoles(Set<String> roles);
-
- /**
- * Returns <code>true</code> if the use of MTOM is enabled.
- *
- * @return <code>true</code> if and only if the use of MTOM is enabled.
- **/
-
- public boolean isMTOMEnabled();
-
- /**
- * Enables or disables use of MTOM.
- *
- * @param flag A <code>boolean</code> specifying whether the use of MTOM should
- * be enabled or disabled.
- * @throws WebServiceException If the specified setting is not supported
- * by this binding instance.
- * *
- **/
- public void setMTOMEnabled(boolean flag);
-
- /**
- * Gets the SAAJ <code>SOAPFactory</code> instance used by this SOAP binding.
- *
- * @return SOAPFactory instance used by this SOAP binding.
- **/
- public SOAPFactory getSOAPFactory();
-
- /**
- * Gets the SAAJ <code>MessageFactory</code> instance used by this SOAP binding.
- *
- * @return MessageFactory instance used by this SOAP binding.
- **/
- public MessageFactory getMessageFactory();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPFaultException.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/SOAPFaultException.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/soap/SOAPFaultException.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,77 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.soap;
-
-// $Id$
-
-import javax.xml.soap.SOAPFault;
-
-/** The <code>SOAPFaultException</code> exception represents a
- * SOAP 1.1 or 1.2 fault.
- *
- * <p>A <code>SOAPFaultException</code> wraps a SAAJ <code>SOAPFault</code>
- * that manages the SOAP-specific representation of faults.
- * The <code>createFault</code> method of
- * <code>javax.xml.soap.SOAPFactory</code> may be used to create an instance
- * of <code>javax.xml.soap.SOAPFault</code> for use with the
- * constructor. <code>SOAPBinding</code> contains an accessor for the
- * <code>SOAPFactory</code> used by the binding instance.
- *
- * <p>Note that the value of <code>getFault</code> is the only part of the
- * exception used when searializing a SOAP fault.
- *
- * <p>Refer to the SOAP specification for a complete
- * description of SOAP faults.
- *
- * @see javax.xml.soap.SOAPFault
- * @see javax.xml.ws.soap.SOAPBinding#getSOAPFactory
- * @see javax.xml.ws.ProtocolException
- *
- * @since JAX-WS 2.0
- **/
-public class SOAPFaultException extends javax.xml.ws.ProtocolException
-{
- private static final long serialVersionUID = 3948617580148536298L;
-
- private SOAPFault fault;
-
- /** Constructor for SOAPFaultException
- * @param fault <code>SOAPFault</code> representing the fault
- *
- * @see javax.xml.soap.SOAPFactory#createFault
- **/
- public SOAPFaultException(SOAPFault fault)
- {
- super(fault.getFaultString());
- this.fault = fault;
- }
-
- /** Gets the embedded <code>SOAPFault</code> instance.
- *
- * @return <code>javax.xml.soap.SOAPFault</code> SOAP
- * fault element
- **/
- public javax.xml.soap.SOAPFault getFault()
- {
- return this.fault;
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/Provider.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/Provider.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/Provider.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,137 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.spi;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.Endpoint;
-import javax.xml.ws.WebServiceException;
-
-/**
- * Service provider for ServiceDelegate and Endpoint objects.
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 03-May-2006
- */
-public abstract class Provider
-{
- public static final String JAXWSPROVIDER_PROPERTY = "javax.xml.ws.spi.Provider";
- private static final String DEFAULT_JAXWSPROVIDER = "org.jboss.ws.core.jaxws.spi.ProviderImpl";
-
- /**
- * Creates a new instance of Provider
- */
- protected Provider()
- {
- }
-
- /**
- *
- * Creates a new provider object.
- * <p>
- * The algorithm used to locate the provider subclass to use consists
- * of the following steps:
- * <p>
- * <ul>
- * <li>
- * If a resource with the name of
- * <code>META-INF/services/javax.xml.ws.spi.Provider</code>
- * exists, then its first line, if present, is used as the UTF-8 encoded
- * name of the implementation class.
- * </li>
- * <li>
- * If the $java.home/lib/jaxws.properties file exists and it is readable by
- * the <code>java.util.Properties.load(InputStream)</code> method and it contains
- * an entry whose key is <code>javax.xml.ws.spi.Provider</code>, then the value of
- * that entry is used as the name of the implementation class.
- * </li>
- * <li>
- * If a system property with the name <code>javax.xml.ws.spi.Provider</code>
- * is defined, then its value is used as the name of the implementation class.
- * </li>
- * <li>
- * Finally, a default implementation class name is used.
- * </li>
- * </ul>
- *
- */
- public static Provider provider()
- {
- try
- {
- return (Provider)ProviderLoader.loadProvider(DEFAULT_JAXWSPROVIDER);
- }
- catch (WebServiceException ex)
- {
- throw ex;
- }
- catch (Exception ex)
- {
- throw new WebServiceException("Unable to load Provider: " + ex.getMessage(), ex);
- }
-
- }
-
- /**
- * Creates a service delegate object.
- * <p>
- * @param wsdlDocumentLocation A URL pointing to the WSDL document
- * for the service, or <code>null</code> if there isn't one.
- * @param serviceName The qualified name of the service.
- * @param serviceClass The service class, which MUST be either
- * <code>javax.xml.ws.Service</code> or a subclass thereof.
- * @return The newly created service delegate.
- */
- public abstract ServiceDelegate createServiceDelegate(java.net.URL wsdlDocumentLocation, QName serviceName, Class serviceClass);
-
- /**
- *
- * Creates an endpoint object with the provided binding and implementation
- * object.
- *
- * @param bindingId A URI specifying the desired binding (e.g. SOAP/HTTP)
- * @param implementor A service implementation object to which
- * incoming requests will be dispatched. The corresponding
- * class MUST be annotated with all the necessary Web service
- * annotations.
- * @return The newly created endpoint.
- */
- public abstract Endpoint createEndpoint(String bindingId, Object implementor);
-
- /**
- * Creates and publishes an endpoint object with the specified
- * address and implementation object.
- *
- * @param address A URI specifying the address and transport/protocol
- * to use. A http: URI MUST result in the SOAP 1.1/HTTP
- * binding being used. Implementations may support other
- * URI schemes.
- * @param implementor A service implementation object to which
- * incoming requests will be dispatched. The corresponding
- * class MUST be annotated with all the necessary Web service
- * annotations.
- * @return The newly created endpoint.
- */
- public abstract Endpoint createAndPublishEndpoint(String address, Object implementor);
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ProviderLoader.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/ProviderLoader.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ProviderLoader.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,205 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.spi;
-
-// $Id$
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.security.AccessController;
-import java.security.PrivilegedAction;
-import java.util.Properties;
-
-/**
- * Load the provider using the following algorithm.
- *
- * 1. If a resource with the name of META-INF/services/javax.xml.ws.spi.Provider exists, then
- * its first line, if present, is used as the UTF-8 encoded name of the implementation class.
- *
- * 2. If the ${java.home}/lib/jaxws.properties file exists and it is readable by the
- * java.util.Properties.load(InputStream) method and it contains an entry whose key is
- * javax.xml.ws.spi.Provider, then the value of that entry is used as the name of the implementation class.
- *
- * 3. If a system property with the name javax.xml.ws.spi.Provider is defined, then its value is used
- * as the name of the implementation class.
- *
- * 4. Finally, a default implementation class name is used.
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 03-May-2006
- */
-abstract class ProviderLoader
-{
- /**
- * This method uses the algirithm described above.
- *
- * 1. If a resource with the name of META-INF/services/javax.xml.ws.spi.Provider exists, then
- * its first line, if present, is used as the UTF-8 encoded name of the implementation class.
- *
- * 2. If the ${java.home}/lib/jaxws.properties file exists and it is readable by the
- * java.util.Properties.load(InputStream) method and it contains an entry whose key is
- * javax.xml.ws.spi.Provider, then the value of that entry is used as the name of the implementation class.
- *
- * 3. If a system property with the name javax.xml.ws.spi.Provider is defined, then its value is used
- * as the name of the implementation class.
- *
- * 4. Finally, a default implementation class name is used.
- */
- public static Provider loadProvider(String defaultFactory)
- {
- Object factory = null;
- String factoryName = null;
- ClassLoader loader = Thread.currentThread().getContextClassLoader();
-
- // Use the Services API (as detailed in the JAR specification), if available, to determine the classname.
- String propertyName = Provider.JAXWSPROVIDER_PROPERTY;
- String filename = "META-INF/services/" + propertyName;
- InputStream inStream = loader.getResourceAsStream(filename);
- if (inStream != null)
- {
- try
- {
- BufferedReader br = new BufferedReader(new InputStreamReader(inStream, "UTF-8"));
- factoryName = br.readLine();
- br.close();
- if (factoryName != null)
- {
- Class factoryClass = loader.loadClass(factoryName);
- factory = factoryClass.newInstance();
- }
- }
- catch (Throwable t)
- {
- throw new IllegalStateException("Failed to load " + propertyName + ": " + factoryName, t);
- }
- }
-
- // Use the properties file "lib/jaxws.properties" in the JRE directory.
- // This configuration file is in standard java.util.Properties format and contains the fully qualified name of the implementation class with the key being the system property defined above.
- if (factory == null)
- {
- PrivilegedAction action = new PropertyAccessAction("java.home");
- String javaHome = (String)AccessController.doPrivileged(action);
- File jaxmFile = new File(javaHome + "/lib/jaxws.properties");
- if (jaxmFile.exists())
- {
- try
- {
- action = new PropertyFileAccessAction(jaxmFile.getCanonicalPath());
- Properties jaxmProperties = (Properties)AccessController.doPrivileged(action);
- factoryName = jaxmProperties.getProperty(propertyName);
- if (factoryName != null)
- {
- //if(log.isDebugEnabled()) log.debug("Load from " + jaxmFile + ": " + factoryName);
- Class factoryClass = loader.loadClass(factoryName);
- factory = factoryClass.newInstance();
- }
- }
- catch (Throwable t)
- {
- throw new IllegalStateException("Failed to load " + propertyName + ": " + factoryName, t);
- }
- }
- }
-
- // Use system property
- if (factory == null)
- {
- PrivilegedAction action = new PropertyAccessAction(propertyName);
- factoryName = (String)AccessController.doPrivileged(action);
- if (factoryName != null)
- {
- try
- {
- //if(log.isDebugEnabled()) log.debug("Load from system property: " + factoryName);
- Class factoryClass = loader.loadClass(factoryName);
- factory = factoryClass.newInstance();
- }
- catch (Throwable t)
- {
- throw new IllegalStateException("Failed to load " + propertyName + ": " + factoryName, t);
- }
- }
- }
-
- // Use the default factory implementation class.
- if (factory == null && defaultFactory != null)
- {
- try
- {
- //if(log.isDebugEnabled()) log.debug("Load from default: " + factoryName);
- Class factoryClass = loader.loadClass(defaultFactory);
- factory = factoryClass.newInstance();
- }
- catch (Throwable t)
- {
- throw new IllegalStateException("Failed to load: " + defaultFactory, t);
- }
- }
-
- return (Provider)factory;
- }
-
- private static class PropertyAccessAction implements PrivilegedAction
- {
- private String name;
-
- PropertyAccessAction(String name)
- {
- this.name = name;
- }
-
- public Object run()
- {
- return System.getProperty(name);
- }
- }
-
- private static class PropertyFileAccessAction implements PrivilegedAction
- {
- private String filename;
-
- PropertyFileAccessAction(String filename)
- {
- this.filename = filename;
- }
-
- public Object run()
- {
- try
- {
- InputStream inStream = new FileInputStream(filename);
- Properties props = new Properties();
- props.load(inStream);
- return props;
- }
- catch (IOException ex)
- {
- throw new SecurityException("Cannot load properties: " + filename, ex);
- }
- }
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ServiceDelegate.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/ServiceDelegate.java 2008-04-30 16:52:57 UTC (rev 6796)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/modules/jaxws-ext/src/main/java/javax/xml/ws/spi/ServiceDelegate.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,250 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.spi;
-
-// $Id$
-
-import java.util.Iterator;
-
-import javax.xml.bind.JAXBContext;
-import javax.xml.namespace.QName;
-import javax.xml.ws.Dispatch;
-import javax.xml.ws.Service;
-import javax.xml.ws.WebServiceException;
-import javax.xml.ws.handler.HandlerResolver;
-
-/**
- * Service delegates are used internally by <code>Service</code> objects
- * to allow pluggability of JAX-WS implementations.
- * <p>
- * Every <code>Service</code> object has its own delegate, created using
- * the javax.xml.ws.Provider#createServiceDelegate method. A <code>Service</code>
- * object delegates all of its instance methods to its delegate.
- *
- * @see javax.xml.ws.Service
- * @see javax.xml.ws.spi.Provider
- *
- * @since JAX-WS 2.0
- */
-public abstract class ServiceDelegate
-{
- protected ServiceDelegate()
- {
- }
-
- /**
- * The getPort method returns a proxy. A service client
- * uses this proxy to invoke operations on the target
- * service endpoint. The <code>serviceEndpointInterface</code>
- * specifies the service endpoint interface that is supported by
- * the created dynamic proxy instance.
- *
- * @param portName Qualified name of the service endpoint in
- * the WSDL service description
- * @param serviceEndpointInterface Service endpoint interface
- * supported by the dynamic proxy
- * @return Object Proxy instance that
- * supports the specified service endpoint
- * interface
- * @throws WebServiceException This exception is thrown in the
- * following cases:
- * <UL>
- * <LI>If there is an error in creation of
- * the proxy
- * <LI>If there is any missing WSDL metadata
- * as required by this method
- * <LI>If an illegal
- * <code>serviceEndpointInterface</code>
- * or <code>portName</code> is specified
- * </UL>
- * @see java.lang.reflect.Proxy
- * @see java.lang.reflect.InvocationHandler
- **/
- public abstract <T> T getPort(QName portName, Class<T> serviceEndpointInterface);
-
- /**
- * The getPort method returns a proxy. The parameter
- * <code>serviceEndpointInterface</code> specifies the service
- * endpoint interface that is supported by the returned proxy.
- * In the implementation of this method, the JAX-WS
- * runtime system takes the responsibility of selecting a protocol
- * binding (and a port) and configuring the proxy accordingly.
- * The returned proxy should not be reconfigured by the client.
- *
- * @param serviceEndpointInterface Service endpoint interface
- * @return Object instance that supports the
- * specified service endpoint interface
- * @throws WebServiceException
- * <UL>
- * <LI>If there is an error during creation
- * of the proxy
- * <LI>If there is any missing WSDL metadata
- * as required by this method
- * <LI>If an illegal
- * <code>serviceEndpointInterface</code>
- * is specified
- * </UL>
- **/
- public abstract <T> T getPort(Class<T> serviceEndpointInterface);
-
- /**
- * Creates a new port for the service. Ports created in this way contain
- * no WSDL port type information and can only be used for creating
- * <code>Dispatch</code>instances.
- *
- * @param portName Qualified name for the target service endpoint
- * @param bindingId A URI identifier of a binding.
- * @param endpointAddress Address of the target service endpoint as a URI
- * @throws WebServiceException If any error in the creation of
- * the port
- *
- * @see javax.xml.ws.soap.SOAPBinding#SOAP11HTTP_BINDING
- * @see javax.xml.ws.soap.SOAPBinding#SOAP12HTTP_BINDING
- * @see javax.xml.ws.http.HTTPBinding#HTTP_BINDING
- **/
- public abstract void addPort(QName portName, String bindingId, String endpointAddress);
-
- /**
- * Creates a <code>Dispatch</code> instance for use with objects of
- * the users choosing.
- *
- * @param portName Qualified name for the target service endpoint
- * @param type The class of object used for messages or message
- * payloads. Implementations are required to support
- * javax.xml.transform.Source and javax.xml.soap.SOAPMessage.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body. Mode MUST be MESSAGE
- * when type is SOAPMessage.
- *
- * @return Dispatch instance
- * @throws WebServiceException If any error in the creation of
- * the <code>Dispatch</code> object
- * @see javax.xml.transform.Source
- * @see javax.xml.soap.SOAPMessage
- **/
- public abstract <T> Dispatch<T> createDispatch(QName portName, Class<T> type, Service.Mode mode);
-
- /**
- * Creates a <code>Dispatch</code> instance for use with JAXB
- * generated objects.
- *
- * @param portName Qualified name for the target service endpoint
- * @param context The JAXB context used to marshall and unmarshall
- * messages or message payloads.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body.
- *
- * @return Dispatch instance
- * @throws ServiceException If any error in the creation of
- * the <code>Dispatch</code> object
- *
- * @see javax.xml.bind.JAXBContext
- **/
- public abstract Dispatch<Object> createDispatch(QName portName, JAXBContext context, Service.Mode mode);
-
- /**
- * Gets the name of this service.
- * @return Qualified name of this service
- **/
- public abstract QName getServiceName();
-
- /**
- * Returns an <code>Iterator</code> for the list of
- * <code>QName</code>s of service endpoints grouped by this
- * service
- *
- * @return Returns <code>java.util.Iterator</code> with elements
- * of type <code>javax.xml.namespace.QName</code>
- * @throws WebServiceException If this Service class does not
- * have access to the required WSDL metadata
- **/
- public abstract Iterator<javax.xml.namespace.QName> getPorts();
-
- /**
- * Gets the location of the WSDL document for this Service.
- *
- * @return URL for the location of the WSDL document for
- * this service
- **/
- public abstract java.net.URL getWSDLDocumentLocation();
-
- /**
- * Returns the configured handler resolver.
- *
- * @return HandlerResolver The <code>HandlerResolver</code> being
- * used by this <code>Service</code> instance, or <code>null</code>
- * if there isn't one.
- **/
- public abstract HandlerResolver getHandlerResolver();
-
- /**
- * Sets the <code>HandlerResolver</code> for this <code>Service</code>
- * instance.
- * <p>
- * The handler resolver, if present, will be called once for each
- * proxy or dispatch instance that is created, and the handler chain
- * returned by the resolver will be set on the instance.
- *
- * @param handlerResolver The <code>HandlerResolver</code> to use
- * for all subsequently created proxy/dispatch objects.
- *
- * @see javax.xml.ws.handler.HandlerResolver
- **/
- public abstract void setHandlerResolver(HandlerResolver handlerResolver);
-
- /**
- * Returns the executor for this <code>Service</code>instance.
- *
- * The executor is used for all asynchronous invocations that
- * require callbacks.
- *
- * @return The <code>java.util.concurrent.Executor</code> to be
- * used to invoke a callback.
- *
- * @see java.util.concurrent.Executor
- **/
- public abstract java.util.concurrent.Executor getExecutor();
-
- /**
- * Sets the executor for this <code>Service</code> instance.
- *
- * The executor is used for all asynchronous invocations that
- * require callbacks.
- *
- * @param executor The <code>java.util.concurrent.Executor</code>
- * to be used to invoke a callback.
- *
- * @throws SecurityException If the instance does not support
- * setting an executor for security reasons (e.g. the
- * necessary permissions are missing).
- *
- * @see java.util.concurrent.Executor
- **/
- public abstract void setExecutor(java.util.concurrent.Executor executor);
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Action.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Action.java 2008-04-30 16:54:03 UTC (rev 6797)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Action.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,144 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * The <code>Action</code> annotation allows explicit association of <code>Action</code>
- * message addressing property with <code>input</code>, <code>output</code>, and
- * <code>fault</code> messages of the mapped WSDL operation.
- * <p>
- * This annotation can be specified on each method of a service endpoint interface.
- * For such a method, the mapped operation in the generated WSDL
- * contains explicit <code>wsaw:Action</code> attribute on the WSDL <code>input</code>,
- * <code>output</code> and <code>fault</code> messages of the WSDL <code>operation</code>
- * based upon which attributes of the <code>Action</code> annotation have been specified.
- * <p>
- * <b>Example 1</b>: Specify explicit values for <code>Action</code> message addressing property
- * for <code>input</code> and <code>output</code> messages.
- *
- * <pre>
- * @javax.jws.WebService
- * public class AddNumbersImpl {
- * @javax.xml.ws.Action(
- * input="http://example.com/inputAction",
- * output="http://example.com/outputAction")
- * public int addNumbers(int number1, int number2) {
- * return number1 + number2;
- * }
- * }
- * </pre>
- *
- * The generated WSDL looks like:
- * <pre>
- * <definitions targetNamespace="http://example.com/numbers" ...>
- * ...
- * <portType name="AddNumbersPortType">
- * <operation name="AddNumbers">
- * <input message="tns:AddNumbersInput" name="Parameters"
- * wsaw:Action="http://example.com/inputAction"/>
- * <output message="tns:AddNumbersOutput" name="Result"
- * wsaw:Action="http://example.com/outputAction"/>
- * </operation>
- * <portType>
- * ...
- * <definitions>
- * </pre>
- *
- * <p>
- * <b>Example 2</b>: Specify explicit value for <code>Action</code> message addressing property
- * for only the <code>input</code> message. The default values are used for the
- * <code>output</code> message.
- *
- * <pre>
- * @javax.jws.WebService
- * public class AddNumbersImpl {
- * @javax.xml.ws.Action(input="http://example.com/inputAction")
- * public int addNumbers(int number1, int number2) {
- * return number1 + number2;
- * }
- * }
- * </pre>
- *
- * The generated WSDL looks like:
- *
- * <pre>
- * <definitions targetNamespace="http://example.com/numbers" ...>
- * ...
- * <portType name="AddNumbersPortType">
- * <operation name="AddNumbers">
- * <input message="tns:AddNumbersInput" name="Parameters"
- * wsaw:Action="http://example.com/inputAction"/>
- * <output message="tns:AddNumbersOutput" name="Result"/>
- * </operation>
- * <portType>
- * ...
- * <definitions>
- * </pre>
- *
- * It is legitimate to specify an explicit value for <code>Action</code> message addressing property for
- * <code>output</code> message only. In this case, a default value of <code>wsaw:Action</code> is used
- * for the <code>input</code> message.
- *
- * <p>
- * <b>Example 3</b>: See <a href="FaultAction.html">FaultAction</a> annotation for an example of
- * how to specify an explicit value for <code>Action</code> message addressing property for the
- * <code>fault</code> message.
- *
- * @see FaultAction
- *
- * @since JAX-WS 2.1
- */
-
-@Documented
-(a)Retention(RetentionPolicy.RUNTIME)
-(a)Target(ElementType.METHOD)
-public @interface Action {
- /**
- * Explicit value of <code>Action</code> message addressing property for the <code>input</code>
- * message of the operation. If the value is "", then no <code>wsaw:Action</code>
- * is generated.
- */
- String input() default "";
-
- /**
- * Explicit value of <code>Action</code> message addressing property for the <code>output</code>
- * message of the operation. If the value is "", then no <code>wsaw:Action</code>
- * is generated.
- */
- String output() default "";
-
- /**
- * Explicit value of <code>Action</code> message addressing property for the <code>fault</code>
- * message(s) of the operation. Each exception that is mapped to a fault and requires explicit
- * <code>Action</code> message addressing property, need to be specified as a value in this property
- * using <a href="FaultAction.html">FaultAction</a> annotation.
- */
- FaultAction[] fault() default {};
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Binding21.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Binding21.java 2008-04-30 16:54:03 UTC (rev 6797)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Binding21.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,41 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/**
- * @author Heiko.Braun(a)jboss.com
- * @version $Revision$
- */
-public interface Binding21 extends Binding
-{
- /**
- * Get the URI for this binding instance.
- *
- * @return String The binding identifier for the port.
- * Never returns <code>null</code>
- *
- * @since JAX-WS 2.1
- */
- String getBindingID();
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Endpoint21.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Endpoint21.java 2008-04-30 16:54:03 UTC (rev 6797)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Endpoint21.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,105 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-import org.w3c.dom.Element;
-
-/**
- * @author Heiko.Braun(a)jboss.com
- * @version $Revision$
- */
-public abstract class Endpoint21 extends Endpoint
-{
- /**
- * Returns the <code>EndpointReference</code> associated with
- * this <code>Endpoint</code> instance.
- * <p>
- * If the Binding for this <code>bindingProvider</code> is
- * either SOAP1.1/HTTP or SOAP1.2/HTTP, then a
- * <code>W3CEndpointReference</code> MUST be returned.
- * If the returned <code>EndpointReference</code> is a
- * <code>W3CEndpointReference</code> it MUST contain
- * the <code>wsaw:ServiceName</code> element and the
- * <code>wsaw:EndpointName</code> attribute on the
- * <code>wsaw:ServiceName</code>. It SHOULD contain
- * the embedded WSDL in the <code>wsa:Metadata</code> element
- * if there is an associated WSDL. The
- * <code>wsaw:InterfaceName</code> MAY also be present.
- * <br>
- * See <a href="http://www.w3.org/TR/2006/CR-ws-addr-wsdl-20060529/">
- * WS-Addressing - WSDL 1.0</a>.
- *
- * @param referenceParameters Reference parameters to be associated with the
- * returned <code>EndpointReference</code> instance.
- * @return EndpointReference of this <code>Endpoint</code> instance.
- * If the returned <code>EndpointReference</code> is of type
- * <code>W3CEndpointReference</code> then it MUST contain the
- * the specified <code>referenceParameters</code>.
-
- * @throws WebServiceException If any error in the creation of
- * the <code>EndpointReference</code> or if the <code>Endpoint</code> is
- * not in the published state.
- * @throws UnsupportedOperationException If this <code>BindingProvider</code>
- * uses the XML/HTTP binding.
- *
- * @see javax.xml.ws.wsaddressing.W3CEndpointReference
- *
- * @since JAX-WS 2.1
- **/
- public abstract EndpointReference getEndpointReference(Element... referenceParameters);
-
- /**
- * Returns the <code>EndpointReference</code> associated with
- * this <code>Endpoint</code> instance.
- * <p>
- * If the returned <code>EndpointReference</code> is a
- * <code>W3CEndpointReference</code> it MUST contain
- * the <code>wsaw:ServiceName</code> element and the
- * <code>wsaw:EndpointName</code> attribute on the
- * <code>wsaw:ServiceName</code>. It SHOULD contain
- * the embedded WSDL in the <code>wsa:Metadata</code> element
- * if there is an associated WSDL. The
- * <code>wsaw:InterfaceName</code> MAY also be present.
- * <br>
- * See <a href="http://www.w3.org/TR/2006/CR-ws-addr-wsdl-20060529/">
- * WS-Addressing - WSDL 1.0</a>.
- *
- * @param referenceParameters Reference parameters to be associated with the
- * returned <code>EndpointReference</code> instance.
- * @return EndpointReference of type <code>clazz</code> of this
- * <code>Endpoint<code> instance.
- * If the returned <code>EndpointReference</code> is of type
- * <code>W3CEndpointReference</code> then it MUST contain the
- * the specified <code>referenceParameters</code>.
-
- * @throws WebServiceException If any error in the creation of
- * the <code>EndpointReference</code> or if the <code>Endpoint</code> is
- * not in the published state or if the <code>clazz</code> is not a supported
- * <code>EndpointReference</code> type.
- * @throws UnsupportedOperationException If this <code>BindingProvider</code>
- * uses the XML/HTTP binding.
- *
- *
- * @since JAX-WS 2.1
- **/
- public abstract <T extends EndpointReference> T getEndpointReference(Class<T> clazz, Element... referenceParameters);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/EndpointReference.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/EndpointReference.java 2008-04-30 16:54:03 UTC (rev 6797)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/EndpointReference.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,189 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.io.StringWriter;
-
-import javax.xml.transform.Result;
-import javax.xml.transform.Source;
-import javax.xml.transform.stream.StreamResult;
-import javax.xml.ws.spi.Provider;
-import javax.xml.ws.spi.Provider21;
-import javax.xml.ws.wsaddressing.W3CEndpointReference;
-
-/**
- * This class represents an WS-Addressing EndpointReference
- * which is a remote reference to a web service endpoint.
- * See <a href="http://www.w3.org/TR/2006/REC-ws-addr-core-20060509/">
- * WS-Addressing</a>
- * for more information on WS-Addressing EndpointReferences.
- * <p>
- * This class is immutable as the typical web service developer
- * need not be concerned with its contents. The web service
- * developer should use this class strictly as a mechanism to
- * reference a remote web service endpoint. See the {@link Service} APIs
- * that clients can use to that utilize an <code>EndpointReference</code>.
- * See the {@link javax.xml.ws.Endpoint}, and
- * {@link javax.xml.ws.BindingProvider} APIs on how
- * <code>EndpointReferences</code> can be created for published
- * endpoints.
- * <p>
- * Concrete implementations of this class will represent
- * an <code>EndpointReference</code> for a particular version of Addressing.
- * For example the {@link W3CEndpointReference} is for use
- * with W3C WS-Addressing 1.0 - Core Recommendation.
- * If JAX-WS implementors need to support different versions
- * of addressing, they should write their own
- * <code>EndpointReference</code> subclass for that version.
- * This will allow a JAX-WS implementation to createEndpointReference
- * vendor specific <code>EndpointReferences</code> that that
- * vendor can use to flag a different version of
- * addressing.
- * <p>
- * Web service developers that wish to pass or return
- * <code>EndpointReferences</code> in Java methods in an
- * SEI should use
- * concrete instances of an <code>EndpointReference</code> such
- * as the <code>W3CEndpointReferendce</code>. This way the
- * schema mapped from the SEI will be more descriptive of the
- * type of endpoint reference being passed.
- * <p>
- * JAX-WS implementors are expected to extract the XML infoset
- * from an <CODE>EndpointReferece</CODE> using the
- * <code>{@link EndpointReference#writeTo}</code>
- * method.
- * <p>
- * JAXB will bind this class to xs:anyType. If a better binding
- * is desired, web services developers should use a concrete
- * subclass such as {@link W3CEndpointReference}.
- *
- * @see W3CEndpointReference
- * @see Service
- * @since JAX-WS 2.1
- */
-//@XmlTransient // to treat this class like Object as far as databinding is concerned (proposed JAXB 2.1 feature)
-public abstract class EndpointReference
-{
- //
- //Default constructor to be only called by derived types.
- //
- protected EndpointReference()
- {
- };
-
- /**
- * Factory method to read an EndpointReference from the infoset contained in
- * <code>eprInfoset</code>. This method delegates to the vendor specific
- * implementation of the {@link javax.xml.ws.spi.Provider#readEndpointReference} method.
- *
- * @param eprInfoset The <code>EndpointReference<code> infoset to be unmarshalled
- *
- * @return the EndpointReference unmarshalled from <code>eprInfoset</code>
- * never <code>null</code>
- * @throws WebServiceException
- * if an error occurs while creating the
- * <code>EndpointReference</code> from the <CODE>eprInfoset</CODE>
- * @throws java.lang.IllegalArgumentException
- * if the null <code>eprInfoset</tt> value is given.
- */
- public static EndpointReference readFrom(Source eprInfoset)
- {
- return ((Provider21)Provider.provider()).readEndpointReference(eprInfoset);
- }
-
- /**
- * write this EndpointReference to the specified infoset format
- * @throws WebServiceException
- * if there is an error writing the
- * EndpointReference to the specified <code>result</code>.
- *
- * @throws java.lang.IllegalArgumentException
- * If the null <code>result</tt> value is given.
- */
- public abstract void writeTo(Result result);
-
- /**
- * The getPort method returns a proxy. If there
- * are any reference parameters in the
- * <code>EndpointReference</code> instance, then those reference
- * parameters MUST appear as SOAP headers, indicating them to be
- * reference parameters, on all messages sent to the endpoint.
- * The parameter <code>serviceEndpointInterface</code> specifies
- * the service endpoint interface that is supported by the
- * returned proxy.
- * The <code>EndpointReference</code> instance specifies the
- * endpoint that will be invoked by the returned proxy.
- * In the implementation of this method, the JAX-WS
- * runtime system takes the responsibility of selecting a protocol
- * binding (and a port) and configuring the proxy accordingly from
- * the WSDL Metadata from this <code>EndpointReference</code> or from
- * annotations on the <code>serviceEndpointInterface</code>.
- * <p>
- * Because this port is not created from a Service object, handlers
- * will not automatically be configured, and the HandlerResolver
- * and Executor cannot be get or set for this port. The
- * <code>BindingProvider().getBinding().setHandlerChain()</code>
- * method can be used to manually configure handlers for this port.
- *
- *
- * @param serviceEndpointInterface Service endpoint interface
- * @param features An array of WebServiceFeatures to configure on the
- * proxy. Supported features not in the <code>features
- * </code> parameter will have their default values.
- * @return Object Proxy instance that supports the
- * specified service endpoint interface
- * @throws WebServiceException
- * <UL>
- * <LI>If there is an error during creation
- * of the proxy
- * <LI>If there is any missing WSDL metadata
- * as required by this method
- * <LI>If this
- * <code>endpointReference</code>
- * is invalid
- * <LI>If an illegal
- * <code>serviceEndpointInterface</code>
- * is specified
- * <LI>If feature is enabled that is not compatible with
- * this port or is unsupported.
- * </UL>
- *
- * @see java.lang.reflect.Proxy
- * @see WebServiceFeature
- **/
- public <T> T getPort(Class<T> serviceEndpointInterface, WebServiceFeature... features)
- {
- return ((Provider21)Provider.provider()).getPort(this, serviceEndpointInterface, features);
- }
-
- /**
- * Displays EPR infoset for debugging convenience.
- */
- public String toString()
- {
- StringWriter w = new StringWriter();
- writeTo(new StreamResult(w));
- return w.toString();
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/FaultAction.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/FaultAction.java 2008-04-30 16:54:03 UTC (rev 6797)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/FaultAction.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,171 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * The <code>FaultAction</code> annotation is used inside an <a href="Action.html">
- * Action</a> annotation to allow an explicit association of <code>Action</code> message
- * addressing property with the <code>fault</code> messages of the WSDL operation mapped from
- * the exception class.
- * <p>
- * The <code>fault</code> message in the generated WSDL operation mapped for <code>className</code>
- * class contains explicit <code>wsaw:Action</code> attribute.
- *
- * <p>
- * <b>Example 1</b>: Specify explicit values for <code>Action</code> message addressing
- * property for the <code>input</code>, <code>output</code> and <code>fault</code> message
- * if the Java method throws only one service specific exception.
- *
- * <pre>
- * @javax.jws.WebService
- * public class AddNumbersImpl {
- * @javax.xml.ws.Action(
- * input="http://example.com/inputAction",
- * output="http://example.com/outputAction",
- * fault = {
- * @javax.xml.ws.FaultAction(className=AddNumbersException.class, value="http://example.com/faultAction")
- * })
- * public int addNumbers(int number1, int number2)
- * throws AddNumbersException {
- * return number1 + number2;
- * }
- * }
- * </pre>
- *
- * The generated WSDL looks like:
- *
- * <pre>
- * <definitions targetNamespace="http://example.com/numbers" ...>
- * ...
- * <portType name="AddNumbersPortType">
- * <operation name="AddNumbers">
- * <input message="tns:AddNumbersInput" name="Parameters"
- * wsaw:Action="http://example.com/inputAction"/>
- * <output message="tns:AddNumbersOutput" name="Result"
- * wsaw:Action="http://example.com/outputAction"/>
- * <fault message="tns:AddNumbersException" name="AddNumbersException"
- * wsaw:Action="http://example.com/faultAction"/>
- * </operation>
- * <portType>
- * ...
- * <definitions>
- * </pre>
- *
- * <p>
- * Example 2: Here is an example that shows how to specify explicit values for <code>Action</code>
- * message addressing property if the Java method throws only one service specific exception,
- * without specifying the values for <code>input</code> and <code>output</code> messages.
- *
- * <pre>
- * @javax.jws.WebService
- * public class AddNumbersImpl {
- * @javax.xml.ws.Action(
- * fault = {
- * @javax.xml.ws.FaultAction(className=AddNumbersException.class, value="http://example.com/faultAction")
- * })
- * public int addNumbers(int number1, int number2)
- * throws AddNumbersException {
- * return number1 + number2;
- * }
- * }
- * </pre>
- *
- * The generated WSDL looks like:
- *
- * <pre>
- * <definitions targetNamespace="http://example.com/numbers" ...>
- * ...
- * <portType name="AddNumbersPortType">
- * <operation name="AddNumbers">
- * <input message="tns:AddNumbersInput" name="Parameters"/>
- * <output message="tns:AddNumbersOutput" name="Result"/>
- * <fault message="tns:addNumbersFault" name="InvalidNumbers"
- * wsa:Action="http://example.com/addnumbers/fault"/>
- * </operation>
- * <portType>
- * ...
- * <definitions>
- * </pre>
- *
- * <p>
- * Example 3: Here is an example that shows how to specify explicit values for <code>Action</code>
- * message addressing property if the Java method throws more than one service specific exception.
- *
- * <pre>
- * @javax.jws.WebService
- * public class AddNumbersImpl {
- * @javax.xml.ws.Action(
- * fault = {
- * @javax.xml.ws.FaultAction(className=AddNumbersException.class, value="http://example.com/addFaultAction")
- * @javax.xml.ws.FaultAction(className=TooBigNumbersException.class, value="http://example.com/toobigFaultAction")
- * })
- * public int addNumbers(int number1, int number2)
- * throws AddNumbersException, TooBigNumbersException {
- * return number1 + number2;
- * }
- * }
- * </pre>
- *
- * The generated WSDL looks like:
- *
- * <pre>
- * <definitions targetNamespace="http://example.com/numbers" ...>
- * ...
- * <portType name="AddNumbersPortType">
- * <operation name="AddNumbers">
- * <input message="tns:AddNumbersInput" name="Parameters"/>
- * <output message="tns:AddNumbersOutput" name="Result"/>
- * <fault message="tns:addNumbersFault" name="AddNumbersException"
- * wsa:Action="http://example.com/addnumbers/fault"/>
- * <fault message="tns:tooBigNumbersFault" name="TooBigNumbersException"
- * wsa:Action="http://example.com/toobigFaultAction"/>
- * </operation>
- * <portType>
- * ...
- * <definitions>
- * </pre>
- *
- * @since JAX-WS 2.1
- */
-
-@Documented
-(a)Retention(RetentionPolicy.RUNTIME)
-(a)Target(ElementType.METHOD)
-public @interface FaultAction {
- /**
- * Name of the exception class
- */
- Class className();
-
- /**
- * Value of <code>Action</code> message addressing property for the exception
- */
- String value() default "";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/RespectBinding.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/RespectBinding.java 2008-04-30 16:54:03 UTC (rev 6797)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/RespectBinding.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,107 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.Target;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import javax.xml.ws.spi.WebServiceFeatureAnnotation;
-
-/**
- * This feature clarifies the use of the <code>wsdl:binding</code>
- * in a JAX-WS runtime.
- * <p>
- * This feature is only useful with web services that have an
- * associated WSDL. Enabling this feature requires that a JAX-WS
- * implementation inspect the <code>wsdl:binding</code> for an
- * endpoint at runtime to make sure that all <code>wsdl:extensions</code>
- * that have the <code>required</code> attribute set to <code>true</code>
- * are understood and are being used.
- * <p>
- * The following describes the affects of this feature with respect
- * to be enabled or disabled:
- * <ul>
- * <li> ENABLED: In this Mode, a JAX-WS runtime MUST assure that all
- * required <code>wsdl:binding</code> extensions are either understood
- * and used by the runtime, or explicitly disabled by the web service
- * application. A web service application can disable a particular
- * extension that has a know <code>WebServiceFeature</code> using
- * either the {@link BindingType#features} element on the server
- * or one of the following methods on the client:
- * <ul>
- * <li>{@link Service#getPort(QName,Class,WebServiceFeature...)}
- * <li>{@link Service#getPort(Class,WebServiceFeature...)}
- * <li>{@link Service#getPort(EndpointReference,Class,WebServiceFeature...)}
- * <li>{@link Service#createDispatch(QName,Class,
- * Service.Mode mode,WebServiceFeature...)}
- * <li>{@link Service21#createDispatch(EndpointReference,
- * Class,Service.Mode,
- * WebServiceFeature...)}
- * <li>{@link Service#createDispatch(QName,
- * JAXBContext, Service.Mode, WebServiceFeature...)}
- * <li>{@link Service#createDispatch(EndpointReference,
- * JAXBContext, Service.Mode, WebServiceFeature...)}
- * <li>{@link EndpointReference#getPort(Class,WebServiceFeature...)}
- * <li>One of the <code>getXXXPort(WebServiceFeatures...)</code> methods on a
- * generated <code>Service</code>.
- * </ul>
- * The runtime MUST also make sure that binding of
- * SEI parameters/return values respect the <code>wsdl:binding</code>.
- * With this feature enabled, if a required
- * <code>wsdl:binding</code> extension is in the WSDL and it is not
- * supported by a JAX-WS runtime and it has not
- * been explicitly turned off by the web service developer, then
- * that JAX-WS runtime MUST behave appropriately based on whether it is
- * on the client or server:
- * <UL>
- * <li>Client: runtime MUST throw a
- * <code>WebServiceException</code> no sooner than when one of the methods
- * above is invoked but no later than the first invocation of an endpoint
- * operation.
- * <li>throw a WebServiceException and the endpoint MUST fail to start
- * </ul>
- * <li> DISABLED: In this Mode, an implementation may choose whether
- * to inspect the <code>wsdl:binding<code> or not and to what degree
- * the <code>wsdl:binding</code> will be inspected. For example,
- * one implementation may choose to behave as if this feature is enabled,
- * another implementation may only choose to verify the SEI's
- * parameter/return type bindings.
- * </ul>
- *
- * @see javax.xml.ws.RespectBindingFeature
- *
- * @since JAX-WS 2.1
- */
-(a)Target(ElementType.TYPE)
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-@WebServiceFeatureAnnotation(id = RespectBindingFeature.ID, bean = RespectBindingFeature.class)
-public @interface RespectBinding {
- /**
- * Specifies if this feature is enabled or disabled.
- */
- boolean enabled() default true;
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/RespectBindingFeature.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/RespectBindingFeature.java 2008-04-30 16:54:03 UTC (rev 6797)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/RespectBindingFeature.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,128 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import javax.xml.ws.WebServiceFeature;
-
-/**
- * This feature clarifies the use of the <code>wsdl:binding</code>
- * in a JAX-WS runtime.
- * <p>
- * This feature is only useful with web services that have an
- * associated WSDL. Enabling this feature requires that a JAX-WS
- * implementation inspect the <code>wsdl:binding</code> for an
- * endpoint at runtime to make sure that all <code>wsdl:extensions</code>
- * that have the <code>required</code> attribute set to <code>true</code>
- * are understood and are being used.
- * <p>
- * The following describes the affects of this feature with respect
- * to be enabled or disabled:
- * <ul>
- * <li> ENABLED: In this Mode, a JAX-WS runtime MUST assure that all
- * required <code>wsdl:binding</code> extensions are either understood
- and used by the runtime, or explicitly disabled by the web service
- * application. A web service application can disable a particular
- * extension that has a know <code>WebServiceFeature</code> using
- * either the {@link BindingType#features} element on the server
- * or one of the following methods on the client:
- * <ul>
- * <li>{@link Service#getPort(QName,Class,WebServiceFeature...)}
- * <li>{@link Service#getPort(Class,WebServiceFeature...)}
- * <li>{@link Service#getPort(EndpointReference,Class,WebServiceFeature...)}
- * <li>{@link Service#createDispatch(QName,Class,
- * Service.Mode mode,WebServiceFeature...)}
- * <li>{@link Service21#createDispatch(EndpointReference,
- * Class,Service.Mode,
- * WebServiceFeature...)}
- * <li>{@link Service#createDispatch(QName,
- * JAXBContext, Service.Mode, WebServiceFeature...)}
- * <li>{@link Service#createDispatch(EndpointReference,
- * JAXBContext, Service.Mode, WebServiceFeature...)}
- * <li>{@link EndpointReference#getPort(Class,WebServiceFeature...)}
- * <li>One of the <code>getXXXPort(WebServiceFeatures...)</code> methods on a
- * generated <code>Service</code>.
- * </ul>
- * The runtime MUST also make sure that binding of
- * SEI parameters/return values respect the <code>wsdl:binding</code>.
- * With this feature enabled, if a required
- * <code>wsdl:binding</code> extension is in the WSDL and it is not
- * supported by a JAX-WS runtime and it has not
- * been explicitly turned off by the web service developer, then
- * that JAX-WS runtime MUST behave appropriately based on whether it is
- * on the client or server:
- * <UL>
- * <li>Client: runtime MUST throw a
- * <code>WebServiceException</code> no sooner than when one of the methods
- * above is invoked but no later than the first invocation of an endpoint
- * operation.
- * <li>throw a WebServiceException and the endpoint MUST fail to start
- * </ul>
- * <li> DISABLED: In this Mode, an implementation may choose whether
- * to inspect the <code>wsdl:binding<code> or not and to what degree
- * the <code>wsdl:binding</code> will be inspected. For example,
- * one implementation may choose to behave as if this feature is enabled,
- * another implementation may only choose to verify the SEI's
- * parameter/return type bindings.
- * </ul>
- *
- * @see javax.xml.ws.soap.AddressingFeature
- *
- * @since JAX-WS 2.1
- */
-public final class RespectBindingFeature extends WebServiceFeature
-{
- /**
- *
- * Constant value identifying the RespectBindingFeature
- */
- public static final String ID = "javax.xml.ws.InspectBindingFeature";
-
- /**
- * Create an <code>RespectBindingFeature</code>.
- * The instance created will be enabled.
- */
- public RespectBindingFeature()
- {
- this.enabled = true;
- }
-
- /**
- * Create an RespectBindingFeature
- *
- * @param enabled specifies whether this feature should
- * be enabled or not.
- */
- public RespectBindingFeature(boolean enabled)
- {
- this.enabled = enabled;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getID()
- {
- return ID;
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Service21.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Service21.java 2008-04-30 16:54:03 UTC (rev 6797)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/Service21.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,457 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-import javax.xml.bind.JAXBContext;
-import java.net.URL;
-
-/**
- * @author Heiko.Braun(a)jboss.com
- * @version $Revision$
- */
-public class Service21 extends Service
-{
-
- protected Service21(URL wsdlDocumentLocation, QName serviceName)
- {
- super(wsdlDocumentLocation, serviceName);
- }
-
- /**
- * Create a <code>Service</code> instance.
- *
- * The specified WSDL document location and service qualified name MUST
- * uniquely identify a <code>wsdl:service</code> element.
- *
- * @param wsdlLocation URL for the WSDL document location
- * for the service
- * @param serviceName QName for the service
- * @throws WebServiceException If any error in creation of the
- * specified service.
- **/
- public static Service21 create(URL wsdlLocation, QName serviceName)
- {
- return new Service21(wsdlLocation, serviceName);
- }
-
- /**
- * Create a <code>Service</code> instance.
- *
- * @param serviceName QName for the service
- * @throws WebServiceException If any error in creation of the
- * specified service
- */
- public static Service21 create(QName serviceName)
- {
- return create(null, serviceName);
- }
-
- /**
- * Creates a <code>Dispatch</code> instance for use with objects of
- * the users choosing. If there
- * are any reference parameters in the
- * <code>endpointReference</code>, then those reference
- * parameters MUST appear as SOAP headers, indicating them to be
- * reference parameters, on all messages sent to the endpoint.
- * The <code>endpointReference's</code> address MUST be used
- * for invocations on the endpoint.
- * In the implementation of this method, the JAX-WS
- * runtime system takes the responsibility of selecting a protocol
- * binding (and a port) and configuring the dispatch accordingly from
- * the WSDL associated with this <code>Service</code> instance or
- * from the WSDL Metadata from the <code>endpointReference</code>.
- * If this <code>Service</code> instance has a WSDL and
- * the <code>endpointReference</code>
- * also has a WSDL, then the WSDL from this instance will be used.
- * If this <code>Service</code> instance does not have a WSDL and
- * the <code>endpointReference</code> does have a WSDL, then the
- * WSDL from the <code>endpointReference</code> will be used.
- * <p>
- * This method behaves the same as calling
- * <pre>
- * dispatch = service.createDispatch(portName, type, mode, features);
- * </pre>
- * where the <code>portName</code> is retrieved from the
- * <code>wsaw:EndpointName</code> attribute of the <code>wsaw:ServiceName</code>
- * element in the
- * metadata of the <code>endpointReference</code>.
- * <br>
- * See <a href="http://www.w3.org/TR/2006/CR-ws-addr-wsdl-20060529/">WS-Addressing - WSDL 1.0
- * </a>.
- *
- * @param endpointReference The <code>EndpointReference</code>
- * for the target service endpoint that will be invoked by the
- * returned <code>Dispatch</code> object.
- * @param type The class of object used to messages or message
- * payloads. Implementations are required to support
- * javax.xml.transform.Source and javax.xml.soap.SOAPMessage.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body. Mode MUST be MESSAGE
- * when type is SOAPMessage.
- * @param features An array of WebServiceFeatures to configure on the
- * proxy. Supported features not in the <code>features
- * </code> parameter will have their default values.
- *
- * @return Dispatch instance
- * @throws WebServiceException
- * <UL>
- * <LI>If there is any missing WSDL metadata
- * as required by this method.
- * <li>If the <code>wsaw:ServiceName</code> element
- * or the <code>wsaw:EndpointName</code> attribute
- * is missing in the metdata of the
- * <code>endpointReference</code>.
- * <li>If the <code>wsaw:ServiceName</code> does not
- * match the <code>serviceName</code> of this instance.
- * <li>If the <code>wsaw:EndpointName</code> does not
- * match a valid wsdl:Port in the WSDL metadata.
- * <li>If any error in the creation of
- * the <code>Dispatch</code> object.
- * <li>if a feature is enabled that is not
- * compatible with this port or is unsupported.
- * </UL>
- *
- * @see javax.xml.transform.Source
- * @see javax.xml.soap.SOAPMessage
- * @see WebServiceFeature;
- *
- * @since JAX-WS 2.1
- **/
- public <T> Dispatch<T> createDispatch(EndpointReference endpointReference, Class<T> type, Service.Mode mode, WebServiceFeature... features)
- {
- return delegate.createDispatch(endpointReference, type, mode, features);
- }
-
- /**
- * Creates a <code>Dispatch</code> instance for use with JAXB
- * generated objects. If there
- * are any reference parameters in the
- * <code>endpointReference</code>, then those reference
- * parameters MUST appear as SOAP headers, indicating them to be
- * reference parameters, on all messages sent to the endpoint.
- * The <code>endpointReference's</code> address MUST be used
- * for invocations on the endpoint.
- * In the implementation of this method, the JAX-WS
- * runtime system takes the responsibility of selecting a protocol
- * binding (and a port) and configuring the dispatch accordingly from
- * the WSDL associated with this <code>Service</code> instance or
- * from the WSDL Metadata from the <code>endpointReference</code>.
- * If this <code>Service</code> instance has a WSDL and
- * the <code>endpointReference</code>
- * also has a WSDL, then the WSDL from this instance will be used.
- * If this <code>Service</code> instance does not have a WSDL and
- * the <code>endpointReference</code> does have a WSDL, then the
- * WSDL from the <code>endpointReference</code> will be used.
- * <p>
- * This method behavies the same as calling
- * <pre>
- * dispatch = service.createDispatch(portName, context, mode, features);
- * </pre>
- * where the <code>portName</code> is retrieved from the
- * <code>wsaw:EndpointName</code> attribute of the <code>wsaw:ServiceName</code>
- * element in the
- * metadata of the <code>endpointReference</code>.
- * <br>
- * See <a href="http://www.w3.org/TR/2006/CR-ws-addr-wsdl-20060529/">WS-Addressing - WSDL 1.0
- * </a>.
- *
- * @param endpointReference The <code>EndpointReference</code>
- * for the target service endpoint that will be invoked by the
- * returned <code>Dispatch</code> object.
- * @param context The JAXB context used to marshall and unmarshall
- * messages or message payloads.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body.
- * @param features An array of WebServiceFeatures to configure on the
- * proxy. Supported features not in the <code>features
- * </code> parameter will have their default values.
- *
- * @return Dispatch instance
- * @throws WebServiceException
- * @throws WebServiceException
- * <UL>
- * <li>If there is any missing WSDL metadata
- * as required by this method.
- * <li>If the <code>wsaw:ServiceName</code> element
- * or the <code>wsaw:EndpointName</code> attribute
- * is missing in the metdata of the
- * <code>endpointReference</code>.
- * <li>If the <code>wsaw:ServiceName</code> does not
- * match the <code>serviceName</code> of this instance.
- * <li>If the <code>wsaw:EndpointName</code> does not
- * match a valid wsdl:Port in the WSDL metadata.
- * <li>If any error in the creation of
- * the <code>Dispatch</code> object.
- * <li>if a feature is enabled that is not
- * compatible with this port or is unsupported.
- * </UL>
- *
- * @see javax.xml.bind.JAXBContext
- * @see WebServiceFeature
- *
- * @since JAX-WS 2.1
- **/
- public Dispatch<Object> createDispatch(EndpointReference endpointReference, JAXBContext context, Service.Mode mode, WebServiceFeature... features)
- {
- return delegate.createDispatch(endpointReference, context, mode, features);
- }
-
- /**
- * Creates a <code>Dispatch</code> instance for use with objects of
- * the users choosing.
- *
- * @param portName Qualified name for the target service endpoint
- * @param type The class of object used for messages or message
- * payloads. Implementations are required to support
- * javax.xml.transform.Source and javax.xml.soap.SOAPMessage.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body. Mode MUST be MESSAGE
- * when type is SOAPMessage.
- * @param features A list of WebServiceFeatures to configure on the
- * proxy. Supported features not in the <code>features
- * </code> parameter will have their default values.
- *
- * @return Dispatch instance.
- * @throws WebServiceException If any error in the creation of
- * the <code>Dispatch</code> object or if a
- * feature is enabled that is not compatible with
- * this port or is unsupported.
- *
- * @see javax.xml.transform.Source
- * @see javax.xml.soap.SOAPMessage
- * @see WebServiceFeature
- *
- * @since JAX-WS 2.1
- **/
- public <T> Dispatch<T> createDispatch(QName portName, Class<T> type, Service.Mode mode, WebServiceFeature... features)
- {
- return delegate.createDispatch(portName, type, mode, features);
- }
-
- /**
- * Creates a <code>Dispatch</code> instance for use with JAXB
- * generated objects.
- *
- * @param portName Qualified name for the target service endpoint
- * @param context The JAXB context used to marshall and unmarshall
- * messages or message payloads.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body.
- * @param features A list of WebServiceFeatures to configure on the
- * proxy. Supported features not in the <code>features
- * </code> parameter will have their default values.
- *
- * @return Dispatch instance.
- * @throws WebServiceException If any error in the creation of
- * the <code>Dispatch</code> object or if a
- * feature is enabled that is not compatible with
- * this port or is unsupported.
- *
- * @see javax.xml.bind.JAXBContext
- * @see WebServiceFeature
- *
- * @since JAX-WS 2.1
- **/
- public Dispatch<Object> createDispatch(QName portName, JAXBContext context, Service.Mode mode, WebServiceFeature... features)
- {
- return delegate.createDispatch(portName, context, mode, features);
- }
-
-
- /**
- * The getPort method returns a proxy. The parameter
- * <code>serviceEndpointInterface</code> specifies the service
- * endpoint interface that is supported by the returned proxy.
- * In the implementation of this method, the JAX-WS
- * runtime system takes the responsibility of selecting a protocol
- * binding (and a port) and configuring the proxy accordingly.
- * The returned proxy should not be reconfigured by the client.
- *
- * @param serviceEndpointInterface Service endpoint interface.
- * @param features A list of WebServiceFeatures to configure on the
- * proxy. Supported features not in the <code>features
- * </code> parameter will have their default values.
- * @return Object instance that supports the
- * specified service endpoint interface.
- * @throws WebServiceException
- * <UL>
- * <LI>If there is an error during creation
- * of the proxy.
- * <LI>If there is any missing WSDL metadata
- * as required by this method.
- * <LI>If an illegal
- * <code>serviceEndpointInterface</code>
- * is specified.
- * <LI>If a feature is enabled that is not compatible
- * with this port or is unsupported.
- * </UL>
- *
- * @see WebServiceFeature
- *
- * @since JAX-WS 2.1
- **/
- public <T> T getPort(Class<T> serviceEndpointInterface, WebServiceFeature... features)
- {
- return delegate.getPort(serviceEndpointInterface, features);
- }
-
- /**
- * The getPort method returns a proxy.
- * The parameter <code>endpointReference</code> specifies the
- * endpoint that will be invoked by the returned proxy. If there
- * are any reference parameters in the
- * <code>endpointReference</code>, then those reference
- * parameters MUST appear as SOAP headers, indicating them to be
- * reference parameters, on all messages sent to the endpoint.
- * The <code>endpointReference's</code> address MUST be used
- * for invocations on the endpoint.
- * The parameter <code>serviceEndpointInterface</code> specifies
- * the service endpoint interface that is supported by the
- * returned proxy.
- * In the implementation of this method, the JAX-WS
- * runtime system takes the responsibility of selecting a protocol
- * binding (and a port) and configuring the proxy accordingly from
- * the WSDL associated with this <code>Service</code> instance or
- * from the WSDL Metadata from the <code>endpointReference</code>.
- * If this <code>Service</code> instance has a WSDL and
- * the <code>endpointReference</code>
- * also has a WSDL, then the WSDL from this instance will be used.
- * If this <code>Service</code> instance does not have a WSDL and
- * the <code>endpointReference</code> does have a WSDL, then the
- * WSDL from the <code>endpointReference</code> will be used.
- * The returned proxy should not be reconfigured by the client.
- * If this <code>Service</code> instance has a known proxy
- * port that matches the information contained in
- * the WSDL,
- * then that proxy is returned, otherwise a WebServiceException
- * is thrown.
- * <p>
- * Calling this method has the same behavior as the following
- * <pre>
- * port = service.getPort(portName, serviceEndpointInterface);
- * </pre>
- * where the <code>portName</code> is retrieved from the
- * <code>wsaw:EndpontName</code> attribute of the
- * <code>wsaw:ServiceName</code> element in the
- * metadata of the <code>endpointReference</code> or from the
- * <code>serviceEndpointInterface</code> and the WSDL
- * associated with this <code>Service</code> instance.
- * <br>
- * See <a href="http://www.w3.org/TR/2006/CR-ws-addr-wsdl-20060529/">WS-Addressing - WSDL 1.0
- * </a>.
- *
- * @param endpointReference The <code>EndpointReference</code>
- * for the target service endpoint that will be invoked by the
- * returned proxy.
- * @param serviceEndpointInterface Service endpoint interface.
- * @param features An array of WebServiceFeatures to configure on the
- * proxy. Supported features not in the <code>features
- * </code> parameter will have their default values.
- * @return Object Proxy instance that supports the
- * specified service endpoint interface.
- * @throws WebServiceException
- * <UL>
- * <LI>If there is an error during creation
- * of the proxy.
- * <LI>If there is any missing WSDL metadata
- * as required by this method.
- * <LI>If the <code>wsaw:EndpointName</code> is
- * missing from the <code>endpointReference</code>
- * or does not match a wsdl:Port
- * in the WSDL metadata.
- * <LI>If the <code>wsaw:ServiceName</code> in the
- * <code>endpointReference</code> metadata does not
- * match the <code>serviceName</code> of this
- * <code>Service</code> instance.
- * <LI>If an invalid
- * <code>endpointReference</code>
- * is specified.
- * <LI>If an invalid
- * <code>serviceEndpointInterface</code>
- * is specified.
- * <LI>If a feature is enabled that is not compatible
- * with this port or is unsupported.
- * </UL>
- *
- * @since JAX-WS 2.1
- **/
- public <T> T getPort(EndpointReference endpointReference, Class<T> serviceEndpointInterface, WebServiceFeature... features)
- {
- return delegate.getPort(endpointReference, serviceEndpointInterface, features);
- }
-
- /**
- * The getPort method returns a proxy. A service client
- * uses this proxy to invoke operations on the target
- * service endpoint. The <code>serviceEndpointInterface</code>
- * specifies the service endpoint interface that is supported by
- * the created dynamic proxy instance.
- *
- * @param portName Qualified name of the service endpoint in
- * the WSDL service description.
- * @param serviceEndpointInterface Service endpoint interface
- * supported by the dynamic proxy instance.
- * @param features A list of WebServiceFeatures to configure on the
- * proxy. Supported features not in the <code>features
- * </code> parameter will have their default values.
- * @return Object Proxy instance that
- * supports the specified service endpoint
- * interface.
- * @throws WebServiceException This exception is thrown in the
- * following cases:
- * <UL>
- * <LI>If there is an error in creation of
- * the proxy.
- * <LI>If there is any missing WSDL metadata
- * as required by this method.
- * <LI>If an illegal
- * <code>serviceEndpointInterface</code>
- * or <code>portName</code> is specified.
- * <LI>If a feature is enabled that is not compatible
- * with this port or is unsupported.
- * </UL>
- * @see java.lang.reflect.Proxy
- * @see java.lang.reflect.InvocationHandler
- * @see WebServiceFeature
- *
- * @since JAX-WS 2.1
- **/
- public <T> T getPort(QName portName, Class<T> serviceEndpointInterface, WebServiceFeature... features)
- {
- return delegate.getPort(portName, serviceEndpointInterface, features);
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceContext21.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceContext21.java 2008-04-30 16:54:03 UTC (rev 6797)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceContext21.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,104 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-import org.w3c.dom.Element;
-
-/**
- * @author Heiko.Braun(a)jboss.com
- * @version $Revision$
- */
-public interface WebServiceContext21 extends WebServiceContext
-{
- /**
- * Returns the <code>WEndpointReference</code> for this
- * endpoint.
- * <p>
- * If the Binding for this <code>bindingProvider</code> is
- * either SOAP1.1/HTTP or SOAP1.2/HTTP, then a
- * <code>W3CEndpointReference</code> MUST be returned.
- * If the returned <code>EndpointReference</code> is a
- * <code>W3CEndpointReference</code> it MUST contain
- * the <code>wsaw:ServiceName</code> element and the
- * <code>wsaw:EndpointName</code> attribute on the
- * <code>wsaw:ServiceName</code>. It SHOULD contain
- * the embedded WSDL in the <code>wsa:Metadata</code> element
- * if there is an associated WSDL. The
- * <code>wsaw:InterfaceName</code> MAY also be present.
- * <br>
- * See <a href="http://www.w3.org/TR/2006/CR-ws-addr-wsdl-20060529/">
- * WS-Addressing - WSDL 1.0</a>.
- *
- * @param referenceParameters Reference parameters to be associated with the
- * returned <code>EndpointReference</code> instance.
- * @return EndpointReference of the endpoint associated with this
- * <code>WebServiceContext</code>.
- * If the returned <code>EndpointReference</code> is of type
- * <code>W3CEndpointReference</code> then it MUST contain the
- * the specified <code>referenceParameters</code>.
- *
- * @throws IllegalStateException This exception is thrown
- * if the method is called while no request is
- * being serviced.
- *
- * @see javax.xml.ws.wsaddressing.W3CEndpointReference
- *
- * @since JAX-WS 2.1
- */
- public EndpointReference getEndpointReference(Element... referenceParameters);
-
- /**
- * Returns the <code>EndpointReference</code> associated with
- * this endpoint.
- * <p>
- * If the returned <code>EndpointReference</code> is a
- * <code>W3CEndpointReference</code> it MUST contain
- * the <code>wsaw:ServiceName</code> element and the
- * <code>wsaw:EndpointName</code> attribute on the
- * <code>wsaw:ServiceName</code>. It SHOULD contain
- * the embedded WSDL in the <code>wsa:Metadata</code> element
- * if there is an associated WSDL. The
- * <code>wsaw:InterfaceName</code> MAY also be present.
- * <br>
- * See <a href="http://www.w3.org/TR/2006/CR-ws-addr-wsdl-20060529/">
- * WS-Addressing - WSDL 1.0</a>.
- *
- * @param clazz The type of <code>EndpointReference</code> that
- * MUST be returned.
- * @param referenceParameters Reference parameters to be associated with the
- * returned <code>EndpointReference</code> instance.
- * @return EndpointReference of type <code>clazz</code> of the endpoint
- * associated with this <code>WebServiceContext</code> instance.
- * If the returned <code>EndpointReference</code> is of type
- * <code>W3CEndpointReference</code> then it MUST contain the
- * the specified <code>referenceParameters</code>.
- *
- * @throws IllegalStateException This exception is thrown
- * if the method is called while no request is
- * being serviced.
- * @throws WebServiceException If the <code>clazz</code> type of
- * <code>EndpointReference</code> is not supported.
- *
- * @since JAX-WS 2.1
- **/
- public abstract <T extends EndpointReference> T getEndpointReference(Class<T> clazz, Element... referenceParameters);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceFeature.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceFeature.java 2008-04-30 16:54:03 UTC (rev 6797)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/WebServiceFeature.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,79 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws;
-
-// $Id$
-
-/**
- * A WebServiceFeature is used to represent a feature that can be
- * enabled or disabled for a web service.
- * <p>
- * The JAX-WS specification will define some standard features and
- * JAX-WS implementors are free to define additional features if
- * necessary. Vendor specific features may not be portable so
- * caution should be used when using them. Each Feature definition
- * MUST define a <code>public static final String ID</code>
- * that can be used in the Feature annotation to refer
- * to the feature. This ID MUST be unique across all features
- * of all vendors. When defining a vendor specific feature ID,
- * use a vendor specific namespace in the ID string.
- *
- * @see javax.xml.ws.RespectBindingFeature
- * @see javax.xml.ws.soap.AddressingFeature
- * @see javax.xml.ws.soap.MTOMFeature
- *
- * @since 2.1
- */
-public abstract class WebServiceFeature
-{
- /**
- * Each Feature definition MUST define a public static final
- * String ID that can be used in the Feature annotation to refer
- * to the feature.
- */
- // public static final String ID = "some unique feature Identifier";
- /**
- * Get the unique identifier for this WebServiceFeature.
- *
- * @return the unique identifier for this feature.
- */
- public abstract String getID();
-
- /**
- * Specifies if the feature is enabled or disabled
- */
- protected boolean enabled = false;
-
- protected WebServiceFeature()
- {
- }
-
- /**
- * Returns <code>true</code> if this feature is enabled.
- *
- * @return <code>true</code> if and only if the feature is enabled .
- */
- public boolean isEnabled()
- {
- return enabled;
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/MessageContext21.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/MessageContext21.java 2008-04-30 16:54:03 UTC (rev 6797)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/handler/MessageContext21.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,39 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.handler;
-
-/**
- * @author Heiko.Braun(a)jboss.com
- * @version $Revision$
- */
-public interface MessageContext21 extends MessageContext
-{
- /**
- * Standard property: WS Addressing Reference Parameters.
- * The list MUST include all SOAP headers marked with the
- * wsa:IsReferenceParameter="true" attribute.
- * <p>Type: List<Element>
- *
- * @since JAX-WS 2.1
- */
- public static final String REFERENCE_PARAMETERS = "javax.xml.ws.reference.parameters";
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/Addressing.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/Addressing.java 2008-04-30 16:54:03 UTC (rev 6797)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/Addressing.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,90 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.soap;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-import javax.xml.ws.spi.WebServiceFeatureAnnotation;
-
-/**
- * This feature represents the use of WS-Addressing with either
- * the SOAP 1.1/HTTP or SOAP 1.2/HTTP binding. Using this feature
- * with any other binding is NOT required.
- * <p>
- * Enabling this feature will result in the
- * <code>wsaw:UsingAddressing</code> element being added to the
- * <code>wsdl:Binding</code> for
- * the endpoint and in the runtime being capable of responding to
- * WS-Addressing headers.
- * <p>
- * The following describes the affects of this feature with respect
- * to be enabled or disabled:
- * <ul>
- * <li> ENABLED: In this Mode, Addressing will be enabled.
- * If there is not a WSDL associated with the Endpoint and
- * a WSDL is to be generated, it MUST be generated with the
- * wsaw:UsingAddressing element. At runtime, Addressing headers
- * MUST be consumed by the receiver and generated by the
- * sender even if the WSDL declares otherwise. The
- * mustUnderstand="0" attribute MUST be used on the Addressing
- * headers.
- * <li> DISABLED: In this Mode, Addressing will be disabled
- * even if an associated WSDL specifies otherwise. At runtime,
- * Addressing headers MUST NOT be used.
- * </ul>
- * <p>
- * The {@link #required} property can be used to
- * specify if the <code>required</code> attribute on the
- * <code>wsaw:UsingAddressing</code> element should
- * be <code>true</code> or <code>false</code>. By default the
- * <code>wsdl:required</code> parameter is <code>false</code>.
- *
- * See <a href="http://www.w3.org/TR/2006/REC-ws-addr-core-20060509/">WS-Addressing</a>
- * for more information on WS-Addressing.
- * See <a href="http://www.w3.org/TR/2006/CR-ws-addr-wsdl-20060529/">WS-Addressing - WSDL 1.0
- * </a> for more information on <code>wsaw:UsingAddressing</code>.
- *
- * @since JAX-WS 2.1
- */
-(a)Target(ElementType.TYPE)
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-(a)WebServiceFeatureAnnotation(id=AddressingFeature.ID,bean=AddressingFeature.class)
-public @interface Addressing {
- /**
- * Specifies if this feature is enabled or disabled.
- */
- boolean enabled() default true;
-
- /**
- * Property to determine the value of the
- * <code>wsdl:required</code> attribute on
- * <code>wsaw:UsingAddressing</code> element in the WSDL.
- */
- boolean required() default false;
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/AddressingFeature.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/AddressingFeature.java 2008-04-30 16:54:03 UTC (rev 6797)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/AddressingFeature.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,143 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.soap;
-
-// $Id$
-
-import javax.xml.ws.WebServiceFeature;
-
-/**
- * This feature represents the use of WS-Addressing with either
- * the SOAP 1.1/HTTP or SOAP 1.2/HTTP binding. Using this feature
- * with any other binding is NOT required.
- * <p>
- * Enabling this feature on the server will result in the
- * <code>wsaw:UsingAddressing</code> element being added to the
- * <code>wsdl:Binding</code> for
- * the endpoint and in the runtime being capable of responding to
- * WS-Addressing headers.
- * <p>
- * Enabling this feature on the client will cause the JAX-WS runtime
- * to include WS-Addressing headers in SOAP messages.
- * <p>
- * If the web service developer has not explicitly enabled this feature,
- * it may be automatically enabled if the associated WSDL enables
- * WS-Addressing via the <code>wsaw:UsingAddressing</code> element with
- * the <code>wsdl:required</code> attribute set to <code>true</code>.
- * <br>
- * See {@link javax.xml.ws.RespectBindingFeature} for more information
- * on required WSDL extensions.
- * <p>
- * The following describes the affects of this feature with respect
- * to be enabled or disabled:
- * <ul>
- * <li> ENABLED: In this Mode, Addressing will be enabled.
- * If there is not a WSDL associated with the Endpoint and
- * a WSDL is to be generated, it MUST be generated with the
- * wsaw:UsingAddressing element. At runtime, Addressing headers
- * MUST be consumed by the receiver and generated by the
- * sender even if the WSDL declares otherwise. The
- * mustUnderstand="0" attribute MUST be used on the Addressing
- * headers.
- * <li> DISABLED: In this Mode, Addressing will be disabled
- * even if an associated WSDL specifies otherwise. At runtime,
- * Addressing headers MUST NOT be used.
- * </ul>
- * <p>
- * The {@link #required} property can be used to
- * specify if the <code>required</code> attribute on the
- * <code>wsaw:UsingAddressing</code> element should
- * be <code>true</code> or <code>false</code>. By default the
- * <code>wsdl:required</code> parameter is <code>false</code>.
- *
- * See <a href="http://www.w3.org/TR/2006/REC-ws-addr-core-20060509/">WS-Addressing</a>
- * for more information on WS-Addressing.
- * See <a href="http://www.w3.org/TR/2006/CR-ws-addr-wsdl-20060529/">WS-Addressing - WSDL 1.0
- * </a> for more information on <code>wsaw:UsingAddressing</code>.
- *
- * @since JAX-WS 2.1
- */
-public final class AddressingFeature extends WebServiceFeature {
- /**
- * Constant value identifying the AddressingFeature
- */
- public static final String ID = "http://www.w3.org/2005/08/addressing/module";
-
- /**
- * Property for <code>required</code> feature parameter. When Addressing
- * is enabled, the value of this property will be set to the
- * <code>wsdl:required</code> attribute on
- * <code>wsaw:UsingAddressing</code> element in the WSDL.
- */
- protected boolean required = false;
-
- /**
- * Create an <code>AddressingFeature</code>.
- * The instance created will be enabled.
- */
- public AddressingFeature() {
- this.enabled = true;
- }
-
- /**
- * Create an <code>AddressingFeature</code>
- *
- * @param enabled specifies whether this feature should
- * be enabled or not.
- */
- public AddressingFeature(boolean enabled) {
- this.enabled = enabled;
- }
-
- /**
- * Create an <code>AddressingFeature</code>
- *
- * @param enabled specifies whether this feature should
- * be enabled or not.
- * @param required specifies the value that will be used
- * for the <code>wsdl:required</code> attribute on the
- * <code>wsaw:UsingAddressing</code> element.
- */
- public AddressingFeature(boolean enabled, boolean required) {
- this.enabled = enabled;
- this.required = required;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getID() {
- return ID;
- }
-
- /**
- * Gets the boolean value used to set the
- * <code>wsdl:required</code> attribute on
- * <code>wsaw:UsingAddressing</code> element
- * in the WSDL.
- *
- * @return the current required value
- */
- public boolean isRequired() {
- return required;
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/MTOM.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/MTOM.java 2008-04-30 16:54:03 UTC (rev 6797)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/MTOM.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,67 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.soap;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-import javax.xml.ws.spi.WebServiceFeatureAnnotation;
-
-/**
- * This feature represents the use of MTOM with a
- * web service.
- *
- * <p>
- * The following describes the affects of this feature with respect
- * to being enabled or disabled:
- * <ul>
- * <li> ENABLED: In this Mode, MTOM will be enabled.
- * <li> DISABLED: In this Mode, MTOM will be disabled
- * </ul>
- * <p>
- * The {@link #threshold} property can be used to set the threshold
- * value used to determine when binary data should be XOP encoded.
- *
- * @since JAX-WS 2.1
- */
-(a)Target(ElementType.TYPE)
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-(a)WebServiceFeatureAnnotation(id=MTOMFeature.ID,bean=MTOMFeature.class)
-public @interface MTOM {
- /**
- * Specifies if this feature is enabled or disabled.
- */
- boolean enabled() default true;
-
- /**
- * Property for MTOM threshold value. When MTOM is enabled, binary data above this
- * size in bytes will be XOP encoded or sent as attachment. The value of this property
- * MUST always be >= 0. Default value is 0.
- */
- int threshold() default 0;
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/MTOMFeature.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/MTOMFeature.java 2008-04-30 16:54:03 UTC (rev 6797)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/soap/MTOMFeature.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,129 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.soap;
-
-// $Id$
-
-import javax.xml.ws.WebServiceException;
-import javax.xml.ws.WebServiceFeature;
-
-
-/**
- * This feature represents the use of MTOM with a
- * web service.
- *
- * <p>
- * The following describes the affects of this feature with respect
- * to being enabled or disabled:
- * <ul>
- * <li> ENABLED: In this Mode, MTOM will be enabled.
- * <li> DISABLED: In this Mode, MTOM will be disabled
- * </ul>
- * <p>
- * The {@link #threshold} property can be used to set the threshold
- * value used to determine when binary data should be XOP encoded.
- *
- * @since JAX-WS 2.1
- */
-public final class MTOMFeature extends WebServiceFeature {
- /**
- * Constant value identifying the MTOMFeature
- */
- public static final String ID = "http://www.w3.org/2004/08/soap/features/http-optimization";
-
-
- /**
- * Property for MTOM threshold value. This property serves as a hint when
- * MTOM is enabled, binary data above this size in bytes SHOULD be sent
- * as attachment.
- * The value of this property MUST always be >= 0. Default value is 0.
- */
- protected int threshold = 0;
-
-
- /**
- * Create an <code>MTOMFeature</code>.
- * The instance created will be enabled.
- */
- public MTOMFeature() {
- this.enabled = true;
- }
-
- /**
- * Creates an <code>MTOMFeature</code>.
- *
- * @param enabled specifies if this feature should be enabled or not
- */
- public MTOMFeature(boolean enabled) {
- this.enabled = enabled;
- }
-
-
- /**
- * Creates an <code>MTOMFeature</code>.
- * The instance created will be enabled.
- *
- * @param threshold the size in bytes that binary data SHOULD be before
- * being sent as an attachment.
- *
- * @throws WebServiceException if threshold is < 0
- */
- public MTOMFeature(int threshold) {
- if (threshold < 0)
- throw new WebServiceException("MTOMFeature.threshold must be >= 0, actual value: "+threshold);
- this.enabled = true;
- this.threshold = threshold;
- }
-
- /**
- * Creates an <code>MTOMFeature</code>.
- *
- * @param enabled specifies if this feature should be enabled or not
- * @param threshold the size in bytes that binary data SHOULD be before
- * being sent as an attachment.
- *
- * @throws WebServiceException if threshold is < 0
- */
- public MTOMFeature(boolean enabled, int threshold) {
- if (threshold < 0)
- throw new WebServiceException("MTOMFeature.threshold must be >= 0, actual value: "+threshold);
- this.enabled = enabled;
- this.threshold = threshold;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getID() {
- return ID;
- }
-
- /**
- * Gets the threshold value used to determine when binary data
- * should be sent as an attachment.
- *
- * @return the current threshold size in bytes
- */
- public int getThreshold() {
- return threshold;
- }
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/Provider21.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/Provider21.java 2008-04-30 16:54:03 UTC (rev 6797)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/Provider21.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,194 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.spi;
-
-import org.w3c.dom.Element;
-
-import javax.xml.ws.EndpointReference;
-import javax.xml.ws.WebServiceFeature;
-import javax.xml.ws.wsaddressing.W3CEndpointReference;
-import javax.xml.namespace.QName;
-import javax.xml.transform.Source;
-import java.util.List;
-
-/**
- * @author Heiko.Braun(a)jboss.com
- * @version $Revision$
- */
-public abstract class Provider21 extends Provider
-{
- /**
- * The getPort method returns a proxy. If there
- * are any reference parameters in the
- * <code>endpointReference</code>, then those reference
- * parameters MUST appear as SOAP headers, indicating them to be
- * reference parameters, on all messages sent to the endpoint.
- * The parameter <code>serviceEndpointInterface</code> specifies
- * the service endpoint interface that is supported by the
- * returned proxy.
- * The parameter <code>endpointReference</code> specifies the
- * endpoint that will be invoked by the returned proxy.
- * In the implementation of this method, the JAX-WS
- * runtime system takes the responsibility of selecting a protocol
- * binding (and a port) and configuring the proxy accordingly from
- * the WSDL Metadata from the <code>EndpointReference</code>.
- *
- *
- * @param endpointReference the EndpointReference that will
- * be invoked by the returned proxy.
- * @param serviceEndpointInterface Service endpoint interface
- * @param features A list of WebServiceFeatures to configure on the
- * proxy. Supported features not in the <code>features
- * </code> parameter will have their default values.
- * @return Object Proxy instance that supports the
- * specified service endpoint interface
- * @throws javax.xml.ws.WebServiceException
- * <UL>
- * <LI>If there is an error during creation
- * of the proxy
- * <LI>If there is any missing WSDL metadata
- * as required by this method
- * <LI>If this
- * <code>endpointReference</code>
- * is illegal
- * <LI>If an illegal
- * <code>serviceEndpointInterface</code>
- * is specified
- * <LI>If feature is enabled that is not compatible with
- * this port or is unsupported.
- * </UL>
- *
- * @see javax.xml.ws.WebServiceFeature
- *
- * @since JAX-WS 2.1
- **/
- public abstract <T> T getPort(EndpointReference endpointReference, Class<T> serviceEndpointInterface, WebServiceFeature... features);
-
- /**
- * Factory method to create a <code>W3CEndpointReference</code>.
- *
- * <p>
- * This method can be used to create a <code>W3CEndpointReference</code>
- * for any endpoint by specifying the <code>address</code> property along
- * with any other desired properties. This method
- * can also be used to create a <code>W3CEndpointReference</code> for
- * an endpoint that is published by the same Java EE application.
- * To do so the <code>address</code> property can be provided or this
- * method can automatically determine the <code>address</code> of
- * an endpoint that is published by the same Java EE application and is
- * identified by the <code>serviceName</code> and
- * <code>portName</code> propeties. If the <code>address</code> is
- * <code>null</code> and the <code>serviceName</code> and
- * <code>portName</code> do not identify an endpoint published by the
- * same Java EE application, a
- * <code>javax.lang.IllegalArgumentException</code> MUST be thrown.
- *
- * @param address Specifies the address of the target endpoint
- * @param serviceName Qualified name of the service in the WSDL.
- * @param portName Qualified name of the endpoint in the WSDL.
- * @param metadata A list of elements that should be added to the
- * <code>W3CEndpointReference</code> instances <code>wsa:metadata</code>
- * element.
- * @param wsdlDocumentLocation URL for the WSDL document location for
- * the service.
- * @param referenceParameters Reference parameters to be associated
- * with the returned <code>EndpointReference</code> instance.
- *
- * @return the <code>W3CEndpointReference<code> created from
- * <code>serviceName</code>, <code>portName</code>,
- * <code>metadata</code>, <code>wsdlDocumentLocation</code>
- * and <code>referenceParameters</code>. This method
- * never returns <code>null</code>.
- *
- * @throws javax.lang.IllegalArgumentException
- * <ul>
- * <li>If the <code>address</code>, <code>serviceName</code> and
- * <code>portName</code> are all <code>null</code>.
- * <li>If the <code>serviceName</code> service is <code>null</code> and the
- * <code>portName> is NOT <code>null</code>.
- * <li>If the <code>address</code> property is <code>null</code> and
- * the <code>serviceName</code> and <code>portName</code> do not
- * specify a valid endpoint published by the same Java EE
- * application.
- * <li>If the <code>serviceName</code>is NOT <code>null</code>
- * and is not present in the specified WSDL.
- * <li>If the <code>portName</code> port is not <code>null<code> and it
- * is not present in <code>serviceName</code> service in the WSDL.
- * <li>If the <code>wsdlDocumentLocation</code> is NOT <code>null</code>
- * and does not represent a valid WSDL.
- * </ul>
- * @throws javax.xml.ws.WebServiceException If an error occurs while creating the
- * <code>W3CEndpointReference</code>.
- *
- * @since JAX-WS 2.1
- */
- public abstract W3CEndpointReference createW3CEndpointReference(String address, QName serviceName, QName portName, List<Element> metadata,
- String wsdlDocumentLocation, List<Element> referenceParameters);
-
- /**
- * read an EndpointReference from the infoset contained in
- * <code>eprInfoset</code>.
- *
- * @returns the <code>EndpointReference</code> unmarshalled from
- * <code>eprInfoset</code>. This method never returns <code>null</code>.
- *
- * @throws javax.xml.ws.WebServiceException If there is an error creating the
- * <code>EndpointReference</code> from the specified <code>eprInfoset</code>.
- *
- * @throws NullPointerException If the <code>null</code>
- * <code>eprInfoset</code> value is given.
- *
- * @since JAX-WS 2.1
- **/
- public abstract EndpointReference readEndpointReference(javax.xml.transform.Source eprInfoset);
-
- /**
- * Create an EndpointReference for <code>serviceName</code>
- * service and <code>portName</code> port from the WSDL <code>wsdlDocumentLocation</code>. The instance
- * returned will be of type <code>clazz</code> and contain the <code>referenceParameters</code>
- * reference parameters. This method delegates to the vendor specific
- * implementation of the {@link javax.xml.ws.spi.Provider#createEndpointReference(Class<T>, javax.xml.namespace.QName, javax.xml.namespace.QName, javax.xml.transform.Source, org.w3c.dom.Element...)} method.
- *
- * @param clazz Specifies the type of <code>EndpointReference</code> that MUST be returned.
- * @param serviceName Qualified name of the service in the WSDL.
- * @param portName Qualified name of the endpoint in the WSDL.
- * @param wsdlDocumentLocation URL for the WSDL document location for the service.
- * @param referenceParameters Reference parameters to be associated with the
- * returned <code>EndpointReference</code> instance.
- *
- * @return the EndpointReference created from <code>serviceName</code>, <code>portName</code>,
- * <code>wsdlDocumentLocation</code> and <code>referenceParameters</code>. This method
- * never returns <code>null</code>.
- * @throws javax.xml.ws.WebServiceException
- * <UL>
- * <li>If the <code>serviceName</code> service is not present in the WSDL.
- * <li>If the <code>portName</code> port is not present in <code>serviceName</code> service in the WSDL.
- * <li>If the <code>wsdlDocumentLocation</code> does not represent a valid WSDL.
- * <li>If an error occurs while creating the <code>EndpointReference</code>.
- * <li>If the Class <code>clazz</code> is not supported by this implementation.
- * </UL>
- * @throws java.lang.IllegalArgumentException
- * if any of the <code>clazz</code>, <code>serviceName</code>, <code>portName</code> and <code>wsdlDocumentLocation</code> is null.
- */
- public abstract <T extends EndpointReference> T createEndpointReference(Class<T> clazz, QName serviceName, QName portName, Source wsdlDocumentLocation,
- Element... referenceParameters);
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/ServiceDelegate21.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/ServiceDelegate21.java 2008-04-30 16:54:03 UTC (rev 6797)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/ServiceDelegate21.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,411 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.spi;
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.WebServiceFeature;
-import javax.xml.ws.Dispatch;
-import javax.xml.ws.Service;
-import javax.xml.ws.EndpointReference;
-import javax.xml.bind.JAXBContext;
-
-/**
- * @author Heiko.Braun(a)jboss.com
- * @version $Revision$
- */
-public abstract class ServiceDelegate21 extends ServiceDelegate
-{
- /**
- * The getPort method returns a proxy. A service client
- * uses this proxy to invoke operations on the target
- * service endpoint. The <code>serviceEndpointInterface</code>
- * specifies the service endpoint interface that is supported by
- * the created dynamic proxy instance.
- *
- * @param portName Qualified name of the service endpoint in
- * the WSDL service description
- * @param serviceEndpointInterface Service endpoint interface
- * supported by the dynamic proxy or instance
- * @param features A list of WebServiceFeatures to configure on the
- * proxy. Supported features not in the <code>features
- * </code> parameter will have their default values.
- * @return Object Proxy instance that
- * supports the specified service endpoint
- * interface
- * @throws javax.xml.ws.WebServiceException This exception is thrown in the
- * following cases:
- * <UL>
- * <LI>If there is an error in creation of
- * the proxy
- * <LI>If there is any missing WSDL metadata
- * as required by this method
- * <LI>If an illegal
- * <code>serviceEndpointInterface</code>
- * or <code>portName</code> is specified
- * <LI>If a feature is enabled that is not compatible
- * with this port or is unsupported.
- * </UL>
- * @see java.lang.reflect.Proxy
- * @see java.lang.reflect.InvocationHandler
- * @see javax.xml.ws.WebServiceFeature
- *
- * @since JAX-WS 2.1
- **/
- public abstract <T> T getPort(QName portName,
- Class<T> serviceEndpointInterface, WebServiceFeature... features);
-
- /**
- * The getPort method returns a proxy.
- * The parameter <code>endpointReference</code> specifies the
- * endpoint that will be invoked by the returned proxy. If there
- * are any reference parameters in the
- * <code>endpointReference</code>, then those reference
- * parameters MUST appear as SOAP headers, indicating them to be
- * reference parameters, on all messages sent to the endpoint.
- * The <code>endpointReference's</code> address MUST be used
- * for invocations on the endpoint.
- * The parameter <code>serviceEndpointInterface</code> specifies
- * the service endpoint interface that is supported by the
- * returned proxy.
- * In the implementation of this method, the JAX-WS
- * runtime system takes the responsibility of selecting a protocol
- * binding (and a port) and configuring the proxy accordingly from
- * the WSDL associated with this <code>Service</code> instance or
- * from the WSDL Metadata from the <code>endpointReference</code>.
- * If this <code>Service</code> instance has a WSDL and
- * the <code>endpointReference</code>
- * also has a WSDL, then the WSDL from this instance will be used.
- * If this <code>Service</code> instance does not have a WSDL and
- * the <code>endpointReference</code> does have a WSDL, then the
- * WSDL from the <code>endpointReference</code> will be used.
- * The returned proxy should not be reconfigured by the client.
- * If this <code>Service</code> instance has a known proxy
- * port that matches the information contained in
- * the WSDL,
- * then that proxy is returned, otherwise a WebServiceException
- * is thrown.
- * <p>
- * Calling this method has the same behavior as the following
- * <pre>
- * port = service.getPort(portName, serviceEndpointInterface);
- * </pre>
- * where the <code>portName</code> is retrieved from the
- * <code>wsaw:EndpontName</code> attribute of the
- * <code>wsaw:ServiceName</code> element in the
- * metadata of the <code>endpointReference</code> or from the
- * <code>serviceEndpointInterface</code> and the WSDL
- * associated with this <code>Service</code> instance.
- * <br>
- * See <a href="http://www.w3.org/TR/2006/CR-ws-addr-wsdl-20060529/">WS-Addressing - WSDL 1.0
- * </a>.
- *
- * @param endpointReference The <code>EndpointReference</code>
- * for the target service endpoint that will be invoked by the
- * returned proxy.
- * @param serviceEndpointInterface Service endpoint interface.
- * @param features A list of WebServiceFeatures to configure on the
- * proxy. Supported features not in the <code>features
- * </code> parameter will have their default values.
- * @return Object Proxy instance that supports the
- * specified service endpoint interface.
- * @throws javax.xml.ws.WebServiceException
- * <UL>
- * <LI>If there is an error during creation
- * of the proxy.
- * <LI>If there is any missing WSDL metadata
- * as required by this method.
- * <LI>If the <code>wsaw:EndpointName</code> is
- * missing from the <code>endpointReference</code>
- * or does not match a wsdl:Port
- * in the WSDL metadata.
- * <LI>If the <code>wsaw:ServiceName</code> in the
- * <code>endpointReference</code> metadata does not
- * match the <code>serviceName</code> of this
- * <code>Service</code> instance.
- * <LI>If an invalid
- * <code>endpointReference</code>
- * is specified.
- * <LI>If an invalid
- * <code>serviceEndpointInterface</code>
- * is specified.
- * <LI>If a feature is enabled that is not compatible
- * with this port or is unsupported.
- * </UL>
- *
- * @since JAX-WS 2.1
- **/
- public abstract <T> T getPort(EndpointReference endpointReference,
- Class<T> serviceEndpointInterface, WebServiceFeature... features);
-
- /**
- * The getPort method returns a proxy. The parameter
- * <code>serviceEndpointInterface</code> specifies the service
- * endpoint interface that is supported by the returned proxy.
- * In the implementation of this method, the JAX-WS
- * runtime system takes the responsibility of selecting a protocol
- * binding (and a port) and configuring the proxy accordingly.
- * The returned proxy should not be reconfigured by the client.
- *
- * @param serviceEndpointInterface Service endpoint interface
- * @param features An array of WebServiceFeatures to configure on the
- * proxy. Supported features not in the <code>features
- * </code> parameter will have their default values.
- * @return Object instance that supports the
- * specified service endpoint interface
- * @throws javax.xml.ws.WebServiceException
- * <UL>
- * <LI>If there is an error during creation
- * of the proxy
- * <LI>If there is any missing WSDL metadata
- * as required by this method
- * <LI>If an illegal
- * <code>serviceEndpointInterface</code>
- * is specified
- * <LI>If a feature is enabled that is not compatible
- * with this port or is unsupported.
- * </UL>
- *
- * @see WebServiceFeature
- *
- * @since JAX-WS 2.1
- **/
- public abstract <T> T getPort(Class<T> serviceEndpointInterface,
- WebServiceFeature... features);
-
- /**
- * Creates a <code>Dispatch</code> instance for use with objects of
- * the users choosing.
- *
- * @param portName Qualified name for the target service endpoint
- * @param type The class of object used for messages or message
- * payloads. Implementations are required to support
- * javax.xml.transform.Source and javax.xml.soap.SOAPMessage.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body. Mode MUST be MESSAGE
- * when type is SOAPMessage.
- * @param features A list of WebServiceFeatures to configure on the
- * proxy. Supported features not in the <code>features
- * </code> parameter will have their default values.
- *
- * @return Dispatch instance
- * @throws javax.xml.ws.WebServiceException If any error in the creation of
- * the <code>Dispatch</code> object or if a
- * feature is enabled that is not compatible with
- * this port or is unsupported.
- *
- * @see javax.xml.transform.Source
- * @see javax.xml.soap.SOAPMessage
- * @see WebServiceFeature
- *
- * @since JAX-WS 2.1
- **/
- public abstract <T> Dispatch<T> createDispatch(QName portName, Class<T> type,
- Service.Mode mode, WebServiceFeature... features);
-
- /**
- * Creates a <code>Dispatch</code> instance for use with objects of
- * the users choosing. If there
- * are any reference parameters in the
- * <code>endpointReference</code>, then those reference
- * parameters MUST appear as SOAP headers, indicating them to be
- * reference parameters, on all messages sent to the endpoint.
- * The <code>endpointReference's</code> address MUST be used
- * for invocations on the endpoint.
- * In the implementation of this method, the JAX-WS
- * runtime system takes the responsibility of selecting a protocol
- * binding (and a port) and configuring the dispatch accordingly from
- * the WSDL associated with this <code>Service</code> instance or
- * from the WSDL Metadata from the <code>endpointReference</code>.
- * If this <code>Service</code> instance has a WSDL and
- * the <code>endpointReference</code>
- * also has a WSDL, then the WSDL from this instance will be used.
- * If this <code>Service</code> instance does not have a WSDL and
- * the <code>endpointReference</code> does have a WSDL, then the
- * WSDL from the <code>endpointReference</code> will be used.
- * <p>
- * This method behaves the same as calling
- * <pre>
- * dispatch = service.createDispatch(portName, type, mode, features);
- * </pre>
- * where the <code>portName</code> is retrieved from the
- * <code>wsaw:EndpointName</code> attribute of the <code>wsaw:ServiceName</code>
- * element in the
- * metadata of the <code>endpointReference</code>.
- * <br>
- * See <a href="http://www.w3.org/TR/2006/CR-ws-addr-wsdl-20060529/">WS-Addressing - WSDL 1.0
- * </a>.
- *
- * @param endpointReference The <code>EndpointReference</code>
- * for the target service endpoint that will be invoked by the
- * returned <code>Dispatch</code> object.
- * @param type The class of object used to messages or message
- * payloads. Implementations are required to support
- * javax.xml.transform.Source and javax.xml.soap.SOAPMessage.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body. Mode MUST be MESSAGE
- * when type is SOAPMessage.
- * @param features An array of WebServiceFeatures to configure on the
- * proxy. Supported features not in the <code>features
- * </code> parameter will have their default values.
- *
- * @return Dispatch instance
- * @throws javax.xml.ws.WebServiceException
- * <UL>
- * <LI>If there is any missing WSDL metadata
- * as required by this method.
- * <li>If the <code>wsaw:ServiceName</code> element
- * or the <code>wsaw:EndpointName</code> attribute
- * is missing in the metdata of the
- * <code>endpointReference</code>.
- * <li>If the <code>wsaw:ServiceName</code> does not
- * match the <code>serviceName</code> of this instance.
- * <li>If the <code>wsaw:EndpointName</code> does not
- * match a valid wsdl:Port in the WSDL metadata.
- * <li>If any error in the creation of
- * the <code>Dispatch</code> object.
- * <li>if a feature is enabled that is not
- * compatible with this port or is unsupported.
- * </UL>
- *
- * @see javax.xml.transform.Source
- * @see javax.xml.soap.SOAPMessage
- * @see WebServiceFeature;
- *
- * @since JAX-WS 2.1
- **/
- public abstract <T> Dispatch<T> createDispatch(EndpointReference endpointReference,
- Class<T> type, Service.Mode mode,
- WebServiceFeature... features);
-
- /**
- * Creates a <code>Dispatch</code> instance for use with JAXB
- * generated objects.
- *
- * @param portName Qualified name for the target service endpoint
- * @param context The JAXB context used to marshall and unmarshall
- * messages or message payloads.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body.
- * @param features A list of WebServiceFeatures to configure on the
- * proxy. Supported features not in the <code>features
- * </code> parameter will have their default values.
- *
- * @return Dispatch instance
- * @throws javax.xml.ws.WebServiceException If any error in the creation of
- * the <code>Dispatch</code> object or if a
- * feature is enabled that is not compatible with
- * this port or is unsupported.
- *
- * @see javax.xml.bind.JAXBContext
- * @see WebServiceFeature
- *
- * @since JAX-WS 2.1
- **/
- public abstract Dispatch<Object> createDispatch(QName portName,
- JAXBContext context, Service.Mode mode, WebServiceFeature... features);
-
- /**
- * Creates a <code>Dispatch</code> instance for use with JAXB
- * generated objects. If there
- * are any reference parameters in the
- * <code>endpointReference</code>, then those reference
- * parameters MUST appear as SOAP headers, indicating them to be
- * reference parameters, on all messages sent to the endpoint.
- * The <code>endpointReference's</code> address MUST be used
- * for invocations on the endpoint.
- * In the implementation of this method, the JAX-WS
- * runtime system takes the responsibility of selecting a protocol
- * binding (and a port) and configuring the dispatch accordingly from
- * the WSDL associated with this <code>Service</code> instance or
- * from the WSDL Metadata from the <code>endpointReference</code>.
- * If this <code>Service</code> instance has a WSDL and
- * the <code>endpointReference</code>
- * also has a WSDL, then the WSDL from this instance will be used.
- * If this <code>Service</code> instance does not have a WSDL and
- * the <code>endpointReference</code> does have a WSDL, then the
- * WSDL from the <code>endpointReference</code> will be used.
- * <p>
- * This method behavies the same as calling
- * <pre>
- * dispatch = service.createDispatch(portName, context, mode, features);
- * </pre>
- * where the <code>portName</code> is retrieved from the
- * <code>wsaw:EndpointName</code> attribute of the <code>wsaw:ServiceName</code>
- * element in the
- * metadata of the <code>endpointReference</code>.
- * <br>
- * See <a href="http://www.w3.org/TR/2006/CR-ws-addr-wsdl-20060529/">WS-Addressing - WSDL 1.0
- * </a>.
- *
- * @param endpointReference The <code>EndpointReference</code>
- * for the target service endpoint that will be invoked by the
- * returned <code>Dispatch</code> object.
- * @param context The JAXB context used to marshall and unmarshall
- * messages or message payloads.
- * @param mode Controls whether the created dispatch instance is message
- * or payload oriented, i.e. whether the user will work with complete
- * protocol messages or message payloads. E.g. when using the SOAP
- * protocol, this parameter controls whether the user will work with
- * SOAP messages or the contents of a SOAP body.
- * @param features An array of WebServiceFeatures to configure on the
- * proxy. Supported features not in the <code>features
- * </code> parameter will have their default values.
- *
- * @return Dispatch instance
- * @throws javax.xml.ws.WebServiceException
- * @throws javax.xml.ws.WebServiceException
- * <UL>
- * <li>If there is any missing WSDL metadata
- * as required by this method.
- * <li>If the <code>wsaw:ServiceName</code> element
- * or the <code>wsaw:EndpointName</code> attribute
- * is missing in the metdata of the
- * <code>endpointReference</code>.
- * <li>If the <code>wsaw:ServiceName</code> does not
- * match the <code>serviceName</code> of this instance.
- * <li>If the <code>wsaw:EndpointName</code> does not
- * match a valid wsdl:Port in the WSDL metadata.
- * <li>If any error in the creation of
- * the <code>Dispatch</code> object.
- * <li>if a feature is enabled that is not
- * compatible with this port or is unsupported.
- * </UL>
- *
- * @see javax.xml.bind.JAXBContext
- * @see WebServiceFeature
- *
- * @since JAX-WS 2.1
- **/
- public abstract Dispatch<Object> createDispatch(EndpointReference endpointReference,
- JAXBContext context, Service.Mode mode,
- WebServiceFeature... features);
-
-}
Deleted: stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/WebServiceFeatureAnnotation.java
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/WebServiceFeatureAnnotation.java 2008-04-30 16:54:03 UTC (rev 6797)
+++ stack/native/branches/tdiesler/trunk/modules/jaxws-impl/src/main/java/javax/xml/ws/spi/WebServiceFeatureAnnotation.java 2008-04-30 17:07:14 UTC (rev 6798)
@@ -1,71 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.ws.spi;
-
-// $Id$
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-import javax.xml.ws.WebServiceFeature;
-
-/**
- * Annotation used to identify other annotations
- * as a <code>WebServiceFeature</code>.
- *
- * Each <code>WebServiceFeature</code> annotation annotated with
- * this annotation MUST contain an
- * <code>enabled</code> property of type
- * <code>boolean</code> with a default value of <code>true</code>.
- * JAX-WS defines the following
- * <code>WebServiceFeature</code> annotations, however, an implementation
- * may define vendors specific annotations for other features.
- * If a JAX-WS implementation encounters an annotation annotated
- * with the <code>WebServiceFeatureAnnotation</code> that is does not
- * recognize/support an error MUST be given.
- *
- * @see javax.xml.ws.soap.WSAddressing
- * @see javax.xml.ws.soap.MTOM
- * @see javax.xml.ws.RespectBinding
- *
- * @since JAX-WS 2.1
- */
-(a)Target(ElementType.ANNOTATION_TYPE)
-(a)Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface WebServiceFeatureAnnotation {
- /**
- * Unique identifier for the WebServiceFeature. This
- * identifier MUST be unique across all implementations
- * of JAX-WS.
- */
- String id();
-
- /**
- * The <code>WebServiceFeature</code> bean that is associated
- * with the <code>WebServiceFeature</code> annotation
- */
- Class<? extends WebServiceFeature> bean();
-}
16 years, 8 months
JBossWS SVN: r6797 - in stack/native/branches/tdiesler/trunk/modules: jaxws-impl and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-30 12:54:03 -0400 (Wed, 30 Apr 2008)
New Revision: 6797
Modified:
stack/native/branches/tdiesler/trunk/modules/jaxrpc-impl/
stack/native/branches/tdiesler/trunk/modules/jaxws-impl/
stack/native/branches/tdiesler/trunk/modules/saaj-impl/
Log:
Property changes on: stack/native/branches/tdiesler/trunk/modules/jaxrpc-impl
___________________________________________________________________
Name: svn:ignore
+ target
Property changes on: stack/native/branches/tdiesler/trunk/modules/jaxws-impl
___________________________________________________________________
Name: svn:ignore
+ target
Property changes on: stack/native/branches/tdiesler/trunk/modules/saaj-impl
___________________________________________________________________
Name: svn:ignore
+ target
16 years, 8 months