A B C D E G H I M N O P R S T U V W X

A

addBodyParam(String, Object) - Method in class org.codegist.crest.HttpRequest.Builder
Adds a body parameter to the resulting request's body parameters
addBodyParams(Map<String, Object>) - Method in class org.codegist.crest.HttpRequest.Builder
Adds the given map to the resulting request's body parameter
addHeader(String, Object) - Method in class org.codegist.crest.HttpRequest.Builder
Adds a request header to the resulting request's headers
addHeaders(Map<String, String>) - Method in class org.codegist.crest.HttpRequest.Builder
Adds the the given map to the resulting request's headers
addMethodsStaticParam(String, String, Destination) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
addProperties(Map<String, Object>) - Method in class org.codegist.crest.CRestBuilder
Adds all custom properties every services build with the resulting CRest instance will be passed.
addQueryParam(String, String) - Method in class org.codegist.crest.HttpRequest.Builder
Adds a parameter to the resulting request's query string
addQueryParams(Map<String, String>) - Method in class org.codegist.crest.HttpRequest.Builder
Adds the given map to the resulting request's query string parameter
addStaticParam(String, String, Destination) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
afterParamsInjectionHandle(HttpRequest.Builder, RequestContext) - Method in class org.codegist.crest.interceptor.CompositeRequestInterceptor
 
afterParamsInjectionHandle(HttpRequest.Builder, RequestContext) - Method in interface org.codegist.crest.interceptor.RequestInterceptor
Called after parameters have been injected into the request.
afterParamsInjectionHandle(HttpRequest.Builder, RequestContext) - Method in class org.codegist.crest.interceptor.RequestInterceptorAdapter
 
afterParamsInjectionHandle(HttpRequest.Builder, RequestContext) - Method in class org.codegist.crest.security.interceptor.AuthentificationInterceptor
 
AnnotationDrivenInterfaceConfigFactory - Class in org.codegist.crest.config
Annotation based config factory of any possible interfaces given to the factory.
AnnotationDrivenInterfaceConfigFactory() - Constructor for class org.codegist.crest.config.AnnotationDrivenInterfaceConfigFactory
 
ArraySerializer<T> - Class in org.codegist.crest.serializer
Simple array serializer that serialize arrays and collections into a String.
ArraySerializer() - Constructor for class org.codegist.crest.serializer.ArraySerializer
 
ArraySerializer(Serializer) - Constructor for class org.codegist.crest.serializer.ArraySerializer
 
ArraySerializer(Serializer, String) - Constructor for class org.codegist.crest.serializer.ArraySerializer
 
asReader() - Method in class org.codegist.crest.HttpResponse
Get the response reader using the response charset (extracted from response header.)
asStream() - Method in class org.codegist.crest.HttpResponse
Get the response input stream.
asString() - Method in class org.codegist.crest.HttpResponse
Returns the response as string.
AuthentificationInterceptor - Class in org.codegist.crest.security.interceptor
Authentification interceptor.
AuthentificationInterceptor(Map<String, Object>) - Constructor for class org.codegist.crest.security.interceptor.AuthentificationInterceptor
 
AuthentificationInterceptor(AuthentificationManager) - Constructor for class org.codegist.crest.security.interceptor.AuthentificationInterceptor
 
AuthentificationManager - Interface in org.codegist.crest.security
AuthentificationManager interface

B

beforeParamsInjectionHandle(HttpRequest.Builder, RequestContext) - Method in class org.codegist.crest.interceptor.CompositeRequestInterceptor
 
beforeParamsInjectionHandle(HttpRequest.Builder, RequestContext) - Method in interface org.codegist.crest.interceptor.RequestInterceptor
Called after general parameter have been added to the request, but before parameters are injected into it.
beforeParamsInjectionHandle(HttpRequest.Builder, RequestContext) - Method in class org.codegist.crest.interceptor.RequestInterceptorAdapter
 
BooleanSerializer - Class in org.codegist.crest.serializer
 
BooleanSerializer() - Constructor for class org.codegist.crest.serializer.BooleanSerializer
 
BooleanSerializer(Map<String, Object>) - Constructor for class org.codegist.crest.serializer.BooleanSerializer
 
BooleanSerializer(String, String) - Constructor for class org.codegist.crest.serializer.BooleanSerializer
 
build() - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
build(boolean) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
build() - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
build(boolean) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
build() - Method in class org.codegist.crest.config.ConfigBuilders.ParamConfigBuilder
 
build(boolean) - Method in class org.codegist.crest.config.ConfigBuilders.ParamConfigBuilder
 
build(Class<T>) - Method in interface org.codegist.crest.CRest
Build rest-bounded instances of the given interface
build() - Method in class org.codegist.crest.CRestBuilder
 
build(Class<T>) - Method in class org.codegist.crest.DefaultCRest
 
build() - Method in class org.codegist.crest.HttpRequest.Builder
 
buildOverrideTemplate() - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
buildOverrideTemplate() - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
buildOverrideTemplate() - Method in class org.codegist.crest.config.ConfigBuilders.ParamConfigBuilder
 

C

close() - Method in class org.codegist.crest.HttpResourceInputStream
 
close() - Method in class org.codegist.crest.HttpResponse
Close the response.
CompositeRequestInterceptor - Class in org.codegist.crest.interceptor
Simple composite request interceptor that delegate notifications to a predefined list of interceptors.
CompositeRequestInterceptor(RequestInterceptor...) - Constructor for class org.codegist.crest.interceptor.CompositeRequestInterceptor
 
CONFIG_INTERFACE_DEFAULT_CONTEXT_PATH - Static variable in interface org.codegist.crest.CRestProperty
override the default path InterfaceConfig.DEFAULT_CONTEXT_PATH.
CONFIG_INTERFACE_DEFAULT_ENCODING - Static variable in interface org.codegist.crest.CRestProperty
override the default encoding InterfaceConfig.DEFAULT_ENCODING.
CONFIG_INTERFACE_DEFAULT_GLOBAL_INTERCEPTOR - Static variable in interface org.codegist.crest.CRestProperty
override the default global request interceptor InterfaceConfig.DEFAULT_GLOBAL_INTERCEPTOR.
CONFIG_METHOD_DEFAULT_CO_TIMEOUT - Static variable in interface org.codegist.crest.CRestProperty
override the default connection timeout MethodConfig.DEFAULT_CO_TIMEOUT.
CONFIG_METHOD_DEFAULT_ERROR_HANDLER - Static variable in interface org.codegist.crest.CRestProperty
override the default error handler MethodConfig.DEFAULT_ERROR_HANDLER.
CONFIG_METHOD_DEFAULT_HTTP_METHOD - Static variable in interface org.codegist.crest.CRestProperty
override the default http method MethodConfig.DEFAULT_HTTP_METHOD.
CONFIG_METHOD_DEFAULT_PARAMS - Static variable in interface org.codegist.crest.CRestProperty
override the default method params MethodConfig.DEFAULT_PARAMS.
CONFIG_METHOD_DEFAULT_PATH - Static variable in interface org.codegist.crest.CRestProperty
override the default url fragment MethodConfig.DEFAULT_PATH.
CONFIG_METHOD_DEFAULT_REQUEST_INTERCEPTOR - Static variable in interface org.codegist.crest.CRestProperty
override the default request interceptor MethodConfig.DEFAULT_REQUEST_INTERCEPTOR.
CONFIG_METHOD_DEFAULT_RESPONSE_HANDLER - Static variable in interface org.codegist.crest.CRestProperty
override the default response handler MethodConfig.DEFAULT_RESPONSE_HANDLER.
CONFIG_METHOD_DEFAULT_RETRY_HANDLER - Static variable in interface org.codegist.crest.CRestProperty
override the default method retry handler MethodConfig.DEFAULT_RETRY_HANDLER.
CONFIG_METHOD_DEFAULT_SO_TIMEOUT - Static variable in interface org.codegist.crest.CRestProperty
override the default socket timeout MethodConfig.DEFAULT_SO_TIMEOUT.
CONFIG_OAUTH_CALLBACK - Static variable in class org.codegist.crest.oauth.OAuthenticatorV10
 
