|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.transport.tcp.io.Connection
public final class Connection
Constructor Summary | |
---|---|
Connection(java.nio.channels.SocketChannel socketChannel)
|
Method Summary | |
---|---|
void |
close()
|
static Connection |
create(java.lang.String host,
int port)
|
protected void |
finalize()
|
void |
flush()
|
int |
getChannelId()
Get channel id |
int |
getContentId()
Get request/response contentId |
java.util.Map<java.lang.Integer,java.lang.String> |
getContentProperties()
Get request content properties |
java.lang.String |
getHost()
|
static java.lang.String |
getHost(java.nio.channels.SocketChannel socketChannel)
|
java.lang.String |
getLocalHost()
|
static java.lang.String |
getLocalHost(java.nio.channels.SocketChannel socketChannel)
|
int |
getLocalPort()
|
static int |
getLocalPort(java.nio.channels.SocketChannel socketChannel)
|
int |
getMessageId()
Get request/response messageId of 1st frame |
int |
getPort()
|
static int |
getPort(java.nio.channels.SocketChannel socketChannel)
|
java.nio.channels.SocketChannel |
getSocketChannel()
|
boolean |
isDirectMode()
|
java.io.InputStream |
openInputStream()
|
java.io.OutputStream |
openOutputStream()
|
void |
prepareForReading()
|
void |
setChannelId(int channelId)
Set channel id |
void |
setContentId(int contentId)
Set request/response contentId |
void |
setContentProperty(int key,
java.lang.String value)
Set response content properties |
void |
setDirectMode(boolean isDirectMode)
|
void |
setInputStreamByteBuffer(java.nio.ByteBuffer messageBuffer)
Set messageBuffer for InputStream some message part could be preread before |
void |
setMessageId(int messageId)
Set request/response messageId of 1st frame |
void |
setSocketChannel(java.nio.channels.SocketChannel socketChannel)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Connection(java.nio.channels.SocketChannel socketChannel)
Method Detail |
---|
public java.nio.channels.SocketChannel getSocketChannel()
public void setSocketChannel(java.nio.channels.SocketChannel socketChannel)
public void prepareForReading() throws java.io.IOException
java.io.IOException
public java.io.InputStream openInputStream() throws java.io.IOException
java.io.IOException
public java.io.OutputStream openOutputStream() throws java.io.IOException
java.io.IOException
public void flush() throws java.io.IOException
java.io.IOException
public boolean isDirectMode()
public void setDirectMode(boolean isDirectMode)
public int getChannelId()
public void setChannelId(int channelId)
public int getMessageId()
public void setMessageId(int messageId)
public int getContentId()
public void setContentId(int contentId)
public java.util.Map<java.lang.Integer,java.lang.String> getContentProperties()
public void setContentProperty(int key, java.lang.String value)
public void setInputStreamByteBuffer(java.nio.ByteBuffer messageBuffer)
public void close() throws java.io.IOException
java.io.IOException
public static Connection create(java.lang.String host, int port) throws java.io.IOException
java.io.IOException
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public java.lang.String getHost()
public int getPort()
public java.lang.String getLocalHost()
public int getLocalPort()
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String getHost(java.nio.channels.SocketChannel socketChannel)
public static int getPort(java.nio.channels.SocketChannel socketChannel)
public static java.lang.String getLocalHost(java.nio.channels.SocketChannel socketChannel)
public static int getLocalPort(java.nio.channels.SocketChannel socketChannel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |