tw.com.javaworld.CH11.RequestWrapperSample (Java2HTML)

| RequestWrapperSample.java |

    1 package tw.com.javaworld.CH11;
    2
    3 import javax.servlet.*;
    4 import javax.servlet.http.*;
    5 public class RequestWrapperSample extends HttpServletRequestWrapper {
    6
    7     public RequestWrapperSample(HttpServletRequest request) {
    8         super(request);
    9     }
    10
    11    public String getMethod() {
    12        return "POST";
    13    }
    14
    15    public String getQueryString() {
    16        return "www.javaworld.com.tw";
    17    }
    18}