CONFIG_OAUTH_PARAM_DEST - Static variable in class org.codegist.crest.oauth.OAuthenticatorV10
 
CONFIG_PARAM_DEFAULT_DESTINATION - Static variable in interface org.codegist.crest.CRestProperty
override the default destination ParamConfig.DEFAULT_DESTINATION.
CONFIG_PARAM_DEFAULT_INJECTOR - Static variable in interface org.codegist.crest.CRestProperty
override the default injector ParamConfig.DEFAULT_INJECTOR.
CONFIG_PARAM_DEFAULT_NAME - Static variable in interface org.codegist.crest.CRestProperty
override the default name ParamConfig.DEFAULT_NAME.
CONFIG_PARAM_DEFAULT_SERIALIZER - Static variable in interface org.codegist.crest.CRestProperty
override the default serializer ParamConfig.DEFAULT_SERIALIZER.
CONFIG_TOKEN_ACCESS_REFRESH_URL - Static variable in class org.codegist.crest.oauth.OAuthenticatorV10
 
CONFIG_TOKEN_ACCESS_REFRESH_URL_METHOD - Static variable in class org.codegist.crest.oauth.OAuthenticatorV10
 
CONFIG_TOKEN_ACCESS_URL - Static variable in class org.codegist.crest.oauth.OAuthenticatorV10
 
CONFIG_TOKEN_ACCESS_URL_METHOD - Static variable in class org.codegist.crest.oauth.OAuthenticatorV10
 
CONFIG_TOKEN_REQUEST_URL - Static variable in class org.codegist.crest.oauth.OAuthenticatorV10
 
CONFIG_TOKEN_REQUEST_URL_METHOD - Static variable in class org.codegist.crest.oauth.OAuthenticatorV10
 
ConfigBuilders - Class in org.codegist.crest.config
Handy builders for DefaultInterfaceConfig.
ConfigBuilders.InterfaceConfigBuilder - Class in org.codegist.crest.config
 
ConfigBuilders.InterfaceConfigBuilder() - Constructor for class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
This will create an unbound builder, eg to attached to any interface, thus it cannot contains any method configuration.
ConfigBuilders.InterfaceConfigBuilder(Map<String, Object>) - Constructor for class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
Given properties map can contains user-defined default values, that override interface predefined defauts.
ConfigBuilders.InterfaceConfigBuilder(Class, String) - Constructor for class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
ConfigBuilders.InterfaceConfigBuilder(Class, String, Map<String, Object>) - Constructor for class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
Given properties map can contains user-defined default values, that override interface predefined defauts.
ConfigBuilders.MethodConfigBuilder - Class in org.codegist.crest.config
 
ConfigBuilders.MethodConfigBuilder(Method) - Constructor for class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
ConfigBuilders.MethodConfigBuilder(Method, Map<String, Object>) - Constructor for class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
Given properties map can contains user-defined default values, that override interface predefined defauts.
ConfigBuilders.ParamConfigBuilder - Class in org.codegist.crest.config
 
ConfigBuilders.ParamConfigBuilder(Type, Map<String, Object>) - Constructor for class org.codegist.crest.config.ConfigBuilders.ParamConfigBuilder
Given properties map can contains user-defined default values, that override interface predefined defauts.
ConfigFactoryException - Exception in org.codegist.crest.config
 
ConfigFactoryException() - Constructor for exception org.codegist.crest.config.ConfigFactoryException
 
ConfigFactoryException(String) - Constructor for exception org.codegist.crest.config.ConfigFactoryException
 
ConfigFactoryException(String, Throwable) - Constructor for exception org.codegist.crest.config.ConfigFactoryException
 
ConfigFactoryException(Throwable) - Constructor for exception org.codegist.crest.config.ConfigFactoryException
 
Configs - Class in org.codegist.crest.config
 
ConnectionTimeout - Annotation Type in org.codegist.crest.annotate
Optional method level annotation, sets the method connection timeout.
ContextPath - Annotation Type in org.codegist.crest.annotate
Optional interface level annotation, sets the service context path.
CRest - Interface in org.codegist.crest
CRest rest-bounded instances behave as follow :
CRestBuilder - Class in org.codegist.crest
The default build :
CRestBuilder() - Constructor for class org.codegist.crest.CRestBuilder
 
CRestContext - Interface in org.codegist.crest
Global CRest context object holding the DefaultCRest dependencies
CRestException - Exception in org.codegist.crest
 
CRestException() - Constructor for exception org.codegist.crest.CRestException
 
CRestException(String) - Constructor for exception org.codegist.crest.CRestException
 
CRestException(String, Throwable) - Constructor for exception org.codegist.crest.CRestException
 
CRestException(Throwable) - Constructor for exception org.codegist.crest.CRestException
 
CRestProperty - Interface in org.codegist.crest
Properties of this interface are meant to be used as keys in the custom properties map of CRestContext.

D

DateSerializer - Class in org.codegist.crest.serializer
 
DateSerializer() - Constructor for class org.codegist.crest.serializer.DateSerializer
 
DateSerializer(Map<String, Object>) - Constructor for class org.codegist.crest.serializer.DateSerializer
 
DateSerializer(String) - Constructor for class org.codegist.crest.serializer.DateSerializer
 
DEFAULT_CO_TIMEOUT - Static variable in interface org.codegist.crest.config.MethodConfig
Default connection timeout applied when non specified.
DEFAULT_CONTEXT_PATH - Static variable in interface org.codegist.crest.config.InterfaceConfig
Default service url fragment applied when non specified.
DEFAULT_DATEFORMAT - Static variable in class org.codegist.crest.serializer.DateSerializer
 
