public final class WSInterceptorServer extends Object implements InspectorWSConnection, org.graalvm.polyglot.io.MessageEndpoint
MessageTransport.| Constructor and Description |
|---|
WSInterceptorServer(URI uri,
InspectServerSession iss,
ConnectionWatcher connectionWatcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(String path) |
void |
consoleAPICall(String wsspath,
String type,
Object text) |
int |
getPort() |
void |
newSession(InspectServerSession newIss) |
void |
opened(org.graalvm.polyglot.io.MessageEndpoint endpoint) |
void |
sendBinary(ByteBuffer data) |
void |
sendClose() |
void |
sendPing(ByteBuffer data) |
void |
sendPong(ByteBuffer data) |
void |
sendText(String message) |
public WSInterceptorServer(URI uri, InspectServerSession iss, ConnectionWatcher connectionWatcher)
public void newSession(InspectServerSession newIss)
public void opened(org.graalvm.polyglot.io.MessageEndpoint endpoint)
public int getPort()
getPort in interface InspectorWSConnectionpublic void close(String path) throws IOException
close in interface InspectorWSConnectionIOExceptionpublic void consoleAPICall(String wsspath, String type, Object text)
consoleAPICall in interface InspectorWSConnectionpublic void sendText(String message) throws IOException
sendText in interface org.graalvm.polyglot.io.MessageEndpointIOExceptionpublic void sendBinary(ByteBuffer data) throws IOException
sendBinary in interface org.graalvm.polyglot.io.MessageEndpointIOExceptionpublic void sendPing(ByteBuffer data) throws IOException
sendPing in interface org.graalvm.polyglot.io.MessageEndpointIOExceptionpublic void sendPong(ByteBuffer data) throws IOException
sendPong in interface org.graalvm.polyglot.io.MessageEndpointIOExceptionpublic void sendClose()
throws IOException
sendClose in interface org.graalvm.polyglot.io.MessageEndpointIOException