|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.apache.catalina.connector.warp.WarpConnection
| Fields inherited from interface org.apache.catalina.Lifecycle |
START_EVENT, STOP_EVENT |
| Constructor Summary | |
WarpConnection()
Create a new WarpConnection instance. |
|
| Method Summary | |
void |
addLifecycleListener(LifecycleListener listener)
Add a lifecycle event listener to this component. |
protected WarpConnector |
getConnector()
Return the socket associated with this connection. |
protected java.net.Socket |
getSocket()
Return the socket associated with this connection. |
void |
log(java.lang.Exception exc)
Dump information for an Exception. |
void |
log(java.lang.String msg)
Dump a log message. |
protected boolean |
registerHandler(WarpHandler han,
int rid)
Add a WarpHandler to this connection. |
protected WarpHandler |
removeHandler(int rid)
Remove a WarpHandler from this connection. |
void |
removeLifecycleListener(LifecycleListener listener)
Remove a lifecycle event listener from this component. |
void |
run()
Run the thread waiting on the socket, reading packets from the client and dispatching them to the appropriate handler. |
void |
send(int rid,
int type,
byte[] buffer,
int offset,
int len)
Send a WARP packet. |
protected void |
setConnector(WarpConnector connector)
Set the socket used by this connection. |
protected void |
setSocket(java.net.Socket socket)
Set the socket used by this connection. |
void |
start()
Initialize this connection. |
void |
stop()
Close this connection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WarpConnection()
| Method Detail |
public void run()
run in interface java.lang.Runnable
public void start()
throws LifecycleException
start in interface Lifecyclesock - The socket used by this connection to transfer data.
public void send(int rid,
int type,
byte[] buffer,
int offset,
int len)
throws java.io.IOException
public void stop()
throws LifecycleException
stop in interface Lifecycleorg.apache.catalina.LifecycleIllegalStateException - if this component has not been startedLifecycleException - if this component detects a fatal error
that needs to be reported
protected boolean registerHandler(WarpHandler han,
int rid)
han - The WarpHandler add to this connection.rid - The RID number associated with the WarpHandler.protected WarpHandler removeHandler(int rid)
rid - The RID number associated with the WarpHandler to remove.protected WarpConnector getConnector()
protected void setConnector(WarpConnector connector)
protected java.net.Socket getSocket()
protected void setSocket(java.net.Socket socket)
public void addLifecycleListener(LifecycleListener listener)
addLifecycleListener in interface Lifecycleorg.apache.catalina.Lifecyclelistener - The listener to addpublic void removeLifecycleListener(LifecycleListener listener)
removeLifecycleListener in interface Lifecycleorg.apache.catalina.Lifecyclelistener - The listener to removepublic void log(java.lang.String msg)
public void log(java.lang.Exception exc)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||