A B C D E F G H J O P R S T U W X 

A

accessToken - Variable in class org.resthub.web.oauth2.OAuth2Token
The access token issued by the authorization server.
accessTokenEndpoint - Variable in class org.resthub.web.oauth2.OAuth2Config
 
accessTokenEndPoint - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
acquireTime - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
addBodyReader(BodyReader) - Method in class org.resthub.web.Client
Add a candidate BodyReader to read an HTTP response body to an object
addBodyReader(BodyReader) - Method in class org.resthub.web.Response
 
addBodyReader(BodyReader) - Method in class org.resthub.web.support.AsyncEntityHandler
 
addBodyReaders(List<BodyReader>) - Method in class org.resthub.web.Response
 
addBodyWriter(BodyWriter) - Method in class org.resthub.web.Client
Add a candidate BodyWriter to serialize an object to an HTTP response body
addCookie(Cookie) - Method in class org.resthub.web.Client.RequestHolder
Adds a cookie
asyncDelete() - Method in class org.resthub.web.Client.RequestHolder
Perform a DELETE on the request asynchronously.
AsyncEntityHandler - Class in org.resthub.web.support
 
AsyncEntityHandler() - Constructor for class org.resthub.web.support.AsyncEntityHandler
 
asyncGet() - Method in class org.resthub.web.Client.RequestHolder
Perform a GET request asynchronously.
asyncHead() - Method in class org.resthub.web.Client.RequestHolder
Perform a HEAD on the request asynchronously.
asyncJsonGet() - Method in class org.resthub.web.Client.RequestHolder
 
asyncJsonPost(Object) - Method in class org.resthub.web.Client.RequestHolder
 
asyncJsonPut(Object) - Method in class org.resthub.web.Client.RequestHolder
 
asyncOption() - Method in class org.resthub.web.Client.RequestHolder
Perform a OPTION on the request asynchronously.
asyncPost(String) - Method in class org.resthub.web.Client.RequestHolder
Perform a POST request asynchronously.
asyncPost() - Method in class org.resthub.web.Client.RequestHolder
 
asyncPost(InputStream) - Method in class org.resthub.web.Client.RequestHolder
 
asyncPost(File) - Method in class org.resthub.web.Client.RequestHolder
 
asyncPut(String) - Method in class org.resthub.web.Client.RequestHolder
Perform a PUT request asynchronously.
asyncPut(InputStream) - Method in class org.resthub.web.Client.RequestHolder
 
asyncPut(File) - Method in class org.resthub.web.Client.RequestHolder
 
asyncXmlGet() - Method in class org.resthub.web.Client.RequestHolder
 
asyncXmlPost(Object) - Method in class org.resthub.web.Client.RequestHolder
 
asyncXmlPut(Object) - Method in class org.resthub.web.Client.RequestHolder
 

B

BodyReader - Interface in org.resthub.web.support
 
bodyReaders - Variable in class org.resthub.web.Client
 
bodyReaders - Variable in class org.resthub.web.support.AsyncEntityHandler
 
BodyWriter - Interface in org.resthub.web.support
 
bodyWriters - Variable in class org.resthub.web.Client
 
build() - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
 
builder - Variable in class org.resthub.web.Client
 

C

canRead(Response) - Method in interface org.resthub.web.support.BodyReader
 
canRead(Response) - Method in class org.resthub.web.support.JsonBodyReader
 
canRead(Response) - Method in class org.resthub.web.support.XmlBodyReader
 
canWrite(String) - Method in interface org.resthub.web.support.BodyWriter
 
canWrite(String) - Method in class org.resthub.web.support.JsonBodyWriter
 
canWrite(String) - Method in class org.resthub.web.support.XmlBodyWriter
 
Client - Class in org.resthub.web
RESThub AsyncHttpClient wrapper inspired from Play! Framework 2

Sample usage:

Client() - Constructor for class org.resthub.web.Client
Create an HTTP client with default configuration
Client(AsyncHttpClientConfig.Builder) - Constructor for class org.resthub.web.Client
Create an HTTP client with a pre-configured Builder
client - Variable in class org.resthub.web.Client
 
Client.Request - Class in org.resthub.web
Provides the bridge between the wrapper and the underlying ning request
Client.Request(String) - Constructor for class org.resthub.web.Client.Request
 
Client.RequestHolder - Class in org.resthub.web
provides the User facing API for building WS request.
Client.RequestHolder(String) - Constructor for class org.resthub.web.Client.RequestHolder
 
CLIENT_ID_PARAMETER_NAME - Static variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
CLIENT_SECRET_PARAMETER_NAME - Static variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
clientId - Variable in class org.resthub.web.oauth2.OAuth2Config
 
clientId - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
clientSecret - Variable in class org.resthub.web.oauth2.OAuth2Config
 
clientSecret - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
close() - Method in class org.resthub.web.Client
 

D

delete() - Method in class org.resthub.web.Client.RequestHolder
 

E

expiresIn - Variable in class org.resthub.web.oauth2.OAuth2Token
The duration in seconds of the access token lifetime.

