View Javadoc
1   
2   package org.oasis_open.docs.wsn.brw_2;
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.6 in JDK 6
17   * Generated source version: 2.1
18   * 
19   */
20  @WebServiceClient(name = "NotificationService", targetNamespace = "http://docs.oasis-open.org/wsn/brw-2")
21  public class NotificationService
22      extends Service
23  {
24  
25      private final static URL NOTIFICATIONSERVICE_WSDL_LOCATION;
26      private final static Logger logger = Logger.getLogger(org.oasis_open.docs.wsn.brw_2.NotificationService.class.getName());
27  
28      
29         static {
30             ClassLoader cl = Thread.currentThread().getContextClassLoader();
31          if (cl != null) {
32              NOTIFICATIONSERVICE_WSDL_LOCATION = cl.getResource("brw-2impl.wsdl");
33          } else {
34              NOTIFICATIONSERVICE_WSDL_LOCATION = NotificationService.class.getClassLoader().getResource("brw-2impl.wsdl");
35          }
36      }
37      public NotificationService(URL wsdlLocation, QName serviceName) {
38          super(wsdlLocation, serviceName);
39      }
40  
41      public NotificationService() {
42          super(NOTIFICATIONSERVICE_WSDL_LOCATION, new QName("http://docs.oasis-open.org/wsn/brw-2", "NotificationService"));
43      }
44  
45      /**
46       * 
47       * @return
48       *     returns NotificationBroker
49       */
50      @WebEndpoint(name = "NotificationPort")
51      public NotificationBroker getNotificationPort() {
52          return super.getPort(new QName("http://docs.oasis-open.org/wsn/brw-2", "NotificationPort"), NotificationBroker.class);
53      }
54  
55      /**
56       * 
57       * @param features
58       *     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.
59       * @return
60       *     returns NotificationBroker
61       */
62      @WebEndpoint(name = "NotificationPort")
63      public NotificationBroker getNotificationPort(WebServiceFeature... features) {
64          return super.getPort(new QName("http://docs.oasis-open.org/wsn/brw-2", "NotificationPort"), NotificationBroker.class, features);
65      }
66  
67  }