View Javadoc

    1   /*
    2    * Licensed to the Apache Software Foundation (ASF) under one or more
    3    * contributor license agreements.  See the NOTICE file distributed with
    4    * this work for additional information regarding copyright ownership.
    5    * The ASF licenses this file to You under the Apache License, Version 2.0
    6    * (the "License"); you may not use this file except in compliance with
    7    * the License.  You may obtain a copy of the License at
    8    *
    9    *      http://www.apache.org/licenses/LICENSE-2.0
    10   *
    11   * Unless required by applicable law or agreed to in writing, software
    12   * distributed under the License is distributed on an "AS IS" BASIS,
    13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14   * See the License for the specific language governing permissions and
    15   * limitations under the License.
    16   */
    17  package org.apache.portals.bridges.struts.util;
    18
    19  import java.io.IOException;
    20  import java.io.PrintWriter;
    21  import java.util.Locale;
    22
    23  import javax.servlet.ServletOutputStream;
    24  import javax.servlet.http.Cookie;
    25  import javax.servlet.http.HttpServletResponse;
    26  import javax.servlet.http.HttpServletResponseWrapper;
    27
    28  /***
    29   * EmptyHttpServletResponseWrapper
    30   *
    31   * @author <a href="mailto:ate@douma.nu">Ate Douma</a>
    32   * @version $Id: EmptyHttpServletResponseWrapper.java 517068 2007-03-12 01:44:37Z ate $
    33   */
    34  public class EmptyHttpServletResponseWrapper extends HttpServletResponseWrapper {
    35
    36      public EmptyHttpServletResponseWrapper(HttpServletResponse response)
    37      {
    38          super(response);
    39      }
    40
    41      public void addCookie(Cookie cookie) {
    42      }
    43
    44      public void addDateHeader(String s, long l) {
    45      }
    46
    47      public void addHeader(String s, String s1) {
    48      }
    49
    50      public void addIntHeader(String s, int i) {
    51      }
    52
    53      public boolean containsHeader(String s) {
    54          return false;
    55      }
    56
    57      public String encodeRedirectUrl(String s) {
    58          return null;
    59      }
    60
    61      public String encodeRedirectURL(String s) {
    62          return null;
    63      }
    64
    65      public String encodeUrl(String s) {
    66          return null;
    67      }
    68
    69      public String encodeURL(String s) {
    70          return null;
    71      }
    72
    73      public void flushBuffer() throws IOException {
    74      }
    75
    76      public int getBufferSize() {
    77          return 0;
    78      }
    79
    80      public String getCharacterEncoding() {
    81          return null;
    82      }
    83
    84      public String getContentType() {
    85          return null;
    86      }
    87
    88      public Locale getLocale() {
    89          return null;
    90      }
    91
    92      public ServletOutputStream getOutputStream() throws IOException {
    93          return null;
    94      }
    95
    96      public PrintWriter getWriter() throws IOException {
    97          return null;
    98      }
    99
    100     public boolean isCommitted() {
    101         return false;
    102     }
    103
    104     public void reset() {
    105     }
    106
    107     public void resetBuffer() {
    108     }
    109
    110     public void sendError(int i) throws IOException {
    111     }
    112
    113     public void sendError(int i, String s) throws IOException {
    114     }
    115
    116     public void sendRedirect(String s) throws IOException {
    117     }
    118
    119     public void setBufferSize(int i) {
    120     }
    121
    122     public void setCharacterEncoding(String charset) {
    123     }
    124
    125     public void setContentLength(int i) {
    126     }
    127
    128     public void setContentType(String s) {
    129     }
    130
    131     public void setDateHeader(String s, long l) {
    132     }
    133
    134     public void setHeader(String s, String s1) {
    135     }
    136
    137     public void setIntHeader(String s, int i) {
    138     }
    139
    140     public void setLocale(Locale locale) {
    141     }
    142
    143     public void setStatus(int i) {
    144     }
    145
    146     public void setStatus(int i, String s) {
    147     }
    148 }