    1   /***
    2    * JFoxSOAF, Service-Oriented Application Framework
    3    *
    4    * Copyright (C) www.huihoo.org
    5    *
    6    * Distributable under GNU LGPL For more information, please visit:
    7    * http://www.huihoo.org/jfox/jfoxsoaf
    8    */
    9
    10  package org.huihoo.jfox.soaf.util.filter;
    11
    12  import java.io.BufferedReader;
    13  import java.io.IOException;
    14  import java.io.UnsupportedEncodingException;
    15  import java.util.Enumeration;
    16  import java.util.Locale;
    17  import java.util.Map;
    18
    19  import javax.servlet.RequestDispatcher;
    20  import javax.servlet.ServletInputStream;
    21  import javax.servlet.ServletRequest;
    22
    23  /***
    24   * Mock MockServletRequest
    25   *
    26   * @author <a href="mailto:founder_chen@yahoo.com">Peter Cheng </a>
    27   * @version $Revision: 1.1 $ $Date: 2004/10/25 11:25:48 $
    28   * @version Revision: 1.0
    29   */
    30
    31  public class MockServletRequest implements ServletRequest {
    32
    33      /***
    34       * @see javax.servlet.ServletRequest#getAttribute(java.lang.String)
    35       */
    36      public Object getAttribute(String arg0) {
    37          return null;
    38      }
    39
    40      /***
    41       * @see javax.servlet.ServletRequest#getAttributeNames()
    42       */
    43      public Enumeration getAttributeNames() {
    44          return null;
    45      }
    46
    47      /***
    48       * @see javax.servlet.ServletRequest#getCharacterEncoding()
    49       */
    50      public String getCharacterEncoding() {
    51          return null;
    52      }
    53
    54      /***
    55       * @see javax.servlet.ServletRequest#setCharacterEncoding(java.lang.String)
    56       */
    57      public void setCharacterEncoding(String arg0)
    58              throws UnsupportedEncodingException {
    59      }
    60
    61      /***
    62       * @see javax.servlet.ServletRequest#getContentLength()
    63       */
    64      public int getContentLength() {
    65          return 0;
    66      }
    67
    68      /***
    69       * @see javax.servlet.ServletRequest#getContentType()
    70       */
    71      public String getContentType() {
    72          return null;
    73      }
    74
    75      /***
    76       * @see javax.servlet.ServletRequest#getInputStream()
    77       */
    78      public ServletInputStream getInputStream() throws IOException {
    79          return null;
    80      }
    81
    82      /***
    83       * @see javax.servlet.ServletRequest#getParameter(java.lang.String)
    84       */
    85      public String getParameter(String arg0) {
    86          return null;
    87      }
    88
    89      /***
    90       * @see javax.servlet.ServletRequest#getParameterNames()
    91       */
    92      public Enumeration getParameterNames() {
    93          return null;
    94      }
    95
    96      /***
    97       * @see javax.servlet.ServletRequest#getParameterValues(java.lang.String)
    98       */
    99      public String[] getParameterValues(String arg0) {
    100         return null;
    101     }
    102
    103     /***
    104      * @see javax.servlet.ServletRequest#getParameterMap()
    105      */
    106     public Map getParameterMap() {
    107         return null;
    108     }
    109
    110     /***
    111      * @see javax.servlet.ServletRequest#getProtocol()
    112      */
    113     public String getProtocol() {
    114         return null;
    115     }
    116
    117     /***
    118      * @see javax.servlet.ServletRequest#getScheme()
    119      */
    120     public String getScheme() {
    121         return null;
    122     }
    123
    124     /***
    125      * @see javax.servlet.ServletRequest#getServerName()
    126      */
    127     public String getServerName() {
    128         return null;
    129     }
    130
    131     /***
    132      * @see javax.servlet.ServletRequest#getServerPort()
    133      */
    134     public int getServerPort() {
    135         return 0;
    136     }
    137
    138     /***
    139      * @see javax.servlet.ServletRequest#getReader()
    140      */
    141     public BufferedReader getReader() throws IOException {
    142         return null;
    143     }
    144
    145     /***
    146      * @see javax.servlet.ServletRequest#getRemoteAddr()
    147      */
    148     public String getRemoteAddr() {
    149         return null;
    150     }
    151
    152     /***
    153      * @see javax.servlet.ServletRequest#getRemoteHost()
    154      */
    155     public String getRemoteHost() {
    156         return null;
    157     }
    158
    159     /***
    160      * @see javax.servlet.ServletRequest#setAttribute(java.lang.String,
    161      *      java.lang.Object)
    162      */
    163     public void setAttribute(String arg0, Object arg1) {
    164     }
    165
    166     /***
    167      * @see javax.servlet.ServletRequest#removeAttribute(java.lang.String)
    168      */
    169     public void removeAttribute(String arg0) {
    170     }
    171
    172     /***
    173      * @see javax.servlet.ServletRequest#getLocale()
    174      */
    175     public Locale getLocale() {
    176         return null;
    177     }
    178
    179     /***
    180      * @see javax.servlet.ServletRequest#getLocales()
    181      */
    182     public Enumeration getLocales() {
    183         return null;
    184     }
    185
    186     /***
    187      * @see javax.servlet.ServletRequest#isSecure()
    188      */
    189     public boolean isSecure() {
    190         return false;
    191     }
    192
    193     /***
    194      * @see javax.servlet.ServletRequest#getRequestDispatcher(java.lang.String)
    195      */
    196     public RequestDispatcher getRequestDispatcher(String arg0) {
    197         return null;
    198     }
    199
    200     /***
    201      * @see javax.servlet.ServletRequest#getRealPath(java.lang.String)
    202      */
    203     public String getRealPath(String arg0) {
    204         return null;
    205     }
    206
    207 }