|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| HttpServletRequestWrapper.java | - | 0% | 0% | 0% |
|
||||||||||||||
| 1 |
/*
|
|
| 2 |
* Joey and its relative products are published under the terms
|
|
| 3 |
* of the Apache Software License.
|
|
| 4 |
*/
|
|
| 5 |
package org.asyrinx.brownie.servlet;
|
|
| 6 |
|
|
| 7 |
import java.security.Principal;
|
|
| 8 |
import java.util.Enumeration;
|
|
| 9 |
|
|
| 10 |
import javax.servlet.http.Cookie;
|
|
| 11 |
import javax.servlet.http.HttpServletRequest;
|
|
| 12 |
import javax.servlet.http.HttpSession;
|
|
| 13 |
|
|
| 14 |
/**
|
|
| 15 |
* @author Akima
|
|
| 16 |
*/
|
|
| 17 |
public class HttpServletRequestWrapper extends ServletRequestWrapper implements |
|
| 18 |
HttpServletRequest {
|
|
| 19 |
|
|
| 20 |
/**
|
|
| 21 |
* Constructor for HttpServletRequestWrapper.
|
|
| 22 |
*
|
|
| 23 |
* @param servletRequest
|
|
| 24 |
*/
|
|
| 25 | 0 |
public HttpServletRequestWrapper(HttpServletRequest impl) {
|
| 26 | 0 |
super(impl);
|
| 27 | 0 |
this.impl = impl;
|
| 28 |
} |
|
| 29 |
|
|
| 30 |
protected final HttpServletRequest impl;
|
|
| 31 |
|
|
| 32 |
/**
|
|
| 33 |
* @see javax.servlet.http.HttpServletRequest#getAuthType()
|
|
| 34 |
*/
|
|
| 35 | 0 |
public String getAuthType() {
|
| 36 | 0 |
return impl.getAuthType();
|
| 37 |
} |
|
| 38 |
|
|
| 39 |
/**
|
|
| 40 |
* @see javax.servlet.http.HttpServletRequest#getCookies()
|
|
| 41 |
*/
|
|
| 42 | 0 |
public Cookie[] getCookies() {
|
| 43 | 0 |
return impl.getCookies();
|
| 44 |
} |
|
| 45 |
|
|
| 46 |
/**
|
|
| 47 |
* @see javax.servlet.http.HttpServletRequest#getDateHeader(String)
|
|
| 48 |
*/
|
|
| 49 | 0 |
public long getDateHeader(String name) { |
| 50 | 0 |
return impl.getDateHeader(name);
|
| 51 |
} |
|
| 52 |
|
|
| 53 |
/**
|
|
| 54 |
* @see javax.servlet.http.HttpServletRequest#getHeader(String)
|
|
| 55 |
*/
|
|
| 56 | 0 |
public String getHeader(String name) {
|
| 57 | 0 |
return impl.getHeader(name);
|
| 58 |
} |
|
| 59 |
|
|
| 60 |
/**
|
|
| 61 |
* @see javax.servlet.http.HttpServletRequest#getHeaders(String)
|
|
| 62 |
*/
|
|
| 63 | 0 |
public Enumeration getHeaders(String name) {
|
| 64 | 0 |
return impl.getHeaders(name);
|
| 65 |
} |
|
| 66 |
|
|
| 67 |
/**
|
|
| 68 |
* @see javax.servlet.http.HttpServletRequest#getHeaderNames()
|
|
| 69 |
*/
|
|
| 70 | 0 |
public Enumeration getHeaderNames() {
|
| 71 | 0 |
return impl.getHeaderNames();
|
| 72 |
} |
|
| 73 |
|
|
| 74 |
/**
|
|
| 75 |
* @see javax.servlet.http.HttpServletRequest#getIntHeader(String)
|
|
| 76 |
*/
|
|
| 77 | 0 |
public int getIntHeader(String name) { |
| 78 | 0 |
return impl.getIntHeader(name);
|
| 79 |
} |
|
| 80 |
|
|
| 81 |
/**
|
|
| 82 |
* @see javax.servlet.http.HttpServletRequest#getMethod()
|
|
| 83 |
*/
|
|
| 84 | 0 |
public String getMethod() {
|
| 85 | 0 |
return impl.getMethod();
|
| 86 |
} |
|
| 87 |
|
|
| 88 |
/**
|
|
| 89 |
* @see javax.servlet.http.HttpServletRequest#getPathInfo()
|
|
| 90 |
*/
|
|
| 91 | 0 |
public String getPathInfo() {
|
| 92 | 0 |
return impl.getPathInfo();
|
| 93 |
} |
|
| 94 |
|
|
| 95 |
/**
|
|
| 96 |
* @see javax.servlet.http.HttpServletRequest#getPathTranslated()
|
|
| 97 |
*/
|
|
| 98 | 0 |
public String getPathTranslated() {
|
| 99 | 0 |
return impl.getPathTranslated();
|
| 100 |
} |
|
| 101 |
|
|
| 102 |
/**
|
|
| 103 |
* @see javax.servlet.http.HttpServletRequest#getContextPath()
|
|
| 104 |
*/
|
|
| 105 | 0 |
public String getContextPath() {
|
| 106 | 0 |
return impl.getContextPath();
|
| 107 |
} |
|
| 108 |
|
|
| 109 |
/**
|
|
| 110 |
* @see javax.servlet.http.HttpServletRequest#getQueryString()
|
|
| 111 |
*/
|
|
| 112 | 0 |
public String getQueryString() {
|
| 113 | 0 |
return impl.getQueryString();
|
| 114 |
} |
|
| 115 |
|
|
| 116 |
/**
|
|
| 117 |
* @see javax.servlet.http.HttpServletRequest#getRemoteUser()
|
|
| 118 |
*/
|
|
| 119 | 0 |
public String getRemoteUser() {
|
| 120 | 0 |
return impl.getRemoteUser();
|
| 121 |
} |
|
| 122 |
|
|
| 123 |
/**
|
|
| 124 |
* @see javax.servlet.http.HttpServletRequest#isUserInRole(String)
|
|
| 125 |
*/
|
|
| 126 | 0 |
public boolean isUserInRole(String role) { |
| 127 | 0 |
return impl.isUserInRole(role);
|
| 128 |
} |
|
| 129 |
|
|
| 130 |
/**
|
|
| 131 |
* @see javax.servlet.http.HttpServletRequest#getUserPrincipal()
|
|
| 132 |
*/
|
|
| 133 | 0 |
public Principal getUserPrincipal() {
|
| 134 | 0 |
return impl.getUserPrincipal();
|
| 135 |
} |
|
| 136 |
|
|
| 137 |
/**
|
|
| 138 |
* @see javax.servlet.http.HttpServletRequest#getRequestedSessionId()
|
|
| 139 |
*/
|
|
| 140 | 0 |
public String getRequestedSessionId() {
|
| 141 | 0 |
return impl.getRequestedSessionId();
|
| 142 |
} |
|
| 143 |
|
|
| 144 |
/**
|
|
| 145 |
* @see javax.servlet.http.HttpServletRequest#getRequestURI()
|
|
| 146 |
*/
|
|
| 147 | 0 |
public String getRequestURI() {
|
| 148 | 0 |
return impl.getRequestURI();
|
| 149 |
} |
|
| 150 |
|
|
| 151 |
/**
|
|
| 152 |
* @see javax.servlet.http.HttpServletRequest#getServletPath()
|
|
| 153 |
*/
|
|
| 154 | 0 |
public String getServletPath() {
|
| 155 | 0 |
return impl.getServletPath();
|
| 156 |
} |
|
| 157 |
|
|
| 158 |
/**
|
|
| 159 |
* @see javax.servlet.http.HttpServletRequest#getSession(boolean)
|
|
| 160 |
*/
|
|
| 161 | 0 |
public HttpSession getSession(boolean create) { |
| 162 | 0 |
return impl.getSession(create);
|
| 163 |
} |
|
| 164 |
|
|
| 165 |
/**
|
|
| 166 |
* @see javax.servlet.http.HttpServletRequest#getSession()
|
|
| 167 |
*/
|
|
| 168 | 0 |
public HttpSession getSession() {
|
| 169 | 0 |
return impl.getSession();
|
| 170 |
} |
|
| 171 |
|
|
| 172 |
/**
|
|
| 173 |
* @see javax.servlet.http.HttpServletRequest#isRequestedSessionIdValid()
|
|
| 174 |
*/
|
|
| 175 | 0 |
public boolean isRequestedSessionIdValid() { |
| 176 | 0 |
return impl.isRequestedSessionIdValid();
|
| 177 |
} |
|
| 178 |
|
|
| 179 |
/**
|
|
| 180 |
* @see javax.servlet.http.HttpServletRequest#isRequestedSessionIdFromCookie()
|
|
| 181 |
*/
|
|
| 182 | 0 |
public boolean isRequestedSessionIdFromCookie() { |
| 183 | 0 |
return impl.isRequestedSessionIdFromCookie();
|
| 184 |
} |
|
| 185 |
|
|
| 186 |
/**
|
|
| 187 |
* @see javax.servlet.http.HttpServletRequest#isRequestedSessionIdFromURL()
|
|
| 188 |
*/
|
|
| 189 | 0 |
public boolean isRequestedSessionIdFromURL() { |
| 190 | 0 |
return impl.isRequestedSessionIdFromURL();
|
| 191 |
} |
|
| 192 |
|
|
| 193 |
/*
|
|
| 194 |
* private final Logger log =
|
|
| 195 |
* LoggerFactory.getLog(this.getCharacterEncoding());
|
|
| 196 |
*/
|
|
| 197 |
|
|
| 198 |
/**
|
|
| 199 |
* @see javax.servlet.http.HttpServletRequest#isRequestedSessionIdFromUrl()
|
|
| 200 |
* @deprecated
|
|
| 201 |
*/
|
|
| 202 | 0 |
public boolean isRequestedSessionIdFromUrl() { |
| 203 | 0 |
throw new UnsupportedOperationException( |
| 204 |
"isRequestedSessionIdFromUrl()は推奨されません。isRequestedSessionIdFromURL(URLは全て大文字)を使用してください。");
|
|
| 205 |
//return impl.isRequestedSessionIdFromUrl();
|
|
| 206 |
//return impl.isRequestedSessionIdFromURL();
|
|
| 207 |
} |
|
| 208 |
|
|
| 209 |
/**
|
|
| 210 |
* @see javax.servlet.http.HttpServletRequest#getRequestURL()
|
|
| 211 |
*/
|
|
| 212 | 0 |
public StringBuffer getRequestURL() {
|
| 213 | 0 |
return impl.getRequestURL();
|
| 214 |
} |
|
| 215 |
|
|
| 216 |
} |
|
||||||||||