Skip navigation links
A B C D E F G H I J L M N O P Q R S T U V W 

H

handle(HttpRequest, ExecutionContext) - Method in class nablarch.test.core.http.HttpRequestTestSupportHandler
ExecutionContextの移送を行う。
hasSession() - Method in class nablarch.fw.web.servlet.MockServletExecutionContext
HtmlChecker - Interface in nablarch.test.tool.htmlcheck
HTML チェックを行うクラスのインタフェース。
HtmlForbiddenNodeConf - Class in nablarch.test.tool.htmlcheck
規約上許可されていないタグ/属性情報を保存するクラス。
HtmlForbiddenNodeConf(String) - Constructor for class nablarch.test.tool.htmlcheck.HtmlForbiddenNodeConf
コンストラクタ
HTTP_METHOD_COLUMN_NAME - Static variable in class nablarch.test.core.http.TestCaseInfo
HTTPメソッドを定義しているカラム名
HttpRequestTestSupport - Class in nablarch.test.core.http
HTTPリクエストテスト用の基底クラス。
HttpRequestTestSupport(Class<?>) - Constructor for class nablarch.test.core.http.HttpRequestTestSupport
コンストラクタ。
HttpRequestTestSupport() - Constructor for class nablarch.test.core.http.HttpRequestTestSupport
コンストラクタ
本メソッドはサブクラスから使用されることを想定している。
HttpRequestTestSupportHandler - Class in nablarch.test.core.http
HTTPリクエストのテスト時に先頭の設定するリクエストハンドラ。
本クラスでは、以下の処理を行う。 テストクラスから指定されたExecutionContextを、 handleメソッドの引数のExecutionContextへ移送する。 ExecutionContext#handleNext呼び出し後のExecutionContextの情報を テストクラスから指定されたExecutionContextへ移送する。 ハンドラキューの処理結果となるHttpResponseオブジェクトのステータスコードを アサートできるようにスタティック変数として保持しておく。 HttpRequestTestSupport.execute(Class, String, HttpRequest, ExecutionContext)から nablarch.fw.web.HttpServer#handle(HttpRequest, ExecutionContext)が呼ばれるが、 ここで引数にExecutionContextを渡しても使用されない。 (nablarch.fw.Handler#handle(Object, nablarch.fw.ExecutionContext)を実装する為、 引数として用意されているだけで、実際には使用しない) 実際には内蔵サーバ内で新たに生成されたExecutionContextが使用される。 テストクラス側で生成したExecutionContextの情報を使用してテストを行う為に、 本ハンドラにて移送を行う。

また、コンテンツパスを指定してレスポンスを行った場合、 内蔵サーバからは一律ステータスコード200が返却される。 (JSP等のリソースに対するサーブレットフォーワードは全てこれに含まれる。) このため、HttpResponseオブジェクトのステータスコードと、クライアントに対する 実際のレスポンスコードが一致しなくなるので、本ハンドラにHttpResponseオブジェクトのステータス コードを保持しておき、後続のアサート処理で参照する。 ただし、リダイレクトの場合はServletAPI(HttpServletResponse.sendRedirect(String)) を使用しているため、HttpResponseにはリダイレクトのステータスコードは設定されない。 (ステータスコードの設定をコンテナに任せているため) 従って、リダイレクトの場合のステータスコードは、本クラスではなく、 コンテナが返却するレスポンスから取得する必要がある。

HttpRequestTestSupportHandler(HttpTestConfiguration) - Constructor for class nablarch.test.core.http.HttpRequestTestSupportHandler
コンストラクタ。
HttpServer - Class in nablarch.fw.web
エンベディドHTTPサーバー&サーブレットコンテナ。
HttpServer() - Constructor for class nablarch.fw.web.HttpServer
サーバインスタンスを生成する。
HttpTestConfiguration - Class in nablarch.test.core.http
HTTPリクエストテスト用の設定定義クラス。
A B C D E F G H I J L M N O P Q R S T U V W 
Skip navigation links