|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.transport.UriUtil
public class UriUtil
UriUtil class.
| Nested Class Summary | |
|---|---|
static class |
UriUtil.MessageFormat
|
| Field Summary | |
|---|---|
static int |
HTTP_DISCOVERY_PORT
Constant HTTP_DISCOVERY_PORT=56201 |
static int |
HTTP_PORT
Constant HTTP_PORT=80 |
static int |
HTTPS_DISCOVERY_PORT
Constant HTTPS_DISCOVERY_PORT=4843 |
static int |
HTTPS_PORT
Constant HTTPS_PORT=443 |
static int |
OPC_TCP_DISCOVERY_PORT
Constant OPC_TCP_DISCOVERY_PORT=4840 |
static int |
OPC_TCP_PORT
Constant OPC_TCP_PORT=6000 |
static Pattern |
PATTERN_HTTP
Constant PATTERN_HTTP |
static Pattern |
PATTERN_HTTPS
Constant PATTERN_HTTPS |
static Pattern |
PATTERN_OPCTCP
Constant PATTERN_OPCTCP |
static Pattern |
PATTERN_URI
Constant PATTERN_URI |
static String |
SCHEME_HTTP
Constant SCHEME_HTTP="http" |
static String |
SCHEME_HTTPS
Constant SCHEME_HTTPS="https" |
static String |
SCHEME_OPCTCP
Constant SCHEME_OPCTCP="opc.tcp" |
| Constructor Summary | |
|---|---|
UriUtil()
|
|
| Method Summary | |
|---|---|
static int |
defaultPort(String scheme)
defaultPort. |
static String |
getEndpointName(String uri)
Get the resource part of an URI |
static UriUtil.MessageFormat |
getMessageFormat(String endpointUri)
Get message format associated with an endpoint |
static int |
getPort(String endpointUrl)
getPort. |
static InetSocketAddress |
getSocketAddress(String endpointUri)
Convert uri to socket address |
static InetSocketAddress |
getSocketAddress(URI endpointUri)
getSocketAddress. |
static String |
getTransportProtocol(String endpointUri)
Get the transport protocol of an endpoint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int OPC_TCP_PORT
OPC_TCP_PORT=6000
public static final int HTTP_PORT
HTTP_PORT=80
public static final int HTTPS_PORT
HTTPS_PORT=443
public static final int OPC_TCP_DISCOVERY_PORT
OPC_TCP_DISCOVERY_PORT=4840
public static final int HTTPS_DISCOVERY_PORT
HTTPS_DISCOVERY_PORT=4843
public static final int HTTP_DISCOVERY_PORT
HTTP_DISCOVERY_PORT=56201
public static final String SCHEME_OPCTCP
SCHEME_OPCTCP="opc.tcp"
public static final String SCHEME_HTTP
SCHEME_HTTP="http"
public static final String SCHEME_HTTPS
SCHEME_HTTPS="https"
public static final Pattern PATTERN_HTTPS
PATTERN_HTTPS
public static final Pattern PATTERN_HTTP
PATTERN_HTTP
public static final Pattern PATTERN_OPCTCP
PATTERN_OPCTCP
public static final Pattern PATTERN_URI
PATTERN_URI
| Constructor Detail |
|---|
public UriUtil()
| Method Detail |
|---|
public static UriUtil.MessageFormat getMessageFormat(String endpointUri)
throws ServiceResultException
endpointUri - a String object.
ServiceResultException - Bad_ServerUriInvalid if the protocol is unknownpublic static String getTransportProtocol(String endpointUri)
endpointUri - a String object.
public static InetSocketAddress getSocketAddress(String endpointUri)
throws ServiceResultException
endpointUri - a String object.
InetSocketAddress object.
ServiceResultException - if any.public static InetSocketAddress getSocketAddress(URI endpointUri)
getSocketAddress.
endpointUri - a URI object.
InetSocketAddress object.public static String getEndpointName(String uri)
uri - a String object.
String object.public static int getPort(String endpointUrl)
getPort.
endpointUrl - a String object.
public static int defaultPort(String scheme)
defaultPort.
scheme - a String object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||