baserequest.java

来自「JAVA Servlet2.3外文书籍源码」· Java 代码 · 共 46 行

JAVA
46
字号
package firewall.common;

import java.io.Serializable;

/**
 * Title:        BaseRequest
 * Description:  Superclass to common classes used in application-servlet
 *                communication
 * Copyright:    Copyright (c) 2001
 * Company:
 * @author Andrew Harbourne-Thomas
 * @version 1.0
 */
public class BaseRequest implements Serializable {

  /** Upload constant */
  public static final String UPLOAD = "UPLOAD";

  /** Download constant */
  public static final String DOWNLOAD = "DOWNLOAD";

  /** Refresh constant */
  public static final String REFRESH = "REFRESH";

  /** Delete constant */
  public static final String DELETE = "DELETE";

  /** String to indicate type of request */
  protected String requestType;

  /**
   * Prepares BaseRequest (and subclasses) by setting the request type
   * @param requestType Indicates the type of request made
   */
  public BaseRequest(String requestType) {
    this.requestType = requestType;
  }

  /**
   * Method to return the request type
   * @return the request type
   */
  public final String getRequestType() {
    return requestType;
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?