public class DefaultReverseProxyHandler extends AbstractReverseProxyHandler
コンストラクタと説明 |
---|
DefaultReverseProxyHandler() |
修飾子とタイプ | メソッドと説明 |
---|---|
protected void |
closeCloseableHttpClientQuietly(CloseableHttpClient closeableHttpClient)
HttpClient を閉じます。
|
protected CloseableHttpClient |
createHttpClient()
プロキシを実行するための HttpClient を生成します
|
protected HttpClientBuilder |
customizeHttpClientBuilder(HttpClientBuilder httpClientBuilder)
HttpClient を生成するための HttpClientBuilder を設定します。
|
protected String |
detectCharset(String content)
content 中にある「charset=(...)」の「...」の部分を抽出します。
|
protected boolean |
doCopy(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
COPY のプロキシを実装します
|
protected boolean |
doDefault(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
何れのメソッドにも当てはまらない場合のプロキシを実装します
|
protected boolean |
doDelete(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
DELETE のプロキシを実装します
|
protected boolean |
doGet(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
GET のプロキシを実装します
|
protected boolean |
doHead(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
HEAD のプロキシを実装します
|
protected boolean |
doLink(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
LINK のプロキシを実装します
|
protected boolean |
doMove(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
MOVE のプロキシを実装します
|
protected boolean |
doOptions(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
OPTIONS のプロキシを実装します
|
protected boolean |
doPatch(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
PATCH のプロキシを実装します
|
protected boolean |
doPost(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
POST のプロキシを実装します
|
protected boolean |
doPurge(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
PURGE のプロキシを実装します
|
protected boolean |
doPut(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
PUT のプロキシを実装します
|
protected boolean |
doSubstitute(String path,
String pathFragment,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String mimeType,
jp.co.intra_mart.system.reverse_proxy.config.path.Substitute substitute)
プロキシ対象となる URL が置換対象となるかを、
|
protected boolean |
doTrace(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
TRACE のプロキシを実装します
|
protected boolean |
doUnlink(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
UNLINK のプロキシを実装します
|
protected boolean |
doWrapped(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
WRAPPED のプロキシを実装します
|
Charset |
getDefaultCharset() |
String |
getPath() |
jp.co.intra_mart.system.reverse_proxy.config.path.ReverseProxy |
getReverseProxy() |
protected org.apache.commons.lang3.tuple.Pair<byte[],Charset> |
httpEntityToByteArray(jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpEntity httpEntity,
String mimeType,
Charset charset)
HttpEntity からバイナリを取得します。
|
protected String |
httpEntityToString(jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpEntity httpEntity,
String mimeType,
Charset charset)
HttpEntity からコンテンツを取得します。
|
void |
init(jp.co.intra_mart.system.reverse_proxy.config.path.ReverseProxy reverseProxyConfig)
起動時に一度だけ呼ばれます。
|
protected ProxyContentsWriter |
makeProxyContentsWriter(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)
非推奨です。
8.0.2 以降このメソッドは呼び出されません。拡張を行う場合は makeProxyContentsWriter を実装してください。
|
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 |
proxyHttpResponse(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.HttpResponse httpResponse)
HttpResponse をプロキシします。
|
protected void |
proxyOnFailure(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
URI uri,
HttpClient httpClient,
HttpUriRequest httpUriRequest)
プロキシの実行が失敗した際の後処理を実装します。
|
protected void |
proxyOnPostExecute(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
URI uri,
HttpClient httpClient,
HttpUriRequest httpUriRequest,
jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpResponse httpResponse)
プロキシの実行直後の処理を実装します。
|
protected void |
proxyOnPreExecute(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
URI uri,
HttpClient httpClient,
HttpUriRequest httpUriRequest)
プロキシの実行直前の処理を実装します。
|
protected void |
proxyOnSuccess(String path,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
URI uri,
HttpClient httpClient,
HttpUriRequest httpUriRequest,
jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpResponse httpResponse)
プロキシの実行が成功した際の後処理を実装します。
|
protected void |
proxyRequestHeaders(URI uri,
javax.servlet.http.HttpServletRequest request,
HttpUriRequest httpUriRequest)
リクエストヘッダをプロキシします。
|
protected void |
proxyRequestParameters(javax.servlet.http.HttpServletRequest request,
HttpEntityEnclosingRequestBase httpEntityEnclosingRequestBase)
リクエストパラメータをプロキシします。
|
protected void |
proxyResponseHeaders(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpResponse httpResponse,
int newContentLength)
レスポンスヘッダをプロキシします。
|
protected void |
proxyStatus(javax.servlet.http.HttpServletResponse response,
jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpResponse httpResponse)
レスポンスステータスコードをプロキシします。
|
protected String |
resolveSelfURIString(String path,
String pathFragment,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
プロキシする URL を解決します。
|
protected URI |
resolveTargetURI(String path,
String pathFragment,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
プロキシする URL を解決します。
|
protected String |
resolveTargetURIString(String path,
String pathFragment,
PathVariables variables,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
プロキシする URL を解決します。
|
execute, proxyOnFinalyze, proxyOnInitialize
public Charset getDefaultCharset()
public String getPath()
public jp.co.intra_mart.system.reverse_proxy.config.path.ReverseProxy getReverseProxy()
public void init(jp.co.intra_mart.system.reverse_proxy.config.path.ReverseProxy reverseProxyConfig)
ReverseProxyHandler
reverseProxyConfig
- protected void closeCloseableHttpClientQuietly(CloseableHttpClient closeableHttpClient)
protected CloseableHttpClient createHttpClient()
protected HttpClientBuilder customizeHttpClientBuilder(HttpClientBuilder httpClientBuilder)
protected String detectCharset(String content)
content
- 検出対象の文字列protected boolean doCopy(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
AbstractReverseProxyHandler
doCopy
クラス内 AbstractReverseProxyHandler
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスjavax.servlet.ServletException
- Servletの仕様に準拠しますIOException
- Servletの仕様に準拠しますprotected boolean doDefault(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
AbstractReverseProxyHandler
doDefault
クラス内 AbstractReverseProxyHandler
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスjavax.servlet.ServletException
- Servletの仕様に準拠しますIOException
- Servletの仕様に準拠しますprotected boolean doDelete(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
AbstractReverseProxyHandler
doDelete
クラス内 AbstractReverseProxyHandler
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスjavax.servlet.ServletException
- Servletの仕様に準拠しますIOException
- Servletの仕様に準拠しますprotected boolean doGet(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
AbstractReverseProxyHandler
doGet
クラス内 AbstractReverseProxyHandler
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスjavax.servlet.ServletException
- Servletの仕様に準拠しますIOException
- Servletの仕様に準拠しますprotected boolean doHead(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
AbstractReverseProxyHandler
doHead
クラス内 AbstractReverseProxyHandler
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスjavax.servlet.ServletException
- Servletの仕様に準拠しますIOException
- Servletの仕様に準拠しますprotected boolean doLink(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
AbstractReverseProxyHandler
doLink
クラス内 AbstractReverseProxyHandler
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスjavax.servlet.ServletException
- Servletの仕様に準拠しますIOException
- Servletの仕様に準拠しますprotected boolean doMove(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
AbstractReverseProxyHandler
doMove
クラス内 AbstractReverseProxyHandler
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスjavax.servlet.ServletException
- Servletの仕様に準拠しますIOException
- Servletの仕様に準拠しますprotected boolean doOptions(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
AbstractReverseProxyHandler
doOptions
クラス内 AbstractReverseProxyHandler
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスjavax.servlet.ServletException
- Servletの仕様に準拠しますIOException
- Servletの仕様に準拠しますprotected boolean doPatch(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
AbstractReverseProxyHandler
doPatch
クラス内 AbstractReverseProxyHandler
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスjavax.servlet.ServletException
- Servletの仕様に準拠しますIOException
- Servletの仕様に準拠しますprotected boolean doPost(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
AbstractReverseProxyHandler
doPost
クラス内 AbstractReverseProxyHandler
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスjavax.servlet.ServletException
- Servletの仕様に準拠しますIOException
- Servletの仕様に準拠しますprotected boolean doPurge(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
AbstractReverseProxyHandler
doPurge
クラス内 AbstractReverseProxyHandler
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスjavax.servlet.ServletException
- Servletの仕様に準拠しますIOException
- Servletの仕様に準拠しますprotected boolean doPut(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
AbstractReverseProxyHandler
doPut
クラス内 AbstractReverseProxyHandler
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスjavax.servlet.ServletException
- Servletの仕様に準拠しますIOException
- Servletの仕様に準拠しますprotected boolean doSubstitute(String path, String pathFragment, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String mimeType, jp.co.intra_mart.system.reverse_proxy.config.path.Substitute substitute)
path
- パスpathFragment
- variables
- パス変数request
- リクエストresponse
- レスポンスmimeType
- プロキシ対象となる URL が返却した MimeTypesubstitute
- protected boolean doTrace(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
AbstractReverseProxyHandler
doTrace
クラス内 AbstractReverseProxyHandler
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスjavax.servlet.ServletException
- Servletの仕様に準拠しますIOException
- Servletの仕様に準拠しますprotected boolean doUnlink(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
AbstractReverseProxyHandler
doUnlink
クラス内 AbstractReverseProxyHandler
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスjavax.servlet.ServletException
- Servletの仕様に準拠しますIOException
- Servletの仕様に準拠しますprotected boolean doWrapped(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
AbstractReverseProxyHandler
doWrapped
クラス内 AbstractReverseProxyHandler
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスjavax.servlet.ServletException
- Servletの仕様に準拠しますIOException
- Servletの仕様に準拠しますprotected org.apache.commons.lang3.tuple.Pair<byte[],Charset> httpEntityToByteArray(jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpEntity httpEntity, String mimeType, Charset charset) throws IOException
httpEntity
- HttpClient から取得した HttpEntitymimeType
- httpEntity から取得した MimeTypecharset
- httpEntity から取得した CharsetIOException
protected String httpEntityToString(jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpEntity httpEntity, String mimeType, Charset charset) throws IOException
httpEntity
- HttpClient から取得した HttpEntitymimeType
- httpEntity から取得した MimeTypecharset
- httpEntity から取得した CharsetIOException
- 入出力エラーが発生した場合にスローされます。protected ProxyContentsWriter makeProxyContentsWriter(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
- 入出力エラーが発生した場合にスローされます。@Deprecated 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
path
- パス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
path
- パス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
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスhttpClient
- プロキシを行うHTTPクライアントhttpUriRequest
- プロキシを行うリクエストIOException
- 入出力エラーが発生した場合にスローされます。protected void proxyHttpResponse(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.HttpResponse httpResponse) throws IOException
path
- パスpathFragment
- variables
- パス変数request
- HTTPリクエストresponse
- HTTPレスポンスhttpResponse
- プロキシを行った HttpResponseIOException
- 入出力エラーが発生した場合にスローされます。protected void proxyOnFailure(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, URI uri, HttpClient httpClient, HttpUriRequest httpUriRequest) throws javax.servlet.ServletException, IOException
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスuri
- プロキシ対象のURIhttpClient
- プロキシを行った HttpClienthttpUriRequest
- プロキシを行った HttpUriRequestIOException
- Servletの仕様に準拠しますjavax.servlet.ServletException
- Servletの仕様に準拠しますprotected void proxyOnPostExecute(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, URI uri, HttpClient httpClient, HttpUriRequest httpUriRequest, jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpResponse httpResponse) throws javax.servlet.ServletException, IOException
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスuri
- プロキシ対象のURIhttpClient
- プロキシを行った HttpClienthttpUriRequest
- プロキシを行った HttpUriRequesthttpResponse
- プロキシを行ったHttpResponseIOException
- Servletの仕様に準拠しますjavax.servlet.ServletException
- Servletの仕様に準拠しますprotected void proxyOnPreExecute(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, URI uri, HttpClient httpClient, HttpUriRequest httpUriRequest) throws javax.servlet.ServletException, IOException
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスuri
- プロキシ対象のURIhttpClient
- プロキシを行う HttpClienthttpUriRequest
- プロキシを行う HttpUriRequestIOException
- Servletの仕様に準拠しますjavax.servlet.ServletException
- Servletの仕様に準拠しますprotected void proxyOnSuccess(String path, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, URI uri, HttpClient httpClient, HttpUriRequest httpUriRequest, jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpResponse httpResponse) throws javax.servlet.ServletException, IOException
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスuri
- プロキシ対象のURIhttpClient
- プロキシを行った HttpClienthttpUriRequest
- プロキシを行った HttpUriRequesthttpResponse
- プロキシを行ったHttpResponseIOException
- Servletの仕様に準拠しますjavax.servlet.ServletException
- Servletの仕様に準拠しますprotected void proxyRequestHeaders(URI uri, javax.servlet.http.HttpServletRequest request, HttpUriRequest httpUriRequest) throws IOException
uri
- プロキシ対象のURIrequest
- HTTPリクエストhttpUriRequest
- プロキシを行うリクエストIOException
- 入出力エラーが発生した場合にスローされます。protected void proxyRequestParameters(javax.servlet.http.HttpServletRequest request, HttpEntityEnclosingRequestBase httpEntityEnclosingRequestBase) throws IOException
request
- HTTPリクエストhttpEntityEnclosingRequestBase
- プロキシを行うリクエストIOException
- 入出力エラーが発生した場合にスローされます。protected void proxyResponseHeaders(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpResponse httpResponse, int newContentLength) throws IOException
request
- HTTPリクエストresponse
- HTTPレスポンスhttpResponse
- プロキシを行ったレスポンスnewContentLength
- コンテンツ置換後のContent-Length。-1の場合は元のContent-Lengthを使用する。IOException
- 入出力エラーが発生した場合にスローされます。protected void proxyStatus(javax.servlet.http.HttpServletResponse response, jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http.HttpResponse httpResponse) throws IOException
response
- HTTPレスポンスhttpResponse
- プロキシを行ったレスポンスIOException
- 入出力エラーが発生した場合にスローされます。protected String resolveSelfURIString(String path, String pathFragment, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスprotected URI resolveTargetURI(String path, String pathFragment, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスjavax.servlet.ServletException
protected String resolveTargetURIString(String path, String pathFragment, PathVariables variables, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
path
- パスvariables
- パスバリアブルrequest
- HTTPリクエストresponse
- HTTPレスポンスCopyright © 2012 NTT DATA INTRAMART CORPORATION