Top Description Constructors Methods
org.eclipse.lsp4j.websocket

public abstract Class WebSocketEndpoint<T>

extends Endpoint
Class Inheritance
Annotations
@Deprecated
forRemoval:true
Type Parameters
<T>
remote service interface type
Imports
java.util.Collection, javax.websocket.Endpoint, .EndpointConfig, .Session, org.eclipse.lsp4j.jsonrpc.Launcher

Deprecated

for removal.

Please migrate to org.eclipse.lsp4j.websocket.jakarta

WebSocket endpoint implementation that connects to a JSON-RPC service.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected abstract void
configure(Launcher.Builder<T> builder)

Configure the JSON-RPC launcher.

protected void
connect(Collection<Object> localServices, T remoteProxy)

Override this in order to connect the local services to the remote service proxy.

public void
onOpen(Session session, EndpointConfig config)

Implements abstract javax.websocket.Endpoint.onOpen.

Developers must implement this method to be notified when a new conversation has just begun.

Inherited from javax.websocket.Endpoint:
onCloseonError

Constructor Detail

WebSocketEndpointback to summary
public WebSocketEndpoint()

Method Detail

configureback to summary
protected abstract void configure(Launcher.Builder<T> builder)

Configure the JSON-RPC launcher. Implementations should set at least the local service and the remote interface.

connectback to summary
protected void connect(Collection<Object> localServices, T remoteProxy)

Override this in order to connect the local services to the remote service proxy.

onOpenback to summary
public void onOpen(Session session, EndpointConfig config)

Implements abstract javax.websocket.Endpoint.onOpen.

Doc from javax.websocket.Endpoint.onOpen.

Developers must implement this method to be notified when a new conversation has just begun.

Annotations
@Override