cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r784265 - in /cxf/sandbox/geronimo-jaxws_2.2_spec/src/main/java/javax/xml/ws: EndpointContext.java soap/Addressing.java soap/AddressingFeature.java
Date Fri, 12 Jun 2009 20:40:37 GMT
Author: dkulp
Date: Fri Jun 12 20:40:37 2009
New Revision: 784265

URL: http://svn.apache.org/viewvc?rev=784265&view=rev
Log:
Add missing class, get new Addressing stuff implemented

Added:
    cxf/sandbox/geronimo-jaxws_2.2_spec/src/main/java/javax/xml/ws/EndpointContext.java  
(with props)
Modified:
    cxf/sandbox/geronimo-jaxws_2.2_spec/src/main/java/javax/xml/ws/soap/Addressing.java
    cxf/sandbox/geronimo-jaxws_2.2_spec/src/main/java/javax/xml/ws/soap/AddressingFeature.java

Added: cxf/sandbox/geronimo-jaxws_2.2_spec/src/main/java/javax/xml/ws/EndpointContext.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/geronimo-jaxws_2.2_spec/src/main/java/javax/xml/ws/EndpointContext.java?rev=784265&view=auto
==============================================================================
--- cxf/sandbox/geronimo-jaxws_2.2_spec/src/main/java/javax/xml/ws/EndpointContext.java (added)
+++ cxf/sandbox/geronimo-jaxws_2.2_spec/src/main/java/javax/xml/ws/EndpointContext.java Fri
Jun 12 20:40:37 2009
@@ -0,0 +1,29 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.xml.ws;
+
+import java.util.Set;
+
+/**
+ * @since 2.2
+ */
+public abstract class EndpointContext {
+    public abstract Set<Endpoint>  getEndpoints();
+}

Propchange: cxf/sandbox/geronimo-jaxws_2.2_spec/src/main/java/javax/xml/ws/EndpointContext.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/sandbox/geronimo-jaxws_2.2_spec/src/main/java/javax/xml/ws/EndpointContext.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: cxf/sandbox/geronimo-jaxws_2.2_spec/src/main/java/javax/xml/ws/soap/Addressing.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/geronimo-jaxws_2.2_spec/src/main/java/javax/xml/ws/soap/Addressing.java?rev=784265&r1=784264&r2=784265&view=diff
==============================================================================
--- cxf/sandbox/geronimo-jaxws_2.2_spec/src/main/java/javax/xml/ws/soap/Addressing.java (original)
+++ cxf/sandbox/geronimo-jaxws_2.2_spec/src/main/java/javax/xml/ws/soap/Addressing.java Fri
Jun 12 20:40:37 2009
@@ -19,6 +19,7 @@
 
 package javax.xml.ws.soap;
 
+import javax.xml.ws.soap.AddressingFeature.Responses;
 import javax.xml.ws.spi.WebServiceFeatureAnnotation;
 import java.lang.annotation.Documented;
 import java.lang.annotation.ElementType;
@@ -31,10 +32,14 @@
 @Target(value=ElementType.TYPE)                                                         
                     
 @WebServiceFeatureAnnotation(id=AddressingFeature.ID, bean=AddressingFeature.class)
                                                                                         
                     
-public @interface Addressing {                                                          
                 
-                                                                                        
                     
+public @interface Addressing {
+    
     public boolean enabled() default true;
     
     public boolean required() default false;
-                                                                                        
                     
+                              
+    /**
+     * @since 2.2
+     */
+    public Responses responses() default Responses.ALL;
 }

Modified: cxf/sandbox/geronimo-jaxws_2.2_spec/src/main/java/javax/xml/ws/soap/AddressingFeature.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/geronimo-jaxws_2.2_spec/src/main/java/javax/xml/ws/soap/AddressingFeature.java?rev=784265&r1=784264&r2=784265&view=diff
==============================================================================
--- cxf/sandbox/geronimo-jaxws_2.2_spec/src/main/java/javax/xml/ws/soap/AddressingFeature.java
(original)
+++ cxf/sandbox/geronimo-jaxws_2.2_spec/src/main/java/javax/xml/ws/soap/AddressingFeature.java
Fri Jun 12 20:40:37 2009
@@ -22,9 +22,16 @@
 import javax.xml.ws.WebServiceFeature;
 
 public final class AddressingFeature extends WebServiceFeature {
+    /**
+     * @since 2.2
+     */
+    public enum Responses {ALL, ANONYMOUS, NON_ANONYMOUS};
+
+    
     public static final String ID = "http://www.w3.org/2005/08/addressing/module";
     
     protected boolean required;
+    private Responses responses = Responses.ALL;
     
     public AddressingFeature() {
         this(true, false);
@@ -38,6 +45,15 @@
         this.enabled  = enabled;
         this.required = required;
     }
+    
+    /**
+     * @since 2.2
+     */
+    public AddressingFeature(boolean enabled, boolean required, Responses responses) {
+        this.enabled  = enabled;
+        this.required = required;
+        this.responses = responses;
+    }
 
     public boolean isRequired() {
         return required;
@@ -47,4 +63,11 @@
     public String getID() {
         return ID;
     }
+    
+    /**
+     * @since 2.2
+     */
+    public Responses getResponses() {
+        return responses;
+    }
 }



Mime
View raw message