Index

A B C D E F G H I K M N O P R S T U V 
All Classes and Interfaces|All Packages|Serialized Form

A

appId - Variable in class com.pusher.rest.PusherAbstract
 
areValidChannels(List<String>) - Static method in class com.pusher.rest.util.Prerequisites
 
AuthData - Class in com.pusher.rest.data
 
AuthData(String, String) - Constructor for class com.pusher.rest.data.AuthData
Private channel constructor
AuthData(String, String, String) - Constructor for class com.pusher.rest.data.AuthData
Presence channel constructor
authenticate(String, String) - Method in class com.pusher.rest.PusherAbstract
Generate authentication response to authorise a user on a private channel
authenticate(String, String, PresenceUser) - Method in class com.pusher.rest.PusherAbstract
Generate authentication response to authorise a user on a presence channel
AUTHENTICATION_ERROR - Enum constant in enum com.pusher.rest.data.Result.Status
 

B

BODY_SERIALISER - Static variable in class com.pusher.rest.PusherAbstract
 
box(byte[], byte[]) - Static method in class com.pusher.rest.crypto.nacl.SecretBox
 

C

cannotTriggerMultipleChannelsWithEncryption() - Static method in exception class com.pusher.rest.PusherException
 
CLIENT_ERROR - Enum constant in enum com.pusher.rest.data.Result.Status
 
close() - Method in class com.pusher.rest.Pusher
 
close() - Method in class com.pusher.rest.PusherAsync
 
com.pusher.rest - package com.pusher.rest
 
com.pusher.rest.crypto - package com.pusher.rest.crypto
 
com.pusher.rest.crypto.nacl - package com.pusher.rest.crypto.nacl
 
com.pusher.rest.data - package com.pusher.rest.data
 
com.pusher.rest.marshaller - package com.pusher.rest.marshaller
 
com.pusher.rest.util - package com.pusher.rest.util
 
configureHttpClient(HttpClientBuilder) - Method in class com.pusher.rest.Pusher
Configure the HttpClient instance which will be used for making calls to the Pusher API.
configureHttpClient(DefaultAsyncHttpClientConfig.Builder) - Method in class com.pusher.rest.PusherAsync
Configure the AsyncHttpClient instance which will be used for making calls to the Pusher API.
CryptoUtil - Class in com.pusher.rest.crypto
 
CryptoUtil(String) - Constructor for class com.pusher.rest.crypto.CryptoUtil
 

D

DataMarshaller - Interface in com.pusher.rest.marshaller
 
decrypt(String, EncryptedMessage) - Method in class com.pusher.rest.crypto.CryptoUtil
 
DefaultDataMarshaller - Class in com.pusher.rest.marshaller
 
DefaultDataMarshaller() - Constructor for class com.pusher.rest.marshaller.DefaultDataMarshaller
 
DefaultDataMarshaller(Gson) - Constructor for class com.pusher.rest.marshaller.DefaultDataMarshaller
 
defaultHttpClientBuilder() - Static method in class com.pusher.rest.Pusher
Returns an HttpClientBuilder with the settings used by default applied.
doGet(URI) - Method in class com.pusher.rest.Pusher
 
doGet(URI) - Method in class com.pusher.rest.PusherAbstract
 
doGet(URI) - Method in class com.pusher.rest.PusherAsync
 
doPost(URI, String) - Method in class com.pusher.rest.Pusher
 
doPost(URI, String) - Method in class com.pusher.rest.PusherAbstract
 
doPost(URI, String) - Method in class com.pusher.rest.PusherAsync
 

E

encrypt(String, byte[]) - Method in class com.pusher.rest.crypto.CryptoUtil
 
EncryptedMessage - Class in com.pusher.rest.data
 
EncryptedMessage(String, String) - Constructor for class com.pusher.rest.data.EncryptedMessage
 
encryptionMasterKeyRequired() - Static method in exception class com.pusher.rest.PusherException
 
Event - Class in com.pusher.rest.data
POJO for JSON encoding of trigger batch events.
Event(String, String, Object) - Constructor for class com.pusher.rest.data.Event
 
Event(String, String, Object, String) - Constructor for class com.pusher.rest.data.Event
 
EventBatch - Class in com.pusher.rest.data
POJO body for batch events
EventBatch(List<Event>) - Constructor for class com.pusher.rest.data.EventBatch
 

F

fromException(IOException) - Static method in class com.pusher.rest.data.Result
Factory method
fromException(ClientProtocolException) - Static method in class com.pusher.rest.data.Result
Factory method
fromHttpCode(int, String) - Static method in class com.pusher.rest.data.Result
Factory method
fromThrowable(Throwable) - Static method in class com.pusher.rest.data.Result
Factory method

G

generateBase64EncodedSharedSecret(String) - Method in class com.pusher.rest.crypto.CryptoUtil
 
get(String) - Method in class com.pusher.rest.PusherAbstract
Make a generic HTTP call to the Pusher API.
get(String, Map<String, String>) - Method in class com.pusher.rest.PusherAbstract
Make a generic HTTP call to the Pusher API.
getAuth() - Method in class com.pusher.rest.data.AuthData
 
