public interface WebsocketContext<W extends WebsocketContext<?>>
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnectionWithCurrentPeer()
Closes the connection with the
current peer.
|
<T> T |
get(Class<T> clazz)
Shortcut to get an instance from Guice.
|
<T> T |
get(com.google.inject.Key<T> key)
Shortcut to get an instance from Guice.
|
String |
getEndpointId()
The id of the endpoint
|
Locale |
getLocaleToUse()
The best Locale to use, as resolved by
the
LocaleResolver during the
initial HTTP request. |
String |
getPeerId()
The id of the peer.
|
com.google.inject.Injector |
guice()
Easy access to the Guice context.
|
JsonManager |
json()
Easy access to the
JsonManager,
Json related methods. |
void |
sendMessageToCurrentPeer(byte[] message)
Sends a byte array message to the
current peer.
|
void |
sendMessageToCurrentPeer(String message)
Sends a String message to the
current peer.
|
TemplatingEngine |
templating()
Easy access to the
TemplatingEngine,
templating related methods. |
XmlManager |
xml()
Easy access to the
XmlManager,
XML related methods. |
String getEndpointId()
String getPeerId()
void sendMessageToCurrentPeer(String message)
void sendMessageToCurrentPeer(byte[] message)
void closeConnectionWithCurrentPeer()
JsonManager json()
JsonManager,
Json related methods.XmlManager xml()
XmlManager,
XML related methods.TemplatingEngine templating()
TemplatingEngine,
templating related methods.com.google.inject.Injector guice()
<T> T get(Class<T> clazz)
<T> T get(com.google.inject.Key<T> key)
Locale getLocaleToUse()
LocaleResolver during the
initial HTTP request.Copyright © 2018. All rights reserved.