public class DefaultDispatch extends AbstractGatewayDispatch
| Modifier and Type | Field and Description |
|---|---|
protected static Auditor |
auditor |
protected static String |
EXCLUDE_ALL |
protected static Set<String> |
EXCLUDE_SET_COOKIES_DEFAULT |
protected static SpiGatewayMessages |
LOG |
protected static SpiGatewayResources |
RES |
protected static String |
SET_COOKIE |
protected static String |
WWW_AUTHENTICATE |
client| Constructor and Description |
|---|
DefaultDispatch() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCredentialsToRequest(org.apache.http.client.methods.HttpUriRequest outboundRequest)
This method provides a hook for specialized credential propagation
in subclasses.
|
protected void |
closeInboundResponse(org.apache.http.HttpResponse response,
InputStream stream) |
void |
copyResponseHeaderFields(javax.servlet.http.HttpServletResponse outboundResponse,
org.apache.http.HttpResponse inboundResponse) |
protected org.apache.http.HttpEntity |
createRequestEntity(javax.servlet.http.HttpServletRequest request) |
void |
destroy() |
void |
doDelete(URI url,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
doGet(URI url,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
doHead(URI url,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
doOptions(URI url,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
doPatch(URI url,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
doPost(URI url,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
doPut(URI url,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected org.apache.http.HttpResponse |
executeOutboundRequest(org.apache.http.client.methods.HttpUriRequest outboundRequest) |
protected void |
executeRequest(org.apache.http.client.methods.HttpUriRequest outboundRequest,
javax.servlet.http.HttpServletRequest inboundRequest,
javax.servlet.http.HttpServletResponse outboundResponse) |
protected void |
executeRequestWrapper(org.apache.http.client.methods.HttpUriRequest outboundRequest,
javax.servlet.http.HttpServletRequest inboundRequest,
javax.servlet.http.HttpServletResponse outboundResponse)
Wrapper around execute request to accommodate any
request processing such as additional HA logic.
|
protected String |
getInboundResponseContentType(org.apache.http.HttpEntity entity) |
Set<String> |
getOutboundResponseExcludedSetCookieHeaderDirectives() |
Set<String> |
getOutboundResponseExcludeHeaders() |
protected int |
getReplayBufferSize() |
protected int |
getReplayBufferSizeInBytes() |
String |
getServiceRole() |
protected void |
outboundResponseWrapper(org.apache.http.client.methods.HttpUriRequest outboundRequest,
javax.servlet.http.HttpServletRequest inboundRequest,
javax.servlet.http.HttpServletResponse outboundResponse)
A outbound response wrapper used by classes extending this class
to modify any outgoing
response i.e.
|
protected void |
setReplayBufferSize(int size) |
protected void |
setReplayBufferSizeInBytes(int size) |
void |
setServiceRole(String serviceRole) |
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) |
copyRequestHeaderFields, encodeUnwiseCharacters, getDispatchUrl, getHttpClient, getOutboundRequestExcludeHeaders, init, setHttpClient, writeResponseprotected static final String SET_COOKIE
protected static final String WWW_AUTHENTICATE
protected static final SpiGatewayMessages LOG
protected static final SpiGatewayResources RES
protected static final Auditor auditor
protected static final String EXCLUDE_ALL
public void destroy()
protected int getReplayBufferSize()
public String getServiceRole()
public void setServiceRole(String serviceRole)
@Configure protected void setReplayBufferSize(@Default(value="-1") int size)
protected int getReplayBufferSizeInBytes()
protected void setReplayBufferSizeInBytes(int size)
protected void executeRequestWrapper(org.apache.http.client.methods.HttpUriRequest outboundRequest,
javax.servlet.http.HttpServletRequest inboundRequest,
javax.servlet.http.HttpServletResponse outboundResponse)
throws IOException
outboundRequest - inboundRequest - outboundResponse - IOExceptionprotected void outboundResponseWrapper(org.apache.http.client.methods.HttpUriRequest outboundRequest,
javax.servlet.http.HttpServletRequest inboundRequest,
javax.servlet.http.HttpServletResponse outboundResponse)
protected void executeRequest(org.apache.http.client.methods.HttpUriRequest outboundRequest,
javax.servlet.http.HttpServletRequest inboundRequest,
javax.servlet.http.HttpServletResponse outboundResponse)
throws IOException
IOExceptionprotected org.apache.http.HttpResponse executeOutboundRequest(org.apache.http.client.methods.HttpUriRequest outboundRequest)
throws IOException
IOExceptionprotected 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
IOExceptionprotected String getInboundResponseContentType(org.apache.http.HttpEntity entity)
protected void closeInboundResponse(org.apache.http.HttpResponse response,
InputStream stream)
throws IOException
IOExceptionprotected void addCredentialsToRequest(org.apache.http.client.methods.HttpUriRequest outboundRequest)
outboundRequest - outboundRequest to add credentials toprotected org.apache.http.HttpEntity createRequestEntity(javax.servlet.http.HttpServletRequest request)
throws IOException
IOExceptionpublic void doGet(URI url, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
doGet in interface DispatchdoGet in class AbstractGatewayDispatchIOExceptionpublic void doOptions(URI url, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
doOptions in interface DispatchdoOptions in class AbstractGatewayDispatchIOExceptionpublic void doPut(URI url, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
doPut in interface DispatchdoPut in class AbstractGatewayDispatchIOExceptionpublic void doPatch(URI url, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
doPatch in interface DispatchdoPatch in class AbstractGatewayDispatchIOExceptionpublic void doPost(URI url, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, URISyntaxException
doPost in interface DispatchdoPost in class AbstractGatewayDispatchIOExceptionURISyntaxExceptionpublic void doDelete(URI url, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
doDelete in interface DispatchdoDelete in class AbstractGatewayDispatchIOExceptionpublic void doHead(URI url, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
doHead in interface DispatchdoHead in class AbstractGatewayDispatchIOExceptionpublic void copyResponseHeaderFields(javax.servlet.http.HttpServletResponse outboundResponse,
org.apache.http.HttpResponse inboundResponse)
Copyright © 2022 The Apache Software Foundation. All rights reserved.