public class KibanaProxyHandler extends KibanaDefaultReverseProxyHandler
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected static Set<String> |
CARRIED_REQUEST_HEADERS
ブラウザから送られてきたリクエストに含まれるHTTPヘッダの中で、Kibana側に伝搬させるリクエストヘッダのセットです。
|
protected static Set<String> |
IGNORED_RESPONSE_HEADERS
Kibanaから返されたレスポンスに含まれるHTTPヘッダの中で、ブラウザ側には伝搬させないレスポンスヘッダのセットです。
|
protected List<KibanaMutator> |
mutators
Kibana のバージョンごとに Mutator のインスタンスを保持します。
|
| コンストラクタと説明 |
|---|
KibanaProxyHandler() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected boolean |
doSubstitute(String path,
String pathFragment,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String mimeType,
KibanaMutator mutator)
プロキシ対象となる URL が置換対象となるかを、mutator の doSubstitute の結果を元に判別する。
|
protected String |
getKibanaId(String path)
リクエストパスに含まれる Kibana 設定情報の ID を取得します。
|
protected List<KibanaMutator> |
getMutators(String kibanaId)
KibanaMutator のリストを取得します。
|
protected jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpResponse |
mutateExecute(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
HttpClient httpClient,
HttpUriRequest httpUriRequest)
プロキシを実行します。
|
protected jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpResponse |
mutateRequest(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
HttpClient httpClient,
HttpEntityEnclosingRequestBase httpEntityEnclosingRequestBase)
リクエストをプロキシします。
|
protected int |
mutateResponse(String path,
String pathFragment,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpEntity httpEntity)
コンテンツをプロキシします。
|
protected int |
proxyContents(String path,
String pathFragment,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpEntity httpEntity)
コンテンツをプロキシします。
|
protected jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpResponse |
proxyEntityEnclosingRequest(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
HttpClient httpClient,
HttpEntityEnclosingRequestBase httpEntityEnclosingRequestBase)
リクエストをプロキシします。
|
protected jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpResponse |
proxyExecute(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
HttpClient httpClient,
HttpUriRequest httpUriRequest)
プロキシを実行します。
|
protected void |
proxyOnFinalyze(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
プロキシの実行を終了した際の後処理を実装します。
|
protected void |
proxyOnInitialize(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
プロキシの実行を開始する際の前処理を実装します。
|
protected String |
resolveTargetURIString(String path,
String pathFragment,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
プロキシする URL を解決します。
|
proxyHttpResponse, proxyResponseHeaderscloseCloseableHttpClientQuietly, createHttpClient, customizeHttpClientBuilder, detectCharset, doCopy, doDefault, doDelete, doGet, doHead, doLink, doMove, doOptions, doPatch, doPost, doPurge, doPut, doSubstitute, doTrace, doUnlink, doWrapped, getDefaultCharset, getPath, getReverseProxy, httpEntityToByteArray, httpEntityToString, init, makeProxyContentsWriter, proxyOnFailure, proxyOnPostExecute, proxyOnPreExecute, proxyOnSuccess, proxyRequestHeaders, proxyRequestParameters, proxyStatus, resolveSelfURIString, resolveTargetURIexecuteprotected static final Set<String> CARRIED_REQUEST_HEADERS
protected static final Set<String> IGNORED_RESPONSE_HEADERS
protected List<KibanaMutator> mutators
protected boolean doSubstitute(String path, String pathFragment, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String mimeType, KibanaMutator mutator)
path - パスpathFragment - variables - パス変数request - リクエストresponse - レスポンスmimeType - プロキシ対象となる URL が返却した MimeTypesubstitute - protected String getKibanaId(String path)
path - リクエストパスprotected List<KibanaMutator> getMutators(String kibanaId)
kibanaId - KibanaIdprotected jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpResponse mutateExecute(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, HttpClient httpClient, HttpUriRequest httpUriRequest) throws IOException
KibanaMutator.mustNotBeSent() が true を返した場合、Kibana へリクエストを送信せず、
KibanaMutator#mutateExecute(String, PathVariables, HttpServletRequest, HttpServletResponse, HttpClient, HttpUriRequest)
の返り値をプロキシの実行結果とします。path - パスvariables - パス変数request - リクエストresponse - レスポンスhttpClient - プロキシを行うHTTPクライアントhttpUriRequest - プロキシを行うリクエストIOException - 入出力エラーが発生した場合にスローされます。protected jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpResponse mutateRequest(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, HttpClient httpClient, HttpEntityEnclosingRequestBase httpEntityEnclosingRequestBase) throws IOException
path - パスvariables - パスバリアブルrequest - HTTPリクエストresponse - HTTPレスポンスhttpClient - プロキシを行うHTTPクライアントhttpEntityEnclosingRequestBase - プロキシを行うリクエストIOException - 入出力エラーが発生した場合にスローされます。protected int mutateResponse(String path, String pathFragment, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpEntity httpEntity) throws IOException
path - パスpathFragment - variables - パス変数request - HTTPリクエストresponse - HTTPレスポンスhttpEntity - プロキシを行った HttpEntityIOException - 入出力エラーが発生した場合にスローされます。protected int proxyContents(String path, String pathFragment, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpEntity httpEntity) throws IOException
DefaultReverseProxyHandlerproxyContents クラス内 DefaultReverseProxyHandlerpath - パスpathFragment - variables - パス変数request - HTTPリクエストresponse - HTTPレスポンスhttpEntity - プロキシを行った HttpEntityIOException - 入出力エラーが発生した場合にスローされます。protected jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpResponse proxyEntityEnclosingRequest(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, HttpClient httpClient, HttpEntityEnclosingRequestBase httpEntityEnclosingRequestBase) throws IOException
DefaultReverseProxyHandlerproxyEntityEnclosingRequest クラス内 DefaultReverseProxyHandlerpath - パスvariables - パスバリアブルrequest - HTTPリクエストresponse - HTTPレスポンスhttpClient - プロキシを行うHTTPクライアントhttpEntityEnclosingRequestBase - プロキシを行うリクエストIOException - 入出力エラーが発生した場合にスローされます。protected jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpResponse proxyExecute(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, HttpClient httpClient, HttpUriRequest httpUriRequest) throws IOException
DefaultReverseProxyHandlerproxyExecute クラス内 DefaultReverseProxyHandlerpath - パスvariables - パスバリアブルrequest - HTTPリクエストresponse - HTTPレスポンスhttpClient - プロキシを行うHTTPクライアントhttpUriRequest - プロキシを行うリクエストIOException - 入出力エラーが発生した場合にスローされます。protected void proxyOnFinalyze(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
AbstractReverseProxyHandlerproxyOnFinalyze クラス内 AbstractReverseProxyHandlerpath - パスvariables - パスバリアブルrequest - HTTPリクエストresponse - HTTPレスポンスjavax.servlet.ServletException - Servletの仕様に準拠しますIOException - Servletの仕様に準拠しますprotected void proxyOnInitialize(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
AbstractReverseProxyHandlerproxyOnInitialize クラス内 AbstractReverseProxyHandlerpath - パスvariables - パスバリアブルrequest - HTTPリクエストresponse - HTTPレスポンスjavax.servlet.ServletException - Servletの仕様に準拠しますIOException - Servletの仕様に準拠しますprotected String resolveTargetURIString(String path, String pathFragment, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
resolveTargetURIString クラス内 DefaultReverseProxyHandlerpath - パスvariables - パスバリアブルrequest - HTTPリクエストresponse - HTTPレスポンスCopyright © 2012 NTT DATA INTRAMART CORPORATION