Package com.telenordigital.nbiot
Class OutputStream
- java.lang.Object
-
- com.telenordigital.nbiot.OutputStream
-
- All Implemented Interfaces:
java.net.http.WebSocket.Listener
public class OutputStream extends Object implements java.net.http.WebSocket.Listener
-
-
Constructor Summary
Constructors Constructor Description OutputStream(URI uri, String token, Client.OutputHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()CompletionStage<?>onClose(java.net.http.WebSocket webSocket, int statusCode, String reason)voidonError(java.net.http.WebSocket webSocket, Throwable error)CompletionStage<?>onText(java.net.http.WebSocket webSocket, CharSequence message, boolean last)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.net.http.WebSocket.Listener
onBinary, onOpen, onPing, onPong
-
-
-
-
Constructor Detail
-
OutputStream
public OutputStream(URI uri, String token, Client.OutputHandler handler)
-
-
Method Detail
-
close
public void close()
-
onText
public CompletionStage<?> onText(java.net.http.WebSocket webSocket, CharSequence message, boolean last)
- Specified by:
onTextin interfacejava.net.http.WebSocket.Listener
-
onClose
public CompletionStage<?> onClose(java.net.http.WebSocket webSocket, int statusCode, String reason)
- Specified by:
onClosein interfacejava.net.http.WebSocket.Listener
-
onError
public void onError(java.net.http.WebSocket webSocket, Throwable error)
- Specified by:
onErrorin interfacejava.net.http.WebSocket.Listener
-
-