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) |
protected Integer |
getPort(WebSocketSettings webSocketSettings) |
protected Integer |
getSecurePort(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 Integer getPort(WebSocketSettings webSocketSettings)
protected Integer getSecurePort(WebSocketSettings webSocketSettings)
protected CharSequence getFilterPrefix(WebSocketSettings webSocketSettings)
protected CharSequence getContextPath(WebSocketSettings webSocketSettings)
protected CharSequence getBaseUrl(WebSocketSettings webSocketSettings)
public boolean getStatelessHint(Component component)
getStatelessHint in class BehaviorCopyright © 2006–2018 Apache Software Foundation. All rights reserved.