A B C D E F G H I J K L M N O P Q R S T U V W X

A

accumulate(String, Object) - Method in class javapns.json.JSONObject
Accumulate values under a key.
add(PushedNotification) - Method in class javapns.notification.PushedNotifications
 
add(Payload, String) - Method in class javapns.notification.transmission.NotificationThread
 
add(Payload, Device) - Method in class javapns.notification.transmission.NotificationThread
 
add(PayloadPerDevice) - Method in class javapns.notification.transmission.NotificationThread
 
add(Payload, String) - Method in class javapns.notification.transmission.NotificationThreads
 
add(Payload, Device) - Method in class javapns.notification.transmission.NotificationThreads
 
add(PayloadPerDevice) - Method in class javapns.notification.transmission.NotificationThreads
 
add(Payload, String) - Method in interface javapns.notification.transmission.PushQueue
Queue a message for delivery.
add(Payload, Device) - Method in interface javapns.notification.transmission.PushQueue
Queue a message for delivery.
add(PayloadPerDevice) - Method in interface javapns.notification.transmission.PushQueue
Queue a message for delivery.
addAlert(String) - Method in class javapns.notification.PushNotificationPayload
Add a simple alert message.
addAll(Collection<? extends PushedNotification>) - Method in class javapns.notification.PushedNotifications
 
addBadge(int) - Method in class javapns.notification.PushNotificationPayload
Add a badge.
addCategory(String) - Method in class javapns.notification.PushNotificationPayload
Add a category.
addCustomAlertActionLocKey(String) - Method in class javapns.notification.PushNotificationPayload
Create a custom alert (if none exist) and add a custom text for the right button of the popup.
addCustomAlertBody(String) - Method in class javapns.notification.PushNotificationPayload
Create a custom alert (if none exist) and add a body to the custom alert.
addCustomAlertLaunchImage(String) - Method in class javapns.notification.PushNotificationPayload
Create a custom alert (if none exist) and add a launch-image parameter.
addCustomAlertLocArgs(List) - Method in class javapns.notification.PushNotificationPayload
Create a custom alert (if none exist) and add sub-parameters for the loc-key parameter.
addCustomAlertLocKey(String) - Method in class javapns.notification.PushNotificationPayload
Create a custom alert (if none exist) and add a loc-key parameter.
addCustomDictionary(String, String) - Method in class javapns.notification.Payload
Add a custom dictionnary with a string value
addCustomDictionary(String, int) - Method in class javapns.notification.Payload
Add a custom dictionnary with a int value
addCustomDictionary(String, List) - Method in class javapns.notification.Payload
Add a custom dictionnary with multiple values
addDevice(String, String) - Method in interface javapns.devices.DeviceFactory
Deprecated. Add a device to the map
addDevice(String, String) - Method in class javapns.devices.implementations.basic.BasicDeviceFactory
Deprecated. Add a device to the map
addDevice(String, String) - Method in class javapns.notification.PushNotificationManager
Deprecated. The DeviceFactory-based architecture is deprecated.
addEAPClientConfiguration() - Method in class javapns.notification.management.WiFiPayload
 
addElement(PushedNotification) - Method in class javapns.notification.PushedNotifications
 
addGetCACaps() - Method in class javapns.notification.management.SCEPPayload
 
addIPSec() - Method in class javapns.notification.management.VPNPayload
 
addPPP() - Method in class javapns.notification.management.VPNPayload
 
addSearchSettings(String, String) - Method in class javapns.notification.management.LDAPPayload
 
addSearchSettings(String, int) - Method in class javapns.notification.management.LDAPPayload
 
addSearchSettings(String, int, String) - Method in class javapns.notification.management.LDAPPayload
 
addSearchSettings(String, String, String) - Method in class javapns.notification.management.LDAPPayload
 
addSound(String) - Method in class javapns.notification.PushNotificationPayload
Add a sound.
addSubjectAltName() - Method in class javapns.notification.management.SCEPPayload
 
alert(String) - Static method in class javapns.notification.PushNotificationPayload
Create a pre-defined payload with a simple alert message.
alert(String, Object, String, boolean, Object) - Static method in class javapns.Push
Push a simple alert to one or more devices.
AMP - Static variable in class javapns.json.XML
The Character '&'.
APNPayload - Class in javapns.notification.management
An MDM payload for APN (Access Point Name).
APNPayload(int, String, String, String, Map<String, String>, String, Map<String, String>[], String, String) - Constructor for class javapns.notification.management.APNPayload
 
