A C D G H J L M N O P S T U X 

A

addQueryParameter(String, String...) - Method in class name.pehl.piriti.restlet.client.UrlBuilder
 
addResourcePath(String...) - Method in class name.pehl.piriti.restlet.client.UrlBuilder
 

C

clearResourcePaths() - Method in class name.pehl.piriti.restlet.client.UrlBuilder
 

D

defaultUrl() - Method in class name.pehl.piriti.restlet.client.UrlBuilder
 

G

getContext() - Method in class name.pehl.piriti.restlet.client.UrlBuilder
 
getDocument() - Method in class name.pehl.piriti.restlet.xml.client.PiritiXmlRepresentation
Returns always null.
getHost() - Method in class name.pehl.piriti.restlet.client.UrlBuilder
 
getJsonReader() - Method in class name.pehl.piriti.restlet.json.client.PiritiJsonRepresentation
 
getModel() - Method in interface name.pehl.piriti.restlet.client.PiritiRepresentation
Return an instance of T converted by a Piriti reader.
getModel() - Method in class name.pehl.piriti.restlet.json.client.PiritiJsonRepresentation
Converts the JSON to an instance of T using the JsonReader given as constructor argument.
getModel() - Method in class name.pehl.piriti.restlet.xml.client.PiritiXmlRepresentation
Converts the XML to an instance of T using the XmlReader given as constructor argument.
getModels() - Method in interface name.pehl.piriti.restlet.client.PiritiRepresentation
Return a list of Ts converted by a Piriti reader.
getModels() - Method in class name.pehl.piriti.restlet.json.client.PiritiJsonRepresentation
Converts the JSON to a list of Ts using the JsonReader given as constructor argument.
getModels() - Method in class name.pehl.piriti.restlet.xml.client.PiritiXmlRepresentation
Converts the XML to a list of Ts using the XmlReader given as constructor argument.
getModule() - Method in class name.pehl.piriti.restlet.client.UrlBuilder
 
getPort() - Method in class name.pehl.piriti.restlet.client.UrlBuilder
 
getProtocol() - Method in class name.pehl.piriti.restlet.client.UrlBuilder
 
getQueryParams() - Method in class name.pehl.piriti.restlet.client.UrlBuilder
 
getResourcePaths() - Method in class name.pehl.piriti.restlet.client.UrlBuilder
 
getVersion() - Method in class name.pehl.piriti.restlet.client.UrlBuilder
 
getXmlReader() - Method in class name.pehl.piriti.restlet.xml.client.PiritiXmlRepresentation
 

H

handle(Request, Response) - Method in class name.pehl.piriti.restlet.json.client.JsonModelResponse
handle(Request, Response) - Method in class name.pehl.piriti.restlet.json.client.JsonModelsResponse
handle(Request, Response) - Method in class name.pehl.piriti.restlet.xml.client.XmlModelResponse
handle(Request, Response) - Method in class name.pehl.piriti.restlet.xml.client.XmlModelsResponse

J

JsonModelResponse<T> - Class in name.pehl.piriti.restlet.json.client
Convinience callback class which can be used together with PiritiJsonRepresentation: ClientResource clientResource = new ClientResource("/resource/with/json/representation"); clientResource.setOnResponse(new JsonModelResponse<Book>(Book.JSON) { @Override public void onSuccess(Book book, Request request, Response response) { ... } @Override public void onError(IOException error, Request request, Response response) { ... } });
JsonModelResponse(JsonReader<T>) - Constructor for class name.pehl.piriti.restlet.json.client.JsonModelResponse
Construct a new instance with the specified reader.
JsonModelsResponse<T> - Class in name.pehl.piriti.restlet.json.client
Convinience callback class which can be used together with PiritiJsonRepresentation: ClientResource clientResource = new ClientResource("/resource/with/json/representation"); clientResource.setOnResponse(new JsonModelsResponse<Book>(Book.JSON) { @Override public void onSuccess(List<Book> books, Request request, Response response) { ... } @Override public void onError(IOException error, Request request, Response response) { ... } });
JsonModelsResponse(JsonReader<T>) - Constructor for class name.pehl.piriti.restlet.json.client.JsonModelsResponse
Construct a new instance with the specified reader.

L

lazyGetDocument() - Method in class name.pehl.piriti.restlet.xml.client.PiritiXmlRepresentation
Returns the wrapped document instance.

M

MAX_PORT - Static variable in class name.pehl.piriti.restlet.client.UrlBuilder
 
MIN_PORT - Static variable in class name.pehl.piriti.restlet.client.UrlBuilder
 

N

name.pehl.piriti.restlet.client - package name.pehl.piriti.restlet.client
 
name.pehl.piriti.restlet.json.client - package name.pehl.piriti.restlet.json.client
 
name.pehl.piriti.restlet.xml.client - package name.pehl.piriti.restlet.xml.client
 

O