F

filter(FilterContext) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 

G

get() - Method in class org.resthub.web.Client.RequestHolder
Perform a GET request synchronously.
getAccessToken() - Method in class org.resthub.web.oauth2.OAuth2Token
 
getAccessTokenEndpoint() - Method in class org.resthub.web.oauth2.OAuth2Config
 
getAccessTokenEndPoint() - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
getBody() - Method in class org.resthub.web.Response
Get the response body as a string
getBody(String) - Method in class org.resthub.web.Response
Get the response body as a string with charset as parameter
getClientId() - Method in class org.resthub.web.oauth2.OAuth2Config
 
getClientId() - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
getClientSecret() - Method in class org.resthub.web.oauth2.OAuth2Config
 
getClientSecret() - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
getCookies() - Method in class org.resthub.web.Response
Get the cookies sent along the response
getExpiresIn() - Method in class org.resthub.web.oauth2.OAuth2Token
 
getHeader(String) - Method in class org.resthub.web.Response
Get the given HTTP header of the response
getNativeClient() - Method in class org.resthub.web.Client
Return the AsyncHttpClient native client for advanced features
getOAuth2Scheme() - Method in class org.resthub.web.oauth2.OAuth2Config
 
getPassword() - Method in class org.resthub.web.oauth2.OAuth2Config
 
getRefreshToken() - Method in class org.resthub.web.oauth2.OAuth2Token
 
getRefreshTokenEndpoint() - Method in class org.resthub.web.oauth2.OAuth2Config
 
getSchemeName() - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
getScope() - Method in class org.resthub.web.oauth2.OAuth2Token
 
getStatus() - Method in class org.resthub.web.Response
Get the HTTP status code of the response
getUsername() - Method in class org.resthub.web.oauth2.OAuth2Config
 
GRANT_TYPE_PARAMETER_NAME - Static variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 

H

head() - Method in class org.resthub.web.Client.RequestHolder
 

J

JsonBodyReader - Class in org.resthub.web.support
 
JsonBodyReader() - Constructor for class org.resthub.web.support.JsonBodyReader
 
JsonBodyWriter - Class in org.resthub.web.support
 
JsonBodyWriter() - Constructor for class org.resthub.web.support.JsonBodyWriter
 
jsonGet() - Method in class org.resthub.web.Client.RequestHolder
 
jsonPost(Object) - Method in class org.resthub.web.Client.RequestHolder
 
jsonPut(Object) - Method in class org.resthub.web.Client.RequestHolder
 

O

oauth2_scheme - Variable in class org.resthub.web.oauth2.OAuth2Config
 
oAuth2Config - Variable in class org.resthub.web.Client
 
OAuth2Config - Class in org.resthub.web.oauth2
Configuration class to use with a Client.
OAuth2Config(String, String, String, String, String, String, String) - Constructor for class org.resthub.web.oauth2.OAuth2Config
 
OAuth2Config.Builder - Class in org.resthub.web.oauth2
 
OAuth2Config.Builder() - Constructor for class org.resthub.web.oauth2.OAuth2Config.Builder
 
oAuth2ConfigBuilder - Variable in class org.resthub.web.Client
 
OAuth2RequestFilter - Class in org.resthub.web.oauth2
HTTP client filter that deals with OAuth2.0 Token authentication
OAuth2RequestFilter(String, String, String) - Constructor for class org.resthub.web.oauth2.OAuth2RequestFilter
Request filter that acquires an OAuth token if: no token has been acquired the current token is expired, given its "ExpiresIn" information
OAuth2Token - Class in org.resthub.web.oauth2
Response of the token end-point, as described in the Oauth 2 specification (Section 4.2).
OAuth2Token() - Constructor for class org.resthub.web.oauth2.OAuth2Token
 
onCompleted(Response) - Method in class org.resthub.web.support.AsyncEntityHandler
 
option() - Method in class org.resthub.web.Client.RequestHolder
 
org.resthub.web - package org.resthub.web
 
org.resthub.web.oauth2 - package org.resthub.web.oauth2
OAuth2 support
org.resthub.web.support - package org.resthub.web.support
Support classes for RESThub web client

P

password - Variable in class org.resthub.web.oauth2.OAuth2Config
 
password - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
PASSWORD_PARAMETER_NAME - Static variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
PASSWORD_PARAMETER_VALUE - Static variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
post(String) - Method in class org.resthub.web.Client.RequestHolder
Perform a POST request synchronously.
post() - Method in class org.resthub.web.Client.RequestHolder
 
post(InputStream) - Method in class org.resthub.web.Client.RequestHolder
 
post(File) - Method in class org.resthub.web.Client.RequestHolder
 
put(String) - Method in class org.resthub.web.Client.RequestHolder
Perform a PUT request synchronously.
put(InputStream) - Method in class org.resthub.web.Client.RequestHolder
 
put(File) - Method in class org.resthub.web.Client.RequestHolder
 

R

