|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use JSONException | |
|---|---|
| javapns.notification | Classes for pushing notifications through Apple servers. |
| javapns.notification.exceptions | Notification-related exceptions thrown by the javapns library. |
| javapns.notification.management | Specific payloads for Apple's MDM technology MDM is not involved in Apple Push Notification, but uses the same communication technologies as APN. |
| org.json | A built-in implementation of the JSON.org library. |
| Uses of JSONException in javapns.notification |
|---|
| Methods in javapns.notification that throw JSONException | |
|---|---|
void |
PushNotificationPayload.addAlert(String alertMessage)
Add a simple alert message. |
void |
PushNotificationPayload.addBadge(int badge)
Add a badge. |
void |
PushNotificationPayload.addCustomAlertActionLocKey(String actionLocKey)
Create a custom alert (if none exist) and add a custom text for the right button of the popup. |
void |
PushNotificationPayload.addCustomAlertBody(String body)
Create a custom alert (if none exist) and add a body to the custom alert. |
void |
PushNotificationPayload.addCustomAlertLocArgs(List args)
Create a custom alert (if none exist) and add sub-parameters for the loc-key parameter. |
void |
PushNotificationPayload.addCustomAlertLocKey(String locKey)
Create a custom alert (if none exist) and add a loc-key parameter. |
void |
Payload.addCustomDictionary(String name,
int value)
Add a custom dictionnary with a int value |
void |
Payload.addCustomDictionary(String name,
List values)
Add a custom dictionnary with multiple values |
void |
Payload.addCustomDictionary(String name,
Object value)
Add a custom dictionnary with object |
void |
Payload.addCustomDictionary(String name,
String value)
Add a custom dictionnary with a string value |
void |
PushNotificationPayload.addSound(String sound)
Add a sound. |
static PushNotificationPayload |
PushNotificationPayload.fromJSON(String rawJSON)
Create a PushNotificationPayload object from a preformatted JSON payload. |
protected void |
Payload.put(String propertyName,
Object propertyValue,
JSONObject object,
boolean opt)
Puts a property in a JSONObject, while possibly checking for estimated payload size violation. |
| Constructors in javapns.notification that throw JSONException | |
|---|---|
Payload(String rawJSON)
Construct a Payload object from a JSON-formatted string |
|
PushNotificationPayload(String rawJSON)
Construct a Payload object from a JSON-formatted string. |
|
PushNotificationPayload(String alert,
int badge,
String sound)
Create a payload and immediately add an alert message, a badge and a sound. |
|
| Uses of JSONException in javapns.notification.exceptions |
|---|
| Subclasses of JSONException in javapns.notification.exceptions | |
|---|---|
class |
PayloadAlertAlreadyExistsException
Thrown when a payload exceeds the maximum size allowed. |
class |
PayloadMaxSizeProbablyExceededException
Thrown when a payload is expected to exceed the maximum size allowed after adding a given property. |
| Uses of JSONException in javapns.notification.management |
|---|
| Methods in javapns.notification.management that throw JSONException | |
|---|---|
JSONObject |
WiFiPayload.addEAPClientConfiguration()
|
JSONObject |
SCEPPayload.addGetCACaps()
|
JSONObject |
VPNPayload.addIPSec()
|
JSONObject |
VPNPayload.addPPP()
|
JSONObject |
LDAPPayload.addSearchSettings(String ldapSearchSettingSearchBase,
int ldapSearchSettingScope)
|
JSONObject |
LDAPPayload.addSearchSettings(String ldapSearchSettingSearchBase,
int ldapSearchSettingScope,
String ldapSearchSettingDescription)
|
JSONObject |
LDAPPayload.addSearchSettings(String ldapSearchSettingSearchBase,
String ldapSearchSettingScope)
|
JSONObject |
LDAPPayload.addSearchSettings(String ldapSearchSettingSearchBase,
String ldapSearchSettingScope,
String ldapSearchSettingDescription)
|
JSONObject |
SCEPPayload.addSubjectAltName()
|
void |
RestrictionsPayload.setAllowAppInstallation(boolean value)
|
void |
RestrictionsPayload.setAllowCamera(boolean value)
|
void |
RestrictionsPayload.setAllowExplicitContent(boolean value)
|
void |
RestrictionsPayload.setAllowiTunes(boolean value)
|
void |
RestrictionsPayload.setAllowSafari(boolean value)
|
void |
RestrictionsPayload.setAllowScreenShot(boolean value)
|
void |
PasswordPolicyPayload.setAllowSimple(boolean value)
|
void |
RestrictionsPayload.setAllowYouTube(boolean value)
|
void |
CalDAVPayload.setCalDAVAccountDescription(String value)
|
void |
CalDAVPayload.setCalDAVPassword(String value)
|
void |
CalDAVPayload.setCalDAVPort(int value)
|
void |
CalDAVPayload.setCalDAVPrincipalURL(String value)
|
void |
SCEPPayload.setChallenge(String value)
|
void |
EmailPayload.setEmailAccountDescription(String value)
|
void |
EmailPayload.setEmailAccountName(String value)
|
void |
PasswordPolicyPayload.setForcePIN(boolean value)
|
void |
WebClipPayload.setIcon(Object data)
|
void |
EmailPayload.setIncomingMailServerPortNumber(int value)
|
void |
EmailPayload.setIncomingMailServerUseSSL(boolean value)
|
void |
EmailPayload.setIncomingPassword(String value)
|
void |
WebClipPayload.setIsRemovable(boolean value)
|
void |
SCEPPayload.setKeysize(int value)
|
void |
SCEPPayload.setKeyType(String value)
|
void |
SCEPPayload.setKeyUsage(int value)
|
void |
LDAPPayload.setLDAPAccountDescription(boolean value)
|
void |
LDAPPayload.setLDAPAccountPassword(boolean value)
|
void |
LDAPPayload.setLDAPAccountUserName(boolean value)
|
void |
PasswordPolicyPayload.setManualFetchingWhenRoaming(boolean value)
|
void |
PasswordPolicyPayload.setMaxFailedAttempts(int value)
|
void |
PasswordPolicyPayload.setMaxGracePeriod(int value)
|
void |
PasswordPolicyPayload.setMaxInactivity(int value)
|
void |
PasswordPolicyPayload.setMaxPINAgeInDays(int value)
|
void |
PasswordPolicyPayload.setMinComplexChars(int value)
|
void |
PasswordPolicyPayload.setMinLength(int value)
|
void |
SCEPPayload.setName(String value)
|
void |
EmailPayload.setOutgoingMailServerPortNumber(int value)
|
void |
EmailPayload.setOutgoingMailServerUseSSL(boolean value)
|
void |
EmailPayload.setOutgoingPassword(String value)
|
void |
EmailPayload.setOutgoingPasswwordSameAsIncomingPassword(boolean value)
|
void |
APNPayload.setPassword(APNPayload value)
|
void |
WiFiPayload.setPassword(String value)
|
void |
MobileConfigPayload.setPayloadDescription(String description)
|
void |
MobileConfigPayload.setPayloadRemovalDisallowed(boolean disallowed)
|
void |
PasswordPolicyPayload.setPinHistory(int value)
|
void |
APNPayload.setProxy(String value)
|
void |
APNPayload.setProxyPort(int value)
|
void |
RemovalPasswordPayload.setRemovalPasword(String value)
|
void |
PasswordPolicyPayload.setRequireAlphanumeric(boolean value)
|
void |
CalendarSubscriptionPayload.setSubCalAccountDescription(String value)
|
void |
CalendarSubscriptionPayload.setSubCalAccountPassword(String value)
|
void |
CalendarSubscriptionPayload.setSubCalAccountUsername(String value)
|
void |
CalendarSubscriptionPayload.setSubCalAccountUseSSL(boolean value)
|
void |
SCEPPayload.setSubject(String value)
|
void |
SCEPPayload.setSubject(String[][] value)
|
| Constructors in javapns.notification.management that throw JSONException | |
|---|---|
APNPayload(int payloadVersion,
String payloadOrganization,
String payloadIdentifier,
String payloadDisplayName,
Map<String,String> defaultsData,
String defaultsDomainName,
Map<String,String>[] apns,
String apn,
String username)
|
|
CalDAVPayload(int payloadVersion,
String payloadOrganization,
String payloadIdentifier,
String payloadDisplayName,
String calDAVHostName,
String calDAVUsername,
boolean calDAVUseSSL)
|
|
CalendarSubscriptionPayload(int payloadVersion,
String payloadOrganization,
String payloadIdentifier,
String payloadDisplayName,
String subCalAccountHostName,
boolean subCalAccountUseSSL)
|
|
EmailPayload(int payloadVersion,
String payloadOrganization,
String payloadIdentifier,
String payloadDisplayName,
String emailAccountType,
String emailAddress,
String incomingMailServerAuthentication,
String incomingMailServerHostName,
String incomingMailServerUsername,
String outgoingMailServerAuthentication,
String outgoingMailServerHostName,
String outgoingMailServerUsername)
|
|
LDAPPayload(int payloadVersion,
String payloadOrganization,
String payloadIdentifier,
String payloadDisplayName,
String ldapAccountHostName,
boolean ldapAccountUseSSL)
|
|
MobileConfigPayload(int payloadVersion,
String payloadType,
String payloadOrganization,
String payloadIdentifier,
String payloadDisplayName)
|
|
MobileConfigPayload(int payloadVersion,
String payloadUUID,
String payloadType,
String payloadOrganization,
String payloadIdentifier,
String payloadDisplayName)
|
|
PasswordPolicyPayload(int payloadVersion,
String payloadOrganization,
String payloadIdentifier,
String payloadDisplayName)
|
|
RemovalPasswordPayload(int payloadVersion,
String payloadOrganization,
String payloadIdentifier,
String payloadDisplayName)
|
|
RestrictionsPayload(int payloadVersion,
String payloadOrganization,
String payloadIdentifier,
String payloadDisplayName)
|
|
SCEPPayload(int payloadVersion,
String payloadOrganization,
String payloadIdentifier,
String payloadDisplayName,
String url)
|
|
VPNPayload(int payloadVersion,
String payloadOrganization,
String payloadIdentifier,
String payloadDisplayName,
String userDefinedName,
boolean overridePrimary,
String vpnType)
|
|
WebClipPayload(int payloadVersion,
String payloadOrganization,
String payloadIdentifier,
String payloadDisplayName,
String url,
String label)
|
|
WiFiPayload(int payloadVersion,
String payloadOrganization,
String payloadIdentifier,
String payloadDisplayName,
String SSID_STR,
boolean hiddenNetwork,
String encryptionType)
|
|
| Uses of JSONException in org.json |
|---|
| Methods in org.json that return JSONException | |
|---|---|
JSONException |
JSONTokener.syntaxError(String message)
Make a JSONException to signal a syntax error. |
| Methods in org.json that throw JSONException | |
|---|---|
JSONObject |
JSONObject.accumulate(String key,
Object value)
Accumulate values under a key. |
JSONObject |
JSONObject.append(String key,
Object value)
Append values to the array under a key. |
JSONWriter |
JSONWriter.array()
Begin appending a new array. |
void |
JSONTokener.back()
Back up one character. |
JSONWriter |
JSONWriter.endArray()
End an array. |
JSONWriter |
JSONWriter.endObject()
End an object. |
Object |
JSONArray.get(int index)
Get the object value associated with an index. |
Object |
JSONObject.get(String key)
Get the value object associated with a key. |
boolean |
JSONArray.getBoolean(int index)
Get the boolean value associated with an index. |
boolean |
JSONObject.getBoolean(String key)
Get the boolean value associated with a key. |
double |
JSONArray.getDouble(int index)
Get the double value associated with an index. |
double |
JSONObject.getDouble(String key)
Get the double value associated with a key. |
int |
JSONArray.getInt(int index)
Get the int value associated with an index. |
int |
JSONObject.getInt(String key)
Get the int value associated with a key. |
JSONArray |
JSONArray.getJSONArray(int index)
Get the JSONArray associated with an index. |
JSONArray |
JSONObject.getJSONArray(String key)
Get the JSONArray value associated with a key. |
JSONObject |
JSONArray.getJSONObject(int index)
Get the JSONObject associated with an index. |
JSONObject |
JSONObject.getJSONObject(String key)
Get the JSONObject value associated with a key. |
long |
JSONArray.getLong(int index)
Get the long value associated with an index. |
long |
JSONObject.getLong(String key)
Get the long value associated with a key. |
String |
JSONArray.getString(int index)
Get the string associated with an index. |
String |
JSONObject.getString(String key)
Get the string associated with a key. |
String |
JSONArray.join(String separator)
Make a string from the contents of this JSONArray. |
JSONWriter |
JSONWriter.key(String s)
Append a key. |
boolean |
JSONTokener.more()
Determine if the source string still contains characters that next() can consume. |
char |
JSONTokener.next()
Get the next character in the source string. |
char |
JSONTokener.next(char c)
Consume the next character, and check that it matches a specified character. |
String |
JSONTokener.next(int n)
Get the next n characters. |
String |
XMLTokener.nextCDATA()
Get the text in the CDATA block. |
char |
JSONTokener.nextClean()
Get the next char in the string, skipping whitespace. |
Object |
XMLTokener.nextContent()
Get the next XML outer token, trimming whitespace. |
Object |
XMLTokener.nextEntity(char a)
Return the next entity. |
Object |
XMLTokener.nextMeta()
Returns the next XML meta token. |
String |
JSONTokener.nextString(char quote)
Return the characters up to the next close quote character. |
String |
JSONTokener.nextTo(char d)
Get the text up but not including the specified character or the end of line, whichever comes first. |
String |
JSONTokener.nextTo(String delimiters)
Get the text up but not including one of the specified delimiter characters or the end of line, whichever comes first. |
Object |
XMLTokener.nextToken()
Get the next XML Token. |
String |
HTTPTokener.nextToken()
Get the next token or string. |
Object |
JSONTokener.nextValue()
Get the next value. |
static void |
XML.noSpace(String string)
Throw an exception if the string contains whitespace. |
static String |
JSONObject.numberToString(Number n)
Produce a string from a Number. |
JSONWriter |
JSONWriter.object()
Begin appending a new object. |
JSONArray |
JSONArray.put(double value)
Append a double value. |
JSONArray |
JSONArray.put(int index,
boolean value)
Put or replace a boolean value in the JSONArray. |
JSONArray |
JSONArray.put(int index,
Collection value)
Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection. |
JSONArray |
JSONArray.put(int index,
double value)
Put or replace a double value. |
JSONArray |
JSONArray.put(int index,
int value)
Put or replace an int value. |
JSONArray |
JSONArray.put(int index,
long value)
Put or replace a long value. |
JSONArray |
JSONArray.put(int index,
Map value)
Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map. |
JSONArray |
JSONArray.put(int index,
Object value)
Put or replace an object value in the JSONArray. |
JSONObject |
JSONObject.put(String key,
boolean value)
Put a key/boolean pair in the JSONObject. |
JSONObject |
JSONObject.put(String key,
Collection value)
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection. |
JSONObject |
JSONObject.put(String key,
double value)
Put a key/double pair in the JSONObject. |
JSONObject |
JSONObject.put(String key,
int value)
Put a key/int pair in the JSONObject. |
JSONObject |
JSONObject.put(String key,
long value)
Put a key/long pair in the JSONObject. |
JSONObject |
JSONObject.put(String key,
Map value)
Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map. |
JSONObject |
JSONObject.put(String key,
Object value)
Put a key/value pair in the JSONObject. |
JSONObject |
JSONObject.putOnce(String key,
Object value)
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. |
JSONObject |
JSONObject.putOpt(String key,
Object value)
Put a key/value pair in the JSONObject, but only if the key and the value are both non-null. |
static JSONArray |
CDL.rowToJSONArray(JSONTokener x)
Produce a JSONArray of strings from a row of comma delimited values. |
static JSONObject |
CDL.rowToJSONObject(JSONArray names,
JSONTokener x)
Produce a JSONObject from a row of comma delimited text, using a parallel JSONArray of strings to provides the names of the elements. |
boolean |
XMLTokener.skipPast(String to)
Skip characters until past the requested string. |
char |
JSONTokener.skipTo(char to)
Skip characters until the next character is the requested character. |
JSONArray |
JSONObject.toJSONArray(JSONArray names)
Produce a JSONArray containing the values of the members of this JSONObject. |
static JSONArray |
CDL.toJSONArray(JSONArray names,
JSONTokener x)
Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names. |
static JSONArray |
CDL.toJSONArray(JSONArray names,
String string)
Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names. |
static JSONArray |
CDL.toJSONArray(JSONTokener x)
Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names. |
static JSONArray |
JSONML.toJSONArray(String string)
Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform. |
static JSONArray |
CDL.toJSONArray(String string)
Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names. |
static JSONArray |
JSONML.toJSONArray(XMLTokener x)
Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform. |
JSONObject |
JSONArray.toJSONObject(JSONArray names)
Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray. |
static JSONObject |
XML.toJSONObject(String string)
Convert a well-formed (but not necessarily valid) XML string into a JSONObject. |
static JSONObject |
JSONML.toJSONObject(String string)
Convert a well-formed (but not necessarily valid) XML string into a JSONObject using the JsonML transform. |
static JSONObject |
HTTP.toJSONObject(String string)
Convert an HTTP header string into a JSONObject. |
static JSONObject |
CookieList.toJSONObject(String string)
Convert a cookie list into a JSONObject. |
static JSONObject |
Cookie.toJSONObject(String string)
Convert a cookie specification string into a JSONObject. |
static JSONObject |
JSONML.toJSONObject(XMLTokener x)
Convert a well-formed (but not necessarily valid) XML string into a JSONObject using the JsonML transform. |
String |
JSONObject.toString(int indentFactor)
Make a prettyprinted JSON text of this JSONObject. |
String |
JSONArray.toString(int indentFactor)
Make a prettyprinted JSON text of this JSONArray. |
static String |
JSONML.toString(JSONArray ja)
Reverse the JSONML transformation, making an XML text from a JSONArray. |
static String |
CDL.toString(JSONArray ja)
Produce a comma delimited text from a JSONArray of JSONObjects. |
static String |
CDL.toString(JSONArray names,
JSONArray ja)
Produce a comma delimited text from a JSONArray of JSONObjects using a provided list of names. |
static String |
JSONML.toString(JSONObject jo)
Reverse the JSONML transformation, making an XML text from a JSONObject. |
static String |
HTTP.toString(JSONObject o)
Convert a JSONObject into an HTTP header. |
static String |
CookieList.toString(JSONObject o)
Convert a JSONObject into a cookie list. |
static String |
Cookie.toString(JSONObject o)
Convert a JSONObject into a cookie specification string. |
static String |
XML.toString(Object o)
Convert a JSONObject into a well-formed, element-normal XML string. |
static String |
XML.toString(Object o,
String tagName)
Convert a JSONObject into a well-formed, element-normal XML string. |
JSONWriter |
JSONWriter.value(boolean b)
Append either the value true or the value
false. |
JSONWriter |
JSONWriter.value(double d)
Append a double value. |
JSONWriter |
JSONWriter.value(long l)
Append a long value. |
JSONWriter |
JSONWriter.value(Object o)
Append an object value. |
Writer |
JSONObject.write(Writer writer)
Write the contents of the JSONObject as JSON text to a writer. |
Writer |
JSONArray.write(Writer writer)
Write the contents of the JSONArray as JSON text to a writer. |
| Constructors in org.json that throw JSONException | |
|---|---|
JSONArray(JSONTokener x)
Construct a JSONArray from a JSONTokener. |
|
JSONArray(Object array)
Construct a JSONArray from an array |
|
JSONArray(Object array,
boolean includeSuperClass)
Construct a JSONArray from an array with a bean. |
|
JSONArray(String source)
Construct a JSONArray from a source JSON text. |
|
JSONObject(JSONObject jo,
String[] names)
Construct a JSONObject from a subset of another JSONObject. |
|
JSONObject(JSONTokener x)
Construct a JSONObject from a JSONTokener. |
|
JSONObject(String source)
Construct a JSONObject from a source JSON text string. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||