@Published(tag="architect")
public class HttpServerJetty9
extends nablarch.fw.web.HttpServer
HttpServer
サブクラス。Modifier and Type | Method and Description |
---|---|
HttpResponse |
handle(HttpRequest req,
ExecutionContext sourceContext)
HTTPリクエストに対する処理を実行する。
|
nablarch.fw.web.HttpServer |
join()
サーバスレッドが終了するまでカレントスレッドをwaitさせる。
|
HttpServerJetty9 |
start()
サーバを起動する。
|
HttpServerJetty9 |
startLocal()
このサーバをテストモードで起動する。
|
dumpHttpMessage, getHandlerQueue, getHttpDumpFile, getHttpDumpRoot, getPort, getServletContextPath, getTempDirectory, getWarBasePath, getWarBasePaths, getWebFrontController, isHttpDumpEnabled, rewriteUriPath, setDumpVariableItem, setHttpDumpEnabled, setHttpDumpFilePath, setHttpDumpRoot, setPort, setServletContextPath, setTempDirectory, setWarBasePath, setWarBasePaths
public HttpServerJetty9 start()
サーバスレッドを生成し、port()メソッドで指定されたポート番号上の HTTPリクエストに対して処理を行う。
start
in class nablarch.fw.web.HttpServer
public HttpServerJetty9 startLocal()
startLocal
in class nablarch.fw.web.HttpServer
public nablarch.fw.web.HttpServer join()
join
in class nablarch.fw.web.HttpServer
public HttpResponse handle(HttpRequest req, ExecutionContext sourceContext)
このクラスの実装では、 引数のHTTPリクエストオブジェクトをHTTPメッセージにシリアライズし、 ローカルコネクションに送信する。 内蔵アプリケーションサーバでの処理後、返信されたHTTPレスポンスメッセージを HTTPレスポンスオブジェクトにパースし、この関数の戻り値として返す。 また、HTTPダンプ出力が有効である場合、 そのレスポンスボディの内容を所定のディレクトリに出力する。
req
- HTTPリクエストオブジェクトsourceContext
- サーバサイド実行コンテキストオブジェクト