|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.pool.RecyclableSupport
org.norther.tammi.core.pool.PoolableSupport
org.norther.tammi.spray.connector.chain.AbstractConnection
org.norther.tammi.spray.connector.chain.InterConnection
public class InterConnection
A connection through an internal call.
| Field Summary |
|---|
| Fields inherited from interface org.norther.tammi.spray.connector.chain.Connection |
|---|
BUSY, DONE, IDLE, IN_QUEUE, INITIAL |
| Constructor Summary | |
|---|---|
InterConnection(MBeanReference connector,
MBeanReference filter,
MBeanReference logger,
MBeanReference timeout,
Thread thread,
ServletRequest req,
ServletResponse res)
Constructs a new connection. |
|
| Method Summary | |
|---|---|
void |
dispose()
Disposes the object by setting its disposed flag. |
int |
filter()
Filters the request of this connection. |
int |
getByteCount()
Gets the number of bytes written to this connection. |
Certificate[] |
getPeerCertificates()
Gets the client certificate chain, if available. |
String |
getRemoteAddr()
Gets the remote address of this connection. |
int |
getRemotePort()
Gets the remote port of this connection. |
ServletRequest |
getRequest()
Gets of the request of this connection. |
ServletResponse |
getResponse()
Gets of the response of this connection. |
boolean |
isKeepConnection()
Checks whether to keep this connection alive in idle after request processing. |
void |
recycle(MBeanReference connector,
MBeanReference filter,
MBeanReference logger,
MBeanReference timeout,
Thread thread,
ServletRequest req,
ServletResponse res)
Recycles a connection. |
String |
toString()
|
| Methods inherited from class org.norther.tammi.spray.connector.chain.AbstractConnection |
|---|
close, connected, disposed, getConnectionStatus, getConnectionTime, getConnectionTimeout, getConnector, getFilter, getLogger, getMBeanServer, getReadyOps, getRequestTimeout, getTimeout, isContextThread, keepConnection, log, recycle, run, setReadyOps, waitUntilDone |
| Methods inherited from class org.norther.tammi.core.pool.PoolableSupport |
|---|
recycled |
| Methods inherited from class org.norther.tammi.core.pool.RecyclableSupport |
|---|
isDisposed, recycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.norther.tammi.core.pool.Recyclable |
|---|
isDisposed, recycle |
| Constructor Detail |
|---|
public InterConnection(MBeanReference connector,
MBeanReference filter,
MBeanReference logger,
MBeanReference timeout,
Thread thread,
ServletRequest req,
ServletResponse res)
connector - the connector.filter - the active filter.logger - the active logger.timeout - the active timeout.thread - the connector thread.req - the servlet request.res - the servlet response.| Method Detail |
|---|
public void recycle(MBeanReference connector,
MBeanReference filter,
MBeanReference logger,
MBeanReference timeout,
Thread thread,
ServletRequest req,
ServletResponse res)
connector - the connector.filter - the active filter.logger - the active logger.timeout - the active timeout.thread - the connector thread.req - the servlet request.res - the servlet response.public void dispose()
RecyclableSupport
dispose in interface Recyclabledispose in class AbstractConnectionpublic boolean isKeepConnection()
Connection
isKeepConnection in interface ConnectionisKeepConnection in class AbstractConnectionpublic int getByteCount()
Connection
public int getRemotePort()
Connection
public String getRemoteAddr()
Connection
public ServletRequest getRequest()
Connection
public ServletResponse getResponse()
Connection
public Certificate[] getPeerCertificates()
Connection
public int filter()
throws ServletException,
IOException
Connection
ServletException - for servlet errors.
IOException - for general errors.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||