org.apache.catalina.connector.warp
Class WarpRequestHandler

java.lang.Object
  |
  +--org.apache.catalina.connector.warp.WarpHandler
        |
        +--org.apache.catalina.connector.warp.WarpRequestHandler
All Implemented Interfaces:
Lifecycle, java.lang.Runnable

public class WarpRequestHandler
extends WarpHandler

Version:
CVS $Id: WarpRequestHandler.java,v 1.7 2001/01/24 23:10:51 pier Exp $
Author:
Pier Fumagalli, Copyright © 1999, 2000 The Apache Software Foundation.

Field Summary
protected  WarpRequest request
          The WarpRequest object associated with this request handler.
protected  WarpResponse response
          The WarpRequest object associated with this request handler.
 
Fields inherited from class org.apache.catalina.connector.warp.WarpHandler
DEBUG
 
Fields inherited from interface org.apache.catalina.Lifecycle
START_EVENT, STOP_EVENT
 
Constructor Summary
WarpRequestHandler()
           
 
Method Summary
 boolean process(int type, byte[] buffer)
          Process a WARP packet.
 
Methods inherited from class org.apache.catalina.connector.warp.WarpHandler
addLifecycleListener, debug, debug, getConnection, getConnector, getRequestID, log, log, processData, removeLifecycleListener, run, send, send, send, setConnection, setRequestID, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

request

protected WarpRequest request
The WarpRequest object associated with this request handler.

response

protected WarpResponse response
The WarpRequest object associated with this request handler.
Constructor Detail

WarpRequestHandler

public WarpRequestHandler()
Method Detail

process

public boolean process(int type,
                       byte[] buffer)
Process a WARP packet.
This method is the one which will actually perform the operation of analyzing the packet and doing whatever needs to be done.
This method will return true if another packet is expected for this RID, or it will return false if this was the last packet for this RID. When we return false this handler is unregistered, and the Thread started in the init() method is terminated.
Overrides:
process in class WarpHandler
Parameters:
type - The WARP packet type.
buffer - The WARP packet payload.
Returns:
If more packets are expected for this RID, true is returned, false if this was the last packet.


Copyright ? 2000 Apache Software Foundation. All Rights Reserved.