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 Object
- implements ContactInfo<ConnectionSession>
- Author:
- Alexey Stashok
|
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 |
host
public String host
port
public int port
path
public String path
customPort
public int customPort
WSTCPURI
public WSTCPURI()
- This constructor should be used just by JAXB runtime
getParameter
public String getParameter(String name)
parse
public static WSTCPURI parse(String uri)
parse
public static WSTCPURI parse(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 String toString()
- Overrides:
toString in class Object
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
createConnection
public ConnectionSession createConnection()
throws 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:
IOException
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.