B C D E G I N O P S U W 

B

Base64 - Class in com.appunite.websocket.tools
Utilities for encoding and decoding the Base64 representation of binary data.

C

checkArgument(boolean) - Static method in class com.appunite.websocket.tools.Preconditions
Ensures the truth of an expression involving one or more parameters to the calling method.
checkArgument(boolean, Object) - Static method in class com.appunite.websocket.tools.Preconditions
Ensures the truth of an expression involving one or more parameters to the calling method.
checkArgument(boolean, String, Object...) - Static method in class com.appunite.websocket.tools.Preconditions
Ensures the truth of an expression involving one or more parameters to the calling method.
checkElementIndex(int, int) - Static method in class com.appunite.websocket.tools.Preconditions
Ensures that index specifies a valid element in an array, list or string of size size.
checkElementIndex(int, int, String) - Static method in class com.appunite.websocket.tools.Preconditions
Ensures that index specifies a valid element in an array, list or string of size size.
checkNotNull(T) - Static method in class com.appunite.websocket.tools.Preconditions
Ensures that an object reference passed as a parameter to the calling method is not null.
checkNotNull(T, Object) - Static method in class com.appunite.websocket.tools.Preconditions
Ensures that an object reference passed as a parameter to the calling method is not null.
checkNotNull(T, String, Object...) - Static method in class com.appunite.websocket.tools.Preconditions
Ensures that an object reference passed as a parameter to the calling method is not null.
checkPositionIndex(int, int) - Static method in class com.appunite.websocket.tools.Preconditions
Ensures that index specifies a valid position in an array, list or string of size size.
checkPositionIndex(int, int, String) - Static method in class com.appunite.websocket.tools.Preconditions
Ensures that index specifies a valid position in an array, list or string of size size.
checkPositionIndexes(int, int, int) - Static method in class com.appunite.websocket.tools.Preconditions
Ensures that start and end specify a valid positions in an array, list or string of size size, and are in order.
checkState(boolean) - Static method in class com.appunite.websocket.tools.Preconditions
Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method.
checkState(boolean, Object) - Static method in class com.appunite.websocket.tools.Preconditions
Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method.
checkState(boolean, String, Object...) - Static method in class com.appunite.websocket.tools.Preconditions
Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method.
com.appunite.websocket - package com.appunite.websocket
 
com.appunite.websocket.internal - package com.appunite.websocket.internal
 
com.appunite.websocket.tools - package com.appunite.websocket.tools
 
connect(URI) - Method in class com.appunite.websocket.WebSocket
Deprecated.
connect() - Method in class com.appunite.websocket.WebSocketConnection
Connect to websocket
create(URI, List<String>, List<Header>, WebSocketListener) - Method in class com.appunite.websocket.NewWebSocket
This method will be alive until error occur or interrupt was executed.
CRLF - Static variable in class com.appunite.websocket.tools.Base64
Encoder flag bit to indicate lines should be terminated with a CRLF pair instead of just an LF.

D

decode(String, int) - Static method in class com.appunite.websocket.tools.Base64
Decode the Base64-encoded data in input and return the data in a new byte array.
decode(byte[], int) - Static method in class com.appunite.websocket.tools.Base64
Decode the Base64-encoded data in input and return the data in a new byte array.
decode(byte[], int, int, int) - Static method in class com.appunite.websocket.tools.Base64
Decode the Base64-encoded data in input and return the data in a new byte array.
DEFAULT - Static variable in class com.appunite.websocket.tools.Base64
Default values for encoder/decoder flags.

E

emptyToNull(String) - Static method in class com.appunite.websocket.tools.Strings
Returns the given string if it is nonempty; null otherwise.
encode(byte[], int) - Static method in class com.appunite.websocket.tools.Base64
Base64-encode the given data and return a newly allocated byte[] with the result.
encode(byte[], int, int, int) - Static method in class com.appunite.websocket.tools.Base64
Base64-encode the given data and return a newly allocated byte[] with the result.
encodeToString(byte[], int) - Static method in class com.appunite.websocket.tools.Base64
Base64-encode the given data and return a newly allocated String with the result.
encodeToString(byte[], int, int, int) - Static method in class com.appunite.websocket.tools.Base64
Base64-encode the given data and return a newly allocated String with the result.

G

generateHandshakeSecret() - Method in interface com.appunite.websocket.internal.SecureRandomProvider
The value of this header field MUST be a nonce consisting of a randomly selected 16-byte value that has been base64-encoded (see Section 4 of [RFC4648]).
generateHandshakeSecret() - Method in class com.appunite.websocket.internal.SecureRandomProviderImpl
 
generateMask() - Method in interface com.appunite.websocket.internal.SecureRandomProvider
Random byte[4] or Null
generateMask() - Method in class com.appunite.websocket.internal.SecureRandomProviderImpl
 
getSocket(URI) - Method in interface com.appunite.websocket.internal.SocketProvider
Get socket for given uri
getSocket(URI) - Method in class com.appunite.websocket.internal.SocketProviderImpl
 

I

