org.apache.catalina.connector.warp
Class WarpConnectionHandler

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

public class WarpConnectionHandler
extends WarpHandler

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

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
WarpConnectionHandler()
           
 
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
 

Constructor Detail

WarpConnectionHandler

public WarpConnectionHandler()
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.