Java Doc for WSEndpointReference.java in  » 6.0-JDK-Modules » jax-ws-runtime » com » sun » xml » ws » api » addressing » 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 runtime » com.sun.xml.ws.api.addressing 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.xml.ws.api.addressing.WSEndpointReference

WSEndpointReference
final public class WSEndpointReference (Code)
Internal representation of the EPR.

Instances of this class are immutable and thread-safe.
author:
   Kohsuke Kawaguchi
See Also:   AddressingVersion.anonymousEpr


Inner Class :class SAXBufferProcessorImpl extends SAXBufferProcessor
Inner Class :public class Metadata


Constructor Summary
public  WSEndpointReference(EndpointReference epr, AddressingVersion version)
     Creates from the spec version of EndpointReference .
public  WSEndpointReference(EndpointReference epr)
     Creates from the spec version of EndpointReference .
public  WSEndpointReference(XMLStreamBuffer infoset, AddressingVersion version)
     Creates a WSEndpointReference that wraps a given infoset.
public  WSEndpointReference(InputStream infoset, AddressingVersion version)
     Creates a WSEndpointReference by parsing an infoset.
public  WSEndpointReference(XMLStreamReader in, AddressingVersion version)
     Creates a WSEndpointReference from the given infoset.
public  WSEndpointReference(URL address, AddressingVersion version)
    
public  WSEndpointReference(URI address, AddressingVersion version)
    
public  WSEndpointReference(String address, AddressingVersion version)
     Creates a WSEndpointReference that only has an address.
public  WSEndpointReference(AddressingVersion version, String address, QName service, QName port, QName portType, List<Element> metadata, String wsdlAddress, List<Element> referenceParameters)
     Creates an EPR from individual components.

Method Summary
public  voidaddReferenceParameters(HeaderList outbound)
     Copies all the reference parameters in this EPR as headers to the given HeaderList .
public  SourceasSource(String localName)
     Returns a Source that represents this EPR.
public static  WSEndpointReferencecreate(EndpointReference epr)
     Converts from EndpointReference .
public  Dispatch<T>createDispatch(Service jaxwsService, Class<T> type, Service.Mode mode, WebServiceFeature... features)
     Creates a Dispatch that can be used to talk to this EPR.
public  Dispatch<Object>createDispatch(Service jaxwsService, JAXBContext context, Service.Mode mode, WebServiceFeature... features)
     Creates a Dispatch that can be used to talk to this EPR.
public  HeadercreateHeader(QName rootTagName)
     Returns a Header that wraps this WSEndpointReference .

