public class AbstractUpgradeFilter extends WicketFilter
APP_FACT_PARAM, FILTER_MAPPING_PARAM, IGNORE_PATHS_PARAM| Constructor and Description |
|---|
AbstractUpgradeFilter() |
AbstractUpgradeFilter(WebApplication application) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
acceptWebSocket(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected List<String> |
getTokensFromHeader(javax.servlet.http.HttpServletRequest req,
String headerName) |
protected boolean |
processRequestCycle(RequestCycle requestCycle,
org.apache.wicket.request.http.WebResponse webResponse,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
javax.servlet.FilterChain chain) |
protected String |
selectSubProtocol(List<String> subProtocols)
Intended to be overridden by sub-classes that wish to select a
sub-protocol if the client provides a list of supported protocols.
|
protected boolean |
verifyOrigin(String origin)
Intended to be overridden by sub-classes that wish to verify the origin
of a WebSocket request before processing it.
|
checkIfRedirectRequired, destroy, doFilter, getApplication, getApplicationFactory, getClassLoader, getFilterConfig, getFilterPath, getFilterPath, getFilterPathFromAnnotation, getFilterPathFromConfig, getFilterPathFromWebXml, getRelativePath, init, init, setFilterPathpublic AbstractUpgradeFilter()
public AbstractUpgradeFilter(WebApplication application)
protected boolean processRequestCycle(RequestCycle requestCycle, org.apache.wicket.request.http.WebResponse webResponse, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
processRequestCycle in class WicketFilterIOExceptionjavax.servlet.ServletExceptionprotected boolean acceptWebSocket(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionprotected List<String> getTokensFromHeader(javax.servlet.http.HttpServletRequest req, String headerName)
protected boolean verifyOrigin(String origin)
origin - The value of the origin header from the request which
may be nulltrue to accept the request. false to
reject it. This default implementation always returns
true.protected String selectSubProtocol(List<String> subProtocols)
subProtocols - The list of sub-protocols supported by the client
in client preference order. The server is under no
obligation to respect the declared preferencenull if no sub-protocol is selected or the name of
the protocol which must be one of the protocols listed by
the client. This default implementation always returns
null.Copyright © 2006–2018 Apache Software Foundation. All rights reserved.