1 17 package javax.servlet.http; 18 19 import javax.servlet.ServletRequestWrapper ; 20 import java.util.Enumeration ; 21 22 34 35 36 public class HttpServletRequestWrapper extends ServletRequestWrapper implements HttpServletRequest { 37 38 42 public HttpServletRequestWrapper(HttpServletRequest request) { 43 super(request); 44 } 45 46 private HttpServletRequest _getHttpServletRequest() { 47 return (HttpServletRequest ) super.getRequest(); 48 } 49 50 54 55 public String getAuthType() { 56 return this._getHttpServletRequest().getAuthType(); 57 } 58 59 63 public Cookie [] getCookies() { 64 return this._getHttpServletRequest().getCookies(); 65 } 66 67 71 public long getDateHeader(String name) { 72 return this._getHttpServletRequest().getDateHeader(name); 73 } 74 75 79 public String getHeader(String name) { 80 return this._getHttpServletRequest().getHeader(name); 81 } 82 83 87 public Enumeration getHeaders(String name) { 88 return this._getHttpServletRequest().getHeaders(name); 89 } 90 91 95 96 public Enumeration getHeaderNames() { 97 return this._getHttpServletRequest().getHeaderNames(); 98 } 99 100 104 105 public int getIntHeader(String name) { 106 return this._getHttpServletRequest().getIntHeader(name); 107 } 108 109 113 public String getMethod() { 114 return this._getHttpServletRequest().getMethod(); 115 } 116 117 121 public String getPathInfo() { 122 return this._getHttpServletRequest().getPathInfo(); 123 } 124 125 129 130 public String getPathTranslated() { 131 return this._getHttpServletRequest().getPathTranslated(); 132 } 133 134 138 public String getContextPath() { 139 return this._getHttpServletRequest().getContextPath(); 140 } 141 142 146 public String getQueryString() { 147 return this._getHttpServletRequest().getQueryString(); 148 } 149 150 154 public String getRemoteUser() { 155 return this._getHttpServletRequest().getRemoteUser(); 156 } 157 158 159 163 public boolean isUserInRole(String role) { 164 return this._getHttpServletRequest().isUserInRole(role); 165 } 166 167 168 169 173 public java.security.Principal getUserPrincipal() { 174 return this._getHttpServletRequest().getUserPrincipal(); 175 } 176 177 178 182 public String getRequestedSessionId() { 183 return this._getHttpServletRequest().getRequestedSessionId(); 184 } 185 186 190 public String getRequestURI() { 191 return this._getHttpServletRequest().getRequestURI(); 192 } 193 197 public StringBuffer getRequestURL() { 198 return this._getHttpServletRequest().getRequestURL(); 199 } 200 201 202 206 public String getServletPath() { 207 return this._getHttpServletRequest().getServletPath(); 208 } 209 210 211 215 public HttpSession getSession(boolean create) { 216 return this._getHttpServletRequest().getSession(create); 217 } 218 219 223 public HttpSession getSession() { 224 return this._getHttpServletRequest().getSession(); 225 } 226 227 231 232 public boolean isRequestedSessionIdValid() { 233 return this._getHttpServletRequest().isRequestedSessionIdValid(); 234 } 235 236 237 241 public boolean isRequestedSessionIdFromCookie() { 242 return this._getHttpServletRequest().isRequestedSessionIdFromCookie(); 243 } 244 245 249 public boolean isRequestedSessionIdFromURL() { 250 return this._getHttpServletRequest().isRequestedSessionIdFromURL(); 251 } 252 253 257 public boolean isRequestedSessionIdFromUrl() { 258 return this._getHttpServletRequest().isRequestedSessionIdFromUrl(); 259 } 260 261 262 263 } 264 | Popular Tags |