public class JaxRsAccessLogHandler extends java.lang.Object implements Handler<HttpRequest,HttpResponse>
| Constructor and Description |
|---|
JaxRsAccessLogHandler()
コンストラクタ。
|
| Modifier and Type | Method and Description |
|---|---|
protected JaxRsAccessLogFormatter |
createLogFormatter(java.util.Map<java.lang.String,java.lang.String> props)
使用する
JaxRsAccessLogFormatter を生成します。 |
protected java.lang.Object[] |
getRequestOptions(HttpRequest request,
ExecutionContext context)
リクエスト処理開始時のログ出力で使用するオプション情報を取得する。
|
protected java.lang.Object[] |
getResponseOptions(HttpRequest request,
HttpResponse response,
ExecutionContext context)
リクエスト処理終了時のログ出力で使用するオプション情報を取得する。
|
HttpResponse |
handle(HttpRequest request,
ExecutionContext context)
HTTPアクセスログを出力する。
|
protected void |
writeBeginLog(JaxRsAccessLogFormatter.JaxRsAccessLogContext logContext)
リクエスト処理開始時のログを出力する。
|
protected void |
writeEndLog(JaxRsAccessLogFormatter.JaxRsAccessLogContext logContext)
リクエスト処理終了時のログを出力する。
|
public HttpResponse handle(HttpRequest request, ExecutionContext context)
handle in interface Handler<HttpRequest,HttpResponse>request - HttpRequestcontext - ExecutionContextjava.lang.ClassCastException - context の型が ServletExecutionContext でない場合。protected JaxRsAccessLogFormatter createLogFormatter(java.util.Map<java.lang.String,java.lang.String> props)
JaxRsAccessLogFormatter を生成します。JaxRsAccessLogFormatterprotected void writeBeginLog(JaxRsAccessLogFormatter.JaxRsAccessLogContext logContext)
logContext - JaxRsAccessLogFormatter.JaxRsAccessLogContextprotected void writeEndLog(JaxRsAccessLogFormatter.JaxRsAccessLogContext logContext)
logContext - JaxRsAccessLogFormatter.JaxRsAccessLogContextprotected java.lang.Object[] getRequestOptions(HttpRequest request, ExecutionContext context)
request - HttpRequestcontext - ExecutionContextnullを返す。protected java.lang.Object[] getResponseOptions(HttpRequest request, HttpResponse response, ExecutionContext context)
request - HttpRequestresponse - HttpResponsecontext - ExecutionContextnullを返す。