This project has retired. For details please refer to its Attic page.
PolicyService xref
View Javadoc

1   package org.apache.chemistry.opencmis.commons.impl.jaxb;
2   
3   import java.net.URL;
4   import javax.xml.namespace.QName;
5   import javax.xml.ws.WebEndpoint;
6   import javax.xml.ws.WebServiceClient;
7   import javax.xml.ws.WebServiceFeature;
8   import javax.xml.ws.Service;
9   
10  /**
11   * This class was generated by Apache CXF 3.0.12
12   * 2017-03-31T15:16:24.586+02:00
13   * Generated source version: 3.0.12
14   * 
15   */
16  @WebServiceClient(name = "PolicyService", 
17                    wsdlLocation = "classpath:/wsdl/cmis11/CMISWS-Service.wsdl",
18                    targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200908/") 
19  public class PolicyService extends Service {
20  
21      public final static URL WSDL_LOCATION;
22  
23      public final static QName SERVICE = new QName("http://docs.oasis-open.org/ns/cmis/ws/200908/", "PolicyService");
24      public final static QName PolicyServicePort = new QName("http://docs.oasis-open.org/ns/cmis/ws/200908/", "PolicyServicePort");
25      static {
26          URL url = PolicyService.class.getClassLoader().getResource("/wsdl/cmis11/CMISWS-Service.wsdl");
27          if (url == null) {
28              url = PolicyService.class.getClassLoader().getResource("wsdl/cmis11/CMISWS-Service.wsdl");
29          }
30          if (url == null) {
31              java.util.logging.Logger.getLogger(PolicyService.class.getName())
32                  .log(java.util.logging.Level.INFO, 
33                       "Can not initialize the default wsdl from {0}", "classpath:/wsdl/cmis11/CMISWS-Service.wsdl");
34          }       
35          WSDL_LOCATION = url;   
36      }
37  
38      public PolicyService(URL wsdlLocation) {
39          super(wsdlLocation, SERVICE);
40      }
41  
42      public PolicyService(URL wsdlLocation, QName serviceName) {
43          super(wsdlLocation, serviceName);
44      }
45  
46      public PolicyService() {
47          super(WSDL_LOCATION, SERVICE);
48      }
49      
50      //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
51      //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
52      //compliant code instead.
53      public PolicyService(WebServiceFeature ... features) {
54          super(WSDL_LOCATION, SERVICE, features);
55      }
56  
57      //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
58      //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
59      //compliant code instead.
60      public PolicyService(URL wsdlLocation, WebServiceFeature ... features) {
61          super(wsdlLocation, SERVICE, features);
62      }
63  
64      //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
65      //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
66      //compliant code instead.
67      public PolicyService(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) {
68          super(wsdlLocation, serviceName, features);
69      }    
70  
71      /**
72       *
73       * @return
74       *     returns PolicyServicePort
75       */
76      @WebEndpoint(name = "PolicyServicePort")
77      public PolicyServicePort getPolicyServicePort() {
78          return super.getPort(PolicyServicePort, PolicyServicePort.class);
79      }
80  
81      /**
82       * 
83       * @param features
84       *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.
85       * @return
86       *     returns PolicyServicePort
87       */
88      @WebEndpoint(name = "PolicyServicePort")
89      public PolicyServicePort getPolicyServicePort(WebServiceFeature... features) {
90          return super.getPort(PolicyServicePort, PolicyServicePort.class, features);
91      }
92  
93  }