public class BaseWebSocketBehavior extends Behavior
WicketWebSocketJQueryResourceReference| Modifier | Constructor and Description |
|---|---|
protected |
BaseWebSocketBehavior()
Constructor.
|
|
BaseWebSocketBehavior(String resourceName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected CharSequence |
getBaseUrl(WebSocketSettings webSocketSettings) |
protected CharSequence |
getContextPath(WebSocketSettings webSocketSettings) |
protected CharSequence |
getFilterPrefix(WebSocketSettings webSocketSettings) |
boolean |
getStatelessHint(Component component) |
void |
renderHead(Component component,
IHeaderResponse response) |
afterRender, beforeRender, bind, canCallListenerInterface, detach, isEnabled, isTemporary, onComponentTag, onConfigure, onEvent, onException, onRemove, unbindprotected BaseWebSocketBehavior()
WebSocketBehaviorpublic BaseWebSocketBehavior(String resourceName)
WebSocketResource
To use WebSocketResource the application have to setup the
resource as a shared one in its Application.init()
method:
getSharedResources().add(resourceName, new MyWebSocketResource())
resourceName - the name of the shared WebSocketResourcepublic void renderHead(Component component, IHeaderResponse response)
renderHead in interface IComponentAwareHeaderContributorrenderHead in class Behaviorprotected CharSequence getFilterPrefix(WebSocketSettings webSocketSettings)
protected CharSequence getContextPath(WebSocketSettings webSocketSettings)
protected CharSequence getBaseUrl(WebSocketSettings webSocketSettings)
public boolean getStatelessHint(Component component)
getStatelessHint in class BehaviorCopyright © 2006–2016 Apache Software Foundation. All rights reserved.