HTTPClientModuleConstants.java
上传用户:demmber
上传日期:2007-12-22
资源大小:717k
文件大小:3k
源码类别:

Java编程

开发平台:

Java

  1. /*
  2.  * @(#)HTTPClientModuleConstants.java 0.3-3 06/05/2001
  3.  *
  4.  *  This file is part of the HTTPClient package
  5.  *  Copyright (C) 1996-2001 Ronald Tschal鋜
  6.  *
  7.  *  This library is free software; you can redistribute it and/or
  8.  *  modify it under the terms of the GNU Lesser General Public
  9.  *  License as published by the Free Software Foundation; either
  10.  *  version 2 of the License, or (at your option) any later version.
  11.  *
  12.  *  This library is distributed in the hope that it will be useful,
  13.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.  *  Lesser General Public License for more details.
  16.  *
  17.  *  You should have received a copy of the GNU Lesser General Public
  18.  *  License along with this library; if not, write to the Free
  19.  *  Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  20.  *  MA 02111-1307, USA
  21.  *
  22.  *  For questions, suggestions, bug-reports, enhancement-requests etc.
  23.  *  I may be contacted at:
  24.  *
  25.  *  ronald@innovation.ch
  26.  *
  27.  *  The HTTPClient's home page is located at:
  28.  *
  29.  *  http://www.innovation.ch/java/HTTPClient/ 
  30.  *
  31.  */
  32. package HTTPClient;
  33. /**
  34.  * This interface defines the return codes that the handlers in modules
  35.  * may return.
  36.  *
  37.  * @see HTTPClientModule
  38.  * @version 0.3-3  06/05/2001
  39.  * @author Ronald Tschal鋜
  40.  * @since V0.3
  41.  */
  42. public interface HTTPClientModuleConstants
  43. {
  44.     // valid return codes for request handlers
  45.     /** continue processing the request */
  46.     int  REQ_CONTINUE   = 0;
  47.     /** restart request processing with first module */
  48.     int  REQ_RESTART    = 1;
  49.     /** stop processing and send the request */
  50.     int  REQ_SHORTCIRC  = 2;
  51.     /** response generated; go to phase 2 */
  52.     int  REQ_RESPONSE   = 3;
  53.     /** response generated; return response immediately (no processing) */
  54.     int  REQ_RETURN     = 4;
  55.     /** using a new HTTPConnection, restart request processing */
  56.     int  REQ_NEWCON_RST = 5;
  57.     /** using a new HTTPConnection, send request immediately */
  58.     int  REQ_NEWCON_SND = 6;
  59.     // valid return codes for the phase 2 response handlers
  60.     /** continue processing response */
  61.     int  RSP_CONTINUE   = 10;
  62.     /** restart response processing with first module */
  63.     int  RSP_RESTART    = 11;
  64.     /** stop processing and return response */
  65.     int  RSP_SHORTCIRC  = 12;
  66.     /** new request generated; go to phase 1 */
  67.     int  RSP_REQUEST    = 13;
  68.     /** new request generated; send request immediately (no processing) */
  69.     int  RSP_SEND       = 14;
  70.     /** go to phase 1 using a new HTTPConnection */
  71.     int  RSP_NEWCON_REQ = 15;
  72.     /** send request using a new HTTPConnection */
  73.     int  RSP_NEWCON_SND = 16;
  74. }