|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.systinet.wasp.addressing.EndpointReference
WS-Addressing EndpointReference structure implementation.
Endpoint reference conveys the information needed to identify/reference a web service endpoint. It can be used to address individual messages sent between web service and a client.
Field Summary | |
static java.lang.String |
ANONYMOUS
A special value of the address field for endpoint references with no
stable accessible address (i.e. |
Constructor Summary | |
EndpointReference()
Creates a new endpoint reference with an ANONYMOUS address. |
|
EndpointReference(ServiceClient client)
Creates a new endpoint reference from given ServiceClient . |
|
EndpointReference(javax.xml.transform.Source source)
Creates a new endpoint reference from given Source . |
|
EndpointReference(java.lang.String address)
Creates a new endpoint reference with a given address . |
|
EndpointReference(java.lang.String address,
QName portType,
QName serviceName,
java.lang.String portName)
Creates a new endpoint reference with a given address , portType ,
service and port . |
Method Summary | |
java.lang.Object |
clone()
|
static java.lang.String |
computeAddressingURI()
Compute addressing uri from default policy |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAddress()
Gets the endpoint reference address. |
javax.xml.transform.Source |
getContent()
Gets content of this object as an instance of Source . |
java.lang.String |
getPortName()
Gets the port name or null . |
QName |
getPortType()
Gets the port type or null . |
ReferenceProperties |
getReferenceProperties()
Get ReferenceProperties for this EndpointReference. |
QName |
getServiceName()
Gets the service name or null . |
int |
hashCode()
|
boolean |
includes(DomainExpression domainExpression)
Returns true |
boolean |
isAnonymous()
Returns true if the address of this endpoint reference is ANONYMOUS . |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String ANONYMOUS
address
field for endpoint references with no
stable accessible address (i.e. the response channel of the HTTP connection).
This value is specified in WS-Addressing specification (2003/3).
The value for anonymous role changes from WS-Addressing specification version to version, however value of this constant remains
the same to preserve backward-compatibility.
To check if this EndpointReference is anonymous, use isAnonymous()
method.
Constructor Detail |
public EndpointReference()
ANONYMOUS
address.
public EndpointReference(java.lang.String address)
address
.
address
- the URL address of this endpoint referencepublic EndpointReference(java.lang.String address, QName portType, QName serviceName, java.lang.String portName)
address
, portType
,
service
and port
. Some of the parameters can be null
.
Note that null
address
is not the same as ANONYMOUS
address
.
public EndpointReference(ServiceClient client) throws LookupException
ServiceClient
.
client
- the service client
LookupException
- when a lookup is performed during obtaining WSDL port name and service name for passed
ServiceClient
public EndpointReference(javax.xml.transform.Source source) throws PolicyException
Source
.
Load this EndpointReference from Source. Only for Policy usage as a DomainExpression:
Note that ReferenceProperties must be in EndpointReference.NS_URI namespace, which is currently string from old spec.
so it cannot be loaded from a source got from an EndpointReference from a wire, because it could probably be
in a newer namespace (WS-Addressing versus WS-Policy namespace collision)
source
- the source
PolicyException
- when an error occurs during the loadingMethod Detail |
public java.lang.String getAddress()
public QName getPortType()
null
.
public QName getServiceName()
null
.
public java.lang.String getPortName()
null
.
public boolean isAnonymous()
true
if the address of this endpoint reference is ANONYMOUS
.
true
if the address is ANONYMOUS
.public boolean equals(java.lang.Object obj)
public int hashCode()
public boolean includes(DomainExpression domainExpression)
true if this domain expression includes the given one.
There are in following cases:
-
domainExpression
equals this
-
domainExpression
is instance of EndpointReference and:
- Specified by:
includes
in interface DomainExpression
- Parameters:
domainExpression
-
- Returns:
true
if this domain expression includes the given one;
false
otherwise.
public javax.xml.transform.Source getContent() throws PolicyException
Source
.
Namespace for ReferenceProperties must be in EndpointReference.NS_URI namespace, see #load(javax.xml.transform.Source)
getContent
in interface DomainExpression
Source
PolicyException
public static java.lang.String computeAddressingURI() throws PolicyException
PolicyException
public java.lang.String toString()
public ReferenceProperties getReferenceProperties() throws SOAPException
SOAPException
public java.lang.Object clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |