@Deprecated public class RootRequestFilter extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
RootRequestFilter.HybrisGZIPResponseWrapper
Deprecated.
|
class |
RootRequestFilter.HybrisRequestWrapper
Deprecated.
|
class |
RootRequestFilter.HybrisResponseWrapper
Deprecated.
|
static class |
RootRequestFilter.HybrisSessionWrapper
Deprecated.
|
static interface |
RootRequestFilter.Params
Deprecated.
|
protected class |
RootRequestFilter.TenantInformation
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_MATCHER_PATTERN
Deprecated.
|
static String |
DEFAULT_TENANTID_COOKIE_NAME
Deprecated.
|
static boolean |
SERVLET_COMPATIBILITY
Deprecated.
servlet compatibility has to be disabled if running with weblogic! if not we get errors like
java.lang.IllegalStateException: getWriter() has already been called!
at de.hybris.platform.util.RootRequestFilter$HybrisGZIPResponseWrapper. |
static String |
TENANT_ATTRIBUTE_MAP_PREFIX
Deprecated.
|
| Constructor and Description |
|---|
RootRequestFilter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
adjustEncodings(HttpServletRequest _request,
HttpServletResponse _response)
Deprecated.
|
protected String |
assertValidTenantID(String id,
boolean allowMaster)
Deprecated.
|
protected void |
assignCurrentRequestToThread(HttpServletRequest request)
Deprecated.
|
protected boolean |
assureNeverCalledBefore(ServletRequest _request)
Deprecated.
|
protected void |
clearCurrentRequestFromThread()
Deprecated.
|
void |
destroy()
Deprecated.
|
void |
doFilter(ServletRequest _request,
ServletResponse _response,
FilterChain chain)
Deprecated.
|
protected String |
doForward(HttpServletRequest request,
HttpServletResponse response)
Deprecated.
Hook method to allow filter instances to forward to a different page.
|
protected void |
doPostRequest(HttpServletRequest request,
HttpServletResponse response)
Deprecated.
This method is called once after the chained request is called.
|
protected boolean |
doPreRequest(HttpServletRequest request,
HttpServletResponse response)
Deprecated.
This method is called once before the chained request is called.
|
protected static Tenant |
getCurrentTenant()
Deprecated.
|
protected FilterConfig |
getFilterConfig()
Deprecated.
protected method which can be used to obtain the FilterConfig instance which is bound to this Filter instance.
|
protected String |
getSlaveDataSourceID(HttpServletRequest request)
Deprecated.
|
protected RootRequestFilter.TenantInformation |
getTenantInformationFrom(HttpServletRequest _request)
Deprecated.
|
protected String |
getTenantSystemID(HttpServletRequest request)
Deprecated.
|
protected String |
getURI(HttpServletRequest _request)
Deprecated.
|
protected void |
handleSlaveSettings(HttpServletRequest _request,
HttpServletResponse _response)
Deprecated.
|
protected boolean |
handleTenantID(HttpServletRequest _request,
HttpServletResponse _response)
Deprecated.
Performs tenant ID handling.
|
void |
init(FilterConfig filterConfig)
Deprecated.
|
boolean |
isSkippedInitSystemTest()
Deprecated.
|
protected String |
matchTenantSystemIDHost(String uri)
Deprecated.
|
protected String |
matchTenantSystemIDToken(String uri)
Deprecated.
|
void |
setSkippedInitSystemTest(boolean skippedInitSystemTest)
Deprecated.
|
protected void |
setSlaveDataSourceID(String id,
HttpServletResponse response)
Deprecated.
|
protected void |
setTenantID(String tenantID,
HttpServletRequest request,
HttpServletResponse response)
Deprecated.
|
protected void |
touchHttpSession(HttpServletRequest request)
Deprecated.
removes jalosession attribute from httpSession and inserts it again to force copying of jaloSession among tomcat's
cluster nodes
|
protected HttpServletRequest |
wrapRequest(HttpServletRequest original,
HttpServletResponse response,
FilterChain chain)
Deprecated.
|
protected HttpServletResponse |
wrapResponse(HttpServletResponse original,
FilterChain chain,
boolean compress,
boolean mustEncode,
boolean useRegExp)
Deprecated.
|
protected void |
writeShutDownPage(HttpServletResponse resp)
Deprecated.
Writes a maintenance message to the response.
|
public static final String DEFAULT_TENANTID_COOKIE_NAME
public static final String DEFAULT_MATCHER_PATTERN
public static final String TENANT_ATTRIBUTE_MAP_PREFIX
public static final boolean SERVLET_COMPATIBILITY
java.lang.IllegalStateException: getWriter() has already been called!
at de.hybris.platform.util.RootRequestFilter$HybrisGZIPResponseWrapper.
getOutputStream(RootRequestFilter.java:357)
We have not yet analyzed the root cause of this problem. See also PLA-5702.protected static Tenant getCurrentTenant()
protected HttpServletRequest wrapRequest(HttpServletRequest original,
HttpServletResponse response,
FilterChain chain)
protected HttpServletResponse wrapResponse(HttpServletResponse original,
FilterChain chain,
boolean compress,
boolean mustEncode,
boolean useRegExp)
protected boolean assureNeverCalledBefore(ServletRequest _request)
protected void writeShutDownPage(HttpServletResponse resp)
throws IOException
resp - response to useIOException - error at writing to output streampublic final void doFilter(ServletRequest _request,
ServletResponse _response,
FilterChain chain)
throws IOException,
ServletException
IOExceptionServletExceptionprotected void assignCurrentRequestToThread(HttpServletRequest request)
protected void clearCurrentRequestFromThread()
protected void touchHttpSession(HttpServletRequest request)
request - protected void adjustEncodings(HttpServletRequest _request,
HttpServletResponse _response)
protected String doForward(HttpServletRequest request, HttpServletResponse response)
null which means no forwarding.request - response - protected boolean doPreRequest(HttpServletRequest request,
HttpServletResponse response)
throws ServletException
ServletExceptionprotected void doPostRequest(HttpServletRequest request,
HttpServletResponse response)
throws ServletException
ServletExceptionprotected FilterConfig getFilterConfig()
protected void handleSlaveSettings(HttpServletRequest _request,
HttpServletResponse _response)
protected void setSlaveDataSourceID(String id, HttpServletResponse response)
protected String getSlaveDataSourceID(HttpServletRequest request)
protected boolean handleTenantID(HttpServletRequest _request,
HttpServletResponse _response)
_request - _response - protected RootRequestFilter.TenantInformation getTenantInformationFrom(HttpServletRequest _request)
protected String getURI(HttpServletRequest _request)
_request - request what we get the uri fromprotected void setTenantID(String tenantID, HttpServletRequest request, HttpServletResponse response)
protected String getTenantSystemID(HttpServletRequest request)
protected String assertValidTenantID(String id, boolean allowMaster)
public void init(FilterConfig filterConfig)
throws ServletException
ServletExceptionpublic void destroy()
public boolean isSkippedInitSystemTest()
public void setSkippedInitSystemTest(boolean skippedInitSystemTest)
skippedInitSystemTest - the skippedInitSystemTest to setCopyright © 2017 SAP SE. All Rights Reserved.