This project has retired. For details please refer to its Attic page.
RepositoryService xref

1   
2   package org.apache.chemistry.opencmis.commons.impl.jaxb;
3   
4   import java.net.MalformedURLException;
5   import java.net.URL;
6   import java.util.logging.Logger;
7   import javax.xml.namespace.QName;
8   import javax.xml.ws.Service;
9   import javax.xml.ws.WebEndpoint;
10  import javax.xml.ws.WebServiceClient;
11  import javax.xml.ws.WebServiceFeature;
12  
13  
14  /**
15   * This class was generated by the JAX-WS RI.
16   * JAX-WS RI 2.1.7-b01-
17   * Generated source version: 2.1
18   * 
19   */
20  @WebServiceClient(name = "RepositoryService", targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200908/", wsdlLocation = "file:/home/gab/dev/chemistry-opencmis-0.7.0-RC1/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/resources/wsdl/CMISWS-Service.wsdl")
21  public class RepositoryService
22      extends Service
23  {
24  
25      private final static URL REPOSITORYSERVICE_WSDL_LOCATION;
26      private final static Logger logger = Logger.getLogger(org.apache.chemistry.opencmis.commons.impl.jaxb.RepositoryService.class.getName());
27  
28      static {
29          URL url = null;
30          try {
31              URL baseUrl;
32              baseUrl = org.apache.chemistry.opencmis.commons.impl.jaxb.RepositoryService.class.getResource(".");
33              url = new URL(baseUrl, "file:/home/gab/dev/chemistry-opencmis-0.7.0-RC1/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/resources/wsdl/CMISWS-Service.wsdl");
34          } catch (MalformedURLException e) {
35              logger.warning("Failed to create URL for the wsdl Location: 'file:/home/gab/dev/chemistry-opencmis-0.7.0-RC1/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/resources/wsdl/CMISWS-Service.wsdl', retrying as a local file");
36              logger.warning(e.getMessage());
37          }
38          REPOSITORYSERVICE_WSDL_LOCATION = url;
39      }
40  
41      public RepositoryService(URL wsdlLocation, QName serviceName) {
42          super(wsdlLocation, serviceName);
43      }
44  
45      public RepositoryService() {
46          super(REPOSITORYSERVICE_WSDL_LOCATION, new QName("http://docs.oasis-open.org/ns/cmis/ws/200908/", "RepositoryService"));
47      }
48  
49      /**
50       * 
51       * @return
52       *     returns RepositoryServicePort
53       */
54      @WebEndpoint(name = "RepositoryServicePort")
55      public RepositoryServicePort getRepositoryServicePort() {
56          return super.getPort(new QName("http://docs.oasis-open.org/ns/cmis/ws/200908/", "RepositoryServicePort"), RepositoryServicePort.class);
57      }
58  
59      /**
60       * 
61       * @param features
62       *     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.
63       * @return
64       *     returns RepositoryServicePort
65       */
66      @WebEndpoint(name = "RepositoryServicePort")
67      public RepositoryServicePort getRepositoryServicePort(WebServiceFeature... features) {
68          return super.getPort(new QName("http://docs.oasis-open.org/ns/cmis/ws/200908/", "RepositoryServicePort"), RepositoryServicePort.class, features);
69      }
70  
71  }