Package com.vonage.client.users.channels
Class Websocket
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.users.channels.Channel
com.vonage.client.users.channels.Websocket
- All Implemented Interfaces:
Jsonable
Represents a Websocket channel.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents the possible content types for a Websocket. -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMIME type of the content sent over the websocket.Custom properties to add to the header.getUri()Full URI of the websocket.Methods inherited from class com.vonage.client.users.channels.Channel
getConcreteClass, getType, removeTypeField, setTypeFieldMethods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
Websocket
protected Websocket() -
Websocket
-
Websocket
-
-
Method Details
-
getUri
Full URI of the websocket.- Returns:
- The websocket URI, or
nullif not set.
-
getContentType
MIME type of the content sent over the websocket.- Returns:
- The media content type as an enum, or
nullif unknown.
-
getHeaders
Custom properties to add to the header.- Returns:
- Header properties as a Map, or
nullif not set.
-