public final class TyrusContext extends Object implements org.apidesign.html.context.spi.Contexts.Provider, WSTransfer<TyrusContext.Comm>
OnReceive communication end point for
JDK7.
Don't deal with this module directly, rather use the
@OnReceive(url="ws://...", ...) API to establish your
WebSocket connection.
There is no need to include this module in your application if you are
running on JDK8. JDK8 WebView provides its own implementation of the
WebSocket API based on WebSocket object inside a browser. This is included
in the org.apidesign.html:ko-fx:0.5 module.
| Modifier and Type | Class and Description |
|---|---|
static class |
TyrusContext.Comm
Implementation class in an implementation.
|
| Constructor and Description |
|---|
TyrusContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
close(TyrusContext.Comm socket) |
void |
fillContext(org.apidesign.html.context.spi.Contexts.Builder context,
Class<?> requestor) |
TyrusContext.Comm |
open(String url,
JSONCall callback) |
void |
send(TyrusContext.Comm socket,
JSONCall data) |
public void fillContext(org.apidesign.html.context.spi.Contexts.Builder context,
Class<?> requestor)
fillContext in interface org.apidesign.html.context.spi.Contexts.Providerpublic TyrusContext.Comm open(String url, JSONCall callback)
open in interface WSTransfer<TyrusContext.Comm>public void send(TyrusContext.Comm socket, JSONCall data)
send in interface WSTransfer<TyrusContext.Comm>public void close(TyrusContext.Comm socket)
close in interface WSTransfer<TyrusContext.Comm>Copyright © 2013 API Design. All Rights Reserved.