Class WicketWebSocketJQueryResourceReference
- java.lang.Object
-
- org.apache.wicket.request.resource.ResourceReference
-
- org.apache.wicket.request.resource.PackageResourceReference
-
- org.apache.wicket.request.resource.JavaScriptResourceReference
-
- org.apache.wicket.protocol.ws.api.WicketWebSocketJQueryResourceReference
-
- All Implemented Interfaces:
Serializable
,IClusterable
public class WicketWebSocketJQueryResourceReference extends JavaScriptResourceReference
A resource reference that provides the JavaScript that may be used to create WebSocket connections in the browser. The benefit over usage of plain <code>window.WebSocket<code> is that it supports handling of Wicket's <ajax-response> responses.- Since:
- 6.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.wicket.request.resource.ResourceReference
ResourceReference.Key, ResourceReference.LambdaResourceReference, ResourceReference.UrlAttributes
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WicketWebSocketJQueryResourceReference
get()
List<HeaderItem>
getDependencies()
-
Methods inherited from class org.apache.wicket.request.resource.JavaScriptResourceReference
getResource
-
Methods inherited from class org.apache.wicket.request.resource.PackageResourceReference
getMinifiedName, getUrlAttributes, readBuffered, removeCompressFlagIfUnnecessary
-
Methods inherited from class org.apache.wicket.request.resource.ResourceReference
canBeRegistered, equals, getExtension, getKey, getLocale, getName, getScope, getStyle, getVariation, hashCode, of, of, toString
-
-
-
-
Method Detail
-
get
public static WicketWebSocketJQueryResourceReference get()
- Returns:
- the singleton instance
-
getDependencies
public List<HeaderItem> getDependencies()
- Overrides:
getDependencies
in classResourceReference
- Returns:
- the resources this ResourceReference depends on.
-
-