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 ofResourceIsolationRequestCycleListener
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
andWebSocketMessageBroadcastHandler
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 Constructor Description WebSocketAwareResourceIsolationRequestCycleListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
WebSocketAwareResourceIsolationRequestCycleListener
public WebSocketAwareResourceIsolationRequestCycleListener()
-
-
Method Detail
-
isChecked
protected boolean isChecked(IRequestHandler handler)
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
-
-