|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--org.apache.catalina.connector.RequestWrapper | +--org.apache.catalina.connector.HttpRequestWrapper
Abstract convenience class that wraps a Catalina-internal HttpRequest object. By default, all methods are delegated to the wrapped request, but subclasses can override individual methods as required to provide the functionality that they require.
クラス org.apache.catalina.connector.RequestWrapper から継承したフィールド |
request |
コンストラクタの概要 | |
HttpRequestWrapper(HttpRequest request)
Construct a wrapper for the specified request. |
メソッドの概要 | |
void |
addCookie(javax.servlet.http.Cookie cookie)
Add a Cookie to the set of Cookies associated with this Request. |
void |
addHeader(java.lang.String name,
java.lang.String value)
Add a Header to the set of Headers associated with this Request. |
void |
addLocale(java.util.Locale locale)
Add a Locale to the set of preferred Locales for this Request. |
void |
clearCookies()
Clear the collection of Cookies associated with this Request. |
void |
clearHeaders()
Clear the collection of Headers associated with this Request. |
void |
clearLocales()
Clear the collection of Locales associated with this Request. |
void |
setAuthType(java.lang.String type)
Set the authentication type used for this request, if any; otherwise set the type to null . |
void |
setContextPath(java.lang.String path)
Set the context path for this Request. |
void |
setMethod(java.lang.String method)
Set the HTTP request method used for this Request. |
void |
setPathInfo(java.lang.String path)
Set the path information for this Request. |
void |
setQueryString(java.lang.String query)
Set the query string for this Request. |
void |
setRequestedSessionCookie(boolean flag)
Set a flag indicating whether or not the requested session ID for this request came in through a cookie. |
void |
setRequestedSessionId(java.lang.String id)
Set the requested session ID for this request. |
void |
setRequestedSessionURL(boolean flag)
Set a flag indicating whether or not the requested session ID for this request came in through a URL. |
void |
setRequestURI(java.lang.String uri)
Set the unparsed request URI for this Request. |
void |
setServletPath(java.lang.String path)
Set the servlet path for this Request. |
void |
setUserPrincipal(java.security.Principal principal)
Set the Principal who has been authenticated for this Request. |
クラス org.apache.catalina.connector.RequestWrapper から継承したメソッド |
createInputStream, finishRequest, getAuthorization, getConnector, getContext, getInfo, getRequest, getResponse, getSocket, getStream, getWrappedRequest, getWrapper, recycle, setAuthorization, setConnector, setContentLength, setContentType, setContext, setProtocol, setRemoteAddr, setResponse, setScheme, setSecure, setServerName, setServerPort, setSocket, setStream, setWrapper |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
インタフェース org.apache.catalina.HttpRequest から継承したメソッド |
addParameter, clearParameters |
インタフェース org.apache.catalina.Request から継承したメソッド |
createInputStream, finishRequest, getAuthorization, getConnector, getContext, getInfo, getNote, getNoteNames, getRequest, getResponse, getSocket, getStream, getWrapper, recycle, removeNote, setAuthorization, setConnector, setContentLength, setContentType, setContext, setNote, setProtocol, setRemoteAddr, setResponse, setScheme, setSecure, setServerName, setServerPort, setSocket, setStream, setWrapper |
コンストラクタの詳細 |
public HttpRequestWrapper(HttpRequest request)
request
- The request to be wrappedメソッドの詳細 |
public void addCookie(javax.servlet.http.Cookie cookie)
HttpRequest
内の addCookie
cookie
- The new cookiepublic void addHeader(java.lang.String name, java.lang.String value)
HttpRequest
内の addHeader
name
- The new header namevalue
- The new header valuepublic void addLocale(java.util.Locale locale)
HttpRequest
内の addLocale
locale
- The new preferred Localepublic void clearCookies()
HttpRequest
内の clearCookies
public void clearHeaders()
HttpRequest
内の clearHeaders
public void clearLocales()
HttpRequest
内の clearLocales
public void setAuthType(java.lang.String type)
null
. Typical values are "BASIC",
"DIGEST", or "SSL".HttpRequest
内の setAuthType
type
- The authentication type usedpublic void setContextPath(java.lang.String path)
HttpRequest
内の setContextPath
path
- The context pathpublic void setMethod(java.lang.String method)
HttpRequest
内の setMethod
method
- The request methodpublic void setQueryString(java.lang.String query)
HttpRequest
内の setQueryString
query
- The query stringpublic void setPathInfo(java.lang.String path)
HttpRequest
内の setPathInfo
path
- The path informationpublic void setRequestedSessionCookie(boolean flag)
HttpRequest
内の setRequestedSessionCookie
flag
- The new flagpublic void setRequestedSessionId(java.lang.String id)
HttpRequest
内の setRequestedSessionId
id
- The new session idpublic void setRequestedSessionURL(boolean flag)
HttpRequest
内の setRequestedSessionURL
flag
- The new flagpublic void setRequestURI(java.lang.String uri)
HttpRequest
内の setRequestURI
uri
- The request URIpublic void setServletPath(java.lang.String path)
HttpRequest
内の setServletPath
path
- The servlet pathpublic void setUserPrincipal(java.security.Principal principal)
getRemoteUser()
method.HttpRequest
内の setUserPrincipal
principal
- The user Principal
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |