|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.Socket
org.littleshoot.util.mina.IoSessionSocket
public final class IoSessionSocket
A socket implementation that wraps a MINA IoSession in a
Socket interface.
| Constructor Summary | |
|---|---|
IoSessionSocket(org.littleshoot.mina.common.IoSession ioSession,
InputStream in,
OutputStream out)
Creates a new Socket subclass that works with MINA sessions. |
|
| Methods inherited from class java.net.Socket |
|---|
setSocketImplFactory, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IoSessionSocket(org.littleshoot.mina.common.IoSession ioSession,
InputStream in,
OutputStream out)
Socket subclass that works with MINA sessions.
ioSession - The MINA IoSession.in - The InputStream.out - The OutputStream.| Method Detail |
|---|
public void bind(SocketAddress address)
throws IOException
bind in class SocketIOException
public void close()
throws IOException
close in class SocketIOException
public void connect(SocketAddress address)
throws IOException
connect in class SocketIOException
public void connect(SocketAddress address,
int timeout)
throws IOException
connect in class SocketIOExceptionpublic SocketChannel getChannel()
getChannel in class Socketpublic InetAddress getInetAddress()
getInetAddress in class Socket
public InputStream getInputStream()
throws IOException
getInputStream in class SocketIOException
public boolean getKeepAlive()
throws SocketException
getKeepAlive in class SocketSocketExceptionpublic InetAddress getLocalAddress()
getLocalAddress in class Socketpublic int getLocalPort()
getLocalPort in class Socketpublic SocketAddress getLocalSocketAddress()
getLocalSocketAddress in class Socket
public boolean getOOBInline()
throws SocketException
getOOBInline in class SocketSocketException
public OutputStream getOutputStream()
throws IOException
getOutputStream in class SocketIOExceptionpublic int getPort()
getPort in class Socket
public int getReceiveBufferSize()
throws SocketException
getReceiveBufferSize in class SocketSocketExceptionpublic SocketAddress getRemoteSocketAddress()
getRemoteSocketAddress in class Socket
public boolean getReuseAddress()
throws SocketException
getReuseAddress in class SocketSocketException
public int getSendBufferSize()
throws SocketException
getSendBufferSize in class SocketSocketException
public int getSoLinger()
throws SocketException
getSoLinger in class SocketSocketException
public int getSoTimeout()
throws SocketException
getSoTimeout in class SocketSocketException
public boolean getTcpNoDelay()
throws SocketException
getTcpNoDelay in class SocketSocketException
public int getTrafficClass()
throws SocketException
getTrafficClass in class SocketSocketExceptionpublic boolean isBound()
isBound in class Socketpublic boolean isClosed()
isClosed in class Socketpublic boolean isConnected()
isConnected in class Socketpublic boolean isInputShutdown()
isInputShutdown in class Socketpublic boolean isOutputShutdown()
isOutputShutdown in class Socket
public void sendUrgentData(int data)
throws IOException
sendUrgentData in class SocketIOException
public void setKeepAlive(boolean on)
throws SocketException
setKeepAlive in class SocketSocketException
public void setOOBInline(boolean on)
throws SocketException
setOOBInline in class SocketSocketException
public void setPerformancePreferences(int connectionTime,
int latency,
int bandwidth)
setPerformancePreferences in class Socket
public void setReceiveBufferSize(int size)
throws SocketException
setReceiveBufferSize in class SocketSocketException
public void setReuseAddress(boolean on)
throws SocketException
setReuseAddress in class SocketSocketException
public void setSendBufferSize(int size)
throws SocketException
setSendBufferSize in class SocketSocketException
public void setSoLinger(boolean on,
int linger)
throws SocketException
setSoLinger in class SocketSocketException
public void setSoTimeout(int timeout)
throws SocketException
setSoTimeout in class SocketSocketException
public void setTcpNoDelay(boolean on)
throws SocketException
setTcpNoDelay in class SocketSocketException
public void setTrafficClass(int tc)
throws SocketException
setTrafficClass in class SocketSocketException
public void shutdownInput()
throws IOException
shutdownInput in class SocketIOException
public void shutdownOutput()
throws IOException
shutdownOutput in class SocketIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||