com.sun.xml.ws.transport.tcp.util
Class WSTCPURI

java.lang.Object
  extended by 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
 
Field Summary
 int customPort
           
 java.lang.String host
           
 java.lang.String path
           
 int port
           
 
Constructor Summary
WSTCPURI()
          This constructor should be used just by JAXB runtime
 
Method Summary
 ConnectionSession createConnection()
          Create a new Connection from this ContactInfo.
 boolean equals(java.lang.Object o)
           
 int getCustomPort()
          Get custom TCP port, where connection should be established
 int getEffectivePort()
           
 java.lang.String getParameter(java.lang.String name)
           
 int hashCode()
           
static WSTCPURI parse(java.lang.String uri)
           
static WSTCPURI parse(java.net.URI uri)
           
 void setCustomPort(int customPort)
          Set custom TCP port, where connection should be established
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

host

public java.lang.String host

port

public int port

path

public java.lang.String path

customPort

public int customPort
Constructor Detail

WSTCPURI

public WSTCPURI()
This constructor should be used just by JAXB runtime

Method Detail

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