public final class WSInterceptorServer extends Object implements InspectorWSConnection, org.graalvm.polyglot.io.MessageEndpoint
MessageTransport.| Constructor and Description |
|---|
WSInterceptorServer(int port,
Token token,
InspectServerSession iss,
ConnectionWatcher connectionWatcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(Token tokenToClose) |
void |
closing(Token tokenToClose) |
void |
consoleAPICall(Token tokenToCall,
String type,
Object text) |
void |
dispose() |
int |
getPort() |
void |
newSession(InspectServerSession newIss) |
void |
opened(org.graalvm.polyglot.io.MessageEndpoint endpoint) |
void |
resetSessionEndpoint() |
void |
sendBinary(ByteBuffer data) |
void |
sendClose() |
void |
sendPing(ByteBuffer data) |
void |
sendPong(ByteBuffer data) |
void |
sendText(String message) |
public WSInterceptorServer(int port,
Token token,
InspectServerSession iss,
ConnectionWatcher connectionWatcher)
public void resetSessionEndpoint()
public void newSession(InspectServerSession newIss)
public void opened(org.graalvm.polyglot.io.MessageEndpoint endpoint)
public int getPort()
getPort in interface InspectorWSConnectionpublic void closing(Token tokenToClose)
closing in interface InspectorWSConnectionpublic void close(Token tokenToClose) throws IOException
close in interface InspectorWSConnectionIOExceptionpublic void dispose()
dispose in interface InspectorWSConnectionpublic void consoleAPICall(Token tokenToCall, 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