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)
This method returns false if the behavior generates a callback url (for example ajax
behaviors)
|
void |
renderHead(Component component,
IHeaderResponse response)
Render to the web response whatever the component wants to contribute to the head section.
|
afterRender, beforeRender, bind, canCallListenerInterface, detach, isEnabled, isTemporary, onComponentTag, onConfigure, onEvent, onException, onRemove, unbind
protected BaseWebSocketBehavior()
WebSocketBehavior
public 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 WebSocketResource
public void renderHead(Component component, IHeaderResponse response)
Behavior
renderHead
in interface IComponentAwareHeaderContributor
renderHead
in class Behavior
component
- component which is contributing to the response. This parameter is here to give
the component as the context for component-awares implementing this interfaceresponse
- Response objectprotected 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)
Behavior
getStatelessHint
in class Behavior
component
- the component that has this behavior coupled.Copyright © 2006–2021 Apache Software Foundation. All rights reserved.