onError(IOException, Request, Response) - Method in class name.pehl.piriti.restlet.json.client.JsonModelResponse
Called when there was an IO error when reading the model.
onError(IOException, Request, Response) - Method in class name.pehl.piriti.restlet.json.client.JsonModelsResponse
Called when there was an IO error when reading the models.
onError(IOException, Request, Response) - Method in class name.pehl.piriti.restlet.xml.client.XmlModelResponse
Called when there was an IO error when reading the model.
onError(IOException, Request, Response) - Method in class name.pehl.piriti.restlet.xml.client.XmlModelsResponse
Called when there was an IO error when reading the models.
onSuccess(T, Request, Response) - Method in class name.pehl.piriti.restlet.json.client.JsonModelResponse
Called when the model was read and mapped successfully from the response.
onSuccess(List<T>, Request, Response) - Method in class name.pehl.piriti.restlet.json.client.JsonModelsResponse
Called when the models were read and mapped successfully from the response.
onSuccess(T, Request, Response) - Method in class name.pehl.piriti.restlet.xml.client.XmlModelResponse
Called when the model was read and mapped successfully from the response.
onSuccess(List<T>, Request, Response) - Method in class name.pehl.piriti.restlet.xml.client.XmlModelsResponse
Called when the models were read and mapped successfully from the response.

P

PiritiJsonRepresentation<T> - Class in name.pehl.piriti.restlet.json.client
Representation which uses an JsonReader for converting JSON to an instance of T.
PiritiJsonRepresentation(JsonReader<T>, MediaType) - Constructor for class name.pehl.piriti.restlet.json.client.PiritiJsonRepresentation
Constructor for an null JSON value.
PiritiJsonRepresentation(JsonReader<T>, MediaType, JSONValue) - Constructor for class name.pehl.piriti.restlet.json.client.PiritiJsonRepresentation
Constructor from an existing JSON value.
PiritiJsonRepresentation(JsonReader<T>, Representation) - Constructor for class name.pehl.piriti.restlet.json.client.PiritiJsonRepresentation
Constructor.
PiritiJsonRepresentation(JsonReader<T>, String) - Constructor for class name.pehl.piriti.restlet.json.client.PiritiJsonRepresentation
Constructor from a JSON string.
PiritiRepresentation<T> - Interface in name.pehl.piriti.restlet.client
Common interface for representations which rely on Piriti readers.
PiritiXmlRepresentation<T> - Class in name.pehl.piriti.restlet.xml.client
Representation which uses an XmlReader for converting XML to an instance of T.
PiritiXmlRepresentation(XmlReader<T>, MediaType) - Constructor for class name.pehl.piriti.restlet.xml.client.PiritiXmlRepresentation
Constructor for an empty document.
PiritiXmlRepresentation(XmlReader<T>, MediaType, Document) - Constructor for class name.pehl.piriti.restlet.xml.client.PiritiXmlRepresentation
Constructor from an existing DOM document.
PiritiXmlRepresentation(XmlReader<T>, Representation) - Constructor for class name.pehl.piriti.restlet.xml.client.PiritiXmlRepresentation
Constructor.
PORT_UNSPECIFIED - Static variable in class name.pehl.piriti.restlet.client.UrlBuilder
 
PROTOCOL_HOSTNAME_SEPARATOR - Static variable in class name.pehl.piriti.restlet.client.UrlBuilder
 

S

setContext(String) - Method in class name.pehl.piriti.restlet.client.UrlBuilder
 
setHost(String) - Method in class name.pehl.piriti.restlet.client.UrlBuilder
 
setModule(String) - Method in class name.pehl.piriti.restlet.client.UrlBuilder
 
setPort(int) - Method in class name.pehl.piriti.restlet.client.UrlBuilder
 
setProtocol(String) - Method in class name.pehl.piriti.restlet.client.UrlBuilder
 
setVersion(String) - Method in class name.pehl.piriti.restlet.client.UrlBuilder
 

T

toString() - Method in class name.pehl.piriti.restlet.client.UrlBuilder
 
toUrl() - Method in class name.pehl.piriti.restlet.client.UrlBuilder
Build the URL and return it as an encoded string.

U

URL_MIN_LENGTH - Static variable in class name.pehl.piriti.restlet.client.UrlBuilder
 
UrlBuilder - Class in name.pehl.piriti.restlet.client
URL Builder with dedicated support for resources.
UrlBuilder() - Constructor for class name.pehl.piriti.restlet.client.UrlBuilder
Builds a new URL and assigns the protocol, hostname, port and context from from GWT.getHostPageBaseURL().

X

XmlModelResponse<T> - Class in name.pehl.piriti.restlet.xml.client
Convinience callback class which can be used together with PiritiXmlRepresentation: ClientResource clientResource = new ClientResource("/resource/with/xml/representation"); clientResource.setOnResponse(new XmlModelResponse<Book>(Book.JSON) { @Override public void onSuccess(Book book, Request request, Response response) { ... } @Override public void onError(IOException error, Request request, Response response) { ... } });
XmlModelResponse(XmlReader<T>) - Constructor for class name.pehl.piriti.restlet.xml.client.XmlModelResponse
Construct a new instance with the specified reader.
XmlModelsResponse<T> - Class in name.pehl.piriti.restlet.xml.client
Convinience callback class which can be used together with PiritiXmlRepresentation: ClientResource clientResource = new ClientResource("/resource/with/xml/representation"); clientResource.setOnResponse(new XmlModelsResponse<Book>(Book.JSON) { @Override public void onSuccess(List<Book> books, Request request, Response response) { ... } @Override public void onError(IOException error, Request request, Response response) { ... } });
XmlModelsResponse(XmlReader<T>) - Constructor for class name.pehl.piriti.restlet.xml.client.XmlModelsResponse
Construct a new instance with the specified reader.
A C D G H J L M N O P S T U X 

Copyright © 2012 Harald Pehl. All Rights Reserved.