pier 01/07/19 17:01:26 Modified: catalina/src/share/org/apache/catalina/connector/warp WarpRequest.java Log: New WARP implementation from Jakarta-Tomcat-Connectors Revision Changes Path 1.5 +16 -101 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/warp/WarpRequest.java Index: WarpRequest.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/warp/WarpRequest.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- WarpRequest.java 2001/01/24 23:10:50 1.4 +++ WarpRequest.java 2001/07/20 00:01:26 1.5 @@ -2,7 +2,7 @@ * * * The Apache Software License, Version 1.1 * * * - * Copyright (c) 1999, 2000 The Apache Software Foundation. * + * Copyright (c) 1999-2001 The Apache Software Foundation. * * All rights reserved. * * * * ========================================================================= * @@ -56,108 +56,23 @@ * ========================================================================= */ package org.apache.catalina.connector.warp; +import org.apache.catalina.Context; +import org.apache.catalina.Host; import org.apache.catalina.connector.HttpRequestBase; -/** - * - * - * @author <a href="mailto:[EMAIL PROTECTED]">Pier Fumagalli</a> - * @author Copyright © 1999, 2000 <a href="http://www.apache.org">The - * Apache Software Foundation. - * @version CVS $Id: WarpRequest.java,v 1.4 2001/01/24 23:10:50 pier Exp $ - */ public class WarpRequest extends HttpRequestBase { - - // -------------------------------------------------------------- CONSTANTS - - /** Our debug flag status (Used to compile out debugging information). */ - private static final boolean DEBUG=WarpDebug.DEBUG; - - // -------------------------------------------------------- LOCAL VARIABLES - - /** The Warp Host ID of this request. */ - private int hostid=-1; - /** The Warp Application ID of this request. */ - private int applid=-1; - /** The Warp Request ID of this request. */ - private int id=-1; - /** The WarpRequestHandler associated with this request. */ - private WarpRequestHandler handler=null; - - // ----------------------------------------------------------- BEAN METHODS - - /** - * Return the WarpRequestHandler associated with this request. - */ - protected WarpRequestHandler getWarpRequestHandler() { - return(this.handler); - } - - /** - * Set the WarpRequestHandler associated with this request. - */ - protected void setWarpRequestHandler(WarpRequestHandler handler) { - this.handler=handler; - } - - /** - * Return the Host ID associated with this WarpRequest instance. - */ - protected int getRequestID() { - return(this.id); - } - - /** - * Set the Host ID associated with this WarpRequest instance. - */ - protected void setRequestID(int id) { - if (DEBUG) this.debug("Setting RequestID to "+id); - this.id=id; - } - - /** - * Return the Host ID associated with this WarpRequest instance. - */ - protected int getRequestedHostID() { - return(this.hostid); - } - - /** - * Set the Application ID associated with this WarpRequest instance. - */ - protected void setRequestedHostID(int id) { - if (DEBUG) this.debug("Setting request HostID to "+id); - this.hostid=id; - } - - /** - * Return the Application ID associated with this WarpRequest instance. - */ - protected int getRequestedApplicationID() { - return(this.applid); - } - - /** - * Set the Host ID associated with this WarpRequest instance. - */ - protected void setRequestedApplicationID(int id) { - if (DEBUG) this.debug("Setting request ApplicationID to "+id); - this.applid=id; - } - - // ------------------------------------------------------ DEBUGGING METHODS - - /** - * Dump a debug message. - */ - private void debug(String msg) { - if (DEBUG) WarpDebug.debug(this,msg); - } - - /** - * Dump information for an Exception. - */ - private void debug(Exception exc) { - if (DEBUG) WarpDebug.debug(this,exc); + private Host host=null; + private Context context=null; + + public WarpRequest() { + super(); + } + + public void setHost(Host host) { + this.host=host; + } + + public Host getHost() { + return(this.host); } }