Package org.apache.wicket.protocol.ws
Class WebSocketAwareResourceIsolationRequestCycleListener
java.lang.Object
org.apache.wicket.protocol.http.ResourceIsolationRequestCycleListener
org.apache.wicket.protocol.ws.WebSocketAwareResourceIsolationRequestCycleListener
- All Implemented Interfaces:
IRequestCycleListener
public class WebSocketAwareResourceIsolationRequestCycleListener
extends ResourceIsolationRequestCycleListener
A specialization of
ResourceIsolationRequestCycleListener
that should be
used when the application uses Web Sockets.
The HTTP upgrade request brings Origin and/or Fetch Metadata
in its headers, but any Web socket frame doesn't bring it so
WebSocketRequestHandler
and WebSocketMessageBroadcastHandler
should be ignored.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.wicket.protocol.http.ResourceIsolationRequestCycleListener
ResourceIsolationRequestCycleListener.CsrfAction
-
Field Summary
Fields inherited from class org.apache.wicket.protocol.http.ResourceIsolationRequestCycleListener
ERROR_MESSAGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isChecked
(IRequestHandler handler) Override to change the request handler types that are checked.Methods inherited from class org.apache.wicket.protocol.http.ResourceIsolationRequestCycleListener
abortHandler, addExemptedPaths, allowHandler, isChecked, isEnabled, onBeginRequest, onEndRequest, onRequestHandlerResolved, setDisallowedOutcomeAction, setErrorCode, setErrorMessage, setUnknownOutcomeAction, suppressHandler
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.wicket.request.cycle.IRequestCycleListener
onDetach, onException, onExceptionRequestHandlerResolved, onRequestHandlerExecuted, onRequestHandlerScheduled, onUrlMapped
-
Constructor Details
-
WebSocketAwareResourceIsolationRequestCycleListener
-
-
Method Details
-
isChecked
Description copied from class:ResourceIsolationRequestCycleListener
Override to change the request handler types that are checked. Currently only action handlers (form submits, link clicks, AJAX events) are checked.- Overrides:
isChecked
in classResourceIsolationRequestCycleListener
- Parameters:
handler
- the handler that is currently processing- Returns:
- true when resource isolation should be checked for this
handler
-