public class DefaultReverseProxy extends Object implements ReverseProxy
Constructor and Description |
---|
DefaultReverseProxy(PXConfiguration pxConfiguration,
IPProvider ipProvider) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
boolean |
reverseCaptcha(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponseWrapper res) |
boolean |
reversePxClient(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
This method will reverse the request and fetch the client from PerimeterX backends
if return false, the module will continue to inspect the request
There must be a condition to redirect the request, it much match a certain prefix with combination of the appid and path
|
boolean |
reversePxXhr(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
This method will reverse the request and send any XHR request back to PerimeterX backends
if return false, the module will continue to inspect the request
There must be a condition to redirect the request, it much match a certain prefix with combination of the appid and path
|
void |
setIpProvider(IPProvider ipProvider) |
void |
setPredefinedResponseHelper(PredefinedResponseHelper predefinedResponseHelper) |
void |
setProxyClient(org.apache.http.impl.client.CloseableHttpClient proxyClient) |
public DefaultReverseProxy(PXConfiguration pxConfiguration, IPProvider ipProvider)
public boolean reversePxClient(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws URISyntaxException, IOException
ReverseProxy
reversePxClient
in interface ReverseProxy
req
- - Request objectres
- - Response objectURISyntaxException
IOException
public boolean reversePxXhr(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws URISyntaxException, IOException
ReverseProxy
reversePxXhr
in interface ReverseProxy
req
- - Request objectres
- - Response objectURISyntaxException
IOException
public boolean reverseCaptcha(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponseWrapper res) throws IOException, URISyntaxException
reverseCaptcha
in interface ReverseProxy
IOException
URISyntaxException
public void setIpProvider(IPProvider ipProvider)
public void setPredefinedResponseHelper(PredefinedResponseHelper predefinedResponseHelper)
public void setProxyClient(org.apache.http.impl.client.CloseableHttpClient proxyClient)
public void destroy()
Copyright © 2018 PerimeterX. All rights reserved.