getBatch() - Method in class com.pusher.rest.data.EventBatch
 
getChannel() - Method in class com.pusher.rest.data.Event
 
getChannelData() - Method in class com.pusher.rest.data.AuthData
 
getChannels() - Method in class com.pusher.rest.data.TriggerData
 
getCiphertext() - Method in class com.pusher.rest.data.EncryptedMessage
 
getData() - Method in class com.pusher.rest.data.Event
 
getData() - Method in class com.pusher.rest.data.TriggerData
 
getHttpStatus() - Method in class com.pusher.rest.data.Result
 
getMessage() - Method in class com.pusher.rest.data.Result
 
getName() - Method in class com.pusher.rest.data.Event
 
getName() - Method in class com.pusher.rest.data.TriggerData
 
getNonce() - Method in class com.pusher.rest.data.EncryptedMessage
 
getSharedSecret() - Method in class com.pusher.rest.data.AuthData
 
getSocketId() - Method in class com.pusher.rest.data.Event
 
getSocketId() - Method in class com.pusher.rest.data.TriggerData
 
getStatus() - Method in class com.pusher.rest.data.Result
 
getUserId() - Method in class com.pusher.rest.data.PresenceUser
 
getUserInfo() - Method in class com.pusher.rest.data.PresenceUser
 

H

host - Variable in class com.pusher.rest.PusherAbstract
 

I

INVALID - Enum constant in enum com.pusher.rest.data.Validity
 
isValidChannel(String) - Static method in class com.pusher.rest.util.Prerequisites
 
isValidSha256Key(String, String) - Static method in class com.pusher.rest.util.Prerequisites
 
isValidSocketId(String) - Static method in class com.pusher.rest.util.Prerequisites
 

K

key - Variable in class com.pusher.rest.PusherAbstract
 

M

marshal(Object) - Method in interface com.pusher.rest.marshaller.DataMarshaller
 
marshal(Object) - Method in class com.pusher.rest.marshaller.DefaultDataMarshaller
 
maxLength(String, int, List<?>) - Static method in class com.pusher.rest.util.Prerequisites
 
MESSAGE_QUOTA_EXCEEDED - Enum constant in enum com.pusher.rest.data.Result.Status
 

N

NETWORK_ERROR - Enum constant in enum com.pusher.rest.data.Result.Status
 
nonEmpty(String, String) - Static method in class com.pusher.rest.util.Prerequisites
 
nonNull(String, Object) - Static method in class com.pusher.rest.util.Prerequisites
 
noNullMembers(String, List<?>) - Static method in class com.pusher.rest.util.Prerequisites
 
noReservedKeys(Map<String, String>) - Static method in class com.pusher.rest.util.Prerequisites
 
NOT_FOUND - Enum constant in enum com.pusher.rest.data.Result.Status
 

O

open(byte[], byte[], byte[]) - Static method in class com.pusher.rest.crypto.nacl.SecretBox
 

P

post(String, String) - Method in class com.pusher.rest.PusherAbstract
Make a generic HTTP call to the Pusher API.
Prerequisites - Class in com.pusher.rest.util
 
Prerequisites() - Constructor for class com.pusher.rest.util.Prerequisites
 
PresenceUser - Class in com.pusher.rest.data
Represents a precence channel "user", that is a user from the domain of your application.
PresenceUser(Number) - Constructor for class com.pusher.rest.data.PresenceUser
Represents a presence channel user with no additional data associated other than the userId
PresenceUser(Number, Object) - Constructor for class com.pusher.rest.data.PresenceUser
Represents a presence channel user and a map of data associated with the user
PresenceUser(String) - Constructor for class com.pusher.rest.data.PresenceUser
Represents a presence channel user with no additional data associated other than the userId
PresenceUser(String, Object) - Constructor for class com.pusher.rest.data.PresenceUser
Represents a presence channel user and a map of data associated with the user
Pusher - Class in com.pusher.rest
A library for interacting with the Pusher HTTP API.
Pusher(String) - Constructor for class com.pusher.rest.Pusher
 
Pusher(String, String, String) - Constructor for class com.pusher.rest.Pusher
Construct an instance of the Pusher object through which you may interact with the Pusher API.
Pusher(String, String, String, String) - Constructor for class com.pusher.rest.Pusher
Construct an instance of the Pusher object through which you may interact with the Pusher API.
PusherAbstract<T> - Class in com.pusher.rest
Parent class for Pusher clients, deals with anything that isn't IO related.
PusherAbstract(String) - Constructor for class com.pusher.rest.PusherAbstract
 
PusherAbstract(String, String, String) - Constructor for class com.pusher.rest.PusherAbstract
Construct an instance of the Pusher object through which you may interact with the Pusher API.
PusherAbstract(String, String, String, String) - Constructor for class com.pusher.rest.PusherAbstract
Construct an instance of the Pusher object through which you may interact with the Pusher API.
PusherAsync - Class in com.pusher.rest
A library for interacting with the Pusher HTTP API asynchronously.
PusherAsync(String) - Constructor for class com.pusher.rest.PusherAsync
 
