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

AbstractContent - Class in us.monoid.web
Abstract base class of the content being sent to a server.
AbstractContent() - Constructor for class us.monoid.web.AbstractContent
 
AbstractResource - Class in us.monoid.web
Abstract base class for all resource handlers you want to use with Resty.
AbstractResource(Resty.Option...) - Constructor for class us.monoid.web.AbstractResource
 
accumulate(String, Object) - Method in class us.monoid.json.JSONObject
Accumulate values under a key.
alwaysSend(String, String) - Method in class us.monoid.web.Resty
Deprecated.  
AMP - Static variable in class us.monoid.json.XML
The Character '&'.
APOS - Static variable in class us.monoid.json.XML
The Character '''.
append(String, Object) - Method in class us.monoid.json.JSONObject
Append values to the array under a key.
apply(URLConnection) - Method in class us.monoid.web.Resty.Option
Override this to get access to the URLConnection before the actual connection is made.
apply(URLConnection) - Method in class us.monoid.web.Resty.Timeout
 
array() - Method in class us.monoid.json.JSONWriter
Begin appending a new array.
array() - Method in class us.monoid.web.JSONResource
Parse and return JSON array.
authenticate(URI, String, char[]) - Method in class us.monoid.web.Resty
Register this root URI for authentication.
authenticate(String, String, char[]) - Method in class us.monoid.web.Resty
 
authenticateForRealm(String, String, char[]) - Method in class us.monoid.web.Resty
Register a login password for the realm returned by the authorization challenge.

B

back() - Method in class us.monoid.json.JSONTokener
Back up one character.
BANG - Static variable in class us.monoid.json.XML
The Character '!'.
BinaryResource - Class in us.monoid.web
All-purpose resource which is used to access application/octet-stream content or any content in that respect.
BinaryResource(Resty.Option...) - Constructor for class us.monoid.web.BinaryResource
 
bytes(String) - Method in class us.monoid.web.Resty
Get the resource specified by the uri and return a binary resource for it.
bytes(URI) - Method in class us.monoid.web.Resty
Get the resource specified by the uri and return a binary resource for it.
bytes(String, AbstractContent) - Method in class us.monoid.web.Resty
POST to the URI and get the resource as binary resource.
bytes(URI, AbstractContent) - Method in class us.monoid.web.Resty
POST to the URI and get the resource as binary resource.

C

CDL - Class in us.monoid.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 us.monoid.json.CDL
 
Content - Class in us.monoid.web
Class to encapsulate content being sent as payload of a POST or PUT request.
Content(String, byte[]) - Constructor for class us.monoid.web.Content
Create a new content object with given mime type and the content as bytes.
content(JSONObject) - Static method in class us.monoid.web.Resty
Create a content object from JSON.
content(String) - Static method in class us.monoid.web.Resty
Create a content object from plain text.
content(byte[]) - Static method in class us.monoid.web.Resty
Create a content object from a byte array.
Cookie - Class in us.monoid.json
Convert a web browser cookie specification to a JSONObject and back.
Cookie() - Constructor for class us.monoid.json.Cookie
 
CookieList - Class in us.monoid.json
Convert a web browser cookie list string to a JSONObject and back.
CookieList() - Constructor for class us.monoid.json.CookieList
 
CRLF - Static variable in class us.monoid.json.HTTP
Carriage return/line feed.
CRLF - Static variable in class us.monoid.web.AbstractContent
 

D

data(String, String) - Static method in class us.monoid.web.Resty
Create a plain/text form data entry for a multipart form.
data(String, AbstractContent) - Static method in class us.monoid.web.Resty
Create a form data entry for a multipart form with any kind of content type.
dehexchar(char) - Static method in class us.monoid.json.JSONTokener
Get the hex value of a character (base16).
delete() - Static method in class us.monoid.web.Resty
Tell Resty to delete the URL content on the server, resulting in a DELETE.
Deletion - Class in us.monoid.web
Used for deleting contents on a server with the DELETE method.
Deletion() - Constructor for class us.monoid.web.Deletion
 
doc() - Method in class us.monoid.web.XMLResource
Return the DOM of the XML resource.
dontSend(String) - Method in class us.monoid.web.Resty
Don't send a header that was formely added in the alwaysSend method.
doubleToString(double) - Static method in class us.monoid.json.JSONObject
Produce a string from a double.

E

enc(String) - Static method in class us.monoid.web.Resty
Shortcut to URLEncoder.encode with UTF-8.
encodeAddressDisplayName(String) - Static method in class us.monoid.util.EncoderUtil
Encodes the display-name portion of an address.
encodeAddressLocalPart(String) - Static method in class us.monoid.util.EncoderUtil
Encodes the local part of an address specification as described in RFC 5322 section 3.4.1.
encodeB(byte[]) - Static method in class us.monoid.util.EncoderUtil
Encodes the specified byte array using the B encoding defined in RFC 2047.
encodeEncodedWord(String, EncoderUtil.Usage) - Static method in class us.monoid.util.EncoderUtil
Encodes the specified text into an encoded word or a sequence of encoded words separated by space.
encodeEncodedWord(String, EncoderUtil.Usage, int) - Static method in class us.monoid.util.EncoderUtil
Encodes the specified text into an encoded word or a sequence of encoded words separated by space.
encodeEncodedWord(String, EncoderUtil.Usage, int, Charset, EncoderUtil.Encoding) - Static method in class us.monoid.util.EncoderUtil
Encodes the specified text into an encoded word or a sequence of encoded words separated by space.
encodeHeaderParameter(String, String) - Static method in class us.monoid.util.EncoderUtil
Encodes the specified strings into a header parameter as described in RFC 2045 section 5.1 and RFC 2183 section 2.
encodeIfNecessary(String, EncoderUtil.Usage, int) - Static method in class us.monoid.util.EncoderUtil
Shortcut method that encodes the specified text into an encoded-word if the text has to be encoded.
encodeQ(byte[], EncoderUtil.Usage) - Static method in class us.monoid.util.EncoderUtil
Encodes the specified byte array using the Q encoding defined in RFC 2047.
EncoderUtil - Class in us.monoid.util
Static methods for encoding header field values.
EncoderUtil.Encoding - Enum in us.monoid.util
Selects one of the two encodings specified in RFC 2047.
EncoderUtil.Usage - Enum in us.monoid.util
Indicates the intended usage of an encoded word.
end() - Method in class us.monoid.json.JSONTokener
 
endArray() - Method in class us.monoid.json.JSONWriter
End an array.
endObject() - Method in class us.monoid.json.JSONWriter
End an object.
entity - Static variable in class us.monoid.json.XMLTokener
The table of entity values.
EQ - Static variable in class us.monoid.json.XML
The Character '='.
escape(String) - Static method in class us.monoid.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 us.monoid.json.XML
Replace special characters with XML escapes:
eval(XMLResource, Class<T>) - Method in class us.monoid.web.XPathQuery
Evaluate the XPath on an XMLResource and convert the result into aReturnType.

F

form(String) - Static method in class us.monoid.web.Resty
Create form content as application/x-www-form-urlencoded (i.e.
form(FormData...) - Static method in class us.monoid.web.Resty
Create form content to be sent as multipart/form-data.
FormContent - Class in us.monoid.web
Encapsulates form-data sent to web services.
FormContent(String) - Constructor for class us.monoid.web.FormContent
 
FormData - Class in us.monoid.web
Wrapper for content to be sent as form-data.
FormData(String, AbstractContent) - Constructor for class us.monoid.web.FormData
 
FormData(String, String, AbstractContent) - Constructor for class us.monoid.web.FormData
 

G

get(int) - Method in class us.monoid.json.JSONArray
Get the object value associated with an index.
get(String) - Method in class us.monoid.json.JSONObject
Get the value object associated with a key.
get(Enum<?>) - Method in class us.monoid.json.JSONObject
Get the value object associated with a key (from an enum name()).
get(String) - Method in class us.monoid.web.JSONResource
Gets the partial JSON object or attribute as specified in the path expression.
get(JSONPathQuery) - Method in class us.monoid.web.JSONResource
Gets the partial JSON object or attribute as specified in the path expression.
get(String) - Method in class us.monoid.web.XMLResource
Access the XML evaluating an XPath on it, returning the resulting NodeList.
get(String, Class<T>) - Method in class us.monoid.web.XMLResource
Access the XML evaluating an XPath on it, returning the resulting Object of the desired type Supported types are NodeList, String, Boolean, Double, Node.
getBoolean(int) - Method in class us.monoid.json.JSONArray
Get the boolean value associated with an index.
getBoolean(String) - Method in class us.monoid.json.JSONObject
Get the boolean value associated with a key.
getBoolean(Enum<?>) - Method in class us.monoid.json.JSONObject
Get the boolean value associated with a key.
getCause() - Method in exception us.monoid.json.JSONException
 
getDouble(int) - Method in class us.monoid.json.JSONArray
Get the double value associated with an index.
getDouble(String) - Method in class us.monoid.json.JSONObject
Get the double value associated with a key.
getDouble(Enum<?>) - Method in class us.monoid.json.JSONObject
Get the double value associated with a key.
getInt(int) - Method in class us.monoid.json.JSONArray
Get the int value associated with an index.
getInt(String) - Method in class us.monoid.json.JSONObject
Get the int value associated with a key.
getInt(Enum<?>) - Method in class us.monoid.json.JSONObject
Get the int value associated with a key.
getJSONArray(int) - Method in class us.monoid.json.JSONArray
Get the JSONArray associated with an index.
getJSONArray(String) - Method in class us.monoid.json.JSONObject
Get the JSONArray value associated with a key.
getJSONArray(Enum<?>) - Method in class us.monoid.json.JSONObject
Get the JSONArray value associated with a key.
getJSONObject(int) - Method in class us.monoid.json.JSONArray
Get the JSONObject associated with an index.
getJSONObject(String) - Method in class us.monoid.json.JSONObject
Get the JSONObject value associated with a key.
getJSONObject(Enum<?>) - Method in class us.monoid.json.JSONObject
Get the JSONObject value associated with a key.
getLong(int) - Method in class us.monoid.json.JSONArray
Get the long value associated with an index.
getLong(String) - Method in class us.monoid.json.JSONObject
Get the long value associated with a key.
getLong(Enum<?>) - Method in class us.monoid.json.JSONObject
Get the long value associated with a key.
getNames(JSONObject) - Static method in class us.monoid.json.JSONObject
Get an array of field names from a JSONObject.
getNames(Object) - Static method in class us.monoid.json.JSONObject
Get an array of field names from an Object.
getString(int) - Method in class us.monoid.json.JSONArray
Get the string associated with an index.
getString(String) - Method in class us.monoid.json.JSONObject
Get the string associated with a key.
getString(Enum<?>) - Method in class us.monoid.json.JSONObject
Get the string associated with a key.
getUrlConnection() - Method in class us.monoid.web.AbstractResource
 
GT - Static variable in class us.monoid.json.XML
The Character '>'.

H

has(String) - Method in class us.monoid.json.JSONObject
Determine if the JSONObject contains a specific key.
has(Enum<?>) - Method in class us.monoid.json.JSONObject
Determine if the JSONObject contains a specific key.
hasToBeEncoded(String, int) - Static method in class us.monoid.util.EncoderUtil
Determines if the specified string has to encoded into an encoded-word.
HTTP - Class in us.monoid.json
Convert an HTTP header to a JSONObject and back.
HTTP() - Constructor for class us.monoid.json.HTTP
 
http() - Method in class us.monoid.web.AbstractResource
 
HTTPTokener - Class in us.monoid.json
The HTTPTokener extends the JSONTokener to provide additional methods for the parsing of HTTP headers.
HTTPTokener(String) - Constructor for class us.monoid.json.HTTPTokener
Construct an HTTPTokener from a string.

I

identifyAsMozilla() - Method in class us.monoid.web.Resty
Sets the User-Agent to identify as Mozilla/Firefox.
identifyAsResty() - Method in class us.monoid.web.Resty
Sets the User-Agent to Resty.
ignoreAllCerts() - Static method in class us.monoid.web.Resty
Install a SSL socket factory which will trust all certificates.
increment(String) - Method in class us.monoid.json.JSONObject
Increment a property of a JSONObject.
increment(Enum<?>) - Method in class us.monoid.json.JSONObject
Increment a property of a JSONObject.
init(Resty) - Method in class us.monoid.web.Resty.Option
Callback from Resty when the option is set on the Resty instance.
init(Resty) - Method in class us.monoid.web.Resty.Proxy
 
isNull(int) - Method in class us.monoid.json.JSONArray
Determine if the value is null.
isNull(String) - Method in class us.monoid.json.JSONObject
Determine if the value associated with the key is null or if there is no value.
isNull(Enum<?>) - Method in class us.monoid.json.JSONObject
Determine if the value associated with the key is null or if there is no value.
isToken(String) - Static method in class us.monoid.util.EncoderUtil
Tests whether the specified string is a token as defined in RFC 2045 section 5.1.

J

join(String) - Method in class us.monoid.json.JSONArray
Make a string from the contents of this JSONArray.
json(JSONPathQuery) - Method in class us.monoid.web.JSONResource
Execute the given path query on the json GET the returned URI expecting JSON
json(JSONPathQuery, Content) - Method in class us.monoid.web.JSONResource
Execute the given path query on the json and POST to the returned URI expecting JSON
json(String) - Method in class us.monoid.web.Resty
GET a URI given by string and parse the result as JSON.
json(URI) - Method in class us.monoid.web.Resty
GET a URI and parse the result as JSON.
json(URI, AbstractContent) - Method in class us.monoid.web.Resty
POST to a URI and parse the result as JSON
json(String, AbstractContent) - Method in class us.monoid.web.Resty
 
json(XPathQuery) - Method in class us.monoid.web.XMLResource
Execute the given path query on the XML, GET the returned URI expecting JSON as content
json(XPathQuery, Content) - Method in class us.monoid.web.XMLResource
Execute the given path query on the XML, POST the returned URI expecting JSON
JSONArray - Class in us.monoid.json
A JSONArray is an ordered sequence of values.
JSONArray() - Constructor for class us.monoid.json.JSONArray
Construct an empty JSONArray.
JSONArray(JSONTokener) - Constructor for class us.monoid.json.JSONArray
Construct a JSONArray from a JSONTokener.
JSONArray(String) - Constructor for class us.monoid.json.JSONArray
Construct a JSONArray from a source JSON text.
JSONArray(Collection<?>) - Constructor for class us.monoid.json.JSONArray
Construct a JSONArray from a Collection.
JSONArray(Object) - Constructor for class us.monoid.json.JSONArray
Construct a JSONArray from an array
JSONException - Exception in us.monoid.json
The JSONException is thrown by the JSON.org classes when things are amiss.
JSONException(String) - Constructor for exception us.monoid.json.JSONException
Constructs a JSONException with an explanatory message.
JSONException(Throwable) - Constructor for exception us.monoid.json.JSONException
 
JSONML - Class in us.monoid.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 us.monoid.json.JSONML
 
JSONObject - Class in us.monoid.json
A JSONObject is an unordered collection of name/value pairs.
JSONObject() - Constructor for class us.monoid.json.JSONObject
Construct an empty JSONObject.
JSONObject(JSONObject, String[]) - Constructor for class us.monoid.json.JSONObject
Construct a JSONObject from a subset of another JSONObject.
JSONObject(JSONTokener) - Constructor for class us.monoid.json.JSONObject
Construct a JSONObject from a JSONTokener.
JSONObject(Map<?, ?>) - Constructor for class us.monoid.json.JSONObject
Construct a JSONObject from a Map.
JSONObject(Object) - Constructor for class us.monoid.json.JSONObject
Construct a JSONObject from an Object using bean getters.
JSONObject(Object, String[]) - Constructor for class us.monoid.json.JSONObject
Construct a JSONObject from an Object, using reflection to find the public members.
JSONObject(String) - Constructor for class us.monoid.json.JSONObject
Construct a JSONObject from a source JSON text string.
JSONPathQuery - Class in us.monoid.web
Create a path query for a JSON object.
JSONPathQuery(String) - Constructor for class us.monoid.web.JSONPathQuery
 
JSONResource - Class in us.monoid.web
A resource presentation in JSON format.
JSONResource(Resty.Option...) - Constructor for class us.monoid.web.JSONResource
 
JSONString - Interface in us.monoid.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 us.monoid.json
JSONStringer provides a quick and convenient way of producing JSON text.
JSONStringer() - Constructor for class us.monoid.json.JSONStringer
Make a fresh JSONStringer.
JSONTokener - Class in us.monoid.json
A JSONTokener takes a source string and extracts characters and tokens from it.
JSONTokener(Reader) - Constructor for class us.monoid.json.JSONTokener
Construct a JSONTokener from a reader.
JSONTokener(String) - Constructor for class us.monoid.json.JSONTokener
Construct a JSONTokener from a string.
JSONWriter - Class in us.monoid.json
JSONWriter provides a quick and convenient way of producing JSON text.
JSONWriter(Writer) - Constructor for class us.monoid.json.JSONWriter
Make a fresh JSONWriter.

K

key(String) - Method in class us.monoid.json.JSONWriter
Append a key.
keys() - Method in class us.monoid.json.JSONObject
Get an enumeration of the keys of the JSONObject.

L

length() - Method in class us.monoid.json.JSONArray
Get the number of elements in the JSONArray, included nulls.
length() - Method in class us.monoid.json.JSONObject
Get the number of keys stored in the JSONObject.
location() - Method in class us.monoid.web.AbstractResource
Get the location header as URI.
LT - Static variable in class us.monoid.json.XML
The Character '<'.

M

main(String[]) - Static method in class us.monoid.json.Test
Entry point.
more() - Method in class us.monoid.json.JSONTokener
Determine if the source string still contains characters that next() can consume.

N

names() - Method in class us.monoid.json.JSONObject
Produce a JSONArray containing the names of the elements of this JSONObject.
next() - Method in class us.monoid.json.JSONTokener
Get the next character in the source string.
next(char) - Method in class us.monoid.json.JSONTokener
Consume the next character, and check that it matches a specified character.
next(int) - Method in class us.monoid.json.JSONTokener
Get the next n characters.
nextCDATA() - Method in class us.monoid.json.XMLTokener
Get the text in the CDATA block.
nextClean() - Method in class us.monoid.json.JSONTokener
Get the next char in the string, skipping whitespace.
nextContent() - Method in class us.monoid.json.XMLTokener
Get the next XML outer token, trimming whitespace.
nextEntity(char) - Method in class us.monoid.json.XMLTokener
Return the next entity.
nextMeta() - Method in class us.monoid.json.XMLTokener
Returns the next XML meta token.
nextString(char) - Method in class us.monoid.json.JSONTokener
Return the characters up to the next close quote character.
nextTo(char) - Method in class us.monoid.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 us.monoid.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 us.monoid.json.HTTPTokener
Get the next token or string.
nextToken() - Method in class us.monoid.json.XMLTokener
Get the next XML Token.
nextValue() - Method in class us.monoid.json.JSONTokener
Get the next value.
noSpace(String) - Static method in class us.monoid.json.XML
Throw an exception if the string contains whitespace.
NULL - Static variable in class us.monoid.json.JSONObject
It is sometimes more convenient and less ambiguous to have a NULL object than to use Java's null value.
numberToString(Number) - Static method in class us.monoid.json.JSONObject
Produce a string from a Number.

O

object() - Method in class us.monoid.json.JSONWriter
Begin appending a new object.
object() - Method in class us.monoid.web.JSONResource
Parse and return JSON object.
opt(int) - Method in class us.monoid.json.JSONArray
Get the optional object value associated with an index.
opt(String) - Method in class us.monoid.json.JSONObject
Get an optional value associated with a key.
opt(Enum<?>) - Method in class us.monoid.json.JSONObject
Get an optional value associated with a key.
optBoolean(int) - Method in class us.monoid.json.JSONArray
Get the optional boolean value associated with an index.
optBoolean(int, boolean) - Method in class us.monoid.json.JSONArray
Get the optional boolean value associated with an index.
optBoolean(String) - Method in class us.monoid.json.JSONObject
Get an optional boolean associated with a key.
optBoolean(Enum<?>) - Method in class us.monoid.json.JSONObject
Get an optional boolean associated with a key.
optBoolean(String, boolean) - Method in class us.monoid.json.JSONObject
Get an optional boolean associated with a key.
optBoolean(Enum<?>, boolean) - Method in class us.monoid.json.JSONObject
Get an optional boolean associated with a key.
optDouble(int) - Method in class us.monoid.json.JSONArray
Get the optional double value associated with an index.
optDouble(int, double) - Method in class us.monoid.json.JSONArray
Get the optional double value associated with an index.
optDouble(String) - Method in class us.monoid.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(Enum<?>) - Method in class us.monoid.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 us.monoid.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.
optDouble(Enum<?>, double) - Method in class us.monoid.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 us.monoid.json.JSONArray
Get the optional int value associated with an index.
optInt(int, int) - Method in class us.monoid.json.JSONArray
Get the optional int value associated with an index.
optInt(String) - Method in class us.monoid.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(Enum<?>) - Method in class us.monoid.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 us.monoid.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.
optInt(Enum<?>, int) - Method in class us.monoid.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 us.monoid.json.JSONArray
Get the optional JSONArray associated with an index.
optJSONArray(String) - Method in class us.monoid.json.JSONObject
Get an optional JSONArray associated with a key.
optJSONArray(Enum<?>) - Method in class us.monoid.json.JSONObject
Get an optional JSONArray associated with a key.
optJSONObject(int) - Method in class us.monoid.json.JSONArray
Get the optional JSONObject associated with an index.
optJSONObject(String) - Method in class us.monoid.json.JSONObject
Get an optional JSONObject associated with a key.
optJSONObject(Enum<?>) - Method in class us.monoid.json.JSONObject
Get an optional JSONObject associated with a key.
optLong(int) - Method in class us.monoid.json.JSONArray
Get the optional long value associated with an index.
optLong(int, long) - Method in class us.monoid.json.JSONArray
Get the optional long value associated with an index.
optLong(String) - Method in class us.monoid.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(Enum<?>) - Method in class us.monoid.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 us.monoid.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.
optLong(Enum<?>, long) - Method in class us.monoid.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 us.monoid.json.JSONArray
Get the optional string value associated with an index.
optString(int, String) - Method in class us.monoid.json.JSONArray
Get the optional string associated with an index.
optString(String) - Method in class us.monoid.json.JSONObject
Get an optional string associated with a key.
optString(Enum<?>) - Method in class us.monoid.json.JSONObject
Get an optional string associated with a key.
optString(String, String) - Method in class us.monoid.json.JSONObject
Get an optional string associated with a key.
optString(Enum<?>, String) - Method in class us.monoid.json.JSONObject
Get an optional string associated with a key.

P

path(String) - Static method in class us.monoid.web.Resty
Create a JSONPathQuery to extract data from a JSON object.
PathQuery<T,S> - Class in us.monoid.web
Simple abstraction for queries into complex datastructures.
PathQuery() - Constructor for class us.monoid.web.PathQuery
 
proxy(String, int) - Static method in class us.monoid.web.Resty.Option
Set a proxy (overrides standard proxy settings)
put(boolean) - Method in class us.monoid.json.JSONArray
Append a boolean value.
put(Collection<?>) - Method in class us.monoid.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 us.monoid.json.JSONArray
Append a double value.
put(int) - Method in class us.monoid.json.JSONArray
Append an int value.
put(long) - Method in class us.monoid.json.JSONArray
Append an long value.
put(Map<?, ?>) - Method in class us.monoid.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 us.monoid.json.JSONArray
Append an object value.
put(int, boolean) - Method in class us.monoid.json.JSONArray
Put or replace a boolean value in the JSONArray.
put(int, Collection<?>) - Method in class us.monoid.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 us.monoid.json.JSONArray
Put or replace a double value.
put(int, int) - Method in class us.monoid.json.JSONArray
Put or replace an int value.
put(int, long) - Method in class us.monoid.json.JSONArray
Put or replace a long value.
put(int, Map<?, ?>) - Method in class us.monoid.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 us.monoid.json.JSONArray
Put or replace an object value in the JSONArray.
put(String, boolean) - Method in class us.monoid.json.JSONObject
Put a key/boolean pair in the JSONObject.
put(Enum<?>, boolean) - Method in class us.monoid.json.JSONObject
Put a key/boolean pair in the JSONObject.
put(String, Collection<?>) - Method in class us.monoid.json.JSONObject
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
put(Enum<?>, Collection<?>) - Method in class us.monoid.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, double) - Method in class us.monoid.json.JSONObject
Put a key/double pair in the JSONObject.
put(Enum<?>, double) - Method in class us.monoid.json.JSONObject
Put a key/double pair in the JSONObject.
put(String, int) - Method in class us.monoid.json.JSONObject
Put a key/int pair in the JSONObject.
put(Enum<?>, int) - Method in class us.monoid.json.JSONObject
Put a key/int pair in the JSONObject.
put(String, long) - Method in class us.monoid.json.JSONObject
Put a key/long pair in the JSONObject.
put(Enum<?>, long) - Method in class us.monoid.json.JSONObject
Put a key/long pair in the JSONObject.
put(String, Map<?, ?>) - Method in class us.monoid.json.JSONObject
Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map.
put(Enum<?>, Map<?, ?>) - Method in class us.monoid.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 us.monoid.json.JSONObject
Put a key/value pair in the JSONObject.
put(Enum<?>, Object) - Method in class us.monoid.json.JSONObject
Put a key/value pair in the JSONObject.
put(Content) - Static method in class us.monoid.web.Resty
Tell Resty to replace the specified content on the server, resulting in a PUT operation instead of a POST operation.
putOnce(String, Object) - Method in class us.monoid.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.
putOnce(Enum<?>, Object) - Method in class us.monoid.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 us.monoid.json.JSONObject
Put a key/value pair in the JSONObject, but only if the key and the value are both non-null.
putOpt(Enum<?>, Object) - Method in class us.monoid.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 us.monoid.json.XML
The Character '?'.
QUOT - Static variable in class us.monoid.json.XML
The Character '"'.
quote(String) - Static method in class us.monoid.json.JSONObject
Produce a string in double quotes with backslash sequences in all the right places.

R

remove(int) - Method in class us.monoid.json.JSONArray
Remove an index and close the hole.
remove(String) - Method in class us.monoid.json.JSONObject
Remove a name and its value, if present.
remove(Enum<?>) - Method in class us.monoid.json.JSONObject
Remove a name and its value, if present.
Replacement - Class in us.monoid.web
Used in PUT operations.
Replacement(Content) - Constructor for class us.monoid.web.Replacement
 
Resty - Class in us.monoid.web
Main class.
Resty(Resty.Option...) - Constructor for class us.monoid.web.Resty
Create an instance of Resty with the following list of options.
Resty.Option - Class in us.monoid.web
Base class for Resty options.
Resty.Option() - Constructor for class us.monoid.web.Resty.Option
 
Resty.Proxy - Class in us.monoid.web
Option to set the proxy for a Resty instance.
Resty.Proxy(String, int) - Constructor for class us.monoid.web.Resty.Proxy
 
Resty.Timeout - Class in us.monoid.web
Option to set a timeout.
Resty.Timeout(int) - Constructor for class us.monoid.web.Resty.Timeout
 
rowToJSONArray(JSONTokener) - Static method in class us.monoid.json.CDL
Produce a JSONArray of strings from a row of comma delimited values.
rowToJSONObject(JSONArray, JSONTokener) - Static method in class us.monoid.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 us.monoid.json.CDL
Produce a comma delimited text row from a JSONArray.

S

save(File) - Method in class us.monoid.web.BinaryResource
Save the contents of the resource to a file.
setOptions(Resty.Option...) - Method in class us.monoid.web.Resty
Set options if you missed your opportunity in the c'tor or if you want to change the options.
setProxy(String, int) - Method in class us.monoid.web.Resty
Set the proxy for this instance of Resty.
skipPast(String) - Method in class us.monoid.json.XMLTokener
Skip characters until past the requested string.
skipTo(char) - Method in class us.monoid.json.JSONTokener
Skip characters until the next character is the requested character.
SLASH - Static variable in class us.monoid.json.XML
The Character '/'.
sortedKeys() - Method in class us.monoid.json.JSONObject
Get an enumeration of the keys of the JSONObject.
status(int) - Method in class us.monoid.web.AbstractResource
Check if the URLConnection has returned the specified responseCode
stream() - Method in class us.monoid.web.AbstractResource
 
stringToValue(String) - Static method in class us.monoid.json.JSONObject
Try to convert a string into a number, boolean, or null.
syntaxError(String) - Method in class us.monoid.json.JSONTokener
Make a JSONException to signal a syntax error.

T

Test - Class in us.monoid.json
Test class.
Test() - Constructor for class us.monoid.json.Test
 
text(JSONPathQuery) - Method in class us.monoid.web.JSONResource
Execute the given path query on the json and use the returned string as an URI expecting text/*
text(URI) - Method in class us.monoid.web.Resty
Get a plain text resource for the specified URI.
text(URI, AbstractContent) - Method in class us.monoid.web.Resty
Get a plain text resource for the specified URI by POSTing to it.
text(String) - Method in class us.monoid.web.Resty
Get a plain text resource for the specified URI.
text(String, AbstractContent) - Method in class us.monoid.web.Resty
Get a plain text resource for the specified URI by POSTing to it.
text(XPathQuery) - Method in class us.monoid.web.XMLResource
Execute the given path query on the XML, GET the returned URI expecting text/* as content
text(XPathQuery, Content) - Method in class us.monoid.web.XMLResource
Execute the given path query on the XML, POST the returned URI expecting text/*
TextResource - Class in us.monoid.web
This is a text/* representation of a resource.
TextResource(Resty.Option...) - Constructor for class us.monoid.web.TextResource
 
timeout(int) - Static method in class us.monoid.web.Resty.Option
Specify the connection timeout in milliseconds.
toJSONArray(String) - Static method in class us.monoid.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 us.monoid.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 us.monoid.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 us.monoid.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 us.monoid.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 us.monoid.json.JSONML
Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.
toJSONArray(JSONArray) - Method in class us.monoid.json.JSONObject
Produce a JSONArray containing the values of the members of this JSONObject.
toJSONObject(String) - Static method in class us.monoid.json.Cookie
Convert a cookie specification string into a JSONObject.
toJSONObject(String) - Static method in class us.monoid.json.CookieList
Convert a cookie list into a JSONObject.
toJSONObject(String) - Static method in class us.monoid.json.HTTP
Convert an HTTP header string into a JSONObject.
toJSONObject(JSONArray) - Method in class us.monoid.json.JSONArray
Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.
toJSONObject(XMLTokener) - Static method in class us.monoid.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 us.monoid.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 us.monoid.json.XML
Convert a well-formed (but not necessarily valid) XML string into a JSONObject.
toJSONString() - Method in interface us.monoid.json.JSONString
The toJSONString method allows a class to produce its own JSON serialization.
toObject() - Method in class us.monoid.web.JSONResource
Added for compatibility with Scala.
toString(JSONArray) - Static method in class us.monoid.json.CDL
Produce a comma delimited text from a JSONArray of JSONObjects.
toString(JSONArray, JSONArray) - Static method in class us.monoid.json.CDL
Produce a comma delimited text from a JSONArray of JSONObjects using a provided list of names.
toString(JSONObject) - Static method in class us.monoid.json.Cookie
Convert a JSONObject into a cookie specification string.
toString(JSONObject) - Static method in class us.monoid.json.CookieList
Convert a JSONObject into a cookie list.
toString(JSONObject) - Static method in class us.monoid.json.HTTP
Convert a JSONObject into an HTTP header.
toString() - Method in class us.monoid.json.JSONArray
Make a JSON text of this JSONArray.
toString(int) - Method in class us.monoid.json.JSONArray
Make a prettyprinted JSON text of this JSONArray.
toString(JSONArray) - Static method in class us.monoid.json.JSONML
Reverse the JSONML transformation, making an XML text from a JSONArray.
toString(JSONObject) - Static method in class us.monoid.json.JSONML
Reverse the JSONML transformation, making an XML text from a JSONObject.
toString() - Method in class us.monoid.json.JSONObject
Make a JSON text of this JSONObject.
toString(int) - Method in class us.monoid.json.JSONObject
Make a prettyprinted JSON text of this JSONObject.
toString() - Method in class us.monoid.json.JSONStringer
Return the JSON text.
toString() - Method in class us.monoid.json.JSONTokener
Make a printable string of this JSONTokener.
toString(Object) - Static method in class us.monoid.json.XML
Convert a JSONObject into a well-formed, element-normal XML string.
toString(Object, String) - Static method in class us.monoid.json.XML
Convert a JSONObject into a well-formed, element-normal XML string.
toString() - Method in class us.monoid.web.FormContent
 
toString() - Method in class us.monoid.web.TextResource
Kinda obvious, but, yes, it parses the inputStream with the proper charset and returns the content as String

U

unescape(String) - Static method in class us.monoid.json.Cookie
Convert %hh sequences to single characters, and convert plus to space.
us.monoid.json - package us.monoid.json
 
us.monoid.util - package us.monoid.util
 
us.monoid.web - package us.monoid.web
Welcome to Resty! This is the main package of Resty.
US_ASCII - Static variable in class us.monoid.util.EncoderUtil
 

V

value(boolean) - Method in class us.monoid.json.JSONWriter
Append either the value true or the value false.
value(double) - Method in class us.monoid.json.JSONWriter
Append a double value.
value(long) - Method in class us.monoid.json.JSONWriter
Append a long value.
value(Object) - Method in class us.monoid.json.JSONWriter
Append an object value.
valueOf(String) - Static method in enum us.monoid.util.EncoderUtil.Encoding
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum us.monoid.util.EncoderUtil.Usage
Returns the enum constant of this type with the specified name.
values() - Static method in enum us.monoid.util.EncoderUtil.Encoding
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum us.monoid.util.EncoderUtil.Usage
Returns an array containing the constants of this enum type, in the order they are declared.

W

withHeader(String, String) - Method in class us.monoid.web.Resty
Tell Resty to send the specified header with each request done on this instance.
write(Writer) - Method in class us.monoid.json.JSONArray
Write the contents of the JSONArray as JSON text to a writer.
write(Writer) - Method in class us.monoid.json.JSONObject
Write the contents of the JSONObject as JSON text to a writer.
writeContent(OutputStream) - Method in class us.monoid.web.AbstractContent
 
writeContent(OutputStream) - Method in class us.monoid.web.Content
 
writeContent(OutputStream) - Method in class us.monoid.web.Deletion
 
writeContent(OutputStream) - Method in class us.monoid.web.FormData
 
writeContent(OutputStream) - Method in class us.monoid.web.Replacement
 
writeHeader(OutputStream) - Method in class us.monoid.web.AbstractContent
 
writeHeader(OutputStream) - Method in class us.monoid.web.Content
Used as a mime part, writing content headers
writeHeader(OutputStream) - Method in class us.monoid.web.Deletion
 
writeHeader(OutputStream) - Method in class us.monoid.web.FormData
 
writeHeader(OutputStream) - Method in class us.monoid.web.Replacement
 

X

XML - Class in us.monoid.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 us.monoid.json.XML
 
xml(JSONPathQuery) - Method in class us.monoid.web.JSONResource
Execute the given path query on the json and GET the returned URI expecting text/*
xml(JSONPathQuery, Content) - Method in class us.monoid.web.JSONResource
Execute the given path query on the json and POST to the returned URI expecting text/*
xml(String) - Method in class us.monoid.web.Resty
GET a URI given by string and parse the result as XML.
xml(URI) - Method in class us.monoid.web.Resty
GET a URI and parse the result as XML.
xml(URI, AbstractContent) - Method in class us.monoid.web.Resty
POST to a URI and parse the result as XML
xml(String, AbstractContent) - Method in class us.monoid.web.Resty
 
xml(XPathQuery) - Method in class us.monoid.web.XMLResource
Execute the given path query on the XML, GET the returned URI expecting xml/* as content
xml(XPathQuery, Content) - Method in class us.monoid.web.XMLResource
Execute the given path query on the XML, POST the returned URI expecting XML
XMLResource - Class in us.monoid.web
Resource presentation for an XML document.
XMLResource(Resty.Option...) - Constructor for class us.monoid.web.XMLResource
 
XMLTokener - Class in us.monoid.json
The XMLTokener extends the JSONTokener to provide additional methods for the parsing of XML texts.
XMLTokener(String) - Constructor for class us.monoid.json.XMLTokener
Construct an XMLTokener from a string.
xpath(String) - Static method in class us.monoid.web.Resty
Create an XPathQuery to extract data from an XML document.
XPathQuery - Class in us.monoid.web
PathQuery for XPath.
XPathQuery(String) - Constructor for class us.monoid.web.XPathQuery
 

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

Copyright © 2013. All Rights Reserved.