|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.jonathan.libs.resources.tcpip.JConnectionMgr.Connection
public class JConnectionMgr.Connection
Implementation of TcpIpConnection.
| Constructor Summary | |
|---|---|
protected |
JConnectionMgr.Connection(IpConnection delegate)
Builds a new connection. |
| Method Summary | |
|---|---|
void |
acquire()
Returns when the socket is acquired. |
int |
available()
|
void |
delete()
Deletes this connection, removing it from the connection manager, and closing the socket. |
void |
emit(Chunk chunk)
|
java.lang.String |
getHostName()
Returns the host name of the underlying socket. |
int |
getPort()
Returns the port number of the underlying socket. |
IpSession |
getSession()
Returns the session attached to this connection. |
int |
hashCode()
|
void |
receive(Chunk chunk,
int to_read)
|
void |
release()
Releases this connection. |
void |
setSession(IpSession session)
Attaches a new session to this connection. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected JConnectionMgr.Connection(IpConnection delegate)
delegate - next connection in the idle list (null if connection
is active).| Method Detail |
|---|
public int available()
throws java.io.IOException
available in interface IpConnectionjava.io.IOException
public void receive(Chunk chunk,
int to_read)
throws java.io.IOException
receive in interface IpConnectionjava.io.IOException
public void emit(Chunk chunk)
throws java.io.IOException
emit in interface IpConnectionjava.io.IOExceptionpublic int getPort()
getPort in interface IpConnectionpublic java.lang.String getHostName()
getHostName in interface IpConnectionpublic IpSession getSession()
getSession in interface IpConnectionpublic void setSession(IpSession session)
setSession in interface IpConnectionsession - the session to be attached to the target connection.public void delete()
delete in interface IpConnectionpublic void acquire()
public void release()
release in interface IpConnectionpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||