|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
jp.littlesoft.web.ActionController
public abstract class ActionController
コントローラの基底クラス。
当クラスを継承してアプリケーション毎のコントローラを作成します。
フィールドの概要 | |
---|---|
protected String |
DefaultPageClassName
アクションコントローラへ最初にアクセスした際に使用されるアクションページクラス名です。 |
static String |
FILE_SEP
ファイルセパレータを表す定数です。 |
static String |
PN_DefaultPageClassName
|
static String |
PN_UseStaticParameterName
|
static String |
PN_VelocityFileLoaderPath
|
static String |
RA_CURRENT_CONTROLLER
アクションコントローラオブジェクトがRequest属性にセットされる際の属性名を表す定数です。 |
static String |
RA_CURRENT_SUBSESSION
サブセッションオブジェクトがRequest属性にセットされる際の属性名を表す定数です。 |
static String |
RA_JAVA_APPLICATION_CALLBACK_PARAM
Javaアプリケーションからコールバックされた際、Request属性にセットされる際のアプリケーションパラメータオブジェクトを表す定数です。 |
static String |
RA_VELOCITY_ENGINE
当サーブレットのVelocityEngineがRequest属性にセットされる際の属性名を表す定数です。 |
protected org.apache.velocity.app.VelocityEngine |
velocityEngine
2010.02.07 VelocityEngine サーブレット毎のインスタンスに |
コンストラクタの概要 | |
---|---|
ActionController()
|
メソッドの概要 | |
---|---|
protected ActionPage |
createActionPage(String className,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
引数 className で指定された ActionPage オブジェクトを生成します。 |
protected void |
errorAction(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Exception x)
例外発生時の処理を実装します。 |
Connection |
getConnection()
推奨されていません。 |
Connection |
getConnection(javax.servlet.http.HttpServletRequest request)
JDBCコネクションの取得処理を実装します。 |
void |
init(javax.servlet.ServletConfig config)
HttpServletのinit(ServletConfig config)をオーバーライドしています。 |
protected void |
onSequenceError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
ブラウザの「戻る」や「更新」を使用した場合のエラー処理を実装します。 |
protected void |
onStartNewSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
セッション新規作成時の処理を実装します。 |
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
HttpServletのservice(request, response)をオーバーライドしています。 |
クラス javax.servlet.http.HttpServlet から継承されたメソッド |
---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
クラス javax.servlet.GenericServlet から継承されたメソッド |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final String FILE_SEP
public static final String RA_CURRENT_CONTROLLER
public static final String RA_JAVA_APPLICATION_CALLBACK_PARAM
public static final String RA_CURRENT_SUBSESSION
protected String DefaultPageClassName
public static final String RA_VELOCITY_ENGINE
protected org.apache.velocity.app.VelocityEngine velocityEngine
public static final String PN_VelocityFileLoaderPath
public static final String PN_UseStaticParameterName
public static final String PN_DefaultPageClassName
コンストラクタの詳細 |
---|
public ActionController()
メソッドの詳細 |
---|
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
javax.servlet.Servlet
内の init
javax.servlet.GenericServlet
内の init
javax.servlet.ServletException
GenericServlet.init(javax.servlet.ServletConfig)
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
javax.servlet.http.HttpServlet
内の service
javax.servlet.ServletException
IOException
HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
,
onStartNewSession(HttpServletRequest, HttpServletResponse)
,
createActionPage(String, HttpServletRequest, HttpServletResponse)
,
ActionSubSession.execute(HttpServletRequest, HttpServletResponse)
,
ActionSubSession.getID()
,
ActionSubSession.getMaxInactiveInterval()
,
ActionSubSession.getLastAccessedTime()
protected void errorAction(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Exception x) throws javax.servlet.ServletException, IOException
request
- クライアントがServletへ要求したリクエスト内容を含む HttpServletRequest オブジェクトresponse
- Servletがクライアントに返すレスポンス内容を含む HttpServletResponse オブジェクトx
- 発生した例外
javax.servlet.ServletException
- 例外発生時
IOException
- 例外発生時protected void onStartNewSession(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
request
- クライアントがServletへ要求したリクエスト内容を含む HttpServletRequest オブジェクトresponse
- Servletがクライアントに返すレスポンス内容を含む HttpServletResponse オブジェクト
Exception
- 例外発生時protected ActionPage createActionPage(String className, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
className
- アクションページクラス名request
- クライアントがServletへ要求したリクエスト内容を含む HttpServletRequest オブジェクトresponse
- Servletがクライアントに返すレスポンス内容を含む HttpServletResponse オブジェクト
Exception
- 例外発生時protected void onSequenceError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
request
- クライアントがServletへ要求したリクエスト内容を含む HttpServletRequest オブジェクトresponse
- Servletがクライアントに返すレスポンス内容を含む HttpServletResponse オブジェクト
javax.servlet.ServletException
- 例外発生時
IOException
- 例外発生時@Deprecated public Connection getConnection() throws LSSQLException
LSSQLException
- 例外発生時public Connection getConnection(javax.servlet.http.HttpServletRequest request) throws LSSQLException
LSSQLException
- 例外発生時
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |