Package org.apache.wicket.protocol.ws
Class WebSocketAwareCsrfPreventionRequestCycleListener
- java.lang.Object
-
- org.apache.wicket.protocol.http.CsrfPreventionRequestCycleListener
-
- org.apache.wicket.protocol.ws.WebSocketAwareCsrfPreventionRequestCycleListener
-
- All Implemented Interfaces:
org.apache.wicket.request.cycle.IRequestCycleListener
public class WebSocketAwareCsrfPreventionRequestCycleListener extends org.apache.wicket.protocol.http.CsrfPreventionRequestCycleListenerA specialization ofCsrfPreventionRequestCycleListenerthat should be used when the application uses Web Sockets.The HTTP upgrade request brings Origin in its headers, but any Web socket frame doesn't bring it so
WebSocketRequestHandlerandWebSocketMessageBroadcastHandlershould be ignored.
-
-
Constructor Summary
Constructors Constructor Description WebSocketAwareCsrfPreventionRequestCycleListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisChecked(org.apache.wicket.request.IRequestHandler handler)-
Methods inherited from class org.apache.wicket.protocol.http.CsrfPreventionRequestCycleListener
abortHandler, addAcceptedOrigin, allowHandler, checkRequest, getSourceUri, getTargetUriFromRequest, isChecked, isEnabled, isLocalOrigin, isWhitelistedHost, matchingOrigin, normalizeUri, onAborted, onAllowed, onBeginRequest, onMatchingOrigin, onRequestHandlerResolved, onSuppressed, onWhitelisted, setConflictingOriginAction, setErrorCode, setErrorMessage, setNoOriginAction, suppressHandler, unwrap, whitelistedHandler
-
-