com.sun.xml.ws.transport.tcp.util
Class WSTCPURI
java.lang.Object
com.sun.xml.ws.transport.tcp.util.WSTCPURI
- All Implemented Interfaces:
- ContactInfo<ConnectionSession>
public final class WSTCPURI
- extends java.lang.Object
- implements ContactInfo<ConnectionSession>
Nested Class Summary |
static class |
WSTCPURI.WSTCPURI2StringJAXBAdapter
Class is used to translate WSTCPURI to String and vice versa
This is used in JAXB serialization/deserialization |
Constructor Summary |
WSTCPURI()
This constructor should be used just by JAXB runtime |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
host
public java.lang.String host
port
public int port
path
public java.lang.String path
customPort
public int customPort
WSTCPURI
public WSTCPURI()
- This constructor should be used just by JAXB runtime
getParameter
public java.lang.String getParameter(java.lang.String name)
parse
public static WSTCPURI parse(java.lang.String uri)
parse
public static WSTCPURI parse(java.net.URI uri)
getCustomPort
public int getCustomPort()
- Get custom TCP port, where connection should be established
- Returns:
- custom TCP port
setCustomPort
public void setCustomPort(int customPort)
- Set custom TCP port, where connection should be established
- Parameters:
customPort
- custom TCP port
getEffectivePort
public int getEffectivePort()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
createConnection
public ConnectionSession createConnection()
throws java.io.IOException
- Description copied from interface:
ContactInfo
- Create a new Connection from this ContactInfo.
Throws an IOException if Connection creation fails.
- Specified by:
createConnection
in interface ContactInfo<ConnectionSession>
- Throws:
java.io.IOException