Class WsAddressingUtil
- java.lang.Object
-
- org.somda.sdc.dpws.soap.wsaddressing.WsAddressingUtil
-
public class WsAddressingUtil extends Object
Utility class for WS-Addressing related interaction.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributedQNameTypecreateAttributedQNameType(QName qName)Shorthand method to create an AttributedQNameType from a QName.AttributedURITypecreateAttributedURIType(String uri)Shorthand method to create anAttributedURITypefrom a simple string.AttributedURITypecreateAttributedURIType(URI uri)Shorthand method to create anAttributedURITypefrom an URI.EndpointReferenceTypecreateEprWithAddress(String addressUri)Creates an endpoint reference given an address string.EndpointReferenceTypecreateEprWithAddress(URI addressUri)Creates an endpoint reference given an address URI.RelatesToTypecreateRelatesToType(String uri)Shorthand method to create anRelatesToTypefrom a simple String.RelatesToTypecreateRelatesToType(AttributedURIType attributedURIType)Shorthand method to create anRelatesToTypefrom an AttributedURIType.Optional<String>getAddressUri(EndpointReferenceType epr)Gets the address URI of an endpoint reference.StringgetAddressUriString(AttributedURIType attributedURIType)Gets the address URI string of anAttributedURIType.
-
-
-
Method Detail
-
createAttributedURIType
public AttributedURIType createAttributedURIType(String uri)
Shorthand method to create anAttributedURITypefrom a simple string.- Parameters:
uri- the URI as string.- Returns:
- an
AttributedURITypeinstance.
-
createAttributedQNameType
public AttributedQNameType createAttributedQNameType(QName qName)
Shorthand method to create an AttributedQNameType from a QName.- Parameters:
qName- theQNameto add.- Returns:
- an
AttributedQNameTypeinstance.
-
createAttributedURIType
public AttributedURIType createAttributedURIType(URI uri)
Shorthand method to create anAttributedURITypefrom an URI.- Parameters:
uri- the URI.- Returns:
- an
AttributedURITypeinstance.
-
createRelatesToType
public RelatesToType createRelatesToType(String uri)
Shorthand method to create anRelatesToTypefrom a simple String.- Parameters:
uri- the URI as string.- Returns:
- an
RelatesToTypeinstance.
-
createRelatesToType
public RelatesToType createRelatesToType(@Nullable AttributedURIType attributedURIType)
Shorthand method to create anRelatesToTypefrom an AttributedURIType.- Parameters:
attributedURIType- the URI as AttributedURIType.- Returns:
- an
RelatesToTypeinstance.
-
getAddressUri
public Optional<String> getAddressUri(EndpointReferenceType epr)
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
public String getAddressUriString(AttributedURIType attributedURIType)
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
public EndpointReferenceType createEprWithAddress(String addressUri)
Creates an endpoint reference given an address string.- Parameters:
addressUri- the address string of the endpoint reference.- Returns:
- a new endpoint reference object.
-
createEprWithAddress
public EndpointReferenceType createEprWithAddress(URI addressUri)
Creates an endpoint reference given an address URI.- Parameters:
addressUri- the address URI of the endpoint reference.- Returns:
- a new endpoint reference object.
-
-