org.seasar.cubby.filter
クラス CubbyHttpServletRequestWrapper

java.lang.Object
  上位を拡張 javax.servlet.ServletRequestWrapper
      上位を拡張 javax.servlet.http.HttpServletRequestWrapper
          上位を拡張 org.seasar.cubby.filter.CubbyHttpServletRequestWrapper
すべての実装されたインタフェース:
HttpServletRequest, ServletRequest

public class CubbyHttpServletRequestWrapper
extends HttpServletRequestWrapper

特別な属性を取得するためのリクエストのラッパです。

以下のような属性を使用することができます。

属性名
CubbyConstants.ATTR_CONTEXT_PATH コンテキストパス String
CubbyConstants.ATTR_ACTION アクション Action
CubbyConstants.ATTR_MESSAGES メッセージリソース Map
アクションのプロパティ名 アクションのプロパティ値 任意
これらの属性は通常の属性よりも優先されるのでご注意ください。

導入されたバージョン:
1.0.0
作成者:
baba

フィールドの概要
 
インタフェース javax.servlet.http.HttpServletRequest から継承されたフィールド
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
コンストラクタの概要
CubbyHttpServletRequestWrapper(HttpServletRequest request, ActionContext context)
          インスタンス化します。
 
メソッドの概要
 Object getAttribute(String name)
          リクエストの属性を取得します。
 Enumeration getAttributeNames()
          属性名の列挙を返します。
 
クラス javax.servlet.http.HttpServletRequestWrapper から継承されたメソッド
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole
 
クラス javax.servlet.ServletRequestWrapper から継承されたメソッド
getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース javax.servlet.ServletRequest から継承されたメソッド
getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

コンストラクタの詳細

CubbyHttpServletRequestWrapper

public CubbyHttpServletRequestWrapper(HttpServletRequest request,
                                      ActionContext context)
インスタンス化します。

パラメータ:
request - ラップするリクエスト
context - アクションのコンテキスト
メソッドの詳細

getAttribute

public Object getAttribute(String name)
リクエストの属性を取得します。

定義:
インタフェース ServletRequest 内の getAttribute
オーバーライド:
クラス ServletRequestWrapper 内の getAttribute
パラメータ:
name - 属性名

getAttributeNames

public Enumeration getAttributeNames()
属性名の列挙を返します。

定義:
インタフェース ServletRequest 内の getAttributeNames
オーバーライド:
クラス ServletRequestWrapper 内の getAttributeNames
戻り値:
属性名の列挙


Copyright ツゥ 2006-2008 The Seasar Foundation. All Rights Reserved.