A C E G H I L R S T V

A

addHeader(String, String) - Method in class smartrics.rest.client.RestData
Adds an HTTP header to the current list.
addHeaders(Map<String, String>) - Method in class smartrics.rest.client.RestData
Adds a collection of HTTP headers to the current list of headers.
addHeaders(List<RestData.Header>) - Method in class smartrics.rest.client.RestData
Adds a collection of HTTP headers to the current list of headers.

C

configureHttpMethod(HttpMethod, String, RestRequest) - Method in class smartrics.rest.client.RestClientImpl
Configures the instance of HttpMethod with the data in the request and the host address.
createHttpClientMethod(RestRequest) - Method in class smartrics.rest.client.RestClientImpl
Utility method that creates an instance of org.apache.commons.httpclient.HttpMethod.
createUri(String, boolean) - Method in class smartrics.rest.client.RestClientImpl
 

E

equals(Object) - Method in class smartrics.rest.client.RestData.Header
 
execute(RestRequest) - Method in interface smartrics.rest.client.RestClient
Executes a rest request using the underlying Http client implementation.
execute(String, RestRequest) - Method in interface smartrics.rest.client.RestClient
Executes the rest request.
execute(RestRequest) - Method in class smartrics.rest.client.RestClientImpl
See execute(smartrics.rest.client.RestRequest)
execute(String, RestRequest) - Method in class smartrics.rest.client.RestClientImpl
See execute(java.lang.String, smartrics.rest.client.RestRequest)

G

getBaseUrl() - Method in interface smartrics.rest.client.RestClient
Retrieves the previously set base Url.
getBaseUrl() - Method in class smartrics.rest.client.RestClientImpl
See getBaseUrl()
getBody() - Method in class smartrics.rest.client.RestData
 
getClient() - Method in class smartrics.rest.client.RestClientImpl
Returns the Http client instance used by this implementation.
getContentType(RestRequest) - Method in class smartrics.rest.client.RestClientImpl
 
getFileName() - Method in class smartrics.rest.client.RestRequest
 
getHeader(String) - Method in class smartrics.rest.client.RestData
 
getHeaders() - Method in class smartrics.rest.client.RestData
 
getMethod() - Method in class smartrics.rest.client.RestRequest
 
getMethodClassnameFromMethodName(String) - Method in class smartrics.rest.client.RestClientImpl
factory method that maps a string with a HTTP method name to an implementation class in Apache HttpClient.
getMultipartFileName() - Method in class smartrics.rest.client.RestRequest
 
getMultipartFileParameterName() - Method in class smartrics.rest.client.RestRequest
 
getName() - Method in class smartrics.rest.client.RestData.Header
 
getQuery() - Method in class smartrics.rest.client.RestRequest
 
getResource() - Method in class smartrics.rest.client.RestData
 
getStatusCode() - Method in class smartrics.rest.client.RestResponse
 
getStatusText() - Method in class smartrics.rest.client.RestResponse
 
getTransactionId() - Method in class smartrics.rest.client.RestData
A transaction Id is a unique long for this transaction.
getValue() - Method in class smartrics.rest.client.RestData.Header
 

H

hashCode() - Method in class smartrics.rest.client.RestData.Header
 

I

isValid() - Method in class smartrics.rest.client.RestRequest
Checks validity of this request.

L

LINE_SEPARATOR - Static variable in class smartrics.rest.client.RestData
 

R

RestClient - Interface in smartrics.rest.client
A Rest Client offers a simplified interface to an underlying implementation of an Http client.
RestClientImpl - Class in smartrics.rest.client
A generic REST client based on HttpClient.
RestClientImpl(HttpClient) - Constructor for class smartrics.rest.client.RestClientImpl
Constructor allowing the injection of an org.apache.commons.httpclient.HttpClient.
RestData - Class in smartrics.rest.client
Base class for holding shared data between RestRequest and RestResponse.
RestData() - Constructor for class smartrics.rest.client.RestData
 
RestData.Header - Class in smartrics.rest.client
Holds an Http Header.
RestData.Header(String, String) - Constructor for class smartrics.rest.client.RestData.Header
 
RestRequest - Class in smartrics.rest.client
Wraps a REST request object.
RestRequest() - Constructor for class smartrics.rest.client.RestRequest
 
RestRequest.Method - Enum in smartrics.rest.client
An http verb (those supported).
RestResponse - Class in smartrics.rest.client
Wraps a REST response object
RestResponse() - Constructor for class smartrics.rest.client.RestResponse
 

S

setBaseUrl(String) - Method in interface smartrics.rest.client.RestClient
Sets the base URL.
setBaseUrl(String) - Method in class smartrics.rest.client.RestClientImpl
See setBaseUrl(java.lang.String)
setBody(String) - Method in class smartrics.rest.client.RestData
 
setFileName(String) - Method in class smartrics.rest.client.RestRequest
Sets the upload file name for this request.
setMethod(RestRequest.Method) - Method in class smartrics.rest.client.RestRequest
Sets the method for this request.
setMultipartFileName(String) - Method in class smartrics.rest.client.RestRequest
Sets the multipart upload file name for this request.
setMultipartFileParameterName(String) - Method in class smartrics.rest.client.RestRequest
Sets the multipart file form parameter name for this request.
setQuery(String) - Method in class smartrics.rest.client.RestRequest
Sets the query for this request.
setResource(String) - Method in class smartrics.rest.client.RestData
 
setStatusCode(Integer) - Method in class smartrics.rest.client.RestResponse
 
setStatusText(String) - Method in class smartrics.rest.client.RestResponse
 
setTransactionId(Long) - Method in class smartrics.rest.client.RestData
 
smartrics.rest.client - package smartrics.rest.client
 

T

toString() - Method in class smartrics.rest.client.RestData.Header
 
toString() - Method in class smartrics.rest.client.RestData
A visually easy to read representation of this RestData.
toString() - Method in class smartrics.rest.client.RestRequest
String representation of this request.
toString() - Method in class smartrics.rest.client.RestResponse
 

V

valueOf(String) - Static method in enum smartrics.rest.client.RestRequest.Method
Returns the enum constant of this type with the specified name.
values() - Static method in enum smartrics.rest.client.RestRequest.Method
Returns an array containing the constants of this enum type, in the order they are declared.

A C E G H I L R S T V

Copyright © 2012 smartrics. All Rights Reserved.