Java Doc for Provider.java in  » 6.0-JDK-Modules » jax-ws-api » javax » xml » ws » spi » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » jax ws api » javax.xml.ws.spi 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.xml.ws.spi.Provider

Provider
abstract public class Provider (Code)
Service provider for ServiceDelegate and Endpoint objects.


since:
   JAX-WS 2.0



Field Summary
final public static  StringJAXWSPROVIDER_PROPERTY
     A constant representing the property used to lookup the name of a Provider implementation class.

Constructor Summary
protected  Provider()
    

Method Summary
abstract public  EndpointcreateAndPublishEndpoint(String address, Object implementor)
     Creates and publishes an endpoint object with the specified address and implementation object.
Parameters:
  address - A URI specifying the address and transport/protocolto use.
abstract public  EndpointcreateEndpoint(String bindingId, Object implementor)
     Creates an endpoint object with the provided binding and implementation object.
Parameters:
  bindingId - A URI specifying the desired binding (e.g.
abstract public  ServiceDelegatecreateServiceDelegate(java.net.URL wsdlDocumentLocation, QName serviceName, Class serviceClass)
     Creates a service delegate object.


Parameters:
  wsdlDocumentLocation - A URL pointing to the WSDL documentfor the service, or null if there isn't one.
Parameters:
  serviceName - The qualified name of the service.
Parameters:
  serviceClass - The service class, which MUST be eitherjavax.xml.ws.Service or a subclass thereof.

abstract public  W3CEndpointReferencecreateW3CEndpointReference(String address, QName serviceName, QName portName, List<Element> metadata, String wsdlDocumentLocation, List<Element> referenceParameters)
     Factory method to create a W3CEndpointReference.

This method can be used to create a W3CEndpointReference for any endpoint by specifying the address property along with any other desired properties.

abstract public  TgetPort(EndpointReference endpointReference, Class<T> serviceEndpointInterface, WebServiceFeature... features)
     The getPort method returns a proxy.
public static  Providerprovider()
     Creates a new provider object.
abstract public  EndpointReferencereadEndpointReference(javax.xml.transform.Source eprInfoset)
     read an EndpointReference from the infoset contained in eprInfoset. the EndpointReference unmarshalled fromeprInfoset.

Field Detail
JAXWSPROVIDER_PROPERTY
final public static String JAXWSPROVIDER_PROPERTY(Code)
A constant representing the property used to lookup the name of a Provider implementation class.




Constructor Detail
Provider
protected Provider()(Code)
Creates a new instance of Provider




Method Detail
createAndPublishEndpoint
abstract public Endpoint createAndPublishEndpoint(String address, Object implementor)(Code)
Creates and publishes an endpoint object with the specified address and implementation object.
Parameters:
  address - A URI specifying the address and transport/protocolto use. A http: URI MUST result in the SOAP 1.1/HTTPbinding being used. Implementations may support otherURI schemes.
Parameters:
  implementor - A service implementation object to whichincoming requests will be dispatched. The correspondingclass MUST be annotated with all the necessary Web serviceannotations. The newly created endpoint.



createEndpoint
abstract public Endpoint createEndpoint(String bindingId, Object implementor)(Code)
Creates an endpoint object with the provided binding and implementation object.
Parameters:
  bindingId - A URI specifying the desired binding (e.g. SOAP/HTTP)
Parameters:
  implementor - A service implementation object to whichincoming requests will be dispatched. The correspondingclass MUST be annotated with all the necessary Web serviceannotations. The newly created endpoint.



createServiceDelegate
abstract public ServiceDelegate createServiceDelegate(java.net.URL wsdlDocumentLocation, QName serviceName, Class serviceClass)(Code)
Creates a service delegate object.


Parameters:
  wsdlDocumentLocation - A URL pointing to the WSDL documentfor the service, or null if there isn't one.
Parameters:
  serviceName - The qualified name of the service.
Parameters:
  serviceClass - The service class, which MUST be eitherjavax.xml.ws.Service or a subclass thereof. The newly created service delegate.




createW3CEndpointReference
abstract public W3CEndpointReference createW3CEndpointReference(String address, QName serviceName, QName portName, List<Element> metadata, String wsdlDocumentLocation, List<Element> referenceParameters)(Code)
Factory method to create a W3CEndpointReference.

This method can be used to create a W3CEndpointReference for any endpoint by specifying the address property along with any other desired properties. This method can also be used to create a W3CEndpointReference for an endpoint that is published by the same Java EE application. To do so the address property can be provided or this method can automatically determine the address of an endpoint that is published by the same Java EE application and is identified by the serviceName and portName propeties. If the address is null and the serviceName and portName do not identify an endpoint published by the same Java EE application, a javax.lang.IllegalStateException MUST be thrown.
Parameters:
  address - Specifies the address of the target endpoint
Parameters:
  serviceName - Qualified name of the service in the WSDL.
Parameters:
  portName - Qualified name of the endpoint in the WSDL.
Parameters:
  metadata - A list of elements that should be added to the W3CEndpointReference instances wsa:metadata element.
Parameters:
  wsdlDocumentLocation - URL for the WSDL document location for the service.
Parameters:
  referenceParameters - Reference parameters to be associated with the returned EndpointReference instance. the W3CEndpointReference created from serviceName, portName,metadata, wsdlDocumentLocation and referenceParameters. This methodnever returns null.
throws:
  java.lang.IllegalStateException -

  • If the address, serviceName andportName are all null.
  • If the serviceName service is null and theportName> is NOT null.
  • If the address property is null andthe serviceName and portName do notspecify a valid endpoint published by the same Java EEapplication.
  • If the serviceNameis NOT nulland is not present in the specified WSDL.
  • If the portName port is not null and itis not present in serviceName service in the WSDL.
  • If the wsdlDocumentLocation is NOT nulland does not represent a valid WSDL.

throws:
  WebServiceException - If an error occurs while creating the W3CEndpointReference.
since:
   JAX-WS 2.1



getPort
abstract public T getPort(EndpointReference endpointReference, Class<T> serviceEndpointInterface, WebServiceFeature... features)(Code)
The getPort method returns a proxy. If there are any reference parameters in the endpointReference, then those reference parameters MUST appear as SOAP headers, indicating them to be reference parameters, on all messages sent to the endpoint. The parameter serviceEndpointInterface specifies the service endpoint interface that is supported by the returned proxy. The parameter endpointReference 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 of the serviceEndpointInterface and the EndpointReference. For this method to successfully return a proxy, WSDL metadata MUST be available and the endpointReference MUST contain an implementation understood serviceName metadata.
Parameters:
  endpointReference - the EndpointReference that willbe invoked by the returned proxy.
Parameters:
  serviceEndpointInterface - Service endpoint interface
Parameters:
  features - A list of WebServiceFeatures to configure on theproxy. Supported features not in the features parameter will have their default values. Object Proxy instance that supports thespecified service endpoint interface
throws:
  WebServiceException -
  • If there is an error during creationof the proxy
  • If there is any missing WSDL metadataas required by this method}
  • If thisendpointReferenceis illegal
  • If an illegalserviceEndpointInterfaceis specified
  • If a feature is enabled that is not compatible withthis port or is unsupported.

See Also:   WebServiceFeature
since:
   JAX-WS 2.1



provider
public static Provider provider()(Code)
Creates a new provider object.

The algorithm used to locate the provider subclass to use consists of the following steps:

  • 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.
  • 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.
  • 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.
  • Finally, a default implementation class name is used.



readEndpointReference
abstract public EndpointReference readEndpointReference(javax.xml.transform.Source eprInfoset)(Code)
read an EndpointReference from the infoset contained in eprInfoset. the EndpointReference unmarshalled fromeprInfoset. This method never returns null.
throws:
  WebServiceException - If there is an error creating theEndpointReference from the specified eprInfoset.
throws:
  NullPointerException - If the nulleprInfoset value is given.
since:
   JAX-WS 2.1



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.