public class AddressingUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
keyElement |
| Constructor and Description |
|---|
AddressingUtils() |
| Modifier and Type | Method and Description |
|---|---|
static W3CEndpointReference |
address(String contextPath,
String service,
String host,
int port)
Return the HTTP address of a service endpoint.
|
static W3CEndpointReference |
address(String protocol,
String contextPath,
String service,
String host,
int port)
Return the address of a service endpoint.
|
static W3CEndpointReference |
address(String contextPath,
String service,
String namespace,
String key,
String host,
int port)
Returns the address of a service instance.
|
static W3CEndpointReference |
address(String protocol,
String contextPath,
String service,
String namespace,
String key,
String host,
int port)
Returns the address of a service instance.
|
static W3CEndpointReference |
address(String contextPath,
String service,
String namespace,
String key,
URI address)
Returns the address of a service instance.
|
static W3CEndpointReference |
address(String contextPath,
String service,
String namespace,
String key,
URL address)
Returns the address of a service instance.
|
static W3CEndpointReference |
address(String protocol,
String contextPath,
String service,
URL address)
Return the address of a service endpoint.
|
static W3CEndpointReference |
address(String contextPath,
String service,
URI address)
Return the address of a service endpoint.
|
static W3CEndpointReference |
address(String contextPath,
String service,
URL address)
Return the address of a service endpoint.
|
static Element |
key(String namespace,
String value) |
public static final String keyElement
public static W3CEndpointReference address(String contextPath, String service, String host, int port) throws IllegalArgumentException
contextPath - the context path of the serviceservice - the name of the servicehost - the host of the endpointport - the port of the endpointIllegalArgumentException - if an address cannot be derived from the inputspublic static W3CEndpointReference address(String protocol, String contextPath, String service, String host, int port) throws IllegalArgumentException
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 endpointIllegalArgumentException - if an address cannot be derived from the inputspublic static W3CEndpointReference address(String contextPath, String service, URL address) throws IllegalArgumentException
contextPath - the context path of the serviceservice - the name of the serviceaddress - the address of the endpoint as a URLIllegalArgumentException - if an address cannot be derived from the inputspublic static W3CEndpointReference address(String protocol, String contextPath, String service, URL address) throws IllegalArgumentException
contextPath - the context path of the serviceservice - the name of the serviceaddress - the address of the endpoint as a URLIllegalArgumentException - if an address cannot be derived from the inputspublic static W3CEndpointReference address(String contextPath, String service, URI address) throws IllegalArgumentException
contextPath - the context path of the serviceservice - the name of the serviceaddress - the address of the endpoint as a URIIllegalArgumentException - if an address cannot be derived from the inputspublic static W3CEndpointReference address(String contextPath, String service, String namespace, String key, String host, int port) throws IllegalArgumentException
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 instanceIllegalArgumentException - if an address cannot be derived from the inputspublic static W3CEndpointReference address(String protocol, String contextPath, String service, String namespace, String key, String host, int port) throws IllegalArgumentException
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 instanceIllegalArgumentException - if an address cannot be derived from the inputspublic static W3CEndpointReference address(String contextPath, String service, String namespace, String key, URL address) throws IllegalArgumentException
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 a URL.IllegalArgumentException - if an address cannot be derived from the inputspublic static W3CEndpointReference address(String contextPath, String service, String namespace, String key, URI address) throws IllegalArgumentException
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 a URI.IllegalArgumentException - if an address cannot be derived from the inputsCopyright © 2017. All Rights Reserved.