The returned header is immutable too, and can be reused with many Message s.
Parameters:
  rootTagName - The header tag name to be used, such as <ReplyTo> or <FaultTo>.(It's bit ugly that this method takes QName and not just local name,unlike other methods.

public  WSEndpointReferencecreateWithAddress(URI newAddress)
    
public  WSEndpointReferencecreateWithAddress(URL newAddress)
    
public  WSEndpointReferencecreateWithAddress(String newAddress)
     Creates a new WSEndpointReference by replacing the address of this EPR to the new one.
public  StringgetAddress()
     The value of the <wsa:address> header.
public  MetadatagetMetaData()
     Parses the metadata inside this EPR and obtains it in a easy-to-process form.
public  TgetPort(Service jaxwsService, Class<T> serviceEndpointInterface, WebServiceFeature... features)
     Creates a proxy that can be used to talk to this EPR.
public  AddressingVersiongetVersion()
     Gets the addressing version of this EPR.
public  booleanisAnonymous()
     Returns true if this has anonymous URI as the WSEndpointReference.getAddress() address .
public  booleanisNone()
     Returns true if this has AddressingVersion.noneUri none URI as the WSEndpointReference.getAddress() address .
public  XMLStreamReaderread(String localName)
     Reads this EPR as XMLStreamReader .
public  EndpointReferencetoSpec()
     Convert the EPR to the spec version.
public  TtoSpec(Class<T> clazz)
     Converts the EPR to the specified spec version.
public  StringtoString()
     Dumps the EPR infoset in a human-readable string.
public  voidwriteTo(String localName, ContentHandler contentHandler, ErrorHandler errorHandler, boolean fragment)
     Writes this EPR to the given ContentHandler .
public  voidwriteTo(String localName, XMLStreamWriter w)
     Writes this EPR into the given writer.


Constructor Detail
WSEndpointReference
public WSEndpointReference(EndpointReference epr, AddressingVersion version)(Code)
Creates from the spec version of EndpointReference .

This method performs the data conversion, so it's slow. Do not use this method in a performance critical path.




WSEndpointReference
public WSEndpointReference(EndpointReference epr)(Code)
Creates from the spec version of EndpointReference .

This method performs the data conversion, so it's slow. Do not use this method in a performance critical path.




WSEndpointReference
public WSEndpointReference(XMLStreamBuffer infoset, AddressingVersion version)(Code)
Creates a WSEndpointReference that wraps a given infoset.



WSEndpointReference
public WSEndpointReference(InputStream infoset, AddressingVersion version) throws XMLStreamException(Code)
Creates a WSEndpointReference by parsing an infoset.



WSEndpointReference
public WSEndpointReference(XMLStreamReader in, AddressingVersion version) throws XMLStreamException(Code)
Creates a WSEndpointReference from the given infoset. The XMLStreamReader must point to either a document or an element.



WSEndpointReference
public WSEndpointReference(URL address, AddressingVersion version)(Code)

See Also:   WSEndpointReference.WSEndpointReference(String,AddressingVersion)



WSEndpointReference
public WSEndpointReference(URI address, AddressingVersion version)(Code)

See Also:   WSEndpointReference.WSEndpointReference(String,AddressingVersion)



WSEndpointReference
public WSEndpointReference(String address, AddressingVersion version)(Code)
Creates a WSEndpointReference that only has an address.



WSEndpointReference
public WSEndpointReference(AddressingVersion version, String address, QName service, QName port, QName portType, List<Element> metadata, String wsdlAddress, List<Element> referenceParameters)(Code)
Creates an EPR from individual components.

This version takes various information about metadata, and creates an EPR that has the necessary embedded WSDL.





Method Detail
addReferenceParameters
public void addReferenceParameters(HeaderList outbound)(Code)
Copies all the reference parameters in this EPR as headers to the given HeaderList .



asSource
public Source asSource(String localName)(Code)
Returns a Source that represents this EPR.
Parameters:
  localName - EPR uses a different root tag name depending on the context.The returned Source will use the given local namefor the root element name.



create
public static WSEndpointReference create(EndpointReference epr)(Code)
Converts from EndpointReference . This handles null EndpointReference correctly. Call WSEndpointReference.WSEndpointReference(EndpointReference) directly if you know it's not null.



createDispatch
public Dispatch<T> createDispatch(Service jaxwsService, Class<T> type, Service.Mode mode, WebServiceFeature... features)(Code)
Creates a Dispatch that can be used to talk to this EPR.

All the normal WS-Addressing processing happens automatically, such as setting the endpoint address to WSEndpointReference.getAddress() the address , and sending the reference parameters associated with this EPR as headers, etc.




createDispatch
public Dispatch<Object> createDispatch(Service jaxwsService, JAXBContext context, Service.Mode mode, WebServiceFeature... features)(Code)
Creates a Dispatch that can be used to talk to this EPR.

All the normal WS-Addressing processing happens automatically, such as setting the endpoint address to WSEndpointReference.getAddress() the address , and sending the reference parameters associated with this EPR as headers, etc.




createHeader
public Header createHeader(QName rootTagName)(Code)
Returns a Header that wraps this WSEndpointReference .

The returned header is immutable too, and can be reused with many Message s.
Parameters:
  rootTagName - The header tag name to be used, such as <ReplyTo> or <FaultTo>.(It's bit ugly that this method takes QName and not just local name,unlike other methods. If it's making the caller's life miserable, thenwe can talk.)




createWithAddress
public WSEndpointReference createWithAddress(URI newAddress)(Code)

See Also:   WSEndpointReference.createWithAddress(String)



createWithAddress
public WSEndpointReference createWithAddress(URL newAddress)(Code)

See Also:   WSEndpointReference.createWithAddress(String)



createWithAddress
public WSEndpointReference createWithAddress(String newAddress)(Code)
Creates a new WSEndpointReference by replacing the address of this EPR to the new one.

The following example shows how you can use this to force an HTTPS EPR, when the endpoint can serve both HTTP and HTTPS requests.

 if(epr.getAddress().startsWith("http:"))
 epr = epr.createWithAddress("https:"+epr.getAddress().substring(5));
 

Parameters:
  newAddress - This is a complete URL to be written inside <Adress> element of the EPR,such as "http://foo.bar/abc/def"



getAddress
public String getAddress()(Code)
The value of the <wsa:address> header.



getMetaData
public Metadata getMetaData()(Code)
Parses the metadata inside this EPR and obtains it in a easy-to-process form.

See Metadata class for what's avaliable as "metadata".




getPort
public T getPort(Service jaxwsService, Class<T> serviceEndpointInterface, WebServiceFeature... features)(Code)
Creates a proxy that can be used to talk to this EPR.

All the normal WS-Addressing processing happens automatically, such as setting the endpoint address to WSEndpointReference.getAddress() the address , and sending the reference parameters associated with this EPR as headers, etc.




getVersion
public AddressingVersion getVersion()(Code)
Gets the addressing version of this EPR.



isAnonymous
public boolean isAnonymous()(Code)
Returns true if this has anonymous URI as the WSEndpointReference.getAddress() address .



isNone
public boolean isNone()(Code)
Returns true if this has AddressingVersion.noneUri none URI as the WSEndpointReference.getAddress() address .



read
public XMLStreamReader read(String localName) throws XMLStreamException(Code)
Reads this EPR as XMLStreamReader .
Parameters:
  localName - EPR uses a different root tag name depending on the context.The returned XMLStreamReader will use the given local namefor the root element name.



toSpec
public EndpointReference toSpec()(Code)
Convert the EPR to the spec version. The actual type of EndpointReference to be returned depends on which version of the addressing spec this EPR conforms to.
throws:
  WebServiceException - if the conversion fails, which can happen if the EPR containsinvalid infoset (wrong namespace URI, etc.)



toSpec
public T toSpec(Class<T> clazz)(Code)
Converts the EPR to the specified spec version. If the WSEndpointReference.getVersion() the addressing version in use and the given class is different, then this may involve version conversion.



toString
public String toString()(Code)
Dumps the EPR infoset in a human-readable string.



writeTo
public void writeTo(String localName, ContentHandler contentHandler, ErrorHandler errorHandler, boolean fragment) throws SAXException(Code)
Writes this EPR to the given ContentHandler .
Parameters:
  localName - EPR uses a different root tag name depending on the context.The returned Source will use the given local namefor the root element name.
Parameters:
  fragment - If true, generate a fragment SAX events without start/endDocument callbacks.If false, generate a full XML document event.



writeTo
public void writeTo(String localName, XMLStreamWriter w) throws XMLStreamException(Code)
Writes this EPR into the given writer.
Parameters:
  localName - EPR uses a different root tag name depending on the context.The returned Source will use the given local name



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.