|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axis2.addressing.metadata.ServiceName
public class ServiceName
| Field Summary | |
|---|---|
static QName |
subQName
|
static QName |
wsamQName
|
static QName |
wsawQName
|
| Constructor Summary | |
|---|---|
ServiceName()
|
|
ServiceName(QName name)
|
|
ServiceName(QName name,
java.lang.String endpointName)
|
|
| Method Summary | |
|---|---|
void |
fromOM(org.apache.axiom.om.OMElement omElement)
Convenience method to extract metadata from the ServiceName element. |
java.lang.String |
getEndpointName()
Method getPortName |
QName |
getName()
Method getName |
static boolean |
isServiceNameElement(org.apache.axiom.om.OMElement omElement)
Static method to test whether an OMElement is recognized
as a ServiceName element. |
void |
setEndpointName(java.lang.String endpointName)
Method setPortName |
void |
setName(QName name)
Method setName |
org.apache.axiom.om.OMElement |
toOM(org.apache.axiom.om.OMFactory factory,
QName qname)
Convenience method to convert objects of this type to an OMElement so that it
can be added to an EndpointReference |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final QName subQName
public static final QName wsamQName
public static final QName wsawQName
| Constructor Detail |
|---|
public ServiceName()
public ServiceName(QName name)
name -
public ServiceName(QName name,
java.lang.String endpointName)
name - endpointName - | Method Detail |
|---|
public QName getName()
public java.lang.String getEndpointName()
public void setName(QName name)
name - public void setEndpointName(java.lang.String endpointName)
endpointName -
public org.apache.axiom.om.OMElement toOM(org.apache.axiom.om.OMFactory factory,
QName qname)
throws AxisFault
OMElement so that it
can be added to an EndpointReference
Use:
OMElement omElement = serviceName.toOM(new QName("http://schemas.xmlsoap.org/ws/2004/08/addressing", "ServiceName", "wsa"));
or
OMElement omElement = serviceName.toOM(new QName("http://www.w3.org/2007/05/addressing/metadata", "ServiceName", "wsam"));
the difference being whether the EndpointReference is meant to represent a 2004/08 (Submission) or 2005/08 (Final) EndpointReference, respectively.
factory - OMFactory to use when generating OMElementsqname - the QName that carries the namespace of the metadata element.
AxisFault
public void fromOM(org.apache.axiom.om.OMElement omElement)
throws AxisFault
<wsam:ServiceName xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" EndpointName="...">...</wsam:ServiceName>
or
<wsa:ServiceName xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" PortName="...">...</wsa:ServiceName>
omElement - the OMElement that holds the metadata.
AxisFaultpublic static boolean isServiceNameElement(org.apache.axiom.om.OMElement omElement)
OMElement is recognized
as a ServiceName element. If this method returns true then
fromOM(OMElement) is guaranteed not to fail.
omElement - the OMElement to test.
true if the element is a ServiceName element,
false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||