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