Java Doc for W3CEndpointReferenceBuilder.java in  » 6.0-JDK-Modules » jax-ws-api » javax » xml » ws » wsaddressing » 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.wsaddressing 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder

W3CEndpointReferenceBuilder
final public class W3CEndpointReferenceBuilder (Code)
This class is used to build W3CEndpointReference instances. The intended use of this clsss is for an application component, for example a factory component, to create an W3CEndpointReference for a web service endpoint published by the same Java EE application. It can also be used to create W3CEndpointReferences for an Java SE based endpoint by providing the address property.

When creating a W3CEndpointReference for an endpoint that is not published by the same Java EE application, the address property MUST be specified.

When creating a W3CEndpointReference for an endpoint published by the same Java EE application, the address property MAY be null but then the serviceName and endpointName MUST specify an endpoint published by the same Java EE application.

When the wsdlDocumentLocation is specified it MUST refer to a valid WSDL document and the serviceName and endpointName (if specified) MUST match a service and port in the WSDL document.
since:
   JAX-WS 2.1




Constructor Summary
public  W3CEndpointReferenceBuilder()
     Creates a new W3CEndpointReferenceBuilder instance.

Method Summary
public  W3CEndpointReferenceBuilderaddress(String address)
     Sets the address to the W3CEndpointReference instance's wsa:Address.

The address MUST be set to a non-null value when building a W3CEndpointReference for a web service endpoint that is not published by the same Java EE application or when running on Java SE.
Parameters:
  address - The address of the endpoint to be targetedby the returned W3CEndpointReference.

public  W3CEndpointReferencebuild()
     Builds a W3CEndpointReference from the accumulated properties set on this W3CEndpointReferenceBuilder instance.

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

public  W3CEndpointReferenceBuilderendpointName(QName endpointName)
     Sets the endpointName of the endpoint to be targeted by the returned W3CEndpointRefernce.
public  W3CEndpointReferenceBuildermetadata(Element metadataElement)
     Adds the metadataElement to the W3CEndpointReference instance's wsa:Metadata element.
Parameters:
  metadataElement - The element to be added to thewsa:Metadata element.
public  W3CEndpointReferenceBuilderreferenceParameter(Element referenceParameter)
     Adds the referenceParameter to the W3CEndpointReference instance wsa:ReferenceParameters element.
Parameters:
  referenceParameter - The element to be added to thewsa:ReferenceParameters element.
public  W3CEndpointReferenceBuilderserviceName(QName serviceName)
     Sets the serviceName of the endpoint to be targeted by the returned W3CEndpointReference.
Parameters:
  serviceName - The service name of the endpoint to be targetedby the returned W3CEndpointReference.
public  W3CEndpointReferenceBuilderwsdlDocumentLocation(String wsdlDocumentLocation)
     Sets the wsdlDocumentLocation associated with the targeted W3CEndpointReference.
Parameters:
  wsdlDocumentLocation - The location of the WSDL document associated with the targeted W3CEndpointReference.


Constructor Detail
W3CEndpointReferenceBuilder
public W3CEndpointReferenceBuilder()(Code)
Creates a new W3CEndpointReferenceBuilder instance.




Method Detail
address
public W3CEndpointReferenceBuilder address(String address)(Code)
Sets the address to the W3CEndpointReference instance's wsa:Address.

The address MUST be set to a non-null value when building a W3CEndpointReference for a web service endpoint that is not published by the same Java EE application or when running on Java SE.
Parameters:
  address - The address of the endpoint to be targetedby the returned W3CEndpointReference. A W3CEndpointReferenceBuilder instance withthe address set to the wsa:Address.




build
public W3CEndpointReference build()(Code)
Builds a W3CEndpointReference from the accumulated properties set on this W3CEndpointReferenceBuilder instance.

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. This method can automatically determine the address of an endpoint published by the same Java EE application that is identified by the serviceName and endpointName properties. If the address is null and the serviceName and endpointName do not identify an endpoint published by the same Java EE application, a java.lang.IllegalStateException MUST be thrown. W3CEndpointReference from the accumulatedproperties set on this W3CEndpointReferenceBuilderinstance. This method never returns null.
throws:
  java.lang.IllegalStateException -

  • If the address, serviceName andendpointName are all null.
  • If the serviceName service is null and theendpointName is NOT null.
  • If the address property is null andthe serviceName and endpointName do notspecify a valid endpoint published by the same Java EEapplication.
  • If the serviceName is NOT nulland is not present in the specified WSDL.
  • If the endpointName 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.



endpointName
public W3CEndpointReferenceBuilder endpointName(QName endpointName)(Code)
Sets the endpointName of the endpoint to be targeted by the returned W3CEndpointRefernce. This method can only be called after the W3CEndpointReferenceBuilder.serviceName method has been called.
Parameters:
  endpointName - The name of the endpoint to be targetedby the returned W3CEndpointReference. The endpointName (portName) property may also beused with the serviceName property to lookup the address of a web service endpoint published by the same Java EE application. A W3CEndpointReferenceBuilder instance withthe endpointName property set.
throws:
  java.lang.IllegalStateException - If the serviceName has notbeen set.



metadata
public W3CEndpointReferenceBuilder metadata(Element metadataElement)(Code)
Adds the metadataElement to the W3CEndpointReference instance's wsa:Metadata element.
Parameters:
  metadataElement - The element to be added to thewsa:Metadata element. A W3CEndpointReferenceBuilder instance withthe metadataElement added to thewsa:Metadata element.
throws:
  java.lang.IllegalArgumentException - if metadataElementis null.



referenceParameter
public W3CEndpointReferenceBuilder referenceParameter(Element referenceParameter)(Code)
Adds the referenceParameter to the W3CEndpointReference instance wsa:ReferenceParameters element.
Parameters:
  referenceParameter - The element to be added to thewsa:ReferenceParameters element. A W3CEndpointReferenceBuilder instance withthe referenceParameter added to thewsa:ReferenceParameters element.
throws:
  java.lang.IllegalArgumentException - if referenceParameteris null.



serviceName
public W3CEndpointReferenceBuilder serviceName(QName serviceName)(Code)
Sets the serviceName of the endpoint to be targeted by the returned W3CEndpointReference.
Parameters:
  serviceName - The service name of the endpoint to be targetedby the returned W3CEndpointReference. This propertymay also be used with the endpointName (portName) property to lookup the address of a web service endpoint that is published by the same Java EE application. A W3CEndpointReferenceBuilder instance withthe serviceName property set.



wsdlDocumentLocation
public W3CEndpointReferenceBuilder wsdlDocumentLocation(String wsdlDocumentLocation)(Code)
Sets the wsdlDocumentLocation associated with the targeted W3CEndpointReference.
Parameters:
  wsdlDocumentLocation - The location of the WSDL document associated with the targeted W3CEndpointReference. A W3CEndpointReferenceBuilder instance withthe wsdlDocumentLocation property set.



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.