DEFAULT_DESTINATION - Static variable in interface org.codegist.crest.config.ParamConfig
Default destination applied when non specified.
DEFAULT_ENCODING - Static variable in interface org.codegist.crest.config.InterfaceConfig
Default encoding applied when non specified.
DEFAULT_ERROR_HANDLER - Static variable in interface org.codegist.crest.config.MethodConfig
Default error handler applied when non specified.
DEFAULT_FALSE - Static variable in class org.codegist.crest.serializer.BooleanSerializer
 
DEFAULT_GLOBAL_INTERCEPTOR - Static variable in interface org.codegist.crest.config.InterfaceConfig
Default request interceptor applied when non specified.
DEFAULT_HTTP_METHOD - Static variable in interface org.codegist.crest.config.MethodConfig
Default http method applied when non specified.
DEFAULT_INJECTOR - Static variable in interface org.codegist.crest.config.ParamConfig
Default injector applied when non specified.
DEFAULT_MAX - Static variable in class org.codegist.crest.handler.MaxAttemptRetryHandler
Default retry handler max value used by the empty constructor.
DEFAULT_MAX_ATTEMPTS - Static variable in class org.codegist.crest.security.handler.RefreshAuthentificationRetryHandler
 
DEFAULT_NAME - Static variable in interface org.codegist.crest.config.ParamConfig
Default name applied when non specified.
DEFAULT_PARAMS - Static variable in interface org.codegist.crest.config.MethodConfig
Default method params.
DEFAULT_PATH - Static variable in interface org.codegist.crest.config.MethodConfig
Default url fragment applied when non specified.
DEFAULT_REQUEST_INTERCEPTOR - Static variable in interface org.codegist.crest.config.MethodConfig
Default request interceptor applied when non specified.
DEFAULT_RESPONSE_HANDLER - Static variable in interface org.codegist.crest.config.MethodConfig
Default response handler applied when non specified.
DEFAULT_RETRY_HANDLER - Static variable in interface org.codegist.crest.config.MethodConfig
Default retry handler applied when non specified.
DEFAULT_SEPARATOR - Static variable in class org.codegist.crest.serializer.ArraySerializer
Default array item separator
DEFAULT_SERIALIZER - Static variable in interface org.codegist.crest.config.ParamConfig
Default serializer applied when non specified.
DEFAULT_SO_TIMEOUT - Static variable in interface org.codegist.crest.config.MethodConfig
Default socket timeout applied when non specified.
DEFAULT_TRUE - Static variable in class org.codegist.crest.serializer.BooleanSerializer
 
DefaultCRest - Class in org.codegist.crest
Default CRest implementation based on CRestContext interface data model.
DefaultCRest(CRestContext) - Constructor for class org.codegist.crest.DefaultCRest
 
DefaultInjector - Class in org.codegist.crest.injector
Default request injector used by CRest.
DefaultInjector() - Constructor for class org.codegist.crest.injector.DefaultInjector
 
DefaultResponseHandler - Class in org.codegist.crest.handler
Default response handler that either marshall the response or return server raw response following the rules below :
DefaultResponseHandler() - Constructor for class org.codegist.crest.handler.DefaultResponseHandler
 
DefaultResponseHandler(Map<String, Object>) - Constructor for class org.codegist.crest.handler.DefaultResponseHandler
 
DefaultRestService - Class in org.codegist.crest
Simple RestService implementation based on JDK's HttpURLConnection.
DefaultRestService() - Constructor for class org.codegist.crest.DefaultRestService
 
DefaultValuesErrorHandler - Class in org.codegist.crest.handler
Error handler that ignores exception and return default values
DefaultValuesErrorHandler() - Constructor for class org.codegist.crest.handler.DefaultValuesErrorHandler
 
Destination - Annotation Type in org.codegist.crest.annotate
Optional method argument level annotation, sets the parameter destination in the request.
Destination - Enum in org.codegist.crest.config
Param destination.
dispose() - Method in class org.codegist.crest.DefaultCRest
 
dispose() - Method in class org.codegist.crest.HttpClientRestService
 

E

EmptyRequestInterceptor - Class in org.codegist.crest.interceptor
Empty request interceptor.
EmptyRequestInterceptor() - Constructor for class org.codegist.crest.interceptor.EmptyRequestInterceptor
 
encodeParams(Map<String, Object>, String) - Static method in class org.codegist.crest.Params
Encode the given parameter map into a string for HTTP body content
Encoding - Annotation Type in org.codegist.crest.annotate
Optional interface level annotation, sets the service encoding.
endMethodConfig() - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
endParamConfig() - Method in class org.codegist.crest.config.ConfigBuilders.ParamConfigBuilder
 
EndPoint - Annotation Type in org.codegist.crest.annotate
Mandatory interface level annotation, sets the service end point.
equals(Object) - Method in class org.codegist.crest.HttpRequest
 
ErrorDelegatorHandler - Class in org.codegist.crest.handler
Error handler that always delegate the given exception to the caller.
ErrorDelegatorHandler() - Constructor for class org.codegist.crest.handler.ErrorDelegatorHandler
 
ErrorHandler - Annotation Type in org.codegist.crest.annotate
Optional method level annotation, sets the method error handler.
ErrorHandler - Interface in org.codegist.crest.handler
Error handler gets invoked when an exception occurs during the request firing.
exec(HttpRequest) - Method in class org.codegist.crest.DefaultRestService
 
exec(HttpRequest) - Method in class org.codegist.crest.HttpClientRestService
 
exec(HttpRequest) - Method in interface org.codegist.crest.RestService
Execute the given request.
expectsJson() - Method in class org.codegist.crest.CRestBuilder
Resulting CRest instance will create interface instances that will auto marshall the response from JSON to user object model.
expectsXml(Class<?>) - Method in class org.codegist.crest.CRestBuilder
Resulting CRest instance will create interface instances that will auto marshall the response from XML to user object model.
expectsXml(String) - Method in class org.codegist.crest.CRestBuilder
Resulting CRest instance will create interface instances that will auto marshall the response from XML to user object model.

G

getAccessToken(Token, String) - Method in interface org.codegist.crest.oauth.OAuthenticator
Exchanges the given request token with a new access token using the given verifier
getAccessToken(Token, String) - Method in class org.codegist.crest.oauth.OAuthenticatorV10
 
getArgCount() - Method in interface org.codegist.crest.RequestContext
 
getArgs() - Method in interface org.codegist.crest.RequestContext
 
getBaseUri() - Method in class org.codegist.crest.HttpRequest.Builder
 
getBodyParams() - Method in class org.codegist.crest.HttpRequest.Builder
 
getBodyParams() - Method in class org.codegist.crest.HttpRequest
 
getCharset() - Method in class org.codegist.crest.HttpResponse
 
getConfig() - Method in interface org.codegist.crest.InterfaceContext
 
getConfigFactory() - Method in interface org.codegist.crest.CRestContext
 
getConnectionTimeout() - Method in interface org.codegist.crest.config.MethodConfig
 
getConnectionTimeout() - Method in class org.codegist.crest.HttpRequest.Builder
 
