View Javadoc

1   //
2   //  ========================================================================
3   //  Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd.
4   //  ------------------------------------------------------------------------
5   //  All rights reserved. This program and the accompanying materials
6   //  are made available under the terms of the Eclipse Public License v1.0
7   //  and Apache License v2.0 which accompanies this distribution.
8   //
9   //      The Eclipse Public License is available at
10  //      http://www.eclipse.org/legal/epl-v10.html
11  //
12  //      The Apache License v2.0 is available at
13  //      http://www.opensource.org/licenses/apache2.0.php
14  //
15  //  You may elect to redistribute this code under either of these licenses.
16  //  ========================================================================
17  //
18  
19  package org.eclipse.jetty.server;
20  
21  import java.io.IOException;
22  
23  import javax.servlet.ServletResponse;
24  import javax.servlet.ServletResponseWrapper;
25  import javax.servlet.http.Cookie;
26  import javax.servlet.http.HttpServletResponse;
27  
28  
29  /* ------------------------------------------------------------ */
30  /** Wrapper to tunnel a ServletResponse via a HttpServletResponse
31   */
32  public class ServletResponseHttpWrapper extends ServletResponseWrapper implements HttpServletResponse
33  {
34      public ServletResponseHttpWrapper(ServletResponse response)
35      {
36          super(response);
37      }
38  
39      public void addCookie(Cookie cookie)
40      {        
41      }
42  
43      public boolean containsHeader(String name)
44      {
45          return false;
46      }
47  
48      public String encodeURL(String url)
49      {
50          return null;
51      }
52  
53      public String encodeRedirectURL(String url)
54      {
55          return null;
56      }
57  
58      public String encodeUrl(String url)
59      {
60          return null;
61      }
62  
63      public String encodeRedirectUrl(String url)
64      {
65          return null;
66      }
67  
68      public void sendError(int sc, String msg) throws IOException
69      {        
70      }
71  
72      public void sendError(int sc) throws IOException
73      {        
74      }
75  
76      public void sendRedirect(String location) throws IOException
77      {        
78      }
79  
80      public void setDateHeader(String name, long date)
81      {        
82      }
83  
84      public void addDateHeader(String name, long date)
85      {        
86      }
87  
88      public void setHeader(String name, String value)
89      {        
90      }
91  
92      public void addHeader(String name, String value)
93      {        
94      }
95  
96      public void setIntHeader(String name, int value)
97      {        
98      }
99  
100     public void addIntHeader(String name, int value)
101     {        
102     }
103 
104     public void setStatus(int sc)
105     {        
106     }
107 
108     public void setStatus(int sc, String sm)
109     {        
110     }
111 
112 }