Class AddressingUtils
java.lang.Object
org.gcube.common.clients.builders.AddressingUtils
Factory methods for addresses of service endpoints and service instances.
- Author:
- Fabio Simeoni
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the element used to wrap resource keys in endpoint references. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic jakarta.xml.ws.wsaddressing.W3CEndpointReferenceReturn the HTTP address of a service endpoint.static jakarta.xml.ws.wsaddressing.W3CEndpointReferenceReturn the address of a service endpoint.static jakarta.xml.ws.wsaddressing.W3CEndpointReferenceReturns the address of a service instance.static jakarta.xml.ws.wsaddressing.W3CEndpointReferenceaddress(String protocol, String contextPath, String service, String namespace, String key, String host, int port) Returns the address of a service instance.static jakarta.xml.ws.wsaddressing.W3CEndpointReferenceReturns the address of a service instance.static jakarta.xml.ws.wsaddressing.W3CEndpointReferenceReturns the address of a service instance.static jakarta.xml.ws.wsaddressing.W3CEndpointReferenceReturn the address of a service endpoint.static jakarta.xml.ws.wsaddressing.W3CEndpointReferenceReturn the address of a service endpoint.static jakarta.xml.ws.wsaddressing.W3CEndpointReferenceReturn the address of a service endpoint.static ElementReturns an element that wraps a given key.
-
Field Details
-
keyElement
The name of the element used to wrap resource keys in endpoint references.- See Also:
-
-
Constructor Details
-
AddressingUtils
public AddressingUtils()
-
-
Method Details
-
address
public static jakarta.xml.ws.wsaddressing.W3CEndpointReference address(String contextPath, String service, String host, int port) throws IllegalArgumentException Return the HTTP address of a service endpoint.- Parameters:
contextPath- the context path of the serviceservice- the name of the servicehost- the host of the endpointport- the port of the endpoint- Returns:
- the address
- Throws:
IllegalArgumentException- if an address cannot be derived from the inputs
-
address
public static jakarta.xml.ws.wsaddressing.W3CEndpointReference address(String protocol, String contextPath, String service, String host, int port) throws IllegalArgumentException Return the address of a service endpoint.- Parameters:
protocol- the protocol required to contact endpoint (e.g. HTTPS)contextPath- the context path of the serviceservice- the name of the servicehost- the host of the endpointport- the port of the endpoint- Returns:
- the address
- Throws:
IllegalArgumentException- if an address cannot be derived from the inputs
-
address
public static jakarta.xml.ws.wsaddressing.W3CEndpointReference address(String contextPath, String service, URL address) throws IllegalArgumentException Return the address of a service endpoint.- Parameters:
contextPath- the context path of the serviceservice- the name of the serviceaddress- the address of the endpoint as aURL- Returns:
- the address
- Throws:
IllegalArgumentException- if an address cannot be derived from the inputs
-
address
public static jakarta.xml.ws.wsaddressing.W3CEndpointReference address(String protocol, String contextPath, String service, URL address) throws IllegalArgumentException Return the address of a service endpoint.- Parameters:
contextPath- the context path of the serviceservice- the name of the serviceaddress- the address of the endpoint as aURL- Returns:
- the address
- Throws:
IllegalArgumentException- if an address cannot be derived from the inputs
-
address
public static jakarta.xml.ws.wsaddressing.W3CEndpointReference address(String contextPath, String service, URI address) throws IllegalArgumentException Return the address of a service endpoint.- Parameters:
contextPath- the context path of the serviceservice- the name of the serviceaddress- the address of the endpoint as aURI- Returns:
- the address
- Throws:
IllegalArgumentException- if an address cannot be derived from the inputs
-
address
public static jakarta.xml.ws.wsaddressing.W3CEndpointReference address(String contextPath, String service, String namespace, String key, String host, int port) throws IllegalArgumentException Returns the address of a service instance.- Parameters:
contextPath- the context path of the serviceservice- the name of the servicenamespace- the namespace of the servicekey- the key of the instancehost- the host of the instanceport- the port of the instance- Returns:
- the address
- Throws:
IllegalArgumentException- if an address cannot be derived from the inputs
-
address
public static jakarta.xml.ws.wsaddressing.W3CEndpointReference address(String protocol, String contextPath, String service, String namespace, String key, String host, int port) throws IllegalArgumentException Returns the address of a service instance.- Parameters:
protocol- the protocol required to contact endpoint (e.g. HTTPS)contextPath- the context path of the serviceservice- the name of the servicenamespace- the namespace of the servicekey- the key of the instancehost- the host of the instanceport- the port of the instance- Returns:
- the address
- Throws:
IllegalArgumentException- if an address cannot be derived from the inputs
-
address
public static jakarta.xml.ws.wsaddressing.W3CEndpointReference address(String contextPath, String service, String namespace, String key, URL address) throws IllegalArgumentException Returns the address of a service instance.- Parameters:
contextPath- the context path of the serviceservice- the name of the servicenamespace- the namespace of the servicekey- the key of the instanceaddress- the address of the endpoint as aURL.- Returns:
- the address
- Throws:
IllegalArgumentException- if an address cannot be derived from the inputs
-
address
public static jakarta.xml.ws.wsaddressing.W3CEndpointReference address(String contextPath, String service, String namespace, String key, URI address) throws IllegalArgumentException Returns the address of a service instance.- Parameters:
contextPath- the context path of the serviceservice- the name of the servicenamespace- the namespace of the servicekey- the key of the instanceaddress- the address of the endpoint as aURI.- Returns:
- the address
- Throws:
IllegalArgumentException- if an address cannot be derived from the inputs
-
key
Returns an element that wraps a given key.- Parameters:
namespace- the namespace of the elementvalue- the value of the key- Returns:
- the element
-