Class ServiceName
java.lang.Object
org.apache.axis2.addressing.metadata.ServiceName
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfromOM(org.apache.axiom.om.OMElement omElement) Convenience method to extract metadata from the ServiceName element.Method getPortNamegetName()Method getNamestatic booleanisServiceNameElement(org.apache.axiom.om.OMElement omElement) Static method to test whether anOMElementis recognized as a ServiceName element.voidsetEndpointName(String endpointName) Method setPortNamevoidMethod setNameorg.apache.axiom.om.OMElementConvenience method to convert objects of this type to anOMElementso that it can be added to anEndpointReference
-
Field Details
-
subQName
-
wsamQName
-
wsawQName
-
-
Constructor Details
-
ServiceName
public ServiceName() -
ServiceName
- Parameters:
name-
-
ServiceName
- Parameters:
name-endpointName-
-
-
Method Details
-
getName
Method getName -
getEndpointName
Method getPortName -
setName
Method setName- Parameters:
name-
-
setEndpointName
Method setPortName- Parameters:
endpointName-
-
toOM
public org.apache.axiom.om.OMElement toOM(org.apache.axiom.om.OMFactory factory, QName qname) throws AxisFault Convenience method to convert objects of this type to anOMElementso that it can be added to anEndpointReferenceUse:
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.
- Parameters:
factory-OMFactoryto use when generatingOMElementsqname- theQNamethat carries the namespace of the metadata element.- Returns:
- an OMElement that can be added to the metadata of an EndpointReference.
- Throws:
AxisFault
-
fromOM
Convenience method to extract metadata from the ServiceName element.<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>
- Parameters:
omElement- theOMElementthat holds the metadata.- Throws:
AxisFault
-
isServiceNameElement
public static boolean isServiceNameElement(org.apache.axiom.om.OMElement omElement) Static method to test whether anOMElementis recognized as a ServiceName element. If this method returnstruethenfromOM(OMElement)is guaranteed not to fail.- Parameters:
omElement- theOMElementto test.- Returns:
trueif the element is a ServiceName element,falseotherwise.
-