jp.terasoluna.fw.web.rich.context.support
クラス DefaultRequestContextSupportImpl

java.lang.Object
  上位を拡張 jp.terasoluna.fw.web.rich.context.support.AbstractRequestContextSupport
      上位を拡張 jp.terasoluna.fw.web.rich.context.support.DefaultRequestContextSupportImpl
すべての実装されたインタフェース:
RequestContextSupport

public class DefaultRequestContextSupportImpl
extends AbstractRequestContextSupport

制御情報を扱うための補助ロジックのデフォルト実装クラス。

リクエストヘッダ"requestName"に設定してある文字列をリクエスト名とする。 (ヘッダ名はBean定義ファイルの設定により変更可能。)

本クラスを利用する場合、Bean定義を行うこと。 また、AbstractRequestContextSupportのプロパティに加えて、以下のプロパティを設定することが可能である。

属性名 必須 説明
requestNameHeaderKey × リクエスト名を保持するリクエストヘッダ名。 デフォルトのヘッダ名”requestName”以外のヘッダからリクエスト名を取得したい場合のみ設定すること。

Bean定義ファイルの設定例】

   <bean id="ctxSupport"
       class="jp.terasoluna.fw.web.rich.context.support.DefaultRequestContextSupportImpl">
     <property name="ctxClass">
       <value>jp.terasoluna.fw.web.rich.context.RequestContext</value>
     </property>
   </bean>
 


フィールドの概要
protected  String requestNameHeaderKey
          リクエスト名を保持するリクエストヘッダ名。
 
コンストラクタの概要
DefaultRequestContextSupportImpl()
           
 
メソッドの概要
protected  RequestContext doGenerateContext(javax.servlet.http.HttpServletRequest request)
          制御情報を生成・初期化して返却する。
 void setRequestNameHeaderKey(String requestNameHeaderKey)
          リクエスト名を保持するリクエストヘッダ名を設定する。
 
クラス jp.terasoluna.fw.web.rich.context.support.AbstractRequestContextSupport から継承されたメソッド
destroyContext, generateContext, getProperty, getProperty, getPropertyString, getRequestContext, getRequestName
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

requestNameHeaderKey

protected String requestNameHeaderKey
リクエスト名を保持するリクエストヘッダ名。

コンストラクタの詳細

DefaultRequestContextSupportImpl

public DefaultRequestContextSupportImpl()
メソッドの詳細

setRequestNameHeaderKey

public void setRequestNameHeaderKey(String requestNameHeaderKey)
リクエスト名を保持するリクエストヘッダ名を設定する。

パラメータ:
requestNameHeaderKey - リクエスト名を保持するリクエストヘッダ名。

doGenerateContext

protected RequestContext doGenerateContext(javax.servlet.http.HttpServletRequest request)
制御情報を生成・初期化して返却する。

定義:
クラス AbstractRequestContextSupport 内の doGenerateContext
パラメータ:
request - HTTPリクエスト
戻り値:
生成した空の制御情報。


Copyright © 2012. All Rights Reserved.