comparison src/org/eclipse/jetty/server/ServletResponseHttpWrapper.java @ 802:3428c60d7cfc

replace jetty jars with source
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 07 Sep 2016 21:15:48 -0600
parents
children
comparison
equal deleted inserted replaced
801:6a21393191c1 802:3428c60d7cfc
1 //
2 // ========================================================================
3 // Copyright (c) 1995-2014 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 import java.util.Collection;
23
24 import javax.servlet.ServletResponse;
25 import javax.servlet.ServletResponseWrapper;
26 import javax.servlet.http.Cookie;
27 import javax.servlet.http.HttpServletResponse;
28
29
30 /* ------------------------------------------------------------ */
31 /** Wrapper to tunnel a ServletResponse via a HttpServletResponse
32 */
33 public class ServletResponseHttpWrapper extends ServletResponseWrapper implements HttpServletResponse
34 {
35 public ServletResponseHttpWrapper(ServletResponse response)
36 {
37 super(response);
38 }
39
40 public void addCookie(Cookie cookie)
41 {
42 }
43
44 public boolean containsHeader(String name)
45 {
46 return false;
47 }
48
49 public String encodeURL(String url)
50 {
51 return null;
52 }
53
54 public String encodeRedirectURL(String url)
55 {
56 return null;
57 }
58
59 public String encodeUrl(String url)
60 {
61 return null;
62 }
63
64 public String encodeRedirectUrl(String url)
65 {
66 return null;
67 }
68
69 public void sendError(int sc, String msg) throws IOException
70 {
71 }
72
73 public void sendError(int sc) throws IOException
74 {
75 }
76
77 public void sendRedirect(String location) throws IOException
78 {
79 }
80
81 public void setDateHeader(String name, long date)
82 {
83 }
84
85 public void addDateHeader(String name, long date)
86 {
87 }
88
89 public void setHeader(String name, String value)
90 {
91 }
92
93 public void addHeader(String name, String value)
94 {
95 }
96
97 public void setIntHeader(String name, int value)
98 {
99 }
100
101 public void addIntHeader(String name, int value)
102 {
103 }
104
105 public void setStatus(int sc)
106 {
107 }
108
109 public void setStatus(int sc, String sm)
110 {
111 }
112
113 /**
114 * @see javax.servlet.http.HttpServletResponse#getHeader(java.lang.String)
115 */
116 public String getHeader(String name)
117 {
118 return null;
119 }
120
121 /**
122 * @see javax.servlet.http.HttpServletResponse#getHeaderNames()
123 */
124 public Collection<String> getHeaderNames()
125 {
126 return null;
127 }
128
129 /**
130 * @see javax.servlet.http.HttpServletResponse#getHeaders(java.lang.String)
131 */
132 public Collection<String> getHeaders(String name)
133 {
134 return null;
135 }
136
137 /**
138 * @see javax.servlet.http.HttpServletResponse#getStatus()
139 */
140 public int getStatus()
141 {
142 return 0;
143 }
144
145 }