|
Ila | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.topoweb.net.server.PlainSession | +--org.topoweb.ila.server.IlaSession
Encapsulates conversational state in an Ila server.
Constructor Summary | |
protected |
IlaSession()
|
|
IlaSession(java.nio.channels.SocketChannel channel)
Creates a new instance with the specified channel . |
Method Summary | |
protected void |
clear()
Clears the fields of this instance. |
java.io.OutputStream |
getOutputStream()
Returns an in-memory java.io.OutputStream that backs
the ByteBuffer s returned by this instance. |
java.lang.String |
getTxnId()
Returns the transaction ID. |
java.nio.ByteBuffer[] |
getWriteBuffers()
Returns the "write buffers". |
boolean |
isAuthenticated()
Returns the "authenticated" property. |
void |
setAuthenticated(boolean auth)
Sets the "authenticated" property. |
void |
setTxnId(java.lang.String tid)
Sets the transaction ID. |
Methods inherited from class org.topoweb.net.server.PlainSession |
appendReadBuffer, getFactory, getReadAmount, getReadArray, getSocketChannel, setSocketChannel, setWriteBuffers |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected IlaSession()
public IlaSession(java.nio.channels.SocketChannel channel)
channel
.
channel
- the socket channelMethod Detail |
public void setTxnId(java.lang.String tid)
tid
- the transaction IDgetTxnId()
public java.lang.String getTxnId()
null
, if
not setsetTxnId(String)
public void setAuthenticated(boolean auth)
auth
- true
, if authenticated;
false
, o.w.public boolean isAuthenticated()
setAuthenticated(boolean)
public java.io.OutputStream getOutputStream()
java.io.OutputStream
that backs
the ByteBuffer
s returned by this instance.
getWriteBuffers()
public java.nio.ByteBuffer[] getWriteBuffers()
ByteBuffer
backed by an
in-memory output stream.
getWriteBuffers
in interface org.topoweb.net.server.Session
getWriteBuffers
in class org.topoweb.net.server.PlainSession
getOutputStream()
protected void clear()
clear
in class org.topoweb.net.server.PlainSession
|
Ila | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |