Class WsAddressingUtil
java.lang.Object
org.somda.sdc.dpws.soap.wsaddressing.WsAddressingUtil
Utility class for WS-Addressing related interaction.
-
Method Summary
Modifier and TypeMethodDescriptioncreateAttributedQNameType(QName qName) Shorthand method to create an AttributedQNameType from a QName.Shorthand method to create anAttributedURITypefrom a simple string.Shorthand method to create anAttributedURITypefrom an URI.createEprWithAddress(String addressUri) Creates an endpoint reference given an address string.createEprWithAddress(URI addressUri) Creates an endpoint reference given an address URI.Shorthand method to create anRelatesToTypefrom a simple String.createRelatesToType(AttributedURIType attributedURIType) Shorthand method to create anRelatesToTypefrom an AttributedURIType.Gets the address URI of an endpoint reference.getAddressUriString(AttributedURIType attributedURIType) Gets the address URI string of anAttributedURIType.
-
Method Details
-
createAttributedURIType
Shorthand method to create anAttributedURITypefrom a simple string.- Parameters:
uri- the URI as string.- Returns:
- an
AttributedURITypeinstance.
-
createAttributedQNameType
Shorthand method to create an AttributedQNameType from a QName.- Parameters:
qName- theQNameto add.- Returns:
- an
AttributedQNameTypeinstance.
-
createAttributedURIType
Shorthand method to create anAttributedURITypefrom an URI.- Parameters:
uri- the URI.- Returns:
- an
AttributedURITypeinstance.
-
createRelatesToType
Shorthand method to create anRelatesToTypefrom a simple String.- Parameters:
uri- the URI as string.- Returns:
- an
RelatesToTypeinstance.
-
createRelatesToType
Shorthand method to create anRelatesToTypefrom an AttributedURIType.- Parameters:
attributedURIType- the URI as AttributedURIType.- Returns:
- an
RelatesToTypeinstance.
-
getAddressUri
Gets the address URI of an endpoint reference.- Parameters:
epr- the endpoint reference.- Returns:
- the endpoint reference or Optional.empty() if there was no URI available.
-
getAddressUriString
Gets the address URI string of anAttributedURIType.- Parameters:
attributedURIType- the attributed URI type where to extract the URI string.- Returns:
- the URI or an empty string if
AttributedURIType.getValue()returned null.
-
createEprWithAddress
Creates an endpoint reference given an address string.- Parameters:
addressUri- the address string of the endpoint reference.- Returns:
- a new endpoint reference object.
-
createEprWithAddress
Creates an endpoint reference given an address URI.- Parameters:
addressUri- the address URI of the endpoint reference.- Returns:
- a new endpoint reference object.
-