001package ch.qos.logback.access.jetty; 002 003import jakarta.servlet.ServletOutputStream; 004import jakarta.servlet.http.Cookie; 005import jakarta.servlet.http.HttpServletResponse; 006import org.eclipse.jetty.server.Response; 007 008import java.io.IOException; 009import java.io.PrintWriter; 010import java.util.Collection; 011import java.util.Locale; 012 013public class ResponseWrapper implements HttpServletResponse { 014 015 Response response; 016 017 public ResponseWrapper(Response response) { 018 this.response = response; 019 } 020 021 @Override 022 public void addCookie(Cookie cookie) { 023 024 } 025 026 @Override 027 public boolean containsHeader(String name) { 028 return false; 029 } 030 031 @Override 032 public String encodeURL(String url) { 033 return null; 034 } 035 036 @Override 037 public String encodeRedirectURL(String url) { 038 return null; 039 } 040 041 @Override 042 public void sendError(int sc, String msg) throws IOException { 043 044 } 045 046 @Override 047 public void sendError(int sc) throws IOException { 048 049 } 050 051 @Override 052 public void sendRedirect(String location) throws IOException { 053 054 } 055 056 @Override 057 public void setDateHeader(String name, long date) { 058 059 } 060 061 @Override 062 public void addDateHeader(String name, long date) { 063 064 } 065 066 @Override 067 public void setHeader(String name, String value) { 068 069 } 070 071 @Override 072 public void addHeader(String name, String value) { 073 074 } 075 076 @Override 077 public void setIntHeader(String name, int value) { 078 079 } 080 081 @Override 082 public void addIntHeader(String name, int value) { 083 084 } 085 086 @Override 087 public void setStatus(int sc) { 088 089 } 090 091 @Override 092 public int getStatus() { 093 return 0; 094 } 095 096 @Override 097 public String getHeader(String name) { 098 return null; 099 } 100 101 @Override 102 public Collection<String> getHeaders(String name) { 103 return null; 104 } 105 106 @Override 107 public Collection<String> getHeaderNames() { 108 return null; 109 } 110 111 @Override 112 public String getCharacterEncoding() { 113 return null; 114 } 115 116 @Override 117 public String getContentType() { 118 return null; 119 } 120 121 @Override 122 public ServletOutputStream getOutputStream() throws IOException { 123 return null; 124 } 125 126 @Override 127 public PrintWriter getWriter() throws IOException { 128 return null; 129 } 130 131 @Override 132 public void setCharacterEncoding(String charset) { 133 134 } 135 136 @Override 137 public void setContentLength(int len) { 138 139 } 140 141 @Override 142 public void setContentLengthLong(long len) { 143 144 } 145 146 @Override 147 public void setContentType(String type) { 148 149 } 150 151 @Override 152 public void setBufferSize(int size) { 153 154 } 155 156 @Override 157 public int getBufferSize() { 158 return 0; 159 } 160 161 @Override 162 public void flushBuffer() throws IOException { 163 164 } 165 166 @Override 167 public void resetBuffer() { 168 169 } 170 171 @Override 172 public boolean isCommitted() { 173 return false; 174 } 175 176 @Override 177 public void reset() { 178 179 } 180 181 @Override 182 public void setLocale(Locale loc) { 183 184 } 185 186 @Override 187 public Locale getLocale() { 188 return null; 189 } 190}