getConnectionTimeout() - Method in class org.codegist.crest.HttpRequest
 
getContent() - Method in interface org.codegist.crest.HttpResource
 
getContentEncoding() - Method in class org.codegist.crest.HttpResponse
 
getContextPath() - Method in interface org.codegist.crest.config.InterfaceConfig
Service base path (eg: /base/service/path).
getDestination() - Method in interface org.codegist.crest.config.ParamConfig
Defines where the parameter value should used, either in the query string or in the request body.
getDestination() - Method in interface org.codegist.crest.config.StaticParam
 
getEncoding() - Method in interface org.codegist.crest.config.InterfaceConfig
Encoding of the interface.
getEncoding() - Method in class org.codegist.crest.HttpRequest.Builder
 
getEncoding() - Method in class org.codegist.crest.HttpRequest
 
getEncodingAsCharset() - Method in class org.codegist.crest.HttpRequest
 
getEndPoint() - Method in interface org.codegist.crest.config.InterfaceConfig
Server path (eg: http://www.my-end-point.com:8080)
getErrorHandler() - Method in interface org.codegist.crest.config.MethodConfig
 
getExpectedGenericType() - Method in interface org.codegist.crest.ResponseContext
 
getExpectedType() - Method in interface org.codegist.crest.ResponseContext
 
getExtra(String) - Method in class org.codegist.crest.oauth.Token
 
getExtras() - Method in class org.codegist.crest.oauth.Token
 
getFor(Map<String, Object>, Type) - Static method in class org.codegist.crest.serializer.Serializers
Handy method to retrieve a serializer instance for the given Type using the given customProperties following the behavior described by CRest for amethod argument serialization.
getGlobalInterceptor() - Method in interface org.codegist.crest.config.InterfaceConfig
Global service request interceptor.
getHeader(String) - Method in class org.codegist.crest.HttpResponse
 
getHeaders() - Method in class org.codegist.crest.HttpRequest.Builder
 
getHeaders() - Method in class org.codegist.crest.HttpRequest
 
getHttpMethod() - Method in interface org.codegist.crest.config.MethodConfig
 
getIndex() - Method in interface org.codegist.crest.ParamContext
 
getInjector() - Method in interface org.codegist.crest.config.ParamConfig
Should be used when the user wish to inject a parameter that is not serializable to a single String or when user specific rules applies (eg: parameter must be exploded in multiple values accross the request queryString and/or body content).
getInterceptors() - Method in class org.codegist.crest.interceptor.CompositeRequestInterceptor
 
getInterface() - Method in interface org.codegist.crest.config.InterfaceConfig
 
getMeth() - Method in class org.codegist.crest.HttpRequest.Builder
 
getMeth() - Method in class org.codegist.crest.HttpRequest
 
getMethod() - Method in interface org.codegist.crest.config.MethodConfig
 
getMethod() - Method in interface org.codegist.crest.RequestContext
 
getMethodConfig(Method) - Method in interface org.codegist.crest.config.InterfaceConfig
 
getMethodConfig() - Method in interface org.codegist.crest.RequestContext
 
getMethods() - Method in interface org.codegist.crest.config.InterfaceConfig
 
getMimeType() - Method in class org.codegist.crest.HttpResponse
 
getName() - Method in interface org.codegist.crest.config.ParamConfig
For parameters with Destination.URL destination :
getName() - Method in interface org.codegist.crest.config.StaticParam
 
getParamConfig(int) - Method in interface org.codegist.crest.config.MethodConfig
Get the ParamConfig object holding the configuration of the method's arguments at the requested index.
getParamConfig() - Method in interface org.codegist.crest.ParamContext
 
getParamConfig(int) - Method in interface org.codegist.crest.RequestContext
 
getParamCount() - Method in interface org.codegist.crest.config.MethodConfig
 
getPath() - Method in interface org.codegist.crest.config.MethodConfig
URL fragment specific to this methods.
getProperties() - Method in interface org.codegist.crest.CRestContext
User's custom properties.
getProperties() - Method in interface org.codegist.crest.InterfaceContext
User's custom properties.
getProperty(String) - Method in interface org.codegist.crest.InterfaceContext
 
getProxyFactory() - Method in interface org.codegist.crest.CRestContext
 
getQueryParamNameByPlaceholderIndex(int) - Method in class org.codegist.crest.HttpRequest.Builder
Returns the query string parameter name list by placeholder index.
getQueryParams() - Method in class org.codegist.crest.HttpRequest
 
getQueryString() - Method in class org.codegist.crest.HttpRequest.Builder
 
getRawValue() - Method in interface org.codegist.crest.ParamContext
 
getRawValue(int) - Method in interface org.codegist.crest.RequestContext
 
getRequest() - Method in class org.codegist.crest.HttpResponse
 
getRequestContext() - Method in interface org.codegist.crest.ResponseContext
 
getRequestInterceptor() - Method in interface org.codegist.crest.config.MethodConfig
 
getRequestToken() - Method in interface org.codegist.crest.oauth.OAuthenticator
Fires a get request token to the preconfigured url
getRequestToken() - Method in class org.codegist.crest.oauth.OAuthenticatorV10
 
getResponse() - Method in exception org.codegist.crest.HttpException
 
getResponse() - Method in interface org.codegist.crest.ResponseContext
 
getResponseHandler() - Method in interface org.codegist.crest.config.MethodConfig
 
getResponseString() - Method in exception org.codegist.crest.HttpException
 
getRestService() - Method in interface org.codegist.crest.CRestContext
 
getRetryHandler() - Method in interface org.codegist.crest.config.MethodConfig
 
getSecret() - Method in class org.codegist.crest.oauth.Token
 
getSerializedValue() - Method in interface org.codegist.crest.ParamContext
 
getSerializedValue(int) - Method in interface org.codegist.crest.RequestContext
 
getSerializer() - Method in interface org.codegist.crest.config.ParamConfig
The serializer used to transform this argument value in a string.
getSocketTimeout() - Method in interface org.codegist.crest.config.MethodConfig
 
getSocketTimeout() - Method in class org.codegist.crest.HttpRequest.Builder
 
getSocketTimeout() - Method in class org.codegist.crest.HttpRequest
 
getStaticParams() - Method in interface org.codegist.crest.config.MethodConfig
 
getStatusCode() - Method in class org.codegist.crest.HttpResponse
 
getToken() - Method in class org.codegist.crest.oauth.Token
 
getUri() - Method in class org.codegist.crest.HttpRequest
 
getUrl(boolean) - Method in class org.codegist.crest.HttpRequest.Builder
Return the current url include or not the query string
getUrl(boolean) - Method in class org.codegist.crest.HttpRequest
 
getUrlString(boolean) - Method in class org.codegist.crest.HttpRequest.Builder
Return the current url include or not the query string
getUrlString(boolean) - Method in class org.codegist.crest.HttpRequest
 
getValue() - Method in interface org.codegist.crest.config.StaticParam
 
GlobalInterceptor - Annotation Type in org.codegist.crest.annotate
Optional interface level annotation, sets the global interface interceptor.

H

handle(ResponseContext) - Method in class org.codegist.crest.handler.DefaultResponseHandler
 
handle(ResponseContext, Exception) - Method in class org.codegist.crest.handler.DefaultValuesErrorHandler
 
handle(ResponseContext, Exception) - Method in class org.codegist.crest.handler.ErrorDelegatorHandler
 
handle(ResponseContext, Exception) - Method in interface org.codegist.crest.handler.ErrorHandler
 
handle(ResponseContext) - Method in interface org.codegist.crest.handler.ResponseHandler
 
HANDLER_RETRY_MAX_ATTEMPTS - Static variable in interface org.codegist.crest.CRestProperty
override the default max retry count MaxAttemptRetryHandler.DEFAULT_MAX.
hashCode() - Method in class org.codegist.crest.HttpRequest
 
HttpClientRestService - Class in org.codegist.crest
RestService implementation based on ASF HttpClient.
HttpClientRestService() - Constructor for class org.codegist.crest.HttpClientRestService
Construct a HttpClientRestService based on DefaultHttpClient.DefaultHttpClient().
HttpClientRestService(HttpClient) - Constructor for class org.codegist.crest.HttpClientRestService
 
HttpException - Exception in org.codegist.crest
 
HttpException(Throwable) - Constructor for exception org.codegist.crest.HttpException
 
HttpException(String, HttpResponse) - Constructor for exception org.codegist.crest.HttpException
 
HttpException(Throwable, HttpResponse) - Constructor for exception org.codegist.crest.HttpException
 
HttpException(String, HttpResponse, Throwable) - Constructor for exception org.codegist.crest.HttpException
 
HttpMethod - Annotation Type in org.codegist.crest.annotate
Optional method level annotation, sets the method http method.
HttpMethod - Enum in org.codegist.crest
Supported HTTP methods
HttpRequest - Class in org.codegist.crest
 
HttpRequest.Builder - Class in org.codegist.crest
Handy builder for HttpRequest objects.
HttpRequest.Builder(String) - Constructor for class org.codegist.crest.HttpRequest.Builder
Creates a GET request pointing to the given url
HttpRequest.Builder(String, String) - Constructor for class org.codegist.crest.HttpRequest.Builder
Creates a GET request pointing to the given url
HttpResource - Interface in org.codegist.crest
HttpResource abstraction that provides methods to access resource stream and release network resources.
HttpResourceInputStream - Class in org.codegist.crest
InputStream backed by a HttpResource object.
HttpResourceInputStream(HttpResource) - Constructor for class org.codegist.crest.HttpResourceInputStream
 
HttpResponse - Class in org.codegist.crest
Http response for the a HttpRequest.
HttpResponse(HttpRequest, int) - Constructor for class org.codegist.crest.HttpResponse
 
HttpResponse(HttpRequest, int, Map<String, List<String>>) - Constructor for class org.codegist.crest.HttpResponse
 
HttpResponse(HttpRequest, int, Map<String, List<String>>, HttpResource) - Constructor for class org.codegist.crest.HttpResponse
 

I

inject(HttpRequest.Builder, ParamContext) - Method in class org.codegist.crest.injector.DefaultInjector
Serialize the given parameter using its preconfigured serializer and inject the result either :
inject(HttpRequest.Builder, ParamContext<T>) - Method in interface org.codegist.crest.injector.Injector
Injects the current param into the request.
Injector - Annotation Type in org.codegist.crest.annotate
Optional method argument level annotation, sets the injector to use.
Injector<T> - Interface in org.codegist.crest.injector
Injectors are used to inject any method parameter values in the http request before it gets fired.
InterfaceConfig - Interface in org.codegist.crest.config
Interface configuration holder object.
InterfaceConfigFactory - Interface in org.codegist.crest.config
Creates instances of InterfaceConfig for the given interfaces.
InterfaceContext - Interface in org.codegist.crest
InterfaceContext's context, passed to any component used during request building, parameter serialization and response deserialization process.
isForUpload(Collection<Object>) - Static method in class org.codegist.crest.Params
Returns true if any of the given collection of object is considered for upload (File or InputStream)
isForUpload(Map<String, Object>) - Static method in class org.codegist.crest.Params
Returns true if any of the given params of object is considered for upload (File or InputStream)
isForUpload(Object) - Static method in class org.codegist.crest.Params
Returns true if the given object is considered for upload (File or InputStream)
isForUrl() - Method in interface org.codegist.crest.ParamContext
Returns whether the given parameter is for url or body

M

MaxAttemptRetryHandler - Class in org.codegist.crest.handler
Default retry handler always returns true is the given attempt is strictly less than given max value.
MaxAttemptRetryHandler(int) - Constructor for class org.codegist.crest.handler.MaxAttemptRetryHandler
 
MaxAttemptRetryHandler() - Constructor for class org.codegist.crest.handler.MaxAttemptRetryHandler
 
MaxAttemptRetryHandler(Map<String, Object>) - Constructor for class org.codegist.crest.handler.MaxAttemptRetryHandler
 
MethodConfig - Interface in org.codegist.crest.config
Method configuration holder object.

N

Name - Annotation Type in org.codegist.crest.annotate
Optional method argument level annotation, sets the parameter name to use in the request.
newConfig(Class<?>, CRestContext) - Method in class org.codegist.crest.config.AnnotationDrivenInterfaceConfigFactory
 
newConfig(Class<?>, CRestContext) - Method in interface org.codegist.crest.config.InterfaceConfigFactory
 
newConfig(Class<?>, CRestContext) - Method in class org.codegist.crest.config.OverridingInterfaceConfigFactory
 
newConfig(Class<?>, CRestContext) - Method in class org.codegist.crest.config.PreconfiguredInterfaceConfigFactory
 
newConfig(Class<?>, CRestContext) - Method in class org.codegist.crest.config.PropertiesDrivenInterfaceConfigFactory
 
newConfig(Class<?>, CRestContext) - Method in class org.codegist.crest.config.XmlDrivenInterfaceConfigFactory
 
newRestService(int, int) - Static method in class org.codegist.crest.HttpClientRestService
 

O

OAUTH_ACCESS_TOKEN - Static variable in interface org.codegist.crest.CRestProperty
specify the preconfigured access token key.
OAUTH_ACCESS_TOKEN_EXTRAS - Static variable in interface org.codegist.crest.CRestProperty
specify the preconfigured access token extras.
OAUTH_ACCESS_TOKEN_REFRESH_URL - Static variable in interface org.codegist.crest.CRestProperty
specify the access token refresh url that gets called when the preconfigure access token is expired.
OAUTH_ACCESS_TOKEN_SECRET - Static variable in interface org.codegist.crest.CRestProperty
specify the preconfigured access token secret.
OAUTH_CONSUMER_KEY - Static variable in interface org.codegist.crest.CRestProperty
specify the preconfigured consumer key.
OAUTH_CONSUMER_SECRET - Static variable in interface org.codegist.crest.CRestProperty
specify the preconfigured consumer secret.
OAUTH_PARAM_DEST - Static variable in interface org.codegist.crest.CRestProperty
specify where should the authentification parameter be added in the request, either in the URL or in the headers.
OAUTH_TOKEN_ACCESS_REFRESH_URL_METHOD - Static variable in interface org.codegist.crest.CRestProperty
specify the access token refresh url http method.
OAuthenticator - Interface in org.codegist.crest.oauth
OAuth authentificator interface
OAuthenticatorV10 - Class in org.codegist.crest.oauth
OAuth v1.0 authentificator implementation TODO : tidy up, explode in different specilized classes: more cohesion and less coupling please!!
OAuthenticatorV10(RestService, Token, OAuthenticatorV10.VariantProvider) - Constructor for class org.codegist.crest.oauth.OAuthenticatorV10
 
OAuthenticatorV10(RestService, Token, Map<String, Object>, OAuthenticatorV10.VariantProvider) - Constructor for class org.codegist.crest.oauth.OAuthenticatorV10
 
OAuthenticatorV10(RestService, Token, Map<String, Object>) - Constructor for class org.codegist.crest.oauth.OAuthenticatorV10
 
OAuthenticatorV10(RestService, Token) - Constructor for class org.codegist.crest.oauth.OAuthenticatorV10
 
OAuthentificationManager - Class in org.codegist.crest.security
OAuth authentification manager implementation.
OAuthentificationManager(OAuthenticator, Token) - Constructor for class org.codegist.crest.security.OAuthentificationManager
 
OAuthException - Exception in org.codegist.crest.oauth
 
OAuthException() - Constructor for exception org.codegist.crest.oauth.OAuthException
 
OAuthException(String) - Constructor for exception org.codegist.crest.oauth.OAuthException
 
OAuthException(String, Throwable) - Constructor for exception org.codegist.crest.oauth.OAuthException
 
OAuthException(Throwable) - Constructor for exception org.codegist.crest.oauth.OAuthException
 
org.codegist.crest - package org.codegist.crest
Contains CRest interfaces and default implementations.
org.codegist.crest.annotate - package org.codegist.crest.annotate
Contains CRest rest-binding annotations to be used to configure user interfaces.
org.codegist.crest.config - package org.codegist.crest.config
Contains DefaultCRest configuration interfaces and configuration factories.
org.codegist.crest.handler - package org.codegist.crest.handler
Contains retry, response and error handler interfaces and default implementations
org.codegist.crest.injector - package org.codegist.crest.injector
Injectors are used to inject any method parameter values in the http request before it gets fired.
org.codegist.crest.interceptor - package org.codegist.crest.interceptor
Interceptors are notified before and after the parameters have been added to the request.
org.codegist.crest.oauth - package org.codegist.crest.oauth
OAuth support implementation
org.codegist.crest.security - package org.codegist.crest.security
Authentification components
org.codegist.crest.security.handler - package org.codegist.crest.security.handler
 
org.codegist.crest.security.interceptor - package org.codegist.crest.security.interceptor
 
org.codegist.crest.serializer - package org.codegist.crest.serializer
Serializes are used to serialize a object to a single String.
override(InterfaceConfig, InterfaceConfig) - Static method in class org.codegist.crest.config.Configs
Overrides and config (overrides) with another one (base).
override(MethodConfig, MethodConfig) - Static method in class org.codegist.crest.config.Configs
Overrides and config (overrides) with another one (base).
override(ParamConfig, ParamConfig) - Static method in class org.codegist.crest.config.Configs
Overrides and config (overrides) with another one (base).
overrideDefaultConfigWith(Map<String, String>) - Method in class org.codegist.crest.CRestBuilder
Resulting CRest instance will overrides any configuration resulting from its current InterfaceConfigFactory with the given properties.
overrideDefaultConfigWith(Document) - Method in class org.codegist.crest.CRestBuilder
Resulting CRest instance will overrides any configuration resulting from its current InterfaceConfigFactory with the given xml configuration.
overrideDefaultConfigWith(InterfaceConfigFactory) - Method in class org.codegist.crest.CRestBuilder
Resulting CRest instance will overrides any configuration resulting from its internal InterfaceConfigFactory with the configuration issued by the given overridesFactory.
OverridingInterfaceConfigFactory - Class in org.codegist.crest.config
Simple InterfaceConfigFactory that returns a overridden configuration, result of the config creation for a given interface from two InterfaceConfigFactories.
OverridingInterfaceConfigFactory(InterfaceConfigFactory, InterfaceConfig) - Constructor for class org.codegist.crest.config.OverridingInterfaceConfigFactory
Build a factory that will override any result from baseFactory with the given config template
OverridingInterfaceConfigFactory(InterfaceConfigFactory, InterfaceConfigFactory) - Constructor for class org.codegist.crest.config.OverridingInterfaceConfigFactory
Build a factory that will override any result from baseFactory with the given config template

P

Param - Annotation Type in org.codegist.crest.annotate
Optional method level annotation, sets a method default parameter to add for all requests.
ParamConfig - Interface in org.codegist.crest.config
Method's argument configuration holder object.
ParamContext<V> - Interface in org.codegist.crest
Context object passed during the parameter injection process
Params - Annotation Type in org.codegist.crest.annotate
Optional method level annotation, sets a method default parameter list to add for all requests.
Params - Class in org.codegist.crest
 
Path - Annotation Type in org.codegist.crest.annotate
Optional method level annotation, sets the method path.
pointsTo(String) - Method in class org.codegist.crest.HttpRequest.Builder
Sets the url the request will point to using the default encoding (utf-8)
pointsTo(String, String) - Method in class org.codegist.crest.HttpRequest.Builder
Sets the url the request will point to.
PreconfiguredInterfaceConfigFactory - Class in org.codegist.crest.config
Preconfigured InterfaceConfigFactory holding a mapping class->InterfaceConfig.
PreconfiguredInterfaceConfigFactory(InterfaceConfig...) - Constructor for class org.codegist.crest.config.PreconfiguredInterfaceConfigFactory
 
PropertiesDrivenInterfaceConfigFactory - Class in org.codegist.crest.config
Properties based config factory of any possible interfaces given to the factory.
PropertiesDrivenInterfaceConfigFactory(Map<String, String>) - Constructor for class org.codegist.crest.config.PropertiesDrivenInterfaceConfigFactory
 
PropertiesDrivenInterfaceConfigFactory(Map<String, String>, boolean) - Constructor for class org.codegist.crest.config.PropertiesDrivenInterfaceConfigFactory
 

R

refresh() - Method in interface org.codegist.crest.security.AuthentificationManager
Refresh the authentification information
refresh() - Method in class org.codegist.crest.security.OAuthentificationManager
 
refreshAccessToken(Token, String...) - Method in interface org.codegist.crest.oauth.OAuthenticator
Refreshs the given access token if it has expired.
refreshAccessToken(Token, String...) - Method in class org.codegist.crest.oauth.OAuthenticatorV10
 
RefreshAuthentificationRetryHandler - Class in org.codegist.crest.security.handler
Authentification retry handler that refresh the authentification if the retry cause is a 401 problem.
RefreshAuthentificationRetryHandler(Map<String, Object>) - Constructor for class org.codegist.crest.security.handler.RefreshAuthentificationRetryHandler
 
release() - Method in interface org.codegist.crest.HttpResource
Release the network resources used by the resource
replacePlaceholderInUri(int, String) - Method in class org.codegist.crest.HttpRequest.Builder
Replace all url placeholder at the given index with the given value.
RequestContext - Interface in org.codegist.crest
Context for any request, passed to request's interceptors.
RequestInterceptor - Annotation Type in org.codegist.crest.annotate
Optional method level annotation, sets the method interceptor.
RequestInterceptor - Interface in org.codegist.crest.interceptor
Interceptors are notified before and after the parameters have been added to the request.
RequestInterceptorAdapter - Class in org.codegist.crest.interceptor
Simple RequestInterceptor adapter.
RequestInterceptorAdapter() - Constructor for class org.codegist.crest.interceptor.RequestInterceptorAdapter
 
ResponseContext - Interface in org.codegist.crest
Response context, passed to the response handlers and error handlers.
ResponseHandler - Annotation Type in org.codegist.crest.annotate
Optional method level annotation, sets the method response handler.
ResponseHandler - Interface in org.codegist.crest.handler
Response handler is invoked for each request's as long as the interface doesn't specifically requested for the raw response (Reader or InputStream method return types.)
RestService - Interface in org.codegist.crest
 
retry(ResponseContext, Exception, int) - Method in class org.codegist.crest.handler.MaxAttemptRetryHandler
 
retry(ResponseContext, Exception, int) - Method in interface org.codegist.crest.handler.RetryHandler
 
retry(ResponseContext, Exception, int) - Method in class org.codegist.crest.security.handler.RefreshAuthentificationRetryHandler
 
RetryHandler - Annotation Type in org.codegist.crest.annotate
Optional method level annotation, sets the method retry handler.
RetryHandler - Interface in org.codegist.crest.handler
Retry handlers are used to control whether a method execution that has failed during the HTTP call should be re-executed or not
returnRawResults() - Method in class org.codegist.crest.CRestBuilder
Resulting CRest instance will create interface instances that will return raw response.

S

serialize(T) - Method in class org.codegist.crest.serializer.ArraySerializer
 
serialize(Boolean) - Method in class org.codegist.crest.serializer.BooleanSerializer
 
serialize(Date) - Method in class org.codegist.crest.serializer.DateSerializer
 
serialize(T) - Method in interface org.codegist.crest.serializer.Serializer
Serialize the current arg context into a single string
serialize(T) - Method in class org.codegist.crest.serializer.ToStringSerializer
Simple serializer that returns the toString() value of the given value or empty string if null.
Serializer - Annotation Type in org.codegist.crest.annotate
Optional method argument level annotation, sets the parameter serializer to use.
Serializer<T> - Interface in org.codegist.crest.serializer
Serializes are used to serialize a object to a single String.
SERIALIZER_BOOLEAN_FALSE - Static variable in interface org.codegist.crest.CRestProperty
override the default boolean FALSE value ("false").
SERIALIZER_BOOLEAN_TRUE - Static variable in interface org.codegist.crest.CRestProperty
override the default boolean TRUE value ("true").
SERIALIZER_CUSTOM_SERIALIZER_MAP - Static variable in interface org.codegist.crest.CRestProperty
specify a type/serializer map to use for selection of serializer to apply for any given type
SERIALIZER_DATE_FORMAT - Static variable in interface org.codegist.crest.CRestProperty
format the date with the given date format.
SERIALIZER_LIST_SEPARATOR - Static variable in interface org.codegist.crest.CRestProperty
override the default item separator (comma).
Serializers - Class in org.codegist.crest.serializer
 
setBodyParams(Map<String, Object>) - Method in class org.codegist.crest.HttpRequest.Builder
Sets the resulting request's body to the given map
setBooleanSerializer(String, String) - Method in class org.codegist.crest.CRestBuilder
Sets how boolean should be serialized.
setConnectionTimeout(Long) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setConnectionTimeout(String) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setContextPath(String) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setDateSerializerFormat(String) - Method in class org.codegist.crest.CRestBuilder
Sets date serializer format to the given format.
setDestination(String) - Method in class org.codegist.crest.config.ConfigBuilders.ParamConfigBuilder
 
setDestination(Destination) - Method in class org.codegist.crest.config.ConfigBuilders.ParamConfigBuilder
 
setEncoding(String) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setErrorHandler(ErrorHandler) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setErrorHandler(String) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setErrorHandler(Class<? extends ErrorHandler>) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setGlobalInterceptor(RequestInterceptor) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setGlobalInterceptor(String) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setGlobalInterceptor(Class<? extends RequestInterceptor>) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setHeaders(Map<String, String>) - Method in class org.codegist.crest.HttpRequest.Builder
Sets the resulting request's headers to the given map
setHttpMethod(String) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setHttpMethod(HttpMethod) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setIgnoreNullOrEmptyValues(boolean) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setIgnoreNullOrEmptyValues(boolean) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setIgnoreNullOrEmptyValues(boolean) - Method in class org.codegist.crest.config.ConfigBuilders.ParamConfigBuilder
 
setInjector(Injector) - Method in class org.codegist.crest.config.ConfigBuilders.ParamConfigBuilder
 
setInjector(String) - Method in class org.codegist.crest.config.ConfigBuilders.ParamConfigBuilder
 
setInjector(Class<? extends Injector>) - Method in class org.codegist.crest.config.ConfigBuilders.ParamConfigBuilder
 
setListSerializerSeparator(String) - Method in class org.codegist.crest.CRestBuilder
Sets the list separator for the list serializer
setMethodsConnectionTimeout(Long) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setMethodsConnectionTimeout(String) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setMethodsErrorHandler(ErrorHandler) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setMethodsErrorHandler(String) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setMethodsErrorHandler(Class<? extends ErrorHandler>) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setMethodsHttpMethod(HttpMethod) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setMethodsHttpMethod(String) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setMethodsPath(String) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setMethodsRequestInterceptor(RequestInterceptor) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setMethodsRequestInterceptor(String) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setMethodsRequestInterceptor(Class<? extends RequestInterceptor>) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setMethodsResponseHandler(ResponseHandler) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setMethodsResponseHandler(String) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setMethodsResponseHandler(Class<? extends ResponseHandler>) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setMethodsRetryHandler(RetryHandler) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setMethodsRetryHandler(String) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setMethodsRetryHandler(Class<? extends RetryHandler>) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setMethodsSocketTimeout(Long) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setMethodsSocketTimeout(String) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setName(String) - Method in class org.codegist.crest.config.ConfigBuilders.ParamConfigBuilder
 
setParamsDestination(Destination) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setParamsDestination(String) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setParamsDestination(String) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setParamsDestination(Destination) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setParamsInjector(Injector) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setParamsInjector(String) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setParamsInjector(Class<? extends Injector>) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setParamsInjector(Injector) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setParamsInjector(String) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setParamsInjector(Class<? extends Injector>) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setParamsName(String) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setParamsName(String) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setParamsSerializer(Serializer) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setParamsSerializer(String) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setParamsSerializer(Class<? extends Serializer>) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
setParamsSerializer(Serializer) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setParamsSerializer(String) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setParamsSerializer(Class<? extends Serializer>) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setPath(String) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setProperties(Map<String, Object>) - Method in class org.codegist.crest.CRestBuilder
Sets a custom properties every services build with the resulting CRest instance will be passed.
setProperty(String, Object) - Method in class org.codegist.crest.CRestBuilder
Sets a custom property every services build with the resulting CRest instance will be passed.
setQueryString(Map<String, String>) - Method in class org.codegist.crest.HttpRequest.Builder
Sets the resulting request's query string parameters to the given map
setRequestInterceptor(RequestInterceptor) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setRequestInterceptor(String) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setRequestInterceptor(Class<? extends RequestInterceptor>) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setResponseHandler(ResponseHandler) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setResponseHandler(String) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setResponseHandler(Class<? extends ResponseHandler>) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setRestService(RestService) - Method in class org.codegist.crest.CRestBuilder
Overrides the rest service every services build with the resulting CRest instance will use.
setRetryHandler(RetryHandler) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setRetryHandler(String) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setRetryHandler(Class<? extends RetryHandler>) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setSerializer(Serializer) - Method in class org.codegist.crest.config.ConfigBuilders.ParamConfigBuilder
Sets the argument's serializer.
setSerializer(String) - Method in class org.codegist.crest.config.ConfigBuilders.ParamConfigBuilder
Sets the argument's serializer.
setSerializer(Class<? extends Serializer>) - Method in class org.codegist.crest.config.ConfigBuilders.ParamConfigBuilder
Sets the argument's serializer.
setSerializer(Type, Serializer) - Method in class org.codegist.crest.CRestBuilder
Sets a custom serializer for the given type the resulting CRest instance will use to serialize method arguments.
setSocketTimeout(Long) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
setSocketTimeout(String) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
sign(Token, HttpRequest.Builder, Pair<String, String>...) - Method in interface org.codegist.crest.oauth.OAuthenticator
Signs the given request using the given access token and the optional additional oauth headers.
sign(Token, HttpRequest.Builder, Pair<String, String>...) - Method in class org.codegist.crest.oauth.OAuthenticatorV10
 
sign(HttpRequest.Builder, Pair<String, String>...) - Method in interface org.codegist.crest.security.AuthentificationManager
Sign the request
sign(HttpRequest.Builder, Pair<String, String>...) - Method in class org.codegist.crest.security.OAuthentificationManager
 
SocketTimeout - Annotation Type in org.codegist.crest.annotate
Optional method level annotation, sets the method socket timeout.
startMethodConfig(Method) - Method in class org.codegist.crest.config.ConfigBuilders.InterfaceConfigBuilder
 
startParamConfig(int) - Method in class org.codegist.crest.config.ConfigBuilders.MethodConfigBuilder
 
StaticParam - Interface in org.codegist.crest.config
 

T

timeoutAfter(Long) - Method in class org.codegist.crest.HttpRequest.Builder
 
timeoutConnectionAfter(Long) - Method in class org.codegist.crest.HttpRequest.Builder
 
timeoutSocketAfter(Long) - Method in class org.codegist.crest.HttpRequest.Builder
 
Token - Class in org.codegist.crest.oauth
OAuth Token information holder
Token(String, String) - Constructor for class org.codegist.crest.oauth.Token
 
Token(String, String, Map<String, String>) - Constructor for class org.codegist.crest.oauth.Token
 
toString() - Method in class org.codegist.crest.HttpRequest
 
toString() - Method in class org.codegist.crest.HttpResponse
 
toString() - Method in class org.codegist.crest.oauth.Token
 
ToStringSerializer<T> - Class in org.codegist.crest.serializer
Simple serializer that returns the toString() value of the given value or empty string if null.
ToStringSerializer() - Constructor for class org.codegist.crest.serializer.ToStringSerializer
 

U

useCglibProxies() - Method in class org.codegist.crest.CRestBuilder
Resulting CRest instance will use cglib proxies to build interface instances.
useHttpClientRestService() - Method in class org.codegist.crest.CRestBuilder
Resulting CRest instance's RestService will be a single threaded instance of HttpClientRestService.
useHttpClientRestService(int) - Method in class org.codegist.crest.CRestBuilder
Resulting CRest instance's RestService will be a multi-threaded instance of HttpClientRestService.
useHttpClientRestService(int, int) - Method in class org.codegist.crest.CRestBuilder
Resulting CRest instance's RestService will be a multi-threaded instance of HttpClientRestService.
useJdkProxies() - Method in class org.codegist.crest.CRestBuilder
Resulting CRest instance will use native jdk proxies to build interface instances.
usePreauthentifiedOAuth(String, String, String, String) - Method in class org.codegist.crest.CRestBuilder
Authentification parameters are added to the request headers.
usePreauthentifiedOAuth(String, String, String, String, boolean) - Method in class org.codegist.crest.CRestBuilder
Resulting CRest instance will authentify every requests using OAuth (http://oauth.net/) authentification mechanism, using a pre-authentified access token and consumer information.
using(HttpMethod) - Method in class org.codegist.crest.HttpRequest.Builder
 

V

valueOf(String) - Static method in enum org.codegist.crest.config.Destination
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.codegist.crest.HttpMethod
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.codegist.crest.config.Destination
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum org.codegist.crest.HttpMethod
Returns an array containing the constants of this enum type, in the order they're declared.

W

withAnnotatedConfig() - Method in class org.codegist.crest.CRestBuilder
Resulting CRest instance will handle annotated configurated interfaces.
withPropertiesConfig(Map<String, String>) - Method in class org.codegist.crest.CRestBuilder
Resulting CRest instance will handle properties based configuration.
withXmlConfig(Document) - Method in class org.codegist.crest.CRestBuilder
Resulting CRest instance will handle xml based configuration.

X

XmlDrivenInterfaceConfigFactory - Class in org.codegist.crest.config
Xml based config factory of any possible interfaces given to the factory.
XmlDrivenInterfaceConfigFactory(Document, boolean) - Constructor for class org.codegist.crest.config.XmlDrivenInterfaceConfigFactory
 
XmlDrivenInterfaceConfigFactory(Document) - Constructor for class org.codegist.crest.config.XmlDrivenInterfaceConfigFactory
 

A B C D E G H I M N O P R S T U V W X

Copyright © 2011. All Rights Reserved.