PusherAsync(String, String, String) - Constructor for class com.pusher.rest.PusherAsync
Construct an instance of the Pusher object through which you may interact with the Pusher API.
PusherAsync(String, String, String, String) - Constructor for class com.pusher.rest.PusherAsync
Construct an instance of the Pusher object through which you may interact with the Pusher API.
PusherException - Exception Class in com.pusher.rest
 
PusherException(String) - Constructor for exception class com.pusher.rest.PusherException
 

R

Result - Class in com.pusher.rest.data
 
Result.Status - Enum in com.pusher.rest.data
 

S

scheme - Variable in class com.pusher.rest.PusherAbstract
 
secret - Variable in class com.pusher.rest.PusherAbstract
 
SecretBox - Class in com.pusher.rest.crypto.nacl
SecretBox class controls access to TweetNaclFast to prevent users from reaching out to TweetNaclFast.
SecretBox() - Constructor for class com.pusher.rest.crypto.nacl.SecretBox
 
serialise(Object) - Method in class com.pusher.rest.PusherAbstract
This method provides an override point if the default Gson based serialisation is absolutely unsuitable for your use case, even with customisation of the Gson instance doing the serialisation.
SERVER_ERROR - Enum constant in enum com.pusher.rest.data.Result.Status
 
setCluster(String) - Method in class com.pusher.rest.PusherAbstract
For Specifying an alternative cluster.
setCryptoUtil(CryptoUtil) - Method in class com.pusher.rest.PusherAbstract
 
setDataMarshaller(DataMarshaller) - Method in class com.pusher.rest.PusherAbstract
Set a custom marshaller used to serialize Objects passed to PusherAbstract.trigger(List, String, Object) and friends.
setEncrypted(boolean) - Method in class com.pusher.rest.PusherAbstract
Set whether to use a secure connection to the API (SSL).
setGsonSerialiser(Gson) - Method in class com.pusher.rest.PusherAbstract
Set the Gson instance used to marshal Objects passed to PusherAbstract.trigger(List, String, Object) Set the marshaller used to serialize Objects passed to PusherAbstract.trigger(List, String, Object) and friends.
setHost(String) - Method in class com.pusher.rest.PusherAbstract
For testing or specifying an alternative cluster.
setRequestTimeout(int) - Method in class com.pusher.rest.Pusher
Default: 4000
setSharedSecret(String) - Method in class com.pusher.rest.data.AuthData
 
shouldRetry() - Method in enum com.pusher.rest.data.Result.Status
 
sign(String, String) - Static method in class com.pusher.rest.SignatureUtil
 
SignatureUtil - Class in com.pusher.rest
 
SignatureUtil() - Constructor for class com.pusher.rest.SignatureUtil
 
SIGNED_WITH_WRONG_KEY - Enum constant in enum com.pusher.rest.data.Validity
 
signedUri(String, String, String) - Method in class com.pusher.rest.PusherAbstract
If you wanted to send the HTTP API requests manually (e.g.
signedUri(String, String, String, Map<String, String>) - Method in class com.pusher.rest.PusherAbstract
If you wanted to send the HTTP API requests manually (e.g.
SUCCESS - Enum constant in enum com.pusher.rest.data.Result.Status
 

T

trigger(String, String, Object) - Method in class com.pusher.rest.PusherAbstract
Publish a message to a single channel.
trigger(String, String, Object, String) - Method in class com.pusher.rest.PusherAbstract
Publish a message to a single channel, excluding the specified socketId from receiving the message.
trigger(List<Event>) - Method in class com.pusher.rest.PusherAbstract
Publish a batch of different events with a single API call.
trigger(List<String>, String, Object) - Method in class com.pusher.rest.PusherAbstract
Publish identical messages to multiple channels.
trigger(List<String>, String, Object, String) - Method in class com.pusher.rest.PusherAbstract
Publish identical messages to multiple channels, excluding the specified socketId from receiving the message.
TriggerData - Class in com.pusher.rest.data
POJO for JSON encoding of trigger request bodies.
TriggerData(List<String>, String, String, String) - Constructor for class com.pusher.rest.data.TriggerData
 

U

UNKNOWN_ERROR - Enum constant in enum com.pusher.rest.data.Result.Status
 
uri(String, String, String, String, String, String, String, Map<String, String>) - Static method in class com.pusher.rest.SignatureUtil
 

V

VALID - Enum constant in enum com.pusher.rest.data.Validity
 
validateWebhookSignature(String, String, String) - Method in class com.pusher.rest.PusherAbstract
Check the signature on a webhook received from Pusher
Validity - Enum in com.pusher.rest.data
 
valueOf(String) - Static method in enum com.pusher.rest.data.Result.Status
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.pusher.rest.data.Validity
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.pusher.rest.data.Result.Status
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.pusher.rest.data.Validity
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E F G H I K M N O P R S T U V 
All Classes and Interfaces|All Packages|Serialized Form