Class WSDLLocation
- java.lang.Object
-
- org.apache.axis2.addressing.metadata.WSDLLocation
-
public class WSDLLocation extends Object
-
-
Constructor Summary
Constructors Constructor Description WSDLLocation()
WSDLLocation(String targetNamespace, String wsdlURL)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fromOM(OMAttribute omAttribute)
Convenience method for converting an OMAttribute to an instance of either of these types.String
getLocation()
String
getTargetNamespace()
static boolean
isWSDLLocationAttribute(OMAttribute omAttribute)
Static method to test whether anOMElement
is recognized as a ServiceName element.void
setLocation(String wsdlURL)
void
setTargetNamespace(String targetNamespace)
OMAttribute
toOM(OMFactory factory)
Convenience method to convert an object of this type to anOMAttribute
-
-
-
Method Detail
-
getTargetNamespace
public String getTargetNamespace()
-
setTargetNamespace
public void setTargetNamespace(String targetNamespace)
-
getLocation
public String getLocation()
-
setLocation
public void setLocation(String wsdlURL)
-
toOM
public OMAttribute toOM(OMFactory factory)
Convenience method to convert an object of this type to anOMAttribute
<... xmlns:wsdli="http://www.w3.org/ns/wsdl-instance" wsdli:wsdlLocation="targetNamespace wsdlURL" ...>
- Parameters:
factory
-OMFactory
to use when generatingOMElement
s- Returns:
- an
OMAttribute
that can be added to anEndpointReference
-
fromOM
public void fromOM(OMAttribute omAttribute) throws AxisFault
Convenience method for converting an OMAttribute to an instance of either of these types.<... xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance" wsdli:wsdlLocation="targetNamespace wsdlURL" ...>
<... xmlns:wsdli="http://www.w3.org/ns/wsdl-instance" wsdli:wsdlLocation="targetNamespace wsdlURL" ...>
- Parameters:
omAttribute
- theOMAttribute
that holds the wsdl location.- Throws:
AxisFault
-
isWSDLLocationAttribute
public static boolean isWSDLLocationAttribute(OMAttribute omAttribute)
Static method to test whether anOMElement
is recognized as a ServiceName element. If this method returnstrue
thenfromOM(OMAttribute)
is guaranteed not to throw an exception.- Parameters:
omAttribute
- theOMElement
to test.- Returns:
true
if the element is a ServiceName element,false
otherwise.
-
-