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 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
 
Field Summary
 int customPort
           
 String host
           
 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(Object o)
           
 int getCustomPort()
          Get custom TCP port, where connection should be established
 int getEffectivePort()
           
 String getParameter(String name)
           
 int hashCode()
           
static WSTCPURI parse(String uri)
           
static WSTCPURI parse(URI uri)
           
 void setCustomPort(int customPort)
          Set custom TCP port, where connection should be established
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

host

public String host

port

public int port

path

public String path

customPort

public int customPort
Constructor Detail

WSTCPURI

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

Method Detail

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.