readEntity(Response, Class<T>) - Method in interface org.resthub.web.support.BodyReader
 
readEntity(Response, Class<T>, String) - Method in interface org.resthub.web.support.BodyReader
 
readEntity(Response, TypeReference) - Method in interface org.resthub.web.support.BodyReader
 
readEntity(Response, TypeReference, String) - Method in interface org.resthub.web.support.BodyReader
 
readEntity(Response, Class<T>) - Method in class org.resthub.web.support.JsonBodyReader
 
readEntity(Response, Class<T>, String) - Method in class org.resthub.web.support.JsonBodyReader
 
readEntity(Response, TypeReference) - Method in class org.resthub.web.support.JsonBodyReader
 
readEntity(Response, TypeReference, String) - Method in class org.resthub.web.support.JsonBodyReader
 
readEntity(Response, Class<T>) - Method in class org.resthub.web.support.XmlBodyReader
 
readEntity(Response, Class<T>, String) - Method in class org.resthub.web.support.XmlBodyReader
 
readEntity(Response, TypeReference) - Method in class org.resthub.web.support.XmlBodyReader
 
readEntity(Response, TypeReference, String) - Method in class org.resthub.web.support.XmlBodyReader
 
refreshToken - Variable in class org.resthub.web.oauth2.OAuth2Token
The refresh token used to obtain new access tokens using the same end-user access grant.
refreshTokenEndpoint - Variable in class org.resthub.web.oauth2.OAuth2Config
 
resource(Class<T>) - Method in class org.resthub.web.Response
 
resource(Class<T>, String) - Method in class org.resthub.web.Response
 
resource(TypeReference) - Method in class org.resthub.web.Response
 
resource(TypeReference, String) - Method in class org.resthub.web.Response
 
Response - Class in org.resthub.web
 
Response(Response) - Constructor for class org.resthub.web.Response
 

S

scheme_name - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
scope - Variable in class org.resthub.web.oauth2.OAuth2Token
The scope of the access token as a list of space-delimited strings.
SCOPE_PARAMETER_NAME - Static variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
setAccessToken(String) - Method in class org.resthub.web.oauth2.OAuth2Token
 
setAccessTokenEndpoint(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
 
setAccessTokenEndPoint(String) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
setAuth(String, String, Realm.AuthScheme) - Method in class org.resthub.web.Client
Sets the authentication header for the current client.
setBodyEncoding(String) - Method in class org.resthub.web.Client.RequestHolder
 
setBodyReaders(List<BodyReader>) - Method in class org.resthub.web.support.AsyncEntityHandler
 
setClientId(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
 
setClientId(String) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
setClientSecret(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
 
setClientSecret(String) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
setCredentials(String, String) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
setExpiresIn(Integer) - Method in class org.resthub.web.oauth2.OAuth2Token
 
setHeader(String, String) - Method in class org.resthub.web.Client.RequestHolder
Sets a header with the given name, this can be called repeatedly
setOAuth2(String, String, String, String, String) - Method in class org.resthub.web.Client
Sets the OAuth2 authentication header for the current client.
setOAuth2Builder(OAuth2Config.Builder) - Method in class org.resthub.web.Client
Set the given OAuth2Config builder for this client.
setOAuth2Scheme(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
 
setPassword(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
 
setProxy(String, int) - Method in class org.resthub.web.Client
Set HTTP proxy configuration
setQueryParameter(String, String) - Method in class org.resthub.web.Client.RequestHolder
Sets a query parameter with the given name,this can be called repeatedly
setRefreshToken(String) - Method in class org.resthub.web.oauth2.OAuth2Token
 
setRefreshTokenEndpoint(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
 
setSchemeName(String) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
setScope(String) - Method in class org.resthub.web.oauth2.OAuth2Token
 
setUsername(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
 

T

token - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
toString() - Method in class org.resthub.web.oauth2.OAuth2Token

U

url(String) - Method in class org.resthub.web.Client
Prepare a new request.
username - Variable in class org.resthub.web.oauth2.OAuth2Config
 
username - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
USERNAME_PARAMETER_NAME - Static variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 

W

writeEntity(String, Object) - Method in interface org.resthub.web.support.BodyWriter
 
writeEntity(String, Object) - Method in class org.resthub.web.support.JsonBodyWriter
 
writeEntity(String, Object) - Method in class org.resthub.web.support.XmlBodyWriter
 

X

XmlBodyReader - Class in org.resthub.web.support
 
XmlBodyReader() - Constructor for class org.resthub.web.support.XmlBodyReader
 
XmlBodyWriter - Class in org.resthub.web.support
 
XmlBodyWriter() - Constructor for class org.resthub.web.support.XmlBodyWriter
 
xmlGet() - Method in class org.resthub.web.Client.RequestHolder
 
xmlPost(Object) - Method in class org.resthub.web.Client.RequestHolder
 
xmlPut(Object) - Method in class org.resthub.web.Client.RequestHolder
 
A B C D E F G H J O P R S T U W X 

Copyright © 2009-2013. All Rights Reserved.