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
Nested Classes Modifier and Type Class Description static classWSTCPURI.WSTCPURI2StringJAXBAdapterClass is used to translate WSTCPURI to String and vice versa This is used in JAXB serialization/deserialization
-
Constructor Summary
Constructors Constructor Description WSTCPURI()This constructor should be used just by JAXB runtime
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionSessioncreateConnection()Create a new Connection from this ContactInfo.booleanequals(Object o)intgetCustomPort()Get custom TCP port, where connection should be establishedintgetEffectivePort()StringgetParameter(String name)inthashCode()static WSTCPURIparse(String uri)static WSTCPURIparse(URI uri)voidsetCustomPort(int customPort)Set custom TCP port, where connection should be establishedStringtoString()
-
-
-
Method Detail
-
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()
-
createConnection
public ConnectionSession createConnection() throws IOException
Description copied from interface:ContactInfoCreate a new Connection from this ContactInfo. Throws an IOException if Connection creation fails.- Specified by:
createConnectionin interfaceContactInfo<ConnectionSession>- Throws:
IOException
-
-