public class ServletExecutionContext extends ExecutionContext
FW_PREFIX, THROWN_APPLICATION_EXCEPTION_KEY, THROWN_EXCEPTION_KEY| Constructor and Description | 
|---|
ServletExecutionContext(javax.servlet.http.HttpServletRequest servletReq,
                       javax.servlet.http.HttpServletResponse servletRes,
                       javax.servlet.ServletContext servletCtx)
コンストラクタ。 
 | 
| Modifier and Type | Method and Description | 
|---|---|
HttpRequestWrapper | 
getHttpRequest()
HTTPリクエストオブジェクトを返す。 
 | 
javax.servlet.http.HttpSession | 
getNativeHttpSession(boolean create)
サーブレットコンテナが提供する 
HttpSessionを取得する。
 明示的にHttpSessionを使用したい場合は、本メソッドから取得する。 | 
java.util.Map<java.lang.String,java.lang.Object> | 
getRequestScopeMap()
リクエストスコープ上の変数を格納したMapオブジェクトへの参照を返す。
 
 このMapへの変更はリクエストスコープに直接反映される。 
 | 
javax.servlet.ServletContext | 
getServletContext()
サーブレットコンテキストを返す。 
 | 
NablarchHttpServletRequestWrapper | 
getServletRequest()
サーブレットリクエストを返す。 
 | 
javax.servlet.http.HttpServletResponse | 
getServletResponse()
サーブレットレスポンスを返す。 
 | 
<T> T | 
getSessionScopedVar(java.lang.String varName)
セッションスコープ上の変数の値を取得する。 
 | 
java.util.Map<java.lang.String,java.lang.Object> | 
getSessionScopeMap()
セッションスコープ情報を格納したMapオブジェクトへの参照を返す。
 
 このMapへの変更はセッションスコープに直接反映される。 
 | 
boolean | 
hasSession()
セッションがあるかどうか。 
 | 
ExecutionContext | 
invalidateSession()
現在のリクエストに紐付けられたセッションスコープを無効化する。 
 | 
boolean | 
isNewSession()
新規セッションであるかどうか。 
 | 
ExecutionContext | 
setRequestScopeMap(java.util.Map<java.lang.String,java.lang.Object> scope)
リクエストスコープを設定する。 
 | 
ExecutionContext | 
setSessionScopeMap(java.util.Map<java.lang.String,java.lang.Object> scope)
セッションスコープ上の変数を格納したMapを設定する。 
 | 
clearLastReadData, closeReader, copy, copyInternal, findHandler, getApplicationException, getCurrentRequestObject, getDataProcessedWhenThrown, getDataReader, getException, getHandlerQueue, getLastReadData, getLastRecordNumber, getNextHandler, getRequestScopedVar, getSessionStoredVar, getSessionStoreMap, handleNext, hasNextData, isProcessSucceeded, putDataOnException, readNextData, selectHandlers, setCurrentRequestObject, setDataReader, setDataReaderFactory, setException, setLastRecordNumber, setProcessSucceeded, setRequestScopedVar, setSessionScopedVar, setSessionStoredVar, setSessionStoreMapaddHandler, addHandler, addHandler, addHandler, addHandler, addHandlers, clearHandlers, getHandlerOf, getMethodBinder, setHandlerQueue, setMethodBinderpublic ServletExecutionContext(javax.servlet.http.HttpServletRequest servletReq,
                               javax.servlet.http.HttpServletResponse servletRes,
                               javax.servlet.ServletContext servletCtx)
servletReq - サーブレットリクエストservletRes - サーブレットレスポンスservletCtx - サーブレットコンテキストpublic HttpRequestWrapper getHttpRequest()
@Published(tag="architect") public NablarchHttpServletRequestWrapper getServletRequest()
@Published(tag="architect") public javax.servlet.http.HttpServletResponse getServletResponse()
public javax.servlet.ServletContext getServletContext()
public ExecutionContext invalidateSession()
invalidateSession in class ExecutionContextpublic boolean isNewSession()
isNewSession in class ExecutionContexttruepublic boolean hasSession()
hasSession in class ExecutionContextpublic java.util.Map<java.lang.String,java.lang.Object> getRequestScopeMap()
ExecutionContextgetRequestScopeMap in class ExecutionContextpublic ExecutionContext setRequestScopeMap(java.util.Map<java.lang.String,java.lang.Object> scope)
ExecutionContextsetRequestScopeMap in class ExecutionContextscope - リクエストスコープ上の変数を格納するMappublic java.util.Map<java.lang.String,java.lang.Object> getSessionScopeMap()
hasSession()にて判定すること。getSessionScopeMap in class ExecutionContextgetSessionScopedVar(String), 
hasSession()public <T> T getSessionScopedVar(java.lang.String varName)
                          throws java.lang.ClassCastException
getSessionScopedVar in class ExecutionContextT - 期待する変数の型varName - 変数名java.lang.ClassCastException - 実際の変数の型が期待する変数の型と適合しなかった場合。getSessionScopeMap()public ExecutionContext setSessionScopeMap(java.util.Map<java.lang.String,java.lang.Object> scope)
ExecutionContextsetSessionScopeMap in class ExecutionContextscope - リクエストスコープ上の変数を格納したMap@Published(tag="architect") public javax.servlet.http.HttpSession getNativeHttpSession(boolean create)
HttpSessionを取得する。
 明示的にHttpSessionを使用したい場合は、本メソッドから取得する。create - セッションを生成するかどうかHttpSessionHttpServletRequest.getSession(boolean)