APOS - Static variable in class javapns.json.XML
The Character '''.
append(String, Object) - Method in class javapns.json.JSONObject
Append values to the array under a key.
AppleFeedbackServer - Interface in javapns.feedback
Interface representing a connection to an Apple Feedback Server
AppleFeedbackServerBasicImpl - Class in javapns.feedback
Basic implementation of the AppleFeedbackServer interface, intended to facilitate rapid deployment.
AppleFeedbackServerBasicImpl(Object, String, boolean) - Constructor for class javapns.feedback.AppleFeedbackServerBasicImpl
Communication settings for interacting with Apple's default production or sandbox feedback server.
AppleFeedbackServerBasicImpl(Object, String, String, boolean) - Constructor for class javapns.feedback.AppleFeedbackServerBasicImpl
Communication settings for interacting with Apple's default production or sandbox feedback server.
AppleFeedbackServerBasicImpl(Object, String, String, String, int) - Constructor for class javapns.feedback.AppleFeedbackServerBasicImpl
Communication settings for interacting with a specific Apple Push Notification Feedback Server.
AppleNotificationServer - Interface in javapns.notification
Interface representing a connection to an Apple Notification Server
AppleNotificationServerBasicImpl - Class in javapns.notification
Basic implementation of the AppleNotificationServer interface, intended to facilitate rapid deployment.
AppleNotificationServerBasicImpl(Object, String, boolean) - Constructor for class javapns.notification.AppleNotificationServerBasicImpl
Communication settings for interacting with Apple's default production or sandbox notification server.
AppleNotificationServerBasicImpl(Object, String, String, boolean) - Constructor for class javapns.notification.AppleNotificationServerBasicImpl
Communication settings for interacting with Apple's default production or sandbox notification server.
AppleNotificationServerBasicImpl(Object, String, String, String, int) - Constructor for class javapns.notification.AppleNotificationServerBasicImpl
Communication settings for interacting with a specific Apple Push Notification Server.
AppleServer - Interface in javapns.communication
Common interface of all classes representing a connection to any Apple server.
AppleServerBasicImpl - Class in javapns.communication
A basic and abstract implementation of the AppleServer interface intended to facilitate rapid deployment.
AppleServerBasicImpl(Object, String, String) - Constructor for class javapns.communication.AppleServerBasicImpl
Constructs a AppleServerBasicImpl object.
array() - Method in class javapns.json.JSONWriter
Begin appending a new array.
asDevices(Object) - Static method in class javapns.devices.Devices
 
asPayloadsPerDevices(Object) - Static method in class javapns.devices.Devices
 
asSimulationOnly() - Method in class javapns.notification.Payload
Enables a special simulation mode which causes the library to behave as usual *except* that at the precise point where the payload would actually be streamed out to Apple, it is not.

B

back() - Method in class javapns.json.JSONTokener
Back up one character.
badge(int) - Static method in class javapns.notification.PushNotificationPayload
Create a pre-defined payload with a badge.
badge(int, Object, String, boolean, Object) - Static method in class javapns.Push
Push a simple badge number to one or more devices.
BANG - Static variable in class javapns.json.XML
The Character '!'.
BasicDevice - Class in javapns.devices.implementations.basic
This class is used to represent a Device (iPhone)
BasicDevice(String) - Constructor for class javapns.devices.implementations.basic.BasicDevice
Default constructor.
BasicDevice(String, boolean) - Constructor for class javapns.devices.implementations.basic.BasicDevice
 
BasicDevice() - Constructor for class javapns.devices.implementations.basic.BasicDevice
 
BasicDevice(String, String, Timestamp) - Constructor for class javapns.devices.implementations.basic.BasicDevice
Constructor
BasicDeviceFactory - Class in javapns.devices.implementations.basic
Deprecated. 
BasicDeviceFactory() - Constructor for class javapns.devices.implementations.basic.BasicDeviceFactory
Deprecated. Constructs a VolatileDeviceFactory

C

CalDAVPayload - Class in javapns.notification.management
An MDM payload for CalDAV.
CalDAVPayload(int, String, String, String, String, String, boolean) - Constructor for class javapns.notification.management.CalDAVPayload
 
CalendarSubscriptionPayload - Class in javapns.notification.management
An MDM payload for CalendarSubscription.
CalendarSubscriptionPayload(int, String, String, String, String, boolean) - Constructor for class javapns.notification.management.CalendarSubscriptionPayload
 
CDL - Class in javapns.json
This provides static methods to convert comma delimited text into a JSONArray, and to covert a JSONArray into comma delimited text.
CDL() - Constructor for class javapns.json.CDL
 
clearPushedNotifications() - Method in class javapns.notification.transmission.NotificationThread
Deprecated. Not thead-safe. use getPushedNotifications(true) instead.
clearPushedNotifications() - Method in class javapns.notification.transmission.NotificationThreads
Deprecated. Not thead-safe. use getPushedNotifications(true) instead.
clearPushedNotifications() - Method in interface javapns.notification.transmission.PushQueue
Deprecated. 
combined(String, int, String) - Static method in class javapns.notification.PushNotificationPayload
Create a pre-defined payload with a simple alert message, a badge and a sound.
combined(String, int, String, Object, String, boolean, Object) - Static method in class javapns.Push
Push a notification combining an alert, a badge and a sound.
CommunicationException - Exception in javapns.communication.exceptions
General exception indicating that the library experienced some problem related to communication (sockets, SSL, etc.) with APNS servers.
CommunicationException(String, Exception) - Constructor for exception javapns.communication.exceptions.CommunicationException
 
complex() - Static method in class javapns.notification.PushNotificationPayload
Create an empty payload which you can configure later.
ConnectionToAppleServer - Class in javapns.communication
Class representing an abstract connection to an Apple server
ConnectionToAppleServer(AppleServer) - Constructor for class javapns.communication.ConnectionToAppleServer
Builds a connection to an Apple server.
ConnectionToAppleServer(AppleServer, KeyStore) - Constructor for class javapns.communication.ConnectionToAppleServer
Builds a connection to an Apple server.
ConnectionToFeedbackServer - Class in javapns.feedback
Class representing a connection to a specific Feedback Server.
ConnectionToFeedbackServer(AppleFeedbackServer) - Constructor for class javapns.feedback.ConnectionToFeedbackServer
 
ConnectionToFeedbackServer(AppleNotificationServer, KeyStore) - Constructor for class javapns.feedback.ConnectionToFeedbackServer
 
ConnectionToNotificationServer - Class in javapns.notification
Connection details specific to the Notification Service.
ConnectionToNotificationServer(AppleNotificationServer) - Constructor for class javapns.notification.ConnectionToNotificationServer
 
ConnectionToNotificationServer(AppleNotificationServer, KeyStore) - Constructor for class javapns.notification.ConnectionToNotificationServer
 
contentAvailable() - Static method in class javapns.notification.NewsstandNotificationPayload
Create a pre-defined payload with a content-available property set to 1.
contentAvailable(Object, String, boolean, Object) - Static method in class javapns.Push
Push a content-available notification for Newsstand.
Cookie - Class in javapns.json
Convert a web browser cookie specification to a JSONObject and back.
Cookie() - Constructor for class javapns.json.Cookie
 
CookieList - Class in javapns.json
Convert a web browser cookie list string to a JSONObject and back.
CookieList() - Constructor for class javapns.json.CookieList
 
createSSLSocketFactory() - Method in class javapns.communication.ConnectionToAppleServer
Return a SSLSocketFactory for creating sockets to communicate with Apple.
CRLF - Static variable in class javapns.json.HTTP
Carriage return/line feed.

D

DEBUGGING_PROGRESS_LISTENER - Static variable in class javapns.test.NotificationTest
A NotificationProgressListener you can use to debug NotificationThreads.
dehexchar(char) - Static method in class javapns.json.JSONTokener
Get the hex value of a character (base16).
DEVELOPMENT_HOST - Static variable in interface javapns.feedback.AppleFeedbackServer
 
DEVELOPMENT_HOST - Static variable in interface javapns.notification.AppleNotificationServer
 
DEVELOPMENT_PORT - Static variable in interface javapns.feedback.AppleFeedbackServer
 
DEVELOPMENT_PORT - Static variable in interface javapns.notification.AppleNotificationServer
 
Device - Interface in javapns.devices
This is the common interface for all Devices.
DeviceFactory - Interface in javapns.devices
Deprecated. Phasing out DeviceFactory because it has become irrelevant in the new library architecture
Devices - Class in javapns.devices
 
Devices() - Constructor for class javapns.devices.Devices
 
doubleToString(double) - Static method in class javapns.json.JSONObject
Produce a string from a double.
DuplicateDeviceException - Exception in javapns.devices.exceptions
Deprecated. 
DuplicateDeviceException() - Constructor for exception javapns.devices.exceptions.DuplicateDeviceException
Deprecated. Constructor
DuplicateDeviceException(String) - Constructor for exception javapns.devices.exceptions.DuplicateDeviceException
Deprecated. Constructor with custom message

E

EmailPayload - Class in javapns.notification.management
An MDM payload for Email.
EmailPayload(int, String, String, String, String, String, String, String, String, String, String, String) - Constructor for class javapns.notification.management.EmailPayload
 
encodeProxyAuthorization(String, String) - Static method in class javapns.communication.ProxyManager
 
endArray() - Method in class javapns.json.JSONWriter
End an array.
endObject() - Method in class javapns.json.JSONWriter
End an object.
entity - Static variable in class javapns.json.XMLTokener
The table of entity values.
EQ - Static variable in class javapns.json.XML
The Character '='.
ErrorResponsePacketReceivedException - Exception in javapns.notification.exceptions
Specific exception indicating that the library received an error-response packet from Apple.
ErrorResponsePacketReceivedException(ResponsePacket) - Constructor for exception javapns.notification.exceptions.ErrorResponsePacketReceivedException
 
escape(String) - Static method in class javapns.json.Cookie
Produce a copy of a string in which the characters '+', '%', '=', ';' and control characters are replaced with "%hh".
escape(String) - Static method in class javapns.json.XML
Replace special characters with XML escapes:
estimatePayloadSizeAfterAdding(String, Object) - Method in class javapns.notification.Payload
Estimate the size that this payload will take after adding a given property.
evaluateEfficiency(List<T>) - Static method in class javapns.devices.Devices
 
eventAllThreadsFinished(NotificationThreads) - Method in interface javapns.notification.transmission.NotificationProgressListener
 
eventAllThreadsStarted(NotificationThreads) - Method in interface javapns.notification.transmission.NotificationProgressListener
 
eventConnectionRestarted(NotificationThread) - Method in interface javapns.notification.transmission.NotificationProgressListener
 
eventCriticalException(NotificationThread, Exception) - Method in interface javapns.notification.transmission.NotificationProgressListener
 
eventThreadFinished(NotificationThread) - Method in interface javapns.notification.transmission.NotificationProgressListener
 
eventThreadStarted(NotificationThread) - Method in interface javapns.notification.transmission.NotificationProgressListener
 

F

feedback(Object, String, boolean) - Static method in class javapns.Push
Retrieve a list of devices that should be removed from future notification lists.
FeedbackServiceManager - Class in javapns.feedback
Class for interacting with a specific Feedback Service.
FeedbackServiceManager(DeviceFactory) - Constructor for class javapns.feedback.FeedbackServiceManager
Deprecated. The DeviceFactory-based architecture is deprecated.
FeedbackServiceManager() - Constructor for class javapns.feedback.FeedbackServiceManager
Constructs a FeedbackServiceManager with a default basic DeviceFactory.
FeedbackTest - Class in javapns.test
A command-line test facility for the Feedback Service.
findFailedNotifications(List<PushedNotification>) - Static method in class javapns.notification.PushedNotification
Filters a list of pushed notifications and returns only the ones that failed.
findSuccessfulNotifications(List<PushedNotification>) - Static method in class javapns.notification.PushedNotification
Filters a list of pushed notifications and returns only the ones that were successful.
fromJSON(String) - Static method in class javapns.notification.PushNotificationPayload
Create a PushNotificationPayload object from a preformatted JSON payload.

G

get(int) - Method in class javapns.json.JSONArray
Get the object value associated with an index.
get(String) - Method in class javapns.json.JSONObject
Get the value object associated with a key.
getBoolean(int) - Method in class javapns.json.JSONArray
Get the boolean value associated with an index.
getBoolean(String) - Method in class javapns.json.JSONObject
Get the boolean value associated with a key.
getCause() - Method in exception javapns.json.JSONException
 
getCharacterEncoding() - Method in class javapns.notification.Payload
Returns the character encoding that will be used by getPayloadAsBytes().
getCommand() - Method in class javapns.notification.ResponsePacket
Returns the response's command number.
getCriticalException() - Method in class javapns.notification.transmission.NotificationThread
If this thread experienced a critical exception (communication error, keystore issue, etc.), this method returns the exception.
getCriticalExceptions() - Method in class javapns.notification.transmission.NotificationThread
Wrap a critical exception (if any occurred) into a List to satisfy the NotificationQueue interface contract.
getCriticalExceptions() - Method in class javapns.notification.transmission.NotificationThreads
Get a list of critical exceptions that threads experienced.
getCriticalExceptions() - Method in interface javapns.notification.transmission.PushQueue
Get a list of critical exceptions that underlying threads experienced.
getDelayBetweenThreads() - Method in class javapns.notification.transmission.NotificationThreads
Get the amount of time that the library will wait after starting a thread and before starting the next one.
getDevice(String) - Method in interface javapns.devices.DeviceFactory
Deprecated. Get a device according to his id
getDevice(String) - Method in class javapns.devices.implementations.basic.BasicDeviceFactory
Deprecated. Get a device according to his id
getDevice() - Method in class javapns.notification.PayloadPerDevice
 
getDevice() - Method in class javapns.notification.PushedNotification
Returns the device that the payload was pushed to.
getDevice(String) - Method in class javapns.notification.PushNotificationManager
Deprecated. The DeviceFactory-based architecture is deprecated.
getDeviceFactory() - Method in class javapns.feedback.FeedbackServiceManager
Deprecated. The DeviceFactory-based architecture is deprecated.
getDeviceFactory() - Method in class javapns.notification.PushNotificationManager
Deprecated. The DeviceFactory-based architecture is deprecated.
getDeviceId() - Method in interface javapns.devices.Device
An id representing a particular device.
getDeviceId() - Method in class javapns.devices.implementations.basic.BasicDevice
Getter
getDevices(AppleFeedbackServer) - Method in class javapns.feedback.FeedbackServiceManager
 
getDevices() - Method in class javapns.notification.transmission.NotificationThread
Get the list of devices associated with this thread.
getDouble(int) - Method in class javapns.json.JSONArray
Get the double value associated with an index.
getDouble(String) - Method in class javapns.json.JSONObject
Get the double value associated with a key.
getException() - Method in class javapns.notification.PushedNotification
Get the exception that occurred while trying to push this notification, if any.
getExpiry() - Method in class javapns.notification.Payload
Return the number of seconds after which this payload should expire.
getExpiry() - Method in class javapns.notification.PushedNotification
Returns the expiration date of the push notification.
getFailedNotifications() - Method in class javapns.notification.PushedNotifications
Filter a list of pushed notifications and return only the ones that failed.
getFailedNotifications() - Method in class javapns.notification.transmission.NotificationThread
Deprecated. Not thead-safe. use getPushedNotifications(true).getFailedNotifications() instead.
getFailedNotifications() - Method in class javapns.notification.transmission.NotificationThreads
Deprecated. Not thead-safe. use getPushedNotifications(true).getFailedNotifications() instead.
getFeedbackServerHost() - Method in interface javapns.feedback.AppleFeedbackServer
 
getFeedbackServerHost() - Method in class javapns.feedback.AppleFeedbackServerBasicImpl
 
getFeedbackServerPort() - Method in interface javapns.feedback.AppleFeedbackServer
 
getFeedbackServerPort() - Method in class javapns.feedback.AppleFeedbackServerBasicImpl
 
getFirstMessageIdentifier() - Method in class javapns.notification.transmission.NotificationThread
Returns the first message identifier generated by this thread.
getIdentifier() - Method in class javapns.notification.PushedNotification
Returns the connection-unique identifier referred to by error-response packets.
getIdentifier() - Method in class javapns.notification.ResponsePacket
Returns the response's identifier, which matches the pushed notification's.
getInt(int) - Method in class javapns.json.JSONArray
Get the int value associated with an index.
getInt(String) - Method in class javapns.json.JSONObject
Get the int value associated with a key.
getJSONArray(int) - Method in class javapns.json.JSONArray
Get the JSONArray associated with an index.
getJSONArray(String) - Method in class javapns.json.JSONObject
Get the JSONArray value associated with a key.
getJSONObject(int) - Method in class javapns.json.JSONArray
Get the JSONObject associated with an index.
getJSONObject(String) - Method in class javapns.json.JSONObject
Get the JSONObject value associated with a key.
getKeystore() - Method in class javapns.communication.ConnectionToAppleServer
 
getKeystorePassword() - Method in interface javapns.communication.AppleServer
Returns the keystore's password.
getKeystorePassword() - Method in class javapns.communication.AppleServerBasicImpl
 
getKeystoreStream() - Method in interface javapns.communication.AppleServer
Returns a stream to a keystore.
getKeystoreStream() - Method in class javapns.communication.AppleServerBasicImpl
 
getKeystoreType() - Method in interface javapns.communication.AppleServer
Returns the format used to produce the keystore (typically PKCS12).
getKeystoreType() - Method in class javapns.communication.AppleServerBasicImpl
 
getKeystoreType() - Static method in class javapns.communication.ConnectionToAppleServer
 
getLastMessageIdentifier() - Method in class javapns.notification.transmission.NotificationThread
Returns the last message identifier generated by this thread.
getLastRegister() - Method in interface javapns.devices.Device
 
getLastRegister() - Method in class javapns.devices.implementations.basic.BasicDevice
Getter
getLatestTransmissionAttempt() - Method in class javapns.notification.PushedNotification
Returns a human-friendly description of the number of attempts made to transmit the notification.
getListener() - Method in class javapns.notification.transmission.NotificationThread
 
getListener() - Method in class javapns.notification.transmission.NotificationThreads
Get the progress listener, if any is attached.
getLong(int) - Method in class javapns.json.JSONArray
Get the long value associated with an index.
getLong(String) - Method in class javapns.json.JSONObject
Get the long value associated with a key.
getMaximumPayloadSize() - Method in class javapns.notification.Payload
Return the maximum payload size in bytes.
getMaximumPayloadSize() - Method in class javapns.notification.PushNotificationPayload
Return the maximum payload size in bytes.
getMaxNotificationsPerConnection() - Method in class javapns.notification.transmission.NotificationThread
 
getMaxRetained() - Method in class javapns.notification.PushedNotifications
Get the maximum number of objects that this list retains.
getMessage() - Method in class javapns.notification.ResponsePacket
Returns a humand-friendly error message, as documented by Apple.
getMessages() - Method in class javapns.notification.transmission.NotificationThread
Get the messages associated with this thread, if any.
getNames(JSONObject) - Static method in class javapns.json.JSONObject
Get an array of field names from a JSONObject.
getNames(Object) - Static method in class javapns.json.JSONObject
Get an array of field names from an Object.
getNotificationServerHost() - Method in interface javapns.notification.AppleNotificationServer
 
getNotificationServerHost() - Method in class javapns.notification.AppleNotificationServerBasicImpl
 
getNotificationServerPort() - Method in interface javapns.notification.AppleNotificationServer
 
getNotificationServerPort() - Method in class javapns.notification.AppleNotificationServerBasicImpl
 
getPacket() - Method in exception javapns.notification.exceptions.ErrorResponsePacketReceivedException
 
getPayload() - Method in class javapns.notification.Payload
Get the actual JSON object backing this payload.
getPayload() - Method in class javapns.notification.PayloadPerDevice
 
getPayload() - Method in class javapns.notification.PushedNotification
Returns the payload that was pushed.
getPayloadAsBytes() - Method in class javapns.notification.Payload
Get this payload as a byte array using the preconfigured character encoding.
getPayloadSize() - Method in class javapns.notification.Payload
Get the number of bytes that the payload will occupy when streamed.
getProxyAuthorization() - Method in interface javapns.communication.AppleServer
Get the proxy authorization (if any) currently configured for this specific server.
getProxyAuthorization() - Method in class javapns.communication.AppleServerBasicImpl
 
getProxyAuthorization(AppleServer) - Static method in class javapns.communication.ProxyManager
Get the proxy authorization currently configured.
getProxyHost() - Method in interface javapns.communication.AppleServer
Get the proxy host address currently configured for this specific server.
getProxyHost() - Method in class javapns.communication.AppleServerBasicImpl
 
getProxyHost(AppleServer) - Static method in class javapns.communication.ProxyManager
Get the proxy host address currently configured.
getProxyPort() - Method in interface javapns.communication.AppleServer
Get the proxy port currently configured for this specific server.
getProxyPort() - Method in class javapns.communication.AppleServerBasicImpl
 
getProxyPort(AppleServer) - Static method in class javapns.communication.ProxyManager
Get the proxy port currently configured.
getPushedNotifications(boolean) - Method in class javapns.notification.transmission.NotificationThread
Returns a list of all notifications pushed by this thread (successful or not).
getPushedNotifications(boolean) - Method in class javapns.notification.transmission.NotificationThreads
Get a list of all notifications pushed by all threads.
getPushedNotifications(boolean) - Method in interface javapns.notification.transmission.PushQueue
Get a list of all notifications pushed through this queue.
getResponse() - Method in class javapns.notification.PushedNotification
If a response packet regarding this notification was received, this method returns it.
getRestartConnectionAfterInactivity() - Static method in class javapns.notification.PushNotificationManager
 
getRetryAttempts() - Method in class javapns.notification.PushNotificationManager
Get the number of retry attempts
getServer() - Method in class javapns.communication.ConnectionToAppleServer
 
getServerHost() - Method in class javapns.communication.ConnectionToAppleServer
 
getServerHost() - Method in class javapns.feedback.ConnectionToFeedbackServer
 
getServerHost() - Method in class javapns.notification.ConnectionToNotificationServer
 
getServerPort() - Method in class javapns.communication.ConnectionToAppleServer
 
getServerPort() - Method in class javapns.feedback.ConnectionToFeedbackServer
 
getServerPort() - Method in class javapns.notification.ConnectionToNotificationServer
 
getSleepBetweenNotifications() - Method in class javapns.notification.transmission.NotificationThread
 
getSSLSocket() - Method in class javapns.communication.ConnectionToAppleServer
Create a SSLSocket which will be used to send data to Apple
getSSLSocketFactory() - Method in class javapns.communication.ConnectionToAppleServer
 
getSslSocketTimeout() - Method in class javapns.feedback.FeedbackServiceManager
Get the SSL socket timeout currently in use.
getSslSocketTimeout() - Method in class javapns.notification.PushNotificationManager
Get the SSL socket timeout currently in use.
getStatus() - Method in class javapns.notification.ResponsePacket
Returns the response's status code (see getMessage() for a human-friendly status message instead).
getString(int) - Method in class javapns.json.JSONArray
Get the string associated with an index.
getString(String) - Method in class javapns.json.JSONObject
Get the string associated with a key.
getSuccessfulNotifications() - Method in class javapns.notification.PushedNotifications
Filter a list of pushed notifications and return only the ones that were successful.
getSuccessfulNotifications() - Method in class javapns.notification.transmission.NotificationThread
Deprecated. Not thead-safe. use getPushedNotifications(true).getSuccessfulNotifications() instead.
getSuccessfulNotifications() - Method in class javapns.notification.transmission.NotificationThreads
Deprecated. Not thead-safe. use getPushedNotifications(true).getSuccessfulNotifications() instead.
getThreadNumber() - Method in class javapns.notification.transmission.NotificationThread
Return the thread number assigned by the parent NotificationThreads object, if any.
getThreads() - Method in class javapns.notification.transmission.NotificationThreads
Get a list of threads created to push notifications.
getToken() - Method in interface javapns.devices.Device
A device token.
getToken() - Method in class javapns.devices.implementations.basic.BasicDevice
Getter
getTransmissionAttempts() - Method in class javapns.notification.PushedNotification
Returns the number of attempts that have been made to transmit the notification.
GT - Static variable in class javapns.json.XML
The Character '>'.

H

has(String) - Method in class javapns.json.JSONObject
Determine if the JSONObject contains a specific key.
HTTP - Class in javapns.json
Convert an HTTP header to a JSONObject and back.
HTTP() - Constructor for class javapns.json.HTTP
 
HTTPTokener - Class in javapns.json
The HTTPTokener extends the JSONTokener to provide additional methods for the parsing of HTTP headers.
HTTPTokener(String) - Constructor for class javapns.json.HTTPTokener
Construct an HTTPTokener from a string.

I

initializeConnection(AppleNotificationServer) - Method in class javapns.notification.PushNotificationManager
Initialize a connection and create a SSLSocket
initializePreviousConnection() - Method in class javapns.notification.PushNotificationManager
Initialize a connection using server settings from the previous connection.
InvalidCertificateChainException - Exception in javapns.communication.exceptions
Specific exception indicating that the library was not able to connect to APNS servers, most likely because the certificate chain contained in the keystore you provided is invalid.
InvalidCertificateChainException() - Constructor for exception javapns.communication.exceptions.InvalidCertificateChainException
Constructor
InvalidCertificateChainException(String) - Constructor for exception javapns.communication.exceptions.InvalidCertificateChainException
Constructor with custom message
InvalidCertificateChainException(String, Exception) - Constructor for exception javapns.communication.exceptions.InvalidCertificateChainException
Constructor with custom message
InvalidDeviceTokenFormatException - Exception in javapns.devices.exceptions
Specific exception indicating that the library detected a malformed device token.
InvalidDeviceTokenFormatException(String) - Constructor for exception javapns.devices.exceptions.InvalidDeviceTokenFormatException
 
InvalidDeviceTokenFormatException(String, String) - Constructor for exception javapns.devices.exceptions.InvalidDeviceTokenFormatException
 
InvalidKeystoreFormatException - Exception in javapns.communication.exceptions
Specific exception indicating that the library was not able to connect to APNS servers, most likely because the keystore you provided might not be in the required format.
InvalidKeystoreFormatException() - Constructor for exception javapns.communication.exceptions.InvalidKeystoreFormatException
Constructor
InvalidKeystoreFormatException(String) - Constructor for exception javapns.communication.exceptions.InvalidKeystoreFormatException
Constructor with custom message
InvalidKeystorePasswordException - Exception in javapns.communication.exceptions
Specific exception indicating that the library was not able to connect to APNS servers, most likely because the keystore password you provided does not match your keystore.
InvalidKeystorePasswordException() - Constructor for exception javapns.communication.exceptions.InvalidKeystorePasswordException
Constructor
InvalidKeystorePasswordException(String) - Constructor for exception javapns.communication.exceptions.InvalidKeystorePasswordException
Constructor with custom message
InvalidKeystoreReferenceException - Exception in javapns.communication.exceptions
Specific exception indicating that the library was not able to locate a viable keystore based on the keystore parameter you provided.
InvalidKeystoreReferenceException() - Constructor for exception javapns.communication.exceptions.InvalidKeystoreReferenceException
Constructor
InvalidKeystoreReferenceException(Object) - Constructor for exception javapns.communication.exceptions.InvalidKeystoreReferenceException
Constructor with custom message
InvalidKeystoreReferenceException(String) - Constructor for exception javapns.communication.exceptions.InvalidKeystoreReferenceException
Constructor with custom message
isBusy() - Method in class javapns.notification.transmission.NotificationThread
Determine if this thread is busy.
isErrorResponsePacket() - Method in class javapns.notification.ResponsePacket
Determine if this packet is an error-response packet.
isEstimatedPayloadSizeAllowedAfterAdding(String, Object) - Method in class javapns.notification.Payload
Validate if the estimated payload size after adding a given property will be allowed.
isNull(int) - Method in class javapns.json.JSONArray
Determine if the value is null.
isNull(String) - Method in class javapns.json.JSONObject
Determine if the value associated with the key is null or if there is no value.
isPayloadSizeEstimatedWhenAdding() - Method in class javapns.notification.Payload
Indicates if payload size is estimated and controlled when adding properties (default is false).
isResendFeatureEnabled() - Static method in class javapns.notification.PushNotificationManager
 
isSuccessful() - Method in class javapns.notification.PushedNotification
Returns true if no response packet was received for this notification, or if one was received but is not an error-response (ie command 8), or if one was received but its status is 0 (no error occurred).
isTransmissionCompleted() - Method in class javapns.notification.PushedNotification
Indicates if the notification has been streamed successfully to Apple's server.
isUsingProxy(AppleServer) - Static method in class javapns.communication.ProxyManager
Determine if a proxy is currently configured.
isValidErrorMessage() - Method in class javapns.notification.ResponsePacket
Determine if this packet is a valid error-response packet.

J

javapns - package javapns
The JavaPNS library
javapns.communication - package javapns.communication
Classes for communicating with Apple servers.
javapns.communication.exceptions - package javapns.communication.exceptions
Communication-related exceptions thrown by the JavaPNS library.
javapns.devices - package javapns.devices
Classes representing mobile devices.
javapns.devices.exceptions - package javapns.devices.exceptions
Device-related exceptions thrown by the JavaPNS library.
javapns.devices.implementations.basic - package javapns.devices.implementations.basic
A basic non-persistent implementation for devices.
javapns.feedback - package javapns.feedback
Classes for interacting with the Apple Feedback Service.
javapns.json - package javapns.json
A built-in implementation of the JSON.org library.
javapns.notification - package javapns.notification
Classes for pushing notifications through Apple servers.
javapns.notification.exceptions - package javapns.notification.exceptions
Notification-related exceptions thrown by the JavaPNS library.
javapns.notification.management - package javapns.notification.management
Specific payloads for Apple's MDM technology
javapns.notification.transmission - package javapns.notification.transmission
Specialized classes for transmitting notifications to large number of devices.
javapns.test - package javapns.test
Testing tools for the JavaPNS library.
join(String) - Method in class javapns.json.JSONArray
Make a string from the contents of this JSONArray.
JSONArray - Class in javapns.json
A JSONArray is an ordered sequence of values.
JSONArray() - Constructor for class javapns.json.JSONArray
Construct an empty JSONArray.
JSONArray(JSONTokener) - Constructor for class javapns.json.JSONArray
Construct a JSONArray from a JSONTokener.
JSONArray(String) - Constructor for class javapns.json.JSONArray
Construct a JSONArray from a source JSON text.
JSONArray(Collection) - Constructor for class javapns.json.JSONArray
Construct a JSONArray from a Collection.
JSONArray(Collection, boolean) - Constructor for class javapns.json.JSONArray
Construct a JSONArray from a collection of beans.
JSONArray(Object) - Constructor for class javapns.json.JSONArray
Construct a JSONArray from an array
JSONArray(Object, boolean) - Constructor for class javapns.json.JSONArray
Construct a JSONArray from an array with a bean.
JSONException - Exception in javapns.json
The JSONException is thrown by the JSON.org classes then things are amiss.
JSONException(String) - Constructor for exception javapns.json.JSONException
Constructs a JSONException with an explanatory message.
JSONException(Throwable) - Constructor for exception javapns.json.JSONException
 
JSONML - Class in javapns.json
This provides static methods to convert an XML text into a JSONArray or JSONObject, and to covert a JSONArray or JSONObject into an XML text using the JsonML transform.
JSONML() - Constructor for class javapns.json.JSONML
 
JSONNull - Class in javapns.json
 
JSONNull() - Constructor for class javapns.json.JSONNull
 
JSONObject - Class in javapns.json
A JSONObject is an unordered collection of name/value pairs.
JSONObject() - Constructor for class javapns.json.JSONObject
Construct an empty JSONObject.
JSONObject(JSONObject, String[]) - Constructor for class javapns.json.JSONObject
Construct a JSONObject from a subset of another JSONObject.
JSONObject(JSONTokener) - Constructor for class javapns.json.JSONObject
Construct a JSONObject from a JSONTokener.
JSONObject(Map) - Constructor for class javapns.json.JSONObject
Construct a JSONObject from a Map.
JSONObject(Map, boolean) - Constructor for class javapns.json.JSONObject
Construct a JSONObject from a Map.
JSONObject(Object) - Constructor for class javapns.json.JSONObject
Construct a JSONObject from an Object using bean getters.
JSONObject(Object, boolean) - Constructor for class javapns.json.JSONObject
Construct a JSONObject from an Object using bean getters.
JSONObject(Object, String[]) - Constructor for class javapns.json.JSONObject
Construct a JSONObject from an Object, using reflection to find the public members.
JSONObject(String) - Constructor for class javapns.json.JSONObject
Construct a JSONObject from a source JSON text string.
JSONRawValue - Interface in javapns.json
 
JSONString - Interface in javapns.json
The JSONString interface allows a toJSONString() method so that a class can change the behavior of JSONObject.toString(), JSONArray.toString(), and JSONWriter.value(Object).
JSONStringer - Class in javapns.json
JSONStringer provides a quick and convenient way of producing JSON text.
JSONStringer() - Constructor for class javapns.json.JSONStringer
Make a fresh JSONStringer.
JSONTokener - Class in javapns.json
A JSONTokener takes a source string and extracts characters and tokens from it.
JSONTokener(Reader) - Constructor for class javapns.json.JSONTokener
Construct a JSONTokener from a string.
JSONTokener(String) - Constructor for class javapns.json.JSONTokener
Construct a JSONTokener from a string.
JSONWriter - Class in javapns.json
JSONWriter provides a quick and convenient way of producing JSON text.
JSONWriter(Writer) - Constructor for class javapns.json.JSONWriter
Make a fresh JSONWriter.

K

key(String) - Method in class javapns.json.JSONWriter
Append a key.
keys() - Method in class javapns.json.JSONObject
Get an enumeration of the keys of the JSONObject.
KEYSTORE_TYPE_JKS - Static variable in class javapns.communication.ConnectionToAppleServer
 
KEYSTORE_TYPE_PKCS12 - Static variable in class javapns.communication.ConnectionToAppleServer
 
KeystoreException - Exception in javapns.communication.exceptions
General exception indicating that the library experienced some problem related to your keystore, usually when attempting to read and load it.
KeystoreException(String) - Constructor for exception javapns.communication.exceptions.KeystoreException
Constructor with custom message
KeystoreException(String, Exception) - Constructor for exception javapns.communication.exceptions.KeystoreException
Constructor with custom message
KeystoreManager - Class in javapns.communication
Class responsible for dealing with keystores.
KeystoreManager() - Constructor for class javapns.communication.KeystoreManager
 

L

LDAPPayload - Class in javapns.notification.management
An MDM payload for LDAP.
LDAPPayload(int, String, String, String, String, boolean) - Constructor for class javapns.notification.management.LDAPPayload
 
length() - Method in class javapns.json.JSONArray
Get the number of elements in the JSONArray, included nulls.
length() - Method in class javapns.json.JSONObject
Get the number of keys stored in the JSONObject.
loadKeystore(AppleServer, Object, boolean) - Static method in class javapns.communication.KeystoreManager
Loads a keystore.
logger - Static variable in class javapns.devices.Devices
 
LT - Static variable in class javapns.json.XML
The Character '<'.

M

main(String[]) - Static method in class javapns.json.Test
Entry point.
main(String[]) - Static method in class javapns.test.FeedbackTest
Execute this class from the command line to run tests.
main(String[]) - Static method in class javapns.test.NotificationTest
Execute this class from the command line to run tests.
main(String[]) - Static method in class javapns.test.SpecificNotificationTests
Execute this class from the command line to run tests.
MobileConfigPayload - Class in javapns.notification.management
A payload template compatible with Apple Mobile Device Management's Config Payload specification (beta version).
MobileConfigPayload(int, String, String, String, String) - Constructor for class javapns.notification.management.MobileConfigPayload
 
MobileConfigPayload(int, String, String, String, String, String) - Constructor for class javapns.notification.management.MobileConfigPayload
 
more() - Method in class javapns.json.JSONTokener
Determine if the source string still contains characters that next() can consume.

N

names() - Method in class javapns.json.JSONObject
Produce a JSONArray containing the names of the elements of this JSONObject.
newMessageIdentifier() - Method in class javapns.notification.transmission.NotificationThread
Return a new sequential message identifier.
NewsstandNotificationPayload - Class in javapns.notification
A Newsstand-specific payload compatible with the Apple Push Notification Service.
next() - Method in class javapns.json.JSONTokener
Get the next character in the source string.
next(char) - Method in class javapns.json.JSONTokener
Consume the next character, and check that it matches a specified character.
next(int) - Method in class javapns.json.JSONTokener
Get the next n characters.
nextCDATA() - Method in class javapns.json.XMLTokener
Get the text in the CDATA block.
nextClean() - Method in class javapns.json.JSONTokener
Get the next char in the string, skipping whitespace.
nextContent() - Method in class javapns.json.XMLTokener
Get the next XML outer token, trimming whitespace.
nextEntity(char) - Method in class javapns.json.XMLTokener
Return the next entity.
nextMeta() - Method in class javapns.json.XMLTokener
Returns the next XML meta token.
nextString(char) - Method in class javapns.json.JSONTokener
Return the characters up to the next close quote character.
nextTo(char) - Method in class javapns.json.JSONTokener
Get the text up but not including the specified character or the end of line, whichever comes first.
nextTo(String) - Method in class javapns.json.JSONTokener
Get the text up but not including one of the specified delimiter characters or the end of line, whichever comes first.
nextToken() - Method in class javapns.json.HTTPTokener
Get the next token or string.
nextToken() - Method in class javapns.json.XMLTokener
Get the next XML Token.
nextValue() - Method in class javapns.json.JSONTokener
Get the next value.
noSpace(String) - Static method in class javapns.json.XML
Throw an exception if the string contains whitespace.
NotificationProgressListener - Interface in javapns.notification.transmission
An event listener for monitoring progress of NotificationThreads
NotificationTest - Class in javapns.test
A command-line test facility for the Push Notification Service.
NotificationThread - Class in javapns.notification.transmission
Pushes payloads asynchroneously using a dedicated thread.
NotificationThread(NotificationThreads, PushNotificationManager, AppleNotificationServer, Payload, Object) - Constructor for class javapns.notification.transmission.NotificationThread
Create a grouped thread in LIST mode for pushing a single payload to a list of devices and coordinating with a parent NotificationThreads object.
NotificationThread(NotificationThreads, PushNotificationManager, AppleNotificationServer, Object) - Constructor for class javapns.notification.transmission.NotificationThread
Create a grouped thread in LIST mode for pushing individual payloads to a list of devices and coordinating with a parent NotificationThreads object.
NotificationThread(PushNotificationManager, AppleNotificationServer, Payload, Object) - Constructor for class javapns.notification.transmission.NotificationThread
Create a standalone thread in LIST mode for pushing a single payload to a list of devices.
NotificationThread(PushNotificationManager, AppleNotificationServer, Object) - Constructor for class javapns.notification.transmission.NotificationThread
Create a standalone thread in LIST mode for pushing individual payloads to a list of devices.
NotificationThread(NotificationThreads, PushNotificationManager, AppleNotificationServer) - Constructor for class javapns.notification.transmission.NotificationThread
Create a grouped thread in QUEUE mode, awaiting messages to push.
NotificationThread(PushNotificationManager, AppleNotificationServer) - Constructor for class javapns.notification.transmission.NotificationThread
Create a standalone thread in QUEUE mode, awaiting messages to push.
NotificationThread(AppleNotificationServer) - Constructor for class javapns.notification.transmission.NotificationThread
Create a standalone thread in QUEUE mode, awaiting messages to push.
NotificationThread.MODE - Enum in javapns.notification.transmission
Working modes supported by Notification Threads.
NotificationThreads - Class in javapns.notification.transmission
Pushes a payload to a large number of devices using multiple threads
NotificationThreads(AppleNotificationServer, Payload, List<Device>, int) - Constructor for class javapns.notification.transmission.NotificationThreads
Create the specified number of notification threads and spread the devices evenly between the threads.
NotificationThreads(AppleNotificationServer, List<PayloadPerDevice>, int) - Constructor for class javapns.notification.transmission.NotificationThreads
Create the specified number of notification threads and spread the messages evenly between the threads.
NotificationThreads(Object, String, boolean, Payload, List<Device>, int) - Constructor for class javapns.notification.transmission.NotificationThreads
Create the specified number of notification threads and spread the devices evenly between the threads.
NotificationThreads(AppleNotificationServer, Payload, List<Device>, List<NotificationThread>) - Constructor for class javapns.notification.transmission.NotificationThreads
Spread the devices evenly between the provided threads.
NotificationThreads(Object, String, boolean, Payload, List<Device>, List<NotificationThread>) - Constructor for class javapns.notification.transmission.NotificationThreads
Spread the devices evenly between the provided threads.
NotificationThreads(AppleNotificationServer, Payload, List<NotificationThread>) - Constructor for class javapns.notification.transmission.NotificationThreads
Use the provided threads which should already each have their group of devices to work with.
NotificationThreads(Object, String, boolean, Payload, List<NotificationThread>) - Constructor for class javapns.notification.transmission.NotificationThreads
Use the provided threads which should already each have their group of devices to work with.
NotificationThreads(AppleNotificationServer, int) - Constructor for class javapns.notification.transmission.NotificationThreads
Create a pool of notification threads in QUEUE mode.
NULL - Static variable in class javapns.json.JSONObject
It is sometimes more convenient and less ambiguous to have a NULL object than to use Java's null value.
NullDeviceTokenException - Exception in javapns.devices.exceptions
Deprecated. 
NullDeviceTokenException() - Constructor for exception javapns.devices.exceptions.NullDeviceTokenException
Deprecated. Constructor
NullDeviceTokenException(String) - Constructor for exception javapns.devices.exceptions.NullDeviceTokenException
Deprecated. Constructor with custom message
NullIdException - Exception in javapns.devices.exceptions
Deprecated. 
NullIdException() - Constructor for exception javapns.devices.exceptions.NullIdException
Deprecated. Constructor
NullIdException(String) - Constructor for exception javapns.devices.exceptions.NullIdException
Deprecated. Constructor with custom message
numberToString(Number) - Static method in class javapns.json.JSONObject
Produce a string from a Number.

O

object() - Method in class javapns.json.JSONWriter
Begin appending a new object.
opt(int) - Method in class javapns.json.JSONArray
Get the optional object value associated with an index.
opt(String) - Method in class javapns.json.JSONObject
Get an optional value associated with a key.
optBoolean(int) - Method in class javapns.json.JSONArray
Get the optional boolean value associated with an index.
optBoolean(int, boolean) - Method in class javapns.json.JSONArray
Get the optional boolean value associated with an index.
optBoolean(String) - Method in class javapns.json.JSONObject
Get an optional boolean associated with a key.
optBoolean(String, boolean) - Method in class javapns.json.JSONObject
Get an optional boolean associated with a key.
optDouble(int) - Method in class javapns.json.JSONArray
Get the optional double value associated with an index.
optDouble(int, double) - Method in class javapns.json.JSONArray
Get the optional double value associated with an index.
optDouble(String) - Method in class javapns.json.JSONObject
Get an optional double associated with a key, or NaN if there is no such key or if its value is not a number.
optDouble(String, double) - Method in class javapns.json.JSONObject
Get an optional double associated with a key, or the defaultValue if there is no such key or if its value is not a number.
optInt(int) - Method in class javapns.json.JSONArray
Get the optional int value associated with an index.
optInt(int, int) - Method in class javapns.json.JSONArray
Get the optional int value associated with an index.
optInt(String) - Method in class javapns.json.JSONObject
Get an optional int value associated with a key, or zero if there is no such key or if the value is not a number.
optInt(String, int) - Method in class javapns.json.JSONObject
Get an optional int value associated with a key, or the default if there is no such key or if the value is not a number.
optJSONArray(int) - Method in class javapns.json.JSONArray
Get the optional JSONArray associated with an index.
optJSONArray(String) - Method in class javapns.json.JSONObject
Get an optional JSONArray associated with a key.
optJSONObject(int) - Method in class javapns.json.JSONArray
Get the optional JSONObject associated with an index.
optJSONObject(String) - Method in class javapns.json.JSONObject
Get an optional JSONObject associated with a key.
optLong(int) - Method in class javapns.json.JSONArray
Get the optional long value associated with an index.
optLong(int, long) - Method in class javapns.json.JSONArray
Get the optional long value associated with an index.
optLong(String) - Method in class javapns.json.JSONObject
Get an optional long value associated with a key, or zero if there is no such key or if the value is not a number.
optLong(String, long) - Method in class javapns.json.JSONObject
Get an optional long value associated with a key, or the default if there is no such key or if the value is not a number.
optString(int) - Method in class javapns.json.JSONArray
Get the optional string value associated with an index.
optString(int, String) - Method in class javapns.json.JSONArray
Get the optional string associated with an index.
optString(String) - Method in class javapns.json.JSONObject
Get an optional string associated with a key.
optString(String, String) - Method in class javapns.json.JSONObject
Get an optional string associated with a key.

P

PasswordPolicyPayload - Class in javapns.notification.management
An MDM payload for PasswordPolicy.
PasswordPolicyPayload(int, String, String, String) - Constructor for class javapns.notification.management.PasswordPolicyPayload
 
Payload - Class in javapns.notification
Abstract class representing a payload that can be transmitted to Apple.
Payload() - Constructor for class javapns.notification.Payload
Construct a Payload object with a blank root JSONObject
Payload(String) - Constructor for class javapns.notification.Payload
Construct a Payload object from a JSON-formatted string
payload(Payload, Object, String, boolean, Object) - Static method in class javapns.Push
Push a preformatted payload to a list of devices.
payload(Payload, Object, String, boolean, int, Object) - Static method in class javapns.Push
Push a preformatted payload to a list of devices using multiple simulatenous threads (and connections).
PayloadAlertAlreadyExistsException - Exception in javapns.notification.exceptions
Specific exception indicating that the library detected an attempt to insert two alert messages or objects into the same payload.
PayloadAlertAlreadyExistsException() - Constructor for exception javapns.notification.exceptions.PayloadAlertAlreadyExistsException
Default constructor
PayloadAlertAlreadyExistsException(String) - Constructor for exception javapns.notification.exceptions.PayloadAlertAlreadyExistsException
Constructor with custom message
PayloadIsEmptyException - Exception in javapns.notification.exceptions
Specific exception indicating that you attempted to push a payload that contained no property whatsoever.
PayloadIsEmptyException() - Constructor for exception javapns.notification.exceptions.PayloadIsEmptyException
 
PayloadIsEmptyException(String) - Constructor for exception javapns.notification.exceptions.PayloadIsEmptyException
Constructor with custom message
PayloadMaxSizeExceededException - Exception in javapns.notification.exceptions
Specific exception indicating that a payload exceeds the maximum size allowed.
PayloadMaxSizeExceededException() - Constructor for exception javapns.notification.exceptions.PayloadMaxSizeExceededException
Default constructor
PayloadMaxSizeExceededException(int) - Constructor for exception javapns.notification.exceptions.PayloadMaxSizeExceededException
 
PayloadMaxSizeExceededException(int, int) - Constructor for exception javapns.notification.exceptions.PayloadMaxSizeExceededException
 
PayloadMaxSizeExceededException(String) - Constructor for exception javapns.notification.exceptions.PayloadMaxSizeExceededException
Constructor with custom message
PayloadMaxSizeProbablyExceededException - Exception in javapns.notification.exceptions
Specific exception indicating that a payload would probably exceed the maximum size allowed if the current property addition were to complete, but thrown only if you explicitely invoked payload.setPayloadSizeEstimatedWhenAdding(true) before calling that add___ method.
PayloadMaxSizeProbablyExceededException() - Constructor for exception javapns.notification.exceptions.PayloadMaxSizeProbablyExceededException
Default constructor
PayloadMaxSizeProbablyExceededException(int) - Constructor for exception javapns.notification.exceptions.PayloadMaxSizeProbablyExceededException
 
PayloadMaxSizeProbablyExceededException(int, int) - Constructor for exception javapns.notification.exceptions.PayloadMaxSizeProbablyExceededException
 
PayloadMaxSizeProbablyExceededException(String) - Constructor for exception javapns.notification.exceptions.PayloadMaxSizeProbablyExceededException
Constructor with custom message
PayloadPerDevice - Class in javapns.notification
A one-to-one link between a payload and device.
PayloadPerDevice(Payload, String) - Constructor for class javapns.notification.PayloadPerDevice
 
PayloadPerDevice(Payload, Device) - Constructor for class javapns.notification.PayloadPerDevice
 
payloads(Object, String, boolean, Object) - Static method in class javapns.Push
Push a different preformatted payload for each device.
payloads(Object, String, boolean, int, Object) - Static method in class javapns.Push
Push a different preformatted payload for each device using multiple simulatenous threads (and connections).
printPushedNotifications(List<PushedNotification>) - Static method in class javapns.test.NotificationTest
Print to the console a comprehensive report of all pushed notifications and results.
printPushedNotifications(String, List<PushedNotification>) - Static method in class javapns.test.NotificationTest
Print to the console a list of pushed notifications.
PRODUCTION_HOST - Static variable in interface javapns.feedback.AppleFeedbackServer
 
PRODUCTION_HOST - Static variable in interface javapns.notification.AppleNotificationServer
 
PRODUCTION_PORT - Static variable in interface javapns.feedback.AppleFeedbackServer
 
PRODUCTION_PORT - Static variable in interface javapns.notification.AppleNotificationServer
 
ProxyManager - Class in javapns.communication
Main class for dealing with proxies.
Push - Class in javapns
Main class for easily interacting with the Apple Push Notification System
PushedNotification - Class in javapns.notification
An object representing the result of a push notification to a specific payload to a single device.
PushedNotification(Device, Payload, Exception) - Constructor for class javapns.notification.PushedNotification
 
PushedNotifications - Class in javapns.notification
A list of PushedNotification objects.
PushedNotifications() - Constructor for class javapns.notification.PushedNotifications
Construct an empty list of PushedNotification objects.
PushedNotifications(int) - Constructor for class javapns.notification.PushedNotifications
Construct an empty list of PushedNotification objects with a suggested initial capacity.
PushedNotifications(PushedNotifications) - Constructor for class javapns.notification.PushedNotifications
Construct an empty list of PushedNotification objects, and copy the maxRetained property from the provided parent list.
PushNotificationManager - Class in javapns.notification
The main class used to send notification and handle a connection to Apple SSLServerSocket.
PushNotificationManager() - Constructor for class javapns.notification.PushNotificationManager
Constructs a PushNotificationManager
PushNotificationManager(DeviceFactory) - Constructor for class javapns.notification.PushNotificationManager
Deprecated. The DeviceFactory-based architecture is deprecated.
PushNotificationPayload - Class in javapns.notification
A payload compatible with the Apple Push Notification Service.
PushNotificationPayload() - Constructor for class javapns.notification.PushNotificationPayload
Create a default payload with a blank "aps" dictionary.
PushNotificationPayload(String) - Constructor for class javapns.notification.PushNotificationPayload
Construct a Payload object from a JSON-formatted string.
PushNotificationPayload(String, int, String) - Constructor for class javapns.notification.PushNotificationPayload
Create a payload and immediately add an alert message, a badge and a sound.
PushQueue - Interface in javapns.notification.transmission
A queue backed by an asynchronous notification thread or threads.
put(boolean) - Method in class javapns.json.JSONArray
Append a boolean value.
put(Collection) - Method in class javapns.json.JSONArray
Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.
put(double) - Method in class javapns.json.JSONArray
Append a double value.
put(int) - Method in class javapns.json.JSONArray
Append an int value.
put(long) - Method in class javapns.json.JSONArray
Append an long value.
put(Map) - Method in class javapns.json.JSONArray
Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.
put(Object) - Method in class javapns.json.JSONArray
Append an object value.
put(int, boolean) - Method in class javapns.json.JSONArray
Put or replace a boolean value in the JSONArray.
put(int, Collection) - Method in class javapns.json.JSONArray
Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.
put(int, double) - Method in class javapns.json.JSONArray
Put or replace a double value.
put(int, int) - Method in class javapns.json.JSONArray
Put or replace an int value.
put(int, long) - Method in class javapns.json.JSONArray
Put or replace a long value.
put(int, Map) - Method in class javapns.json.JSONArray
Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.
put(int, Object) - Method in class javapns.json.JSONArray
Put or replace an object value in the JSONArray.
put(String, Collection) - Method in class javapns.json.JSONObject
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
put(String, boolean) - Method in class javapns.json.JSONObject
Put a key/boolean pair in the JSONObject.
put(String, double) - Method in class javapns.json.JSONObject
Put a key/double pair in the JSONObject.
put(String, int) - Method in class javapns.json.JSONObject
Put a key/int pair in the JSONObject.
put(String, long) - Method in class javapns.json.JSONObject
Put a key/long pair in the JSONObject.
put(String, Map) - Method in class javapns.json.JSONObject
Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map.
put(String, Object) - Method in class javapns.json.JSONObject
Put a key/value pair in the JSONObject.
putOnce(String, Object) - Method in class javapns.json.JSONObject
Put a key/value pair in the JSONObject, but only if the key and the value are both non-null, and only if there is not already a member with that name.
putOpt(String, Object) - Method in class javapns.json.JSONObject
Put a key/value pair in the JSONObject, but only if the key and the value are both non-null.

Q

QUEST - Static variable in class javapns.json.XML
The Character '?'.
queue(Object, String, boolean, int) - Static method in class javapns.Push
Build and start an asynchronous queue for sending notifications later without opening and closing connections.
QUOT - Static variable in class javapns.json.XML
The Character '"'.
quote(String) - Static method in class javapns.json.JSONObject
Produce a string in double quotes with backslash sequences in all the right places.

R

RemovalPasswordPayload - Class in javapns.notification.management
An MDM payload for RemovalPassword.
RemovalPasswordPayload(int, String, String, String) - Constructor for class javapns.notification.management.RemovalPasswordPayload
 
remove(int) - Method in class javapns.json.JSONArray
Remove a index and close the hole.
remove(String) - Method in class javapns.json.JSONObject
Remove a name and its value, if present.
removeDevice(String) - Method in interface javapns.devices.DeviceFactory
Deprecated. Remove a device
removeDevice(String) - Method in class javapns.devices.implementations.basic.BasicDeviceFactory
Deprecated. Remove a device
removeDevice(String) - Method in class javapns.notification.PushNotificationManager
Deprecated. The DeviceFactory-based architecture is deprecated.
ResponsePacket - Class in javapns.notification
A response packet, as described in Apple's enhanced notification format.
restartConnection(AppleNotificationServer) - Method in class javapns.notification.PushNotificationManager
Stop and restart the current connection to the Apple server
RestrictionsPayload - Class in javapns.notification.management
An MDM payload for Restrictions.
RestrictionsPayload(int, String, String, String) - Constructor for class javapns.notification.management.RestrictionsPayload
 
rowToJSONArray(JSONTokener) - Static method in class javapns.json.CDL
Produce a JSONArray of strings from a row of comma delimited values.
rowToJSONObject(JSONArray, JSONTokener) - Static method in class javapns.json.CDL
Produce a JSONObject from a row of comma delimited text, using a parallel JSONArray of strings to provides the names of the elements.
rowToString(JSONArray) - Static method in class javapns.json.CDL
Produce a comma delimited text row from a JSONArray.
run() - Method in class javapns.notification.transmission.NotificationThread
Run method for the thread; do not call this method directly.

S

SCEPPayload - Class in javapns.notification.management
An MDM payload for SCEP (Simple Certificate Enrollment Protocol).
SCEPPayload(int, String, String, String, String) - Constructor for class javapns.notification.management.SCEPPayload
 
sendNotification(Device, Payload) - Method in class javapns.notification.PushNotificationManager
Send a notification to a single device and close the connection.
sendNotification(Device, Payload, boolean) - Method in class javapns.notification.PushNotificationManager
Send a notification (Payload) to the given device
sendNotification(Device, Payload, int) - Method in class javapns.notification.PushNotificationManager
Send a notification (Payload) to the given device
sendNotification(Device, Payload, boolean, int) - Method in class javapns.notification.PushNotificationManager
Send a notification (Payload) to the given device
sendNotifications(Payload, List<Device>) - Method in class javapns.notification.PushNotificationManager
Send a notification to a multiple devices in a single connection and close the connection.
sendNotifications(Payload, Device...) - Method in class javapns.notification.PushNotificationManager
Send a notification to a multiple devices in a single connection and close the connection.
setAllowAppInstallation(boolean) - Method in class javapns.notification.management.RestrictionsPayload
 
setAllowCamera(boolean) - Method in class javapns.notification.management.RestrictionsPayload
 
setAllowExplicitContent(boolean) - Method in class javapns.notification.management.RestrictionsPayload
 
setAllowiTunes(boolean) - Method in class javapns.notification.management.RestrictionsPayload
 
setAllowSafari(boolean) - Method in class javapns.notification.management.RestrictionsPayload
 
setAllowScreenShot(boolean) - Method in class javapns.notification.management.RestrictionsPayload
 
setAllowSimple(boolean) - Method in class javapns.notification.management.PasswordPolicyPayload
 
setAllowYouTube(boolean) - Method in class javapns.notification.management.RestrictionsPayload
 
setCalDAVAccountDescription(String) - Method in class javapns.notification.management.CalDAVPayload
 
setCalDAVPassword(String) - Method in class javapns.notification.management.CalDAVPayload
 
setCalDAVPort(int) - Method in class javapns.notification.management.CalDAVPayload
 
setCalDAVPrincipalURL(String) - Method in class javapns.notification.management.CalDAVPayload
 
setChallenge(String) - Method in class javapns.notification.management.SCEPPayload
 
setCharacterEncoding(String) - Method in class javapns.notification.Payload
Changes the character encoding for streaming the payload.
setDelayBetweenThreads(long) - Method in class javapns.notification.transmission.NotificationThreads
Set the amount of time that the library will wait after starting a thread and before starting the next one.
setDeviceFactory(DeviceFactory) - Method in class javapns.feedback.FeedbackServiceManager
Deprecated. The DeviceFactory-based architecture is deprecated.
setDeviceFactory(DeviceFactory) - Method in class javapns.notification.PushNotificationManager
Deprecated. The DeviceFactory-based architecture is deprecated.
setDeviceId(String) - Method in interface javapns.devices.Device
An id representing a particular device.
setDeviceId(String) - Method in class javapns.devices.implementations.basic.BasicDevice
Setter
setEmailAccountDescription(String) - Method in class javapns.notification.management.EmailPayload
 
setEmailAccountName(String) - Method in class javapns.notification.management.EmailPayload
 
setEnhancedNotificationFormatEnabled(boolean) - Static method in class javapns.notification.PushNotificationManager
Enable or disable the enhanced notification format (enabled by default).
setExpiry(int) - Method in class javapns.notification.Payload
Set the number of seconds after which this payload should expire.
setForcePIN(boolean) - Method in class javapns.notification.management.PasswordPolicyPayload
 
setHeavyDebugMode(boolean) - Static method in class javapns.notification.PushNotificationManager
Enable or disable a special heavy debug mode which causes verbose details to be written to local files.
setIcon(Object) - Method in class javapns.notification.management.WebClipPayload
 
setIncomingMailServerPortNumber(int) - Method in class javapns.notification.management.EmailPayload
 
setIncomingMailServerUseSSL(boolean) - Method in class javapns.notification.management.EmailPayload
 
setIncomingPassword(String) - Method in class javapns.notification.management.EmailPayload
 
setIsRemovable(boolean) - Method in class javapns.notification.management.WebClipPayload
 
setJVMProxy(String, String) - Static method in class javapns.communication.ProxyManager
Configure a proxy to use for HTTPS connections created anywhere in the JVM (not recommended).
setKeysize(int) - Method in class javapns.notification.management.SCEPPayload
 
setKeystore(KeyStore) - Method in class javapns.communication.ConnectionToAppleServer
 
setKeyType(String) - Method in class javapns.notification.management.SCEPPayload
 
setKeyUsage(int) - Method in class javapns.notification.management.SCEPPayload
 
setLastRegister(Timestamp) - Method in interface javapns.devices.Device
 
setLastRegister(Timestamp) - Method in class javapns.devices.implementations.basic.BasicDevice
 
setLDAPAccountDescription(boolean) - Method in class javapns.notification.management.LDAPPayload
 
setLDAPAccountPassword(boolean) - Method in class javapns.notification.management.LDAPPayload
 
setLDAPAccountUserName(boolean) - Method in class javapns.notification.management.LDAPPayload
 
setListener(NotificationProgressListener) - Method in class javapns.notification.transmission.NotificationThread
Provide an event listener which will be notified of this thread's progress.
setListener(NotificationProgressListener) - Method in class javapns.notification.transmission.NotificationThreads
Attach an event listener to this object as well as all linked threads.
setManualFetchingWhenRoaming(boolean) - Method in class javapns.notification.management.PasswordPolicyPayload
 
setMaxFailedAttempts(int) - Method in class javapns.notification.management.PasswordPolicyPayload
 
setMaxGracePeriod(int) - Method in class javapns.notification.management.PasswordPolicyPayload
 
setMaxInactivity(int) - Method in class javapns.notification.management.PasswordPolicyPayload
 
setMaxNotificationsPerConnection(int) - Method in class javapns.notification.transmission.NotificationThread
Set a maximum number of notifications that should be streamed over a continuous connection to an Apple server.
setMaxNotificationsPerConnection(int) - Method in class javapns.notification.transmission.NotificationThreads
Configure in all threads the maximum number of notifications per connection.
setMaxPINAgeInDays(int) - Method in class javapns.notification.management.PasswordPolicyPayload
 
setMaxRetained(int) - Method in class javapns.notification.PushedNotifications
Set the maximum number of objects that this list retains.
setMinComplexChars(int) - Method in class javapns.notification.management.PasswordPolicyPayload
 
setMinLength(int) - Method in class javapns.notification.management.PasswordPolicyPayload
 
setName(String) - Method in class javapns.notification.management.SCEPPayload
 
setOutgoingMailServerPortNumber(int) - Method in class javapns.notification.management.EmailPayload
 
setOutgoingMailServerUseSSL(boolean) - Method in class javapns.notification.management.EmailPayload
 
setOutgoingPassword(String) - Method in class javapns.notification.management.EmailPayload
 
setOutgoingPasswwordSameAsIncomingPassword(boolean) - Method in class javapns.notification.management.EmailPayload
 
setPassword(APNPayload) - Method in class javapns.notification.management.APNPayload
 
setPassword(String) - Method in class javapns.notification.management.WiFiPayload
 
setPayloadDescription(String) - Method in class javapns.notification.management.MobileConfigPayload
 
setPayloadRemovalDisallowed(boolean) - Method in class javapns.notification.management.MobileConfigPayload
 
setPayloadSizeEstimatedWhenAdding(boolean) - Method in class javapns.notification.Payload
Indicate if payload size should be estimated and controlled when adding properties (default is false).
setPinHistory(int) - Method in class javapns.notification.management.PasswordPolicyPayload
 
setProxy(String, int) - Method in interface javapns.communication.AppleServer
Configure a proxy to use for this specific server.
setProxy(String, int) - Method in class javapns.communication.AppleServerBasicImpl
 
setProxy(String, String) - Static method in class javapns.communication.ProxyManager
Configure a proxy to use for HTTPS connections created by JavaPNS.
setProxy(String) - Method in class javapns.notification.management.APNPayload
 
setProxyAuthorization(String) - Method in interface javapns.communication.AppleServer
Configure the proxy authorization to use for this specific server.
setProxyAuthorization(String) - Method in class javapns.communication.AppleServerBasicImpl
 
setProxyAuthorization(String) - Static method in class javapns.communication.ProxyManager
Configure the authorization for the proxy configured through the setProxy method.
setProxyBasicAuthorization(String, String) - Static method in class javapns.communication.ProxyManager
Configure the authorization for the proxy configured through the setProxy method.
setProxyPort(int) - Method in class javapns.notification.management.APNPayload
 
setRemovalPasword(String) - Method in class javapns.notification.management.RemovalPasswordPayload
 
setRequireAlphanumeric(boolean) - Method in class javapns.notification.management.PasswordPolicyPayload
 
setResendFeatureEnabled(boolean) - Static method in class javapns.notification.PushNotificationManager
 
setRestartConnectionAfterInactivity(long) - Static method in class javapns.notification.PushNotificationManager
 
setRetryAttempts(int) - Method in class javapns.notification.PushNotificationManager
Set the number of retry attempts
setSleepBetweenNotifications(long) - Method in class javapns.notification.transmission.NotificationThread
Set a delay the thread should sleep between each notification.
setSleepBetweenNotifications(long) - Method in class javapns.notification.transmission.NotificationThreads
Configure in all threads the number of milliseconds that threads should wait between each notification.
setSslSocketTimeout(int) - Method in class javapns.feedback.FeedbackServiceManager
Set the SSL socket timeout to use.
setSslSocketTimeout(int) - Method in class javapns.notification.PushNotificationManager
Set the SSL socket timeout to use.
setSubCalAccountDescription(String) - Method in class javapns.notification.management.CalendarSubscriptionPayload
 
setSubCalAccountPassword(String) - Method in class javapns.notification.management.CalendarSubscriptionPayload
 
setSubCalAccountUsername(String) - Method in class javapns.notification.management.CalendarSubscriptionPayload
 
setSubCalAccountUseSSL(boolean) - Method in class javapns.notification.management.CalendarSubscriptionPayload
 
setSubject(String) - Method in class javapns.notification.management.SCEPPayload
 
setSubject(String[][]) - Method in class javapns.notification.management.SCEPPayload
 
setToken(String) - Method in interface javapns.devices.Device
Set the device token
setToken(String) - Method in class javapns.devices.implementations.basic.BasicDevice
Setter the device token
setTrustAllServerCertificates(boolean) - Method in class javapns.notification.PushNotificationManager
Set whether or not to enable the "trust all server certificates" feature to simplify SSL communications.
size() - Method in class javapns.notification.transmission.NotificationThread
Get the number of devices that this thread pushes to.
skipPast(String) - Method in class javapns.json.XMLTokener
Skip characters until past the requested string.
skipTo(char) - Method in class javapns.json.JSONTokener
Skip characters until the next character is the requested character.
SLASH - Static variable in class javapns.json.XML
The Character '/'.
sortedKeys() - Method in class javapns.json.JSONObject
Get an enumeration of the keys of the JSONObject.
sound(String) - Static method in class javapns.notification.PushNotificationPayload
Create a pre-defined payload with a sound name.
sound(String, Object, String, boolean, Object) - Static method in class javapns.Push
Push a simple sound name to one or more devices.
SpecificNotificationTests - Class in javapns.test
Specific test cases intended for the project's developers.
start() - Method in class javapns.notification.transmission.NotificationThread
Start the transmission thread.
start() - Method in class javapns.notification.transmission.NotificationThreads
Start all notification threads.
start() - Method in interface javapns.notification.transmission.PushQueue
Start the transmission thread(s) working for the queue.
stopConnection() - Method in class javapns.notification.PushNotificationManager
Read and process any pending error-responses, and then close the connection.
stopQueue() - Method in class javapns.notification.transmission.NotificationThread
 
stopQueue() - Method in class javapns.notification.transmission.NotificationThreads
 
stopQueue() - Method in interface javapns.notification.transmission.PushQueue
Invoke stopQueue on all threads working for the queue.
stringToValue(String) - Static method in class javapns.json.JSONObject
Try to convert a string into a number, boolean, or null.
syntaxError(String) - Method in class javapns.json.JSONTokener
Make a JSONException to signal a syntax error.

T

Test - Class in javapns.json
Test class.
Test() - Constructor for class javapns.json.Test
 
test() - Static method in class javapns.notification.PushNotificationPayload
Create a special payload with a useful debugging alert message.
test(Object, String, boolean, Object) - Static method in class javapns.Push
Push a special test notification with an alert message containing useful debugging information.
toJSONArray(String) - Static method in class javapns.json.CDL
Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.
toJSONArray(JSONTokener) - Static method in class javapns.json.CDL
Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.
toJSONArray(JSONArray, String) - Static method in class javapns.json.CDL
Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.
toJSONArray(JSONArray, JSONTokener) - Static method in class javapns.json.CDL
Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.
toJSONArray(String) - Static method in class javapns.json.JSONML
Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.
toJSONArray(XMLTokener) - Static method in class javapns.json.JSONML
Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.
toJSONArray(JSONArray) - Method in class javapns.json.JSONObject
Produce a JSONArray containing the values of the members of this JSONObject.
toJSONObject(String) - Static method in class javapns.json.Cookie
Convert a cookie specification string into a JSONObject.
toJSONObject(String) - Static method in class javapns.json.CookieList
Convert a cookie list into a JSONObject.
toJSONObject(String) - Static method in class javapns.json.HTTP
Convert an HTTP header string into a JSONObject.
toJSONObject(JSONArray) - Method in class javapns.json.JSONArray
Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.
toJSONObject(XMLTokener) - Static method in class javapns.json.JSONML
Convert a well-formed (but not necessarily valid) XML string into a JSONObject using the JsonML transform.
toJSONObject(String) - Static method in class javapns.json.JSONML
Convert a well-formed (but not necessarily valid) XML string into a JSONObject using the JsonML transform.
toJSONObject(String) - Static method in class javapns.json.XML
Convert a well-formed (but not necessarily valid) XML string into a JSONObject.
toJSONString() - Method in interface javapns.json.JSONString
The toJSONString method allows a class to produce its own JSON serialization.
toString() - Method in exception javapns.devices.exceptions.DuplicateDeviceException
Deprecated. String representation
toString() - Method in exception javapns.devices.exceptions.NullDeviceTokenException
Deprecated. String representation
toString() - Method in exception javapns.devices.exceptions.NullIdException
Deprecated. String representation
toString() - Method in exception javapns.devices.exceptions.UnknownDeviceException
Deprecated. String representation
toString(JSONArray) - Static method in class javapns.json.CDL
Produce a comma delimited text from a JSONArray of JSONObjects.
toString(JSONArray, JSONArray) - Static method in class javapns.json.CDL
Produce a comma delimited text from a JSONArray of JSONObjects using a provided list of names.
toString(JSONObject) - Static method in class javapns.json.Cookie
Convert a JSONObject into a cookie specification string.
toString(JSONObject) - Static method in class javapns.json.CookieList
Convert a JSONObject into a cookie list.
toString(JSONObject) - Static method in class javapns.json.HTTP
Convert a JSONObject into an HTTP header.
toString() - Method in class javapns.json.JSONArray
Make a JSON text of this JSONArray.
toString(int) - Method in class javapns.json.JSONArray
Make a prettyprinted JSON text of this JSONArray.
toString(JSONArray) - Static method in class javapns.json.JSONML
Reverse the JSONML transformation, making an XML text from a JSONArray.
toString(JSONObject) - Static method in class javapns.json.JSONML
Reverse the JSONML transformation, making an XML text from a JSONObject.
toString() - Method in class javapns.json.JSONNull
 
toString() - Method in class javapns.json.JSONObject
Make a JSON text of this JSONObject.
toString(int) - Method in class javapns.json.JSONObject
Make a prettyprinted JSON text of this JSONObject.
toString() - Method in interface javapns.json.JSONRawValue
 
toString() - Method in class javapns.json.JSONStringer
Return the JSON text.
toString() - Method in class javapns.json.JSONTokener
Make a printable string of this JSONTokener.
toString(Object) - Static method in class javapns.json.XML
Convert a JSONObject into a well-formed, element-normal XML string.
toString(Object, String) - Static method in class javapns.json.XML
Convert a JSONObject into a well-formed, element-normal XML string.
toString() - Method in class javapns.notification.Payload
Get the string representation
toString() - Method in class javapns.notification.PushedNotification
Returns a human-friendly description of this pushed notification.

U

unescape(String) - Static method in class javapns.json.Cookie
Convert %hh sequences to single characters, and convert plus to space.
UnknownDeviceException - Exception in javapns.devices.exceptions
Deprecated. 
UnknownDeviceException() - Constructor for exception javapns.devices.exceptions.UnknownDeviceException
Deprecated. Constructor
UnknownDeviceException(String) - Constructor for exception javapns.devices.exceptions.UnknownDeviceException
Deprecated. Constructor with custom message

V

validateKeystoreParameter(Object) - Static method in class javapns.communication.KeystoreManager
Ensures that a keystore parameter is actually supported by the KeystoreManager.
validateTokenFormat() - Method in class javapns.devices.implementations.basic.BasicDevice
 
validateTokenFormat(String) - Static method in class javapns.devices.implementations.basic.BasicDevice
 
value(boolean) - Method in class javapns.json.JSONWriter
Append either the value true or the value false.
value(double) - Method in class javapns.json.JSONWriter
Append a double value.
value(long) - Method in class javapns.json.JSONWriter
Append a long value.
value(Object) - Method in class javapns.json.JSONWriter
Append an object value.
valueOf(String) - Static method in enum javapns.notification.transmission.NotificationThread.MODE
Returns the enum constant of this type with the specified name.
values() - Static method in enum javapns.notification.transmission.NotificationThread.MODE
Returns an array containing the constants of this enum type, in the order they are declared.
verifyKeystoreContent(AppleServer, Object) - Static method in class javapns.communication.KeystoreManager
Perform basic tests on a keystore to detect common user mistakes.
verifyKeystoreContent(KeyStore) - Static method in class javapns.communication.KeystoreManager
Perform basic tests on a keystore to detect common user mistakes (experimental).
VPNPayload - Class in javapns.notification.management
An MDM payload for VPN.
VPNPayload(int, String, String, String, String, boolean, String) - Constructor for class javapns.notification.management.VPNPayload
 
VPNTYPE_IPSec - Static variable in class javapns.notification.management.VPNPayload
 
VPNTYPE_L2TP - Static variable in class javapns.notification.management.VPNPayload
 
VPNTYPE_PPTP - Static variable in class javapns.notification.management.VPNPayload
 

W

waitForAllThreads() - Method in class javapns.notification.transmission.NotificationThreads
Wait for all threads to complete their work.
waitForAllThreads(boolean) - Method in class javapns.notification.transmission.NotificationThreads
Wait for all threads to complete their work, but throw any critical exception that occurs in a thread.
WebClipPayload - Class in javapns.notification.management
An MDM payload for WebClip.
WebClipPayload(int, String, String, String, String, String) - Constructor for class javapns.notification.management.WebClipPayload
 
WiFiPayload - Class in javapns.notification.management
An MDM payload for Wi-Fi.
WiFiPayload(int, String, String, String, String, boolean, String) - Constructor for class javapns.notification.management.WiFiPayload
 
write(Writer) - Method in class javapns.json.JSONArray
Write the contents of the JSONArray as JSON text to a writer.
write(Writer) - Method in class javapns.json.JSONObject
Write the contents of the JSONObject as JSON text to a writer.

X

XML - Class in javapns.json
This provides static methods to convert an XML text into a JSONObject, and to covert a JSONObject into an XML text.
XML() - Constructor for class javapns.json.XML
 
XMLTokener - Class in javapns.json
The XMLTokener extends the JSONTokener to provide additional methods for the parsing of XML texts.
XMLTokener(String) - Constructor for class javapns.json.XMLTokener
Construct an XMLTokener from a string.

A B C D E F G H I J K L M N O P Q R S T U V W X