public class WebHdfsHaHttpClientDispatch extends HdfsDispatch
| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_ROLE_ATTRIBUTE |
AMP_DELEGATION_EQ, appCookieManager, auditor, COOKIE, NEGOTIATE, Q_DELEGATION_EQ, REPLAY_BUFFER_SIZE_PARAM, RES, SET_COOKIE, WWW_AUTHENTICATESOURCE_REQUEST_CONTEXT_URL_ATTRIBUTE_NAME, SOURCE_REQUEST_URL_ATTRIBUTE_NAME, TARGET_REQUEST_URL_ATTRIBUTE_NAME, TARGET_SERVICE_ROLE| Constructor and Description |
|---|
WebHdfsHaHttpClientDispatch() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeRequest(org.apache.http.client.methods.HttpUriRequest outboundRequest,
javax.servlet.http.HttpServletRequest inboundRequest,
javax.servlet.http.HttpServletResponse outboundResponse) |
void |
init(javax.servlet.FilterConfig filterConfig) |
protected void |
writeOutboundResponse(org.apache.http.client.methods.HttpUriRequest outboundRequest,
javax.servlet.http.HttpServletRequest inboundRequest,
javax.servlet.http.HttpServletResponse outboundResponse,
org.apache.http.HttpResponse inboundResponse)
Checks for specific outbound response codes/content to trigger a retry or failover
|
createRequestEntityaddCredentialsToRequest, doDelete, doGet, doOptions, doPost, doPut, executeKerberosDispatch, executeOutboundRequest, getReplayBufferSize, init, setReplayBufferSizecopyRequestHeaderFields, doFilter, getDispatchUrl, writeResponsedestroy, doFilter, getConfigpublic static final String RESOURCE_ROLE_ATTRIBUTE
public WebHdfsHaHttpClientDispatch()
throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterinit in class HttpClientDispatchjavax.servlet.ServletExceptionprotected void executeRequest(org.apache.http.client.methods.HttpUriRequest outboundRequest,
javax.servlet.http.HttpServletRequest inboundRequest,
javax.servlet.http.HttpServletResponse outboundResponse)
throws IOException
executeRequest in class HttpClientDispatchIOExceptionprotected void writeOutboundResponse(org.apache.http.client.methods.HttpUriRequest outboundRequest,
javax.servlet.http.HttpServletRequest inboundRequest,
javax.servlet.http.HttpServletResponse outboundResponse,
org.apache.http.HttpResponse inboundResponse)
throws IOException
writeOutboundResponse in class HttpClientDispatchIOExceptionCopyright © 2015 Apache Software Foundation. All rights reserved.