    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.IOException;
    13  import java.io.PrintWriter;
    14  import java.util.Locale;
    15
    16  import javax.servlet.ServletOutputStream;
    17  import javax.servlet.ServletResponse;
    18
    19  /***
    20   * Mock MockServletResponse
    21   *
    22   * @author <a href="mailto:founder_chen@yahoo.com">Peter Cheng </a>
    23   * @version $Revision: 1.1 $ $Date: 2004/10/25 11:25:48 $
    24   * @version Revision: 1.0
    25   */
    26
    27  public class MockServletResponse implements ServletResponse {
    28
    29      /***
    30       * @see javax.servlet.ServletResponse#getCharacterEncoding()
    31       */
    32      public String getCharacterEncoding() {
    33          return null;
    34      }
    35
    36      /***
    37       * @see javax.servlet.ServletResponse#getOutputStream()
    38       */
    39      public ServletOutputStream getOutputStream() throws IOException {
    40          return null;
    41      }
    42
    43      /***
    44       * @see javax.servlet.ServletResponse#getWriter()
    45       */
    46      public PrintWriter getWriter() throws IOException {
    47          return null;
    48      }
    49
    50      /***
    51       * @see javax.servlet.ServletResponse#setContentLength(int)
    52       */
    53      public void setContentLength(int arg0) {
    54      }
    55
    56      /***
    57       * @see javax.servlet.ServletResponse#setContentType(java.lang.String)
    58       */
    59      public void setContentType(String arg0) {
    60      }
    61
    62      /***
    63       * @see javax.servlet.ServletResponse#setBufferSize(int)
    64       */
    65      public void setBufferSize(int arg0) {
    66      }
    67
    68      /***
    69       * @see javax.servlet.ServletResponse#getBufferSize()
    70       */
    71      public int getBufferSize() {
    72          return 0;
    73      }
    74
    75      /***
    76       * @see javax.servlet.ServletResponse#flushBuffer()
    77       */
    78      public void flushBuffer() throws IOException {
    79      }
    80
    81      /***
    82       * @see javax.servlet.ServletResponse#resetBuffer()
    83       */
    84      public void resetBuffer() {
    85      }
    86
    87      /***
    88       * @see javax.servlet.ServletResponse#isCommitted()
    89       */
    90      public boolean isCommitted() {
    91          return false;
    92      }
    93
    94      /***
    95       * @see javax.servlet.ServletResponse#reset()
    96       */
    97      public void reset() {
    98      }
    99
    100     /***
    101      * @see javax.servlet.ServletResponse#setLocale(java.util.Locale)
    102      */
    103     public void setLocale(Locale arg0) {
    104     }
    105
    106     /***
    107      * @see javax.servlet.ServletResponse#getLocale()
    108      */
    109     public Locale getLocale() {
    110         return null;
    111     }
    112
    113 }