Interface HttpWebSocketClient
-
- All Superinterfaces:
AutoCloseable
,Closeable
public interface HttpWebSocketClient extends Closeable
HTTP WebSocket client interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Close this WebSocket client.boolean
isOpen()
Returns true if this client is open, otherwise false.WebSocketAdapter
newWebSocket(URI uri)
Request the client to create a new WebSocket on the given URI.
-
-
-
Method Detail
-
newWebSocket
WebSocketAdapter newWebSocket(URI uri)
Request the client to create a new WebSocket on the given URI.- Parameters:
uri
- URI to connect to- Returns:
- new
WebSocketAdapter
instance
-
close
void close()
Close this WebSocket client.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
isOpen
boolean isOpen()
Returns true if this client is open, otherwise false.- Returns:
- true if this client is open, otherwise false
-
-