interrupt() - Method in class com.appunite.websocket.WebSocket
Deprecated.
interrupt() - Method in class com.appunite.websocket.WebSocketConnection
Interrupt connect method.
isNullOrEmpty(String) - Static method in class com.appunite.websocket.tools.Strings
Returns true if the given string is null or is the empty string.

N

NewWebSocket - Class in com.appunite.websocket
Allows user to connect to websocket
NewWebSocket() - Constructor for class com.appunite.websocket.NewWebSocket
Create instance of WebSocket
NewWebSocket(SecureRandomProvider, SocketProvider) - Constructor for class com.appunite.websocket.NewWebSocket
Create instance of WebSocket
NO_CLOSE - Static variable in class com.appunite.websocket.tools.Base64
Flag to pass to Base64OutputStream to indicate that it should not close the output stream it is wrapping when it itself is closed.
NO_PADDING - Static variable in class com.appunite.websocket.tools.Base64
Encoder flag bit to omit the padding '=' characters at the end of the output (if any).
NO_WRAP - Static variable in class com.appunite.websocket.tools.Base64
Encoder flag bit to omit all line terminators (i.e., the output will be on one long line).
NotConnectedException - Exception in com.appunite.websocket
Thrown when trying to execute some operation while socket is not connected
NotConnectedException() - Constructor for exception com.appunite.websocket.NotConnectedException
 
nullToEmpty(String) - Static method in class com.appunite.websocket.tools.Strings
Returns the given string if it is non-null; the empty string otherwise.

O

onBinaryMessage(byte[]) - Method in interface com.appunite.websocket.WebSocketListener
On received binary data
onConnected() - Method in interface com.appunite.websocket.WebSocketListener
On connected to websocket
onPing(byte[]) - Method in interface com.appunite.websocket.WebSocketListener
On received ping
onPong(byte[]) - Method in interface com.appunite.websocket.WebSocketListener
On received pong
onServerRequestedClose(byte[]) - Method in interface com.appunite.websocket.WebSocketListener
On received request close from server
onStringMessage(String) - Method in interface com.appunite.websocket.WebSocketListener
On received string message
onUnknownMessage(byte[]) - Method in interface com.appunite.websocket.WebSocketListener
On received unknown message

P

Preconditions - Class in com.appunite.websocket.tools
Simple static methods to be called at the start of your own methods to verify correct arguments and state.

S

SecureRandomProvider - Interface in com.appunite.websocket.internal
Class for generating random numbers
SecureRandomProviderImpl - Class in com.appunite.websocket.internal
Implementation of SecureRandomProvider
SecureRandomProviderImpl() - Constructor for class com.appunite.websocket.internal.SecureRandomProviderImpl
 
sendByteMessage(byte[]) - Method in class com.appunite.websocket.WebSocket
Deprecated.
sendByteMessage(byte[]) - Method in class com.appunite.websocket.WebSocketConnection
 
sendByteMessage(byte[]) - Method in interface com.appunite.websocket.WebSocketSender
Send binary message (thread safe).
sendPingMessage(byte[]) - Method in class com.appunite.websocket.WebSocket
Deprecated.
sendPingMessage(byte[]) - Method in class com.appunite.websocket.WebSocketConnection
 
sendPingMessage(byte[]) - Method in interface com.appunite.websocket.WebSocketSender
Send ping request (thread safe).
sendStringMessage(String) - Method in class com.appunite.websocket.WebSocket
Deprecated.
sendStringMessage(String) - Method in class com.appunite.websocket.WebSocketConnection
 
sendStringMessage(String) - Method in interface com.appunite.websocket.WebSocketSender
Send text message (thread safe).
SocketProvider - Interface in com.appunite.websocket.internal
Class provides factory for socket
SocketProviderImpl - Class in com.appunite.websocket.internal
Implementation of SocketProvider
SocketProviderImpl() - Constructor for class com.appunite.websocket.internal.SocketProviderImpl
 
Strings - Class in com.appunite.websocket.tools
 
Strings() - Constructor for class com.appunite.websocket.tools.Strings
 

U

URL_SAFE - Static variable in class com.appunite.websocket.tools.Base64
Encoder/decoder flag bit to indicate using the "URL and filename safe" variant of Base64 (see RFC 3548 section 4) where - and _ are used in place of + and /.

W

WebSocket - Class in com.appunite.websocket
Allows user to create to websocket
WebSocket(WebSocketListener) - Constructor for class com.appunite.websocket.WebSocket
Deprecated.
WebSocketConnection - Class in com.appunite.websocket
Class represents single web socket connection
WebSocketListener - Interface in com.appunite.websocket
Listener to get websocket responses
WebSocketSender - Interface in com.appunite.websocket
Interface allows user to send messages to websocket
WrongWebsocketResponse - Exception in com.appunite.websocket
Thrown when unknown response from WebSocket was received
WrongWebsocketResponse(String, Throwable) - Constructor for exception com.appunite.websocket.WrongWebsocketResponse
 
WrongWebsocketResponse(String) - Constructor for exception com.appunite.websocket.WrongWebsocketResponse
 
B C D E G I N O P S U W