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

A

AbstractRequestInterceptor - Class in org.codegist.crest.interceptor
Empty io interceptor.
AbstractRequestInterceptor(CRestConfig) - Constructor for class org.codegist.crest.interceptor.AbstractRequestInterceptor
 
addHeader(String, String) - Method in interface org.codegist.crest.io.http.HttpChannel
Adds a new HTTP header
addParam(ParamConfig) - Method in interface org.codegist.crest.io.RequestBuilder
Add the given param config.
addParam(ParamConfig, Object) - Method in interface org.codegist.crest.io.RequestBuilder
Add the given param config.
addParam(ParamConfig, Collection<Object>) - Method in interface org.codegist.crest.io.RequestBuilder
Add the given param config.
addParams(ParamConfig...) - Method in interface org.codegist.crest.io.RequestBuilder
Add the given param configs.
addPlaceholders(Map<String, String>) - Method in class org.codegist.crest.CRestBuilder
Adds all given placeholders to the string-based annotations placeholders replacement map.
addProperties(Map<String, Object>) - Method in class org.codegist.crest.CRestBuilder
Adds all given properties to the CRestConfig that will be passed to all CRest components.
AnnotationDrivenInterfaceConfigFactory - Class in org.codegist.crest.config
Annotation based config factory.
AnnotationDrivenInterfaceConfigFactory(InterfaceConfigBuilderFactory, ComponentRegistry<Class<? extends Annotation>, AnnotationHandler>) - Constructor for class org.codegist.crest.config.AnnotationDrivenInterfaceConfigFactory
 
AnnotationHandler<A extends Annotation> - Interface in org.codegist.crest.config.annotate
CRest's Annotation Handler interface.
appendMethodsPath(String) - Method in interface org.codegist.crest.config.InterfaceConfigBuilder
Appends an URI path segment for all REST interface's methods
appendPath(String) - Method in interface org.codegist.crest.config.MethodConfigBuilder
Appends an URI path segment to the REST interface's method path
asMultipart(Map<String, Object>) - Static method in class org.codegist.crest.util.MultiParts
Set the multipart metadata flag into the given map
asStream() - Method in interface org.codegist.crest.io.Response
 
Authorization - Interface in org.codegist.crest.security
 
AuthorizationHttpChannelFactory - Class in org.codegist.crest.io.http
 
AuthorizationHttpChannelFactory(HttpChannelFactory, Authorization, Map<String, EntityParamExtractor>) - Constructor for class org.codegist.crest.io.http.AuthorizationHttpChannelFactory
 
AuthorizationToken - Class in org.codegist.crest.security
Authorization token holder to be used in the HTTP Authorization header
AuthorizationToken(String, String) - Constructor for class org.codegist.crest.security.AuthorizationToken
 
authorize(MethodType, String, EncodedPair...) - Method in interface org.codegist.crest.security.Authorization
Generates an authorization token for a given request
authorize(MethodType, String, EncodedPair...) - Method in class org.codegist.crest.security.basic.BasicAuthorization
 
authorize(MethodType, String, EncodedPair...) - Method in class org.codegist.crest.security.oauth.OAuthorization
 

B

basicAuth(String, String) - Static method in class org.codegist.crest.CRest
Configures the resulting CRest instance to authenticate all requests using Basic Auth
basicAuth(String, String) - Method in class org.codegist.crest.CRestBuilder
Configures the resulting CRest instance to authenticate all requests using Basic Auth
BasicAuthorization - Class in org.codegist.crest.security.basic
 
BasicAuthorization(String, String) - Constructor for class org.codegist.crest.security.basic.BasicAuthorization
 
beforeFire(RequestBuilder, MethodConfig, Object[]) - Method in class org.codegist.crest.interceptor.NoOpRequestInterceptor
 
beforeFire(RequestBuilder, MethodConfig, Object[]) - Method in interface org.codegist.crest.interceptor.RequestInterceptor
Called before firing the request
bindAnnotationHandler(Class<? extends AnnotationHandler<A>>, Class<A>) - Method in class org.codegist.crest.CRestBuilder
Binds an annotation handler for the given annotation.
bindAnnotationHandler(Class<? extends AnnotationHandler<A>>, Class<A>, Map<String, Object>) - Method in class org.codegist.crest.CRestBuilder
Binds an annotation handler for the given annotation.
bindDeserializer(Class<? extends Deserializer>, String...) - Method in class org.codegist.crest.CRestBuilder
Binds a deserializer to a list of response Content-Type mime-types.
bindDeserializer(Class<? extends Deserializer>, String[], Map<String, Object>) - Method in class org.codegist.crest.CRestBuilder
Binds a deserializer to a list of response Content-Type mime-types.
bindDeserializer(Class<? extends Deserializer>, Class<?>...) - Method in class org.codegist.crest.CRestBuilder
Binds a deserializer to a list of interface method's return types.
bindDeserializer(Class<? extends Deserializer>, Class<?>[], Map<String, Object>) - Method in class org.codegist.crest.CRestBuilder
Binds a deserializer to a list of interface method's return types.
bindJsonDeserializerWith(String...) - Method in class org.codegist.crest.CRestBuilder
Adds the given list of response Content-Type mime-types to be consider as JSON mime-types and to be deserialized by the default JSON Deserializer
bindPlainTextDeserializerWith(String...) - Method in class org.codegist.crest.CRestBuilder
Adds the given list of response Content-Type mime-types to be consider as plain-text mime-types and to be deserialized to plain String
bindSerializer(Class<? extends Serializer>, Class<?>...) - Method in class org.codegist.crest.CRestBuilder
Binds a serializer to a list of interface method's parameter types
bindSerializer(Class<? extends Serializer>, Class<?>[], Map<String, Object>) - Method in class org.codegist.crest.CRestBuilder
Binds a serializer to a list of interface method's parameter types
bindXmlDeserializerWith(String...) - Method in class org.codegist.crest.CRestBuilder
Adds the given list of response Content-Type mime-types to be consider as XML mime-types and to be deserialized by the default XML Deserializer
booleanFormat(String, String) - Method in class org.codegist.crest.CRestBuilder
Overrides the default boolean format for serialization (default are "true" and "false").
BooleanPrimitiveDeserializer - Class in org.codegist.crest.serializer.primitive
 
BooleanPrimitiveDeserializer(CRestConfig) - Constructor for class org.codegist.crest.serializer.primitive.BooleanPrimitiveDeserializer
 
BooleanSerializer - Class in org.codegist.crest.serializer.primitive
 
BooleanSerializer(CRestConfig) - Constructor for class org.codegist.crest.serializer.primitive.BooleanSerializer
 
BooleanWrapperDeserializer - Class in org.codegist.crest.serializer.primitive
 
BooleanWrapperDeserializer(CRestConfig) - Constructor for class org.codegist.crest.serializer.primitive.BooleanWrapperDeserializer
 
build() - Method in interface org.codegist.crest.config.InterfaceConfigBuilder
Returns an instance of InterfaceConfig
build() - Method in interface org.codegist.crest.config.MethodConfigBuilder
Returns an instance of MethodConfig
build() - Method in interface org.codegist.crest.config.ParamConfigBuilder
Returns an instance of ParamConfig
build() - Method in interface org.codegist.crest.config.PathBuilder
Builds the path
build(Class<T>) - Method in class org.codegist.crest.CRest
Build an instance of an annotated interface.
build() - Method in class org.codegist.crest.CRestBuilder
Build a CRest instance.
build(MethodConfig) - Method in interface org.codegist.crest.io.RequestBuilder
Returns an instance of request for the given method config
build() - Method in class org.codegist.crest.security.oauth.v1.OAuthApiV1Builder
 
build(CRestConfig) - Method in class org.codegist.crest.util.ComponentRegistry.Builder
Builds the ComponentRegistry with the given CRestConfig.
ByteArrayDeserializer - Class in org.codegist.crest.serializer.primitive
 
ByteArrayDeserializer() - Constructor for class org.codegist.crest.serializer.primitive.ByteArrayDeserializer
 
BytePrimitiveDeserializer - Class in org.codegist.crest.serializer.primitive
 
BytePrimitiveDeserializer() - Constructor for class org.codegist.crest.serializer.primitive.BytePrimitiveDeserializer
 
ByteWrapperDeserializer - Class in org.codegist.crest.serializer.primitive
 
ByteWrapperDeserializer() - Constructor for class org.codegist.crest.serializer.primitive.ByteWrapperDeserializer
 

C

CharacterPrimitiveDeserializer - Class in org.codegist.crest.serializer.primitive
 
CharacterPrimitiveDeserializer() - Constructor for class org.codegist.crest.serializer.primitive.CharacterPrimitiveDeserializer
 
CharacterWrapperDeserializer - Class in org.codegist.crest.serializer.primitive
 
CharacterWrapperDeserializer() - Constructor for class org.codegist.crest.serializer.primitive.CharacterWrapperDeserializer
 
compile(Map<String, String>) - Static method in class org.codegist.crest.util.Placeholders
Compiles the given placeholder map.
ComponentFactory - Class in org.codegist.crest.util
CRest Component factory
ComponentRegistry<K,T> - Class in org.codegist.crest.util
Lazy CRest Component registry
ComponentRegistry.Builder<K,T> - Class in org.codegist.crest.util
 
ComponentRegistry.Builder() - Constructor for class org.codegist.crest.util.ComponentRegistry.Builder
 
ConnectionTimeout - Annotation Type in org.codegist.crest.annotate
Indicates the connection timeout of the annotated method
Consumes - Annotation Type in org.codegist.crest.annotate
Defines the media types that the method will handle.
contains(K) - Method in class org.codegist.crest.util.ComponentRegistry
Checks if the registry contains the given key
CookieParam - Annotation Type in org.codegist.crest.annotate
Binds a method parameter to be used as a request HTTP cookie.
CookieParams - Annotation Type in org.codegist.crest.annotate
Binds the list of default request HTTP cookies of the annotated method.
create(String) - Static method in class org.codegist.crest.config.RegexPathTemplate
Creates a regex path template for the given URI template
create() - Method in class org.codegist.crest.io.http.HttpRequestBuilderFactory
 
create() - Method in interface org.codegist.crest.io.RequestBuilderFactory
 
CRest - Class in org.codegist.crest
CRest is a rest annotated interface builder.
CRest() - Constructor for class org.codegist.crest.CRest
 
CREST_BOOLEAN_FALSE - Static variable in interface org.codegist.crest.CRestConfig
Property name for setting CRest's boolean format for FALSE for serialization (default is "false")
CREST_BOOLEAN_TRUE - Static variable in interface org.codegist.crest.CRestConfig
Property name for setting CRest's boolean format for TRUE for serialization (default is "true")
CREST_CONCURRENCY_LEVEL - Static variable in interface org.codegist.crest.CRestConfig
Property name for setting CRest's components Concurrency Level (default is 1)
CREST_DATE_FORMAT - Static variable in interface org.codegist.crest.CRestConfig
Property name for setting CRest's date format for serialization (default is "yyyy-MM-dd'T'HH:mm:ssZ")
CREST_MAX_ATTEMPTS - Static variable in interface org.codegist.crest.CRestConfig
Property name for setting CRest's maximym retry attempts on request failure (default is 1, meaning no retry)
CRestAnnotations - Class in org.codegist.crest.config.annotate
 
CRestBuilder - Class in org.codegist.crest
CRest instance can be obtain through this builder.
CRestBuilder() - Constructor for class org.codegist.crest.CRestBuilder
 
CRestComponent - Annotation Type in org.codegist.crest.annotate
Purely documentation annotation, not look-up by CRest.
CRestConfig - Interface in org.codegist.crest
Config object that maintains the internal state of CRest.
CRestException - Exception in org.codegist.crest
CRest's exception wrapper
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
 

D

DateDeserializer - Class in org.codegist.crest.serializer
 
DateDeserializer(CRestConfig) - Constructor for class org.codegist.crest.serializer.DateDeserializer
 
dateFormat(String) - Method in class org.codegist.crest.CRestBuilder
Overrides the default date format for serialization (default is "yyyy-MM-dd'T'HH:mm:ssZ").
DateSerializer - Class in org.codegist.crest.serializer
 
DateSerializer(CRestConfig) - Constructor for class org.codegist.crest.serializer.DateSerializer
 
defaultAs(Class<? extends T>) - Method in class org.codegist.crest.util.ComponentRegistry.Builder
Sets the default component class when the component registry is being asked for a unknown key.
defaultAs(Class<? extends T>, Map<String, Object>) - Method in class org.codegist.crest.util.ComponentRegistry.Builder
Sets the default component class when the component registry is being asked for a unknown key.
DefaultInterfaceConfigBuilderFactory - Class in org.codegist.crest.config
 
DefaultInterfaceConfigBuilderFactory(CRestConfig, ComponentRegistry<String, Deserializer>, ComponentRegistry<Class<?>, Serializer>) - Constructor for class org.codegist.crest.config.DefaultInterfaceConfigBuilderFactory
 
DefaultParam - Class in org.codegist.crest.param
Default Param implementation
DefaultParam(ParamConfig, Collection<Object>) - Constructor for class org.codegist.crest.param.DefaultParam
 
DefaultParamConfigBuilderFactory - Class in org.codegist.crest.config
 
DefaultParamConfigBuilderFactory(CRestConfig, ComponentRegistry<Class<?>, Serializer>) - Constructor for class org.codegist.crest.config.DefaultParamConfigBuilderFactory
 
DefaultResponseHandler - Class in org.codegist.crest.handler
 
DefaultResponseHandler() - Constructor for class org.codegist.crest.handler.DefaultResponseHandler
 
DELETE - Annotation Type in org.codegist.crest.annotate
Indicates that the annotated method issues HTTP DELETE requests
deserialize() - Method in interface org.codegist.crest.io.Response
 
deserialize(Class<T>, Type, InputStream, Charset) - Method in interface org.codegist.crest.serializer.Deserializer
Deserializes the given input stream to the given type.
deserialize(Class<T>, Type, InputStream, Charset) - Method in class org.codegist.crest.serializer.jackson.JacksonDeserializer
 
deserialize(Class<T>, Type, InputStream, Charset) - Method in class org.codegist.crest.serializer.jaxb.JaxbDeserializer
 
deserialize(String) - Method in class org.codegist.crest.serializer.primitive.BooleanPrimitiveDeserializer
 
deserialize(String) - Method in class org.codegist.crest.serializer.primitive.BooleanWrapperDeserializer
 
deserialize(String) - Method in class org.codegist.crest.serializer.primitive.BytePrimitiveDeserializer
 
deserialize(String) - Method in class org.codegist.crest.serializer.primitive.ByteWrapperDeserializer
 
deserialize(String) - Method in class org.codegist.crest.serializer.primitive.CharacterPrimitiveDeserializer
 
deserialize(String) - Method in class org.codegist.crest.serializer.primitive.CharacterWrapperDeserializer
 
deserialize(String) - Method in class org.codegist.crest.serializer.primitive.DoublePrimitiveDeserializer
 
deserialize(String) - Method in class org.codegist.crest.serializer.primitive.DoubleWrapperDeserializer
 
deserialize(String) - Method in class org.codegist.crest.serializer.primitive.FloatPrimitiveDeserializer
 
deserialize(String) - Method in class org.codegist.crest.serializer.primitive.FloatWrapperDeserializer
 
deserialize(String) - Method in class org.codegist.crest.serializer.primitive.IntegerPrimitiveDeserializer
 
deserialize(String) - Method in class org.codegist.crest.serializer.primitive.IntegerWrapperDeserializer
 
deserialize(String) - Method in class org.codegist.crest.serializer.primitive.LongPrimitiveDeserializer
 
deserialize(String) - Method in class org.codegist.crest.serializer.primitive.LongWrapperDeserializer
 
deserialize(String) - Method in class org.codegist.crest.serializer.primitive.ShortPrimitiveDeserializer
 
deserialize(String) - Method in class org.codegist.crest.serializer.primitive.ShortWrapperDeserializer
 
deserialize(Class<T>, Type, InputStream, Charset) - Method in class org.codegist.crest.serializer.primitive.VoidDeserializer
 
deserialize(Response) - Method in interface org.codegist.crest.serializer.ResponseDeserializer
Deserialize the given response
deserialize(Response) - Method in class org.codegist.crest.serializer.ResponseDeserializerByClass
 
deserialize(Response) - Method in class org.codegist.crest.serializer.ResponseDeserializerByDeserializers
 
deserialize(Response) - Method in class org.codegist.crest.serializer.ResponseDeserializerByMimeType
 
deserialize(Response) - Method in class org.codegist.crest.serializer.ResponseDeserializerComposite
 
deserialize(Class<T>, Type, InputStream, Charset) - Method in class org.codegist.crest.serializer.simplexml.SimpleXmlDeserializer
 
deserialize(Class<T>, Type, InputStream, Charset) - Method in class org.codegist.crest.serializer.TypeDeserializer
 
deserializeJsonWith(Class<? extends Deserializer>) - Method in class org.codegist.crest.CRestBuilder
Overrides the default JacksonDeserializer JSON deserializer with the given one
deserializeJsonWith(Class<? extends Deserializer>, Map<String, Object>) - Method in class org.codegist.crest.CRestBuilder
Overrides the default JacksonDeserializer JSON deserializer with the given one
Deserializer - Annotation Type in org.codegist.crest.annotate
Binds a deserializer for the annotated method response type, overriding the default deserialization process.
Deserializer - Interface in org.codegist.crest.serializer
Deserializers are used during response deserialization process
deserializeXmlWith(Class<? extends Deserializer>) - Method in class org.codegist.crest.CRestBuilder
Overrides the default JaxbDeserializer XML deserializer with the given one
deserializeXmlWith(Class<? extends Deserializer>, Map<String, Object>) - Method in class org.codegist.crest.CRestBuilder
Overrides the default JaxbDeserializer XML deserializer with the given one
dispose() - Method in class org.codegist.crest.io.http.HttpClientHttpChannelFactory
 
dispose() - Method in class org.codegist.crest.io.http.HttpRequestExecutor
 
dispose() - Method in exception org.codegist.crest.io.RequestException
Dispose underlying response if applicable
DoublePrimitiveDeserializer - Class in org.codegist.crest.serializer.primitive
 
DoublePrimitiveDeserializer() - Constructor for class org.codegist.crest.serializer.primitive.DoublePrimitiveDeserializer
 
DoubleWrapperDeserializer - Class in org.codegist.crest.serializer.primitive
 
DoubleWrapperDeserializer() - Constructor for class org.codegist.crest.serializer.primitive.DoubleWrapperDeserializer
 

E

Encoded - Annotation Type in org.codegist.crest.annotate
Disables automatic encoding of parameter values bound using QueryParam, PathParam, FormParam or MatrixParam.
EncodedPair - Interface in org.codegist.crest.param
An encoded pair hold pre-encoded name/value pair of values
Encoding - Annotation Type in org.codegist.crest.annotate
Defines the encoding used for parameter url-encoding and request entity.
EndPoint - Annotation Type in org.codegist.crest.annotate
Indicates the annotated method service end-point
endpoint(String) - Static method in class org.codegist.crest.CRest
Sets the default endpoint all interfaces build through the resulting CRest instance will point at.
endpoint(String) - Method in class org.codegist.crest.CRestBuilder
Sets the default endpoint all interfaces build through the resulting CRest instance will point at.
EntityParamExtractor - Interface in org.codegist.crest.io.http
Used by the AuthorizationHttpChannel the extract any relevant entity's parameters to use to authenticate a request
EntityWriter - Annotation Type in org.codegist.crest.annotate
Binds a entity writer for the annotated method entity, overriding the HTTP entity writing behavior.
EntityWriter - Interface in org.codegist.crest.entity
EntityWriters are used to write the content of the request entity
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
Binds an error handler for the annotated method.
ErrorHandler - Interface in org.codegist.crest.handler
ErrorHandlers are used called when any error occures during the request execution, after the all retry attempts have been consumed.
execute(Request) - Method in class org.codegist.crest.io.http.HttpRequestExecutor
 
execute(Request) - Method in interface org.codegist.crest.io.RequestExecutor
Executes the given request
execute(Request) - Method in class org.codegist.crest.io.RetryingRequestExecutor
 
extract(String, Charset, InputStream) - Method in interface org.codegist.crest.io.http.EntityParamExtractor
Extracts a list of pre-encoded parameters from the HTTP entity to use during the authentification process of a request
extract(String, Charset, InputStream) - Method in class org.codegist.crest.io.http.UrlEncodedFormEntityParamExtractor
 
extractsEntityAuthParamsWith(String, EntityParamExtractor) - Method in class org.codegist.crest.CRestBuilder
Sets an entity parameters extractor for authenticated requests.

F

FileSerializer - Class in org.codegist.crest.serializer
 
FileSerializer() - Constructor for class org.codegist.crest.serializer.FileSerializer
 
FloatPrimitiveDeserializer - Class in org.codegist.crest.serializer.primitive
 
FloatPrimitiveDeserializer() - Constructor for class org.codegist.crest.serializer.primitive.FloatPrimitiveDeserializer
 
FloatWrapperDeserializer - Class in org.codegist.crest.serializer.primitive
 
FloatWrapperDeserializer() - Constructor for class org.codegist.crest.serializer.primitive.FloatWrapperDeserializer
 
forCookie() - Method in interface org.codegist.crest.config.ParamConfigBuilder
Sets the current parameter to be a HTTP Cookie
forForm() - Method in interface org.codegist.crest.config.ParamConfigBuilder
Sets the current parameter to be a form parameter
forHeader() - Method in interface org.codegist.crest.config.ParamConfigBuilder
Sets the current parameter to be a HTTP Header
forMatrix() - Method in interface org.codegist.crest.config.ParamConfigBuilder
Sets the current parameter to be a URI matrix parameter
FormParam - Annotation Type in org.codegist.crest.annotate
Binds a method parameter to be used as a request form parameter.
FormParams - Annotation Type in org.codegist.crest.annotate
Binds the list of default request form parameters of the annotated method.
forMultiPart() - Method in interface org.codegist.crest.config.ParamConfigBuilder
Sets the current parameter to be a multipart parameter
forPath() - Method in interface org.codegist.crest.config.ParamConfigBuilder
Sets the current parameter to be a URI path segment parameter
forQuery() - Method in interface org.codegist.crest.config.ParamConfigBuilder
Sets the current parameter to be a URI Query parameter
from(RequestBuilderFactory, MethodConfig, Object[]) - Static method in class org.codegist.crest.util.Requests
Creates a Request from the given method config and user arguments.
fromUrlEncoded(String) - Static method in class org.codegist.crest.util.Pairs
Parse and url-encoded string and returns the list of encoded pairs.

G

GET - Annotation Type in org.codegist.crest.annotate
Indicates that the annotated method issues HTTP GET requests
get(String) - Method in interface org.codegist.crest.CRestConfig
Lookup of a property with the given key.
get(String, T) - Method in interface org.codegist.crest.CRestConfig
Lookup of a property with the given key.
get(Class<?>) - Method in interface org.codegist.crest.CRestConfig
Lookup of a property with the given class full qualified name.
get(Class<?>, T) - Method in interface org.codegist.crest.CRestConfig
Lookup of a property with the given class full qualified name.
get(K) - Method in class org.codegist.crest.util.ComponentRegistry
Return the CRest Component associated with the key
getAccessToken(OAuthToken, String) - Method in interface org.codegist.crest.security.oauth.OAuthApi
Exchange a request token with verifier for an access token
getAccessTokenFrom(String) - Method in class org.codegist.crest.security.oauth.v1.OAuthApiV1Builder
Indicates the path context to use for access token exchange url
getAttribute(String) - Method in class org.codegist.crest.security.oauth.OAuthToken
 
getAttributes() - Method in class org.codegist.crest.security.oauth.OAuthToken
 
getBasicAuthInstance(String, String) - Static method in class org.codegist.crest.CRest
Build a CRest instance that authenticate all request using Basic Auth.
getBooleanFalse() - Method in interface org.codegist.crest.CRestConfig
 
getBooleanTrue() - Method in interface org.codegist.crest.CRestConfig
 
getBuilder(Charset) - Method in interface org.codegist.crest.config.PathTemplate
Returns a PathBuilder that will use the given charset for encoding merged values
getBuilder(Charset) - Method in class org.codegist.crest.config.RegexPathTemplate
 
getCharset() - Method in interface org.codegist.crest.config.MethodConfig
Indicates the encoding used for parameter url-encoding and request entity
getCharset() - Method in interface org.codegist.crest.io.Response
 
getConcurrencyLevel() - Method in interface org.codegist.crest.CRestConfig
 
getConnectionTimeout() - Method in interface org.codegist.crest.config.MethodConfig
Method's connection timeout
getConsumes() - Method in interface org.codegist.crest.config.MethodConfig
Media types that the method will handle.
getContentEncoding() - Method in interface org.codegist.crest.io.http.HttpChannel.Response
Returns the HTTP response's Content-Encoding
getContentEncoding() - Method in interface org.codegist.crest.io.Response
 
getContentLength(Request) - Method in interface org.codegist.crest.entity.EntityWriter
Should return the entity content length if known, or -1
getContentLength(Request) - Method in class org.codegist.crest.entity.multipart.MultiPartEntityWriter
 
getContentLength(Request) - Method in class org.codegist.crest.entity.UrlEncodedFormEntityWriter
 
getContentType(Request) - Method in interface org.codegist.crest.entity.EntityWriter
Should return the request content-type
getContentType(Request) - Method in class org.codegist.crest.entity.multipart.MultiPartEntityWriter
 
getContentType(Request) - Method in class org.codegist.crest.entity.UrlEncodedFormEntityWriter
 
getContentType() - Method in interface org.codegist.crest.io.http.HttpChannel.Response
Returns the HTTP response's Content-Type
getContentType() - Method in interface org.codegist.crest.io.Response
 
getContentType(ParamConfig) - Static method in class org.codegist.crest.util.MultiParts
Extracts the multipart content-type meta data
getContentType(Param) - Static method in class org.codegist.crest.util.MultiParts
Extracts the multipart content-type meta data
getDateFormat() - Method in interface org.codegist.crest.CRestConfig
 
getDefault() - Static method in enum org.codegist.crest.config.MethodType
 
getDefault() - Static method in enum org.codegist.crest.config.ParamType
 
getDefaultValue() - Method in interface org.codegist.crest.config.ParamConfig
Indicates the REST interface method's parameter default value to be used if not passed
getDeserializers() - Method in interface org.codegist.crest.config.MethodConfig
Method's deserializers.
getEncodedParamsIterator(ParamType) - Method in interface org.codegist.crest.io.Request
Returns the list of pre-processed ready-to-consumes parameters for a given parameter type
getEntity() - Method in interface org.codegist.crest.io.http.HttpChannel.Response
Returns the HTTP response's entity stream
getEntityWriter() - Method in interface org.codegist.crest.config.MethodConfig
Method's entity writer
getErrorHandler() - Method in interface org.codegist.crest.config.MethodConfig
Method's error handler
getExpectedGenericType() - Method in interface org.codegist.crest.io.Response
 
getExpectedType() - Method in interface org.codegist.crest.io.Response
 
getExtraParams() - Method in interface org.codegist.crest.config.MethodConfig
Method's extra parameters that will be added by default for all requests
getFileName(ParamConfig) - Static method in class org.codegist.crest.util.MultiParts
Extracts the multipart file name meta data
getFileName(Param) - Static method in class org.codegist.crest.util.MultiParts
Extracts the multipart file name meta data
getInstance() - Static method in class org.codegist.crest.CRest
Build a CRest instance.
getInstance(String) - Static method in class org.codegist.crest.CRest
Build a CRest instance that points by default to the given end-point.
getInstance(Map<String, String>) - Static method in class org.codegist.crest.CRest
Build a CRest instance with the given string-based annotation placeholder replacement map.
getInterface() - Method in interface org.codegist.crest.config.InterfaceConfig
Returns the original REST interface
getMapping() - Static method in class org.codegist.crest.config.annotate.CRestAnnotations
 
getMapping() - Static method in class org.codegist.crest.config.annotate.jaxrs.JaxRsAnnotations
 
getMaxAttempts() - Method in interface org.codegist.crest.CRestConfig
 
getMetaDatas() - Method in interface org.codegist.crest.config.ParamConfig
Indicates the REST interface method's parameter metadatas
getMethod() - Method in interface org.codegist.crest.config.MethodConfig
Original REST interface's method
getMethodConfig(Method) - Method in interface org.codegist.crest.config.InterfaceConfig
Returns the REST method configuration for the given REST interface method
getMethodConfig() - Method in interface org.codegist.crest.io.Request
 
getName() - Method in interface org.codegist.crest.config.ParamConfig
Indicates the REST interface method's parameter name
getName() - Method in interface org.codegist.crest.param.EncodedPair
 
getName() - Method in class org.codegist.crest.param.SimpleEncodedPair
 
getName() - Method in class org.codegist.crest.security.AuthorizationToken
 
getOAuthInstance(String, String, String, String) - Static method in class org.codegist.crest.CRest
Build a CRest instance that authenticate all request using OAuth.
getOAuthInstance(String, String, String, String, String, String) - Static method in class org.codegist.crest.CRest
Build a CRest instance that authenticate all request using OAuth.
getParamConfig(int) - Method in interface org.codegist.crest.config.MethodConfig
Returns the method's parameter configuration for the argument at the given index
getParamConfig() - Method in class org.codegist.crest.param.DefaultParam
 
getParamConfig() - Method in interface org.codegist.crest.param.Param
The parameter config that describes the param and its value.
getParamCount() - Method in interface org.codegist.crest.config.MethodConfig
The method's parameter count
getParamProcessor() - Method in interface org.codegist.crest.config.ParamConfig
Indicates the REST interface method's parameter processor
getParams(ParamType) - Method in interface org.codegist.crest.io.Request
Returns the list of parameters for a given parameter type
getPathTemplate() - Method in interface org.codegist.crest.config.MethodConfig
Method's URI path template.
getProduces() - Method in interface org.codegist.crest.config.MethodConfig
Media type that the methods will produce, will be used in the request's Content-Type header if the method's EntityWriter doesn't overrides it
getRequest() - Method in interface org.codegist.crest.io.Response
 
getRequestInterceptor() - Method in interface org.codegist.crest.config.MethodConfig
Method's request interceptor
getRequestToken() - Method in interface org.codegist.crest.security.oauth.OAuthApi
Retrieves a request token
getRequestTokenFrom(String) - Method in class org.codegist.crest.security.oauth.v1.OAuthApiV1Builder
Indicates the path context to use for request token
getResponse() - Method in exception org.codegist.crest.io.RequestException
 
getResponseHandler() - Method in interface org.codegist.crest.config.MethodConfig
Method's response handler
getRetryHandler() - Method in interface org.codegist.crest.config.MethodConfig
Method's return handler
getSecret() - Method in class org.codegist.crest.security.oauth.OAuthToken
 
getSerializer() - Method in interface org.codegist.crest.config.ParamConfig
Indicates the REST interface method's parameter serializer
getSocketTimeout() - Method in interface org.codegist.crest.config.MethodConfig
Method's socket timeout
getStatusCode() - Method in interface org.codegist.crest.io.http.HttpChannel.Response
Returns the HTTP response's status code
getStatusCode() - Method in interface org.codegist.crest.io.Response
 
getStatusMessage() - Method in interface org.codegist.crest.io.http.HttpChannel.Response
Returns the HTTP response's status message
getToken() - Method in class org.codegist.crest.security.oauth.OAuthToken
 
getType() - Method in interface org.codegist.crest.config.MethodConfig
Method's HTTP type
getType() - Method in interface org.codegist.crest.config.ParamConfig
Indicates the REST interface method's parameter type
getValue() - Method in class org.codegist.crest.param.DefaultParam
 
getValue() - Method in interface org.codegist.crest.param.EncodedPair
 
getValue() - Method in interface org.codegist.crest.param.Param
Value(s) of the param.
getValue() - Method in class org.codegist.crest.param.SimpleEncodedPair
 
getValue() - Method in class org.codegist.crest.security.AuthorizationToken
 
getValueClass() - Method in interface org.codegist.crest.config.ParamConfig
Indicates the REST interface method's parameter class type
getValueGenericType() - Method in interface org.codegist.crest.config.ParamConfig
Indicates the REST interface method's parameter generic type

H

handle(Throwable) - Static method in exception org.codegist.crest.CRestException
Handles any kind of exception, wrapping it into a CRestException.
handle(CRestException) - Static method in exception org.codegist.crest.CRestException
 
handle(RequestException) - Static method in exception org.codegist.crest.CRestException
 
handle(IllegalArgumentException) - Static method in exception org.codegist.crest.CRestException
 
handle(IllegalStateException) - Static method in exception org.codegist.crest.CRestException
 
handle(InvocationTargetException) - Static method in exception org.codegist.crest.CRestException
 
handle(Response) - Method in class org.codegist.crest.handler.DefaultResponseHandler
 
handle(Request, Exception) - Method in class org.codegist.crest.handler.ErrorDelegatorHandler
 
handle(Request, Exception) - Method in interface org.codegist.crest.handler.ErrorHandler
Handles the exception
handle(Response) - Method in interface org.codegist.crest.handler.ResponseHandler
Server response to handle
handleInterfaceAnnotation(A, InterfaceConfigBuilder) - Method in interface org.codegist.crest.config.annotate.AnnotationHandler
 
handleInterfaceAnnotation(A, InterfaceConfigBuilder) - Method in class org.codegist.crest.config.annotate.NoOpAnnotationHandler
 
handleMethodAnnotation(A, MethodConfigBuilder) - Method in interface org.codegist.crest.config.annotate.AnnotationHandler
 
handleMethodAnnotation(A, MethodConfigBuilder) - Method in class org.codegist.crest.config.annotate.NoOpAnnotationHandler
 
handleParameterAnnotation(A, ParamConfigBuilder) - Method in interface org.codegist.crest.config.annotate.AnnotationHandler
 
handleParameterAnnotation(A, ParamConfigBuilder) - Method in class org.codegist.crest.config.annotate.NoOpAnnotationHandler
 
hasEntity() - Method in enum org.codegist.crest.config.MethodType
whether the HTTP method type has an HTTP entity
hasMultiPart(ParamConfig[]) - Static method in class org.codegist.crest.util.MultiParts
Checks if the given param config array contains a param with multipart meta datas.
hasMultiPart(Map<String, Object>) - Static method in class org.codegist.crest.util.MultiParts
Checks if the given metadata maps has multipart metadatas.
hasMultiPart(Param) - Static method in class org.codegist.crest.util.MultiParts
Checks if the given param has multipart metadatas.
hasResponse() - Method in exception org.codegist.crest.io.RequestException
 
HEAD - Annotation Type in org.codegist.crest.annotate
Indicates that the annotated method issues HTTP HEAD requests
HeaderParam - Annotation Type in org.codegist.crest.annotate
Binds a method parameter to be used as a request HTTP header.
HeaderParams - Annotation Type in org.codegist.crest.annotate
Binds the list of default request HTTP headers of the annotated method.
HTTP_ACCEPTED - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_BAD_GATEWAY - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_BAD_REQUEST - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_CLIENT_PROP - Static variable in class org.codegist.crest.io.http.HttpClientHttpChannelFactory
CRestConfig property to provide a preconfigured HttpClient instance.
HTTP_CONFLICT - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_CONTINUE - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_CREATED - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_EXPECTATION_FAILED - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_FAILED_DEPENDENCY - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_FORBIDDEN - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_GATEWAY_TIMEOUT - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_GONE - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_HTTP_VERSION_NOT_SUPPORTED - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_IM_A_TEA_POT_ENTITY - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_INSUFFICIENT_SPACE_ON_RESOURCE - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_INSUFFICIENT_STORAGE - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_INTERNAL_SERVER_ERROR - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_LENGTH_REQUIRED - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_LOCKED - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_METHOD_FAILURE - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_METHOD_NOT_ALLOWED - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_MOVED_PERMANENTLY - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_MOVED_TEMPORARILY - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_MULTI_STATUS - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_MULTIPLE_CHOICES - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_NO_CONTENT - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_NON_AUTHORITATIVE_INFORMATION - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_NOT_ACCEPTABLE - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_NOT_FOUND - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_NOT_IMPLEMENTED - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_NOT_MODIFIED - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_OK - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_PARTIAL_CONTENT - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_PAYMENT_REQUIRED - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_PRECONDITION_FAILED - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_PROCESSING - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_PROXY_AUTHENTICATION_REQUIRED - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_REQUEST_TIMEOUT - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_REQUEST_TOO_LONG - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_REQUEST_URI_TOO_LONG - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_REQUESTED_RANGE_NOT_SATISFIABLE - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_RESET_CONTENT - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_SEE_OTHER - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_SERVICE_UNAVAILABLE - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_SWITCHING_PROTOCOLS - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_TEMPORARY_REDIRECT - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_UNAUTHORIZED - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_UNPROCESSABLE_ENTITY - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_UNSUPPORTED_MEDIA_TYPE - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HTTP_USE_PROXY - Static variable in interface org.codegist.crest.io.http.HttpConstants
 
HttpChannel - Interface in org.codegist.crest.io.http
HTTP abstraction layer
HttpChannel.Response - Interface in org.codegist.crest.io.http
HTTP Chanel's response
HttpChannelFactory - Interface in org.codegist.crest.io.http
HTTP Channel's factory
HttpClientHttpChannelFactory - Class in org.codegist.crest.io.http
Apache's HttpClient-backed HttpChannelFactory implementation
HttpClientHttpChannelFactory(HttpClient) - Constructor for class org.codegist.crest.io.http.HttpClientHttpChannelFactory
 
HttpClientHttpChannelFactory(CRestConfig) - Constructor for class org.codegist.crest.io.http.HttpClientHttpChannelFactory
 
HttpConstants - Interface in org.codegist.crest.io.http
 
HttpRequestBuilderFactory - Class in org.codegist.crest.io.http
 
HttpRequestBuilderFactory() - Constructor for class org.codegist.crest.io.http.HttpRequestBuilderFactory
 
HttpRequestExecutor - Class in org.codegist.crest.io.http
RequestExecutor HTTP implementation
HttpRequestExecutor(HttpChannelFactory, ResponseDeserializer, ResponseDeserializer) - Constructor for class org.codegist.crest.io.http.HttpRequestExecutor
 
HttpURLConnectionHttpChannelFactory - Class in org.codegist.crest.io.http
JDK's HttpURLConnection-backed HttpChannelFactory implementation
HttpURLConnectionHttpChannelFactory() - Constructor for class org.codegist.crest.io.http.HttpURLConnectionHttpChannelFactory
 

I

InputStreamDeserializer - Class in org.codegist.crest.serializer
 
InputStreamDeserializer() - Constructor for class org.codegist.crest.serializer.InputStreamDeserializer
 
InputStreamSerializer - Class in org.codegist.crest.serializer
 
InputStreamSerializer() - Constructor for class org.codegist.crest.serializer.InputStreamSerializer
 
instantiate(Class<T>, CRestConfig) - Static method in class org.codegist.crest.util.ComponentFactory
Instanciate the given component class passing the CRestConfig to the constructor if available, otherwise uses the default empty constructor.
IntegerPrimitiveDeserializer - Class in org.codegist.crest.serializer.primitive
 
IntegerPrimitiveDeserializer() - Constructor for class org.codegist.crest.serializer.primitive.IntegerPrimitiveDeserializer
 
IntegerWrapperDeserializer - Class in org.codegist.crest.serializer.primitive
 
IntegerWrapperDeserializer() - Constructor for class org.codegist.crest.serializer.primitive.IntegerWrapperDeserializer
 
InterfaceConfig - Interface in org.codegist.crest.config
Reflects a REST interface configuration
InterfaceConfigBuilder - Interface in org.codegist.crest.config
InterfaceConfig builder
InterfaceConfigBuilderFactory - Interface in org.codegist.crest.config
InterfaceConfigBuilder factory
InterfaceConfigFactory - Interface in org.codegist.crest.config
InterfaceConfig factory
isEncoded() - Method in interface org.codegist.crest.config.ParamConfig
Indicates whether the REST interface method's parameter value is pre-encoded
isJaxRsAware() - Static method in class org.codegist.crest.config.annotate.jaxrs.JaxRsAnnotations
 
iterate(List<Param>, Charset) - Static method in class org.codegist.crest.param.ParamProcessors
Returns an iterator over each param's ParamProcessor results
iterate(List<Param>, Charset, boolean) - Static method in class org.codegist.crest.param.ParamProcessors
Returns an iterator over each param's ParamProcessor results

J

JACKSON_DESERIALIZER_CONFIG_PROP - Static variable in class org.codegist.crest.serializer.jackson.JacksonDeserializer
CRestConfig property to turn on/off jackson deserialization features.
JacksonDeserializer - Class in org.codegist.crest.serializer.jackson
Jackson JSON deserializer implementation
JacksonDeserializer(CRestConfig) - Constructor for class org.codegist.crest.serializer.jackson.JacksonDeserializer
 
Jaxb - Interface in org.codegist.crest.serializer.jaxb
Handy Jaxb adapter interface used by CRest
JAXB_PROP - Static variable in class org.codegist.crest.serializer.jaxb.JaxbDeserializer
CRestConfig property to provide a custom pre-configured Jaxb instance.
JaxbDeserializer - Class in org.codegist.crest.serializer.jaxb
Jaxb XML deserializer implementation
JaxbDeserializer(CRestConfig) - Constructor for class org.codegist.crest.serializer.jaxb.JaxbDeserializer
 
JaxRsAnnotations - Class in org.codegist.crest.config.annotate.jaxrs
 
join(List<? extends EncodedPair>, char) - Static method in class org.codegist.crest.util.Pairs
Joins the given list of encoded pairs using "=" for name/value separator and pairSep for pair separator.
join(List<? extends EncodedPair>, char, char) - Static method in class org.codegist.crest.util.Pairs
Joins the given list of encoded pairs using nameValSep for name/value separator and pairSep for pair separator.
join(List<? extends EncodedPair>, char, char, boolean, boolean) - Static method in class org.codegist.crest.util.Pairs
Joins the given list of encoded pairs using nameValSep for name/value separator and pairSep for pair separator.
join(Iterator<? extends EncodedPair>, char) - Static method in class org.codegist.crest.util.Pairs
Joins the given iterator of encoded pairs using "=" for name/value separator and pairSep for pair separator.
join(Iterator<? extends EncodedPair>, char, char) - Static method in class org.codegist.crest.util.Pairs
Joins the given list of encoded pairs using nameValSep for name/value separator and pairSep for pair separator.
join(Iterator<? extends EncodedPair>, char, char, boolean, boolean) - Static method in class org.codegist.crest.util.Pairs
Joins the given iterator of encoded pairs using nameValSep for name/value separator and pairSep for pair separator.
join(Writer, List<? extends EncodedPair>, char) - Static method in class org.codegist.crest.util.Pairs
Joins the given list of encoded pairs using "=" for name/value separator and pairSep for pair separator.
join(Writer, List<? extends EncodedPair>, char, char) - Static method in class org.codegist.crest.util.Pairs
Joins the given list of encoded pairs using nameValSep for name/value separator and pairSep for pair separator.
join(Writer, List<? extends EncodedPair>, char, char, boolean, boolean) - Static method in class org.codegist.crest.util.Pairs
Joins the given list of encoded pairs using nameValSep for name/value separator and pairSep for pair separator.
join(Writer, Iterator<? extends EncodedPair>, char) - Static method in class org.codegist.crest.util.Pairs
Joins the given iterator of encoded pairs using "=" for name/value separator and pairSep for pair separator.
join(Writer, Iterator<? extends EncodedPair>, char, char) - Static method in class org.codegist.crest.util.Pairs
Joins the given iterator of encoded pairs using nameValSep for name/value separator and pairSep for pair separator.
join(Writer, Iterator<? extends EncodedPair>, char, char, boolean, boolean) - Static method in class org.codegist.crest.util.Pairs
Joins the given iterator of encoded pairs using nameValSep for name/value separator and pairSep for pair separator.

L

ListSeparator - Annotation Type in org.codegist.crest.annotate
Defines a string to use for joining array/Collection values of a method parameter.
LongPrimitiveDeserializer - Class in org.codegist.crest.serializer.primitive
 
LongPrimitiveDeserializer() - Constructor for class org.codegist.crest.serializer.primitive.LongPrimitiveDeserializer
 
LongWrapperDeserializer - Class in org.codegist.crest.serializer.primitive
 
LongWrapperDeserializer() - Constructor for class org.codegist.crest.serializer.primitive.LongWrapperDeserializer
 

M

marshal(T, OutputStream, Charset) - Method in interface org.codegist.crest.serializer.jaxb.Jaxb
 
MatrixParam - Annotation Type in org.codegist.crest.annotate
Binds a method parameter to be used as a request URI matrix parameter.
MatrixParams - Annotation Type in org.codegist.crest.annotate
Binds the list of default request URI matrix parameters of the annotated method.
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(CRestConfig) - Constructor for class org.codegist.crest.handler.MaxAttemptRetryHandler
 
merge(String, String, boolean) - Method in interface org.codegist.crest.config.PathBuilder
Merges a key/value pair on the given path, encoding the value if necessary
merge(Map<String, Object>) - Method in interface org.codegist.crest.CRestConfig
Merges the current config with the given properties (given properties have priority over config ones), returning a new config instance, leaving the current instance unchanged.
merge(Map<Pattern, String>, String) - Static method in class org.codegist.crest.util.Placeholders
Merges the placeholder into the given string with the values present in the placeholder map.
METHOD_CONFIG_DEFAULT_CHARSET - Static variable in interface org.codegist.crest.config.MethodConfig
CRestConfig property to override the default charset.
METHOD_CONFIG_DEFAULT_CO_TIMEOUT - Static variable in interface org.codegist.crest.config.MethodConfig
CRestConfig property to override the default connection timeout.
METHOD_CONFIG_DEFAULT_CONSUMES - Static variable in interface org.codegist.crest.config.MethodConfig
CRestConfig property to specify a default media type that the methods will handle.
METHOD_CONFIG_DEFAULT_DESERIALIZERS - Static variable in interface org.codegist.crest.config.MethodConfig
CRestConfig property to specify the default deserializers to use.
METHOD_CONFIG_DEFAULT_ENDPOINT - Static variable in interface org.codegist.crest.config.MethodConfig
CRestConfig property to provide a default end-point.
METHOD_CONFIG_DEFAULT_ENTITY_WRITER - Static variable in interface org.codegist.crest.config.MethodConfig
CRestConfig property to specify the default entity writer to use.
METHOD_CONFIG_DEFAULT_ERROR_HANDLER - Static variable in interface org.codegist.crest.config.MethodConfig
CRestConfig property to override the default error handler.
METHOD_CONFIG_DEFAULT_EXTRA_PARAMS - Static variable in interface org.codegist.crest.config.MethodConfig
CRestConfig property to specify a list of default extra parameters to add to all requests.
METHOD_CONFIG_DEFAULT_PATH - Static variable in interface org.codegist.crest.config.MethodConfig
CRestConfig property to specify a default base path.
METHOD_CONFIG_DEFAULT_PRODUCES - Static variable in interface org.codegist.crest.config.MethodConfig
CRestConfig property to specify a default media type that the methods will produce.
METHOD_CONFIG_DEFAULT_REQUEST_INTERCEPTOR - Static variable in interface org.codegist.crest.config.MethodConfig
CRestConfig property to override the default request interceptor.
METHOD_CONFIG_DEFAULT_RESPONSE_HANDLER - Static variable in interface org.codegist.crest.config.MethodConfig
CRestConfig property to override the default response handler.
METHOD_CONFIG_DEFAULT_RETRY_HANDLER - Static variable in interface org.codegist.crest.config.MethodConfig
CRestConfig property to override the default retry handler.
METHOD_CONFIG_DEFAULT_SO_TIMEOUT - Static variable in interface org.codegist.crest.config.MethodConfig
CRestConfig property to override the default socket timeout.
METHOD_CONFIG_DEFAULT_TYPE - Static variable in interface org.codegist.crest.config.MethodConfig
CRestConfig property to override the default http method.
MethodConfig - Interface in org.codegist.crest.config
Reflects a REST interface's method configuration
MethodConfigBuilder - Interface in org.codegist.crest.config
MethodConfig builder
MethodType - Enum in org.codegist.crest.config
HTTP method types
MODEL_FACTORY_CLASS_PROP - Static variable in class org.codegist.crest.serializer.jaxb.JaxbDeserializer
CRestConfig property to provide a custom jaxb object factory class (see JAXBContext.newInstance(Class[])).
MODEL_PACKAGE_PROP - Static variable in class org.codegist.crest.serializer.jaxb.JaxbDeserializer
CRestConfig property to provide a custom jaxb context package (see JAXBContext.newInstance(String)).
MultiPartEntityWriter - Class in org.codegist.crest.entity.multipart
 
MultiPartEntityWriter() - Constructor for class org.codegist.crest.entity.multipart.MultiPartEntityWriter
 
MultiPartParam - Annotation Type in org.codegist.crest.annotate
Binds a method parameter to be used as a request multipart parameter.
MultiPartParams - Annotation Type in org.codegist.crest.annotate
Binds the list of default request multipart parameters of the annotated method.
MultiParts - Class in org.codegist.crest.util
Set of utility function to deal with ParamConfigBuilder.setMetaDatas(java.util.Map) and ParamConfig.getMetaDatas() for multipart.

N

newConfig(Class<?>) - Method in class org.codegist.crest.config.AnnotationDrivenInterfaceConfigFactory
 
newConfig(Class<?>) - Method in interface org.codegist.crest.config.InterfaceConfigFactory
Returns a new instance of a InterfaceConfig for the given REST interface
newInstance(Class<?>) - Method in class org.codegist.crest.config.DefaultInterfaceConfigBuilderFactory
 
newInstance(Class<?>, Type) - Method in class org.codegist.crest.config.DefaultParamConfigBuilderFactory
 
newInstance(Class<?>) - Method in interface org.codegist.crest.config.InterfaceConfigBuilderFactory
Returns a new instance of a InterfaceConfigBuilder bound to the given REST interface
newInstance(Class<?>, Type) - Method in interface org.codegist.crest.config.ParamConfigBuilderFactory
Returns a new instance of a ParamConfigBuilder for the given type
newInstance(ParamType, String) - Static method in class org.codegist.crest.param.ParamProcessors
Returns an instance of a param processor.
newParamConfig(Class<?>) - Method in class org.codegist.crest.interceptor.AbstractRequestInterceptor
Returns a new param config for the given class type
newParamConfig(Class<?>, Type) - Method in class org.codegist.crest.interceptor.AbstractRequestInterceptor
Returns a new param config for the given class and generic type
NoOpAnnotationHandler<A extends Annotation> - Class in org.codegist.crest.config.annotate
 
NoOpAnnotationHandler() - Constructor for class org.codegist.crest.config.annotate.NoOpAnnotationHandler
 
NoOpRequestInterceptor - Class in org.codegist.crest.interceptor
Empty request interceptor.
NoOpRequestInterceptor() - Constructor for class org.codegist.crest.interceptor.NoOpRequestInterceptor
 

O

oauth(String, String, String, String) - Static method in class org.codegist.crest.CRest
Configures the resulting CRest instance to authenticate all requests using OAuth 1.0
oauth(String, String, String, String, String, String) - Static method in class org.codegist.crest.CRest
Configures the resulting CRest instance to authenticate all requests using OAuth 1.0
oauth(String, String, String, String) - Method in class org.codegist.crest.CRestBuilder
Configures the resulting CRest instance to authenticate all requests using OAuth 1.0
oauth(String, String, String, String, String, String) - Method in class org.codegist.crest.CRestBuilder
Configures the resulting CRest instance to authenticate all requests using OAuth 1.0
oauth(OAuthToken, MethodType, String, EncodedPair...) - Method in interface org.codegist.crest.security.oauth.OAuthenticator
Generates the OAuth authorization parameters for the given request
oauth(OAuthToken, MethodType, String, EncodedPair...) - Method in class org.codegist.crest.security.oauth.v1.OAuthenticatorV1
 
OAuthApi - Interface in org.codegist.crest.security.oauth
OAuth token access API
OAuthApiV1Builder - Class in org.codegist.crest.security.oauth.v1
OAuthApiV1 builder.
OAuthApiV1Builder(OAuthToken, String) - Constructor for class org.codegist.crest.security.oauth.v1.OAuthApiV1Builder
 
OAuthenticator - Interface in org.codegist.crest.security.oauth
 
OAuthenticatorV1 - Class in org.codegist.crest.security.oauth.v1
OAuth V1.0 implementation of OAuthenticator
OAuthenticatorV1(OAuthToken) - Constructor for class org.codegist.crest.security.oauth.v1.OAuthenticatorV1
 
OAuthorization - Class in org.codegist.crest.security.oauth
OAuth implementation of the Authorization interface.
OAuthorization(OAuthToken, OAuthenticator) - Constructor for class org.codegist.crest.security.oauth.OAuthorization
 
OAuthorization(OAuthToken, OAuthenticator, OAuthApi) - Constructor for class org.codegist.crest.security.oauth.OAuthorization
 
OAuthToken - Class in org.codegist.crest.security.oauth
OAuth Token information holder
OAuthToken(String, String) - Constructor for class org.codegist.crest.security.oauth.OAuthToken
 
OAuthToken(String, String, Map<String, String>) - Constructor for class org.codegist.crest.security.oauth.OAuthToken
 
OBJECT_MAPPER_PROP - Static variable in class org.codegist.crest.serializer.jackson.JacksonDeserializer
CRestConfig property to provide a custom jackson ObjectMapper instance.
open(MethodType, String, Charset) - Method in class org.codegist.crest.io.http.AuthorizationHttpChannelFactory
 
open(MethodType, String, Charset) - Method in interface org.codegist.crest.io.http.HttpChannelFactory
Opens a new HTTP Channel
open(MethodType, String, Charset) - Method in class org.codegist.crest.io.http.HttpClientHttpChannelFactory
 
open(MethodType, String, Charset) - Method in class org.codegist.crest.io.http.HttpURLConnectionHttpChannelFactory
 
OPTIONS - Annotation Type in org.codegist.crest.annotate
Indicates that the annotated method issues HTTP OPTIONS requests
org.codegist.crest - package org.codegist.crest
Contains CRest's interfaces and default implementation.
org.codegist.crest.annotate - package org.codegist.crest.annotate
Contains CRest's REST binding annotations to be used to configure user's REST interfaces.
org.codegist.crest.config - package org.codegist.crest.config
Contains CRest's object model for REST's interfaces interfaces and implementations.
org.codegist.crest.config.annotate - package org.codegist.crest.config.annotate
 
org.codegist.crest.config.annotate.jaxrs - package org.codegist.crest.config.annotate.jaxrs
 
org.codegist.crest.entity - package org.codegist.crest.entity
Contains CRest's entity writers interfaces and implementations.
org.codegist.crest.entity.multipart - package org.codegist.crest.entity.multipart
 
org.codegist.crest.handler - package org.codegist.crest.handler
Contains CRest's event handlers interfaces and implementations.
org.codegist.crest.interceptor - package org.codegist.crest.interceptor
Contains CRest's request interceptors interfaces and implementations.
org.codegist.crest.io - package org.codegist.crest.io
Contains CRest's Input/Output interfaces and implementations.
org.codegist.crest.io.http - package org.codegist.crest.io.http
Contains CRest's Input/Output HTTP implementation.
org.codegist.crest.param - package org.codegist.crest.param
Contains CRest's parameter handling interfaces and implementations.
org.codegist.crest.security - package org.codegist.crest.security
Contains CRest's authentification interfaces and implementations.
org.codegist.crest.security.basic - package org.codegist.crest.security.basic
 
org.codegist.crest.security.handler - package org.codegist.crest.security.handler
 
org.codegist.crest.security.oauth - package org.codegist.crest.security.oauth
OAuth support implementation
org.codegist.crest.security.oauth.v1 - package org.codegist.crest.security.oauth.v1
 
org.codegist.crest.serializer - package org.codegist.crest.serializer
Contains CRest's de/serializer interfaces and implementations.
org.codegist.crest.serializer.jackson - package org.codegist.crest.serializer.jackson
 
org.codegist.crest.serializer.jaxb - package org.codegist.crest.serializer.jaxb
 
org.codegist.crest.serializer.primitive - package org.codegist.crest.serializer.primitive
 
org.codegist.crest.serializer.simplexml - package org.codegist.crest.serializer.simplexml
 
org.codegist.crest.util - package org.codegist.crest.util
Contains CRest's utility classes.

P

Pairs - Class in org.codegist.crest.util
Set of utility functions to deal with name/value pairs
Param - Interface in org.codegist.crest.param
A Param is the concretization of a ParamConfig.
PARAM_CONFIG_DEFAULT_ENCODED - Static variable in interface org.codegist.crest.config.ParamConfig
CRestConfig property to override the default parameter pre-encoded flag.
PARAM_CONFIG_DEFAULT_LIST_SEPARATOR - Static variable in interface org.codegist.crest.config.ParamConfig
CRestConfig property to override the default list separator of array/Collection parameters.
PARAM_CONFIG_DEFAULT_METAS - Static variable in interface org.codegist.crest.config.ParamConfig
CRestConfig property to override the default parameter metadatas.
PARAM_CONFIG_DEFAULT_NAME - Static variable in interface org.codegist.crest.config.ParamConfig
CRestConfig property to override the default parameter name.
PARAM_CONFIG_DEFAULT_PROCESSOR - Static variable in interface org.codegist.crest.config.ParamConfig
CRestConfig property to specify the default parameter processor to use.
PARAM_CONFIG_DEFAULT_SERIALIZER - Static variable in interface org.codegist.crest.config.ParamConfig
CRestConfig property to specify the default deserializers to use.
PARAM_CONFIG_DEFAULT_TYPE - Static variable in interface org.codegist.crest.config.ParamConfig
CRestConfig property to override the default parameter type.
PARAM_CONFIG_DEFAULT_VALUE - Static variable in interface org.codegist.crest.config.ParamConfig
CRestConfig property to override the default parameter value.
ParamConfig - Interface in org.codegist.crest.config
Reflects a REST interface method's parameter configuration
ParamConfigBuilder - Interface in org.codegist.crest.config
ParamConfig builder
ParamConfigBuilderFactory - Interface in org.codegist.crest.config
ParamConfigBuilder factory
ParamProcessor - Interface in org.codegist.crest.param
Param processor are used to transform a Param into a list of pre-encoded pairs ready to be consumed.
ParamProcessors - Class in org.codegist.crest.param
Set of utility functions for dealing with ParamProcessor types.
ParamType - Enum in org.codegist.crest.config
REST parameter types
Path - Annotation Type in org.codegist.crest.annotate
Identifies the URI path that the method will call.
PathBuilder - Interface in org.codegist.crest.config
Path builder, returned by a PathTemplate, holding a URI with placeholders to be merged
PathParam - Annotation Type in org.codegist.crest.annotate
Binds a method parameter to be used as a request URI path segment parameter.
PathParams - Annotation Type in org.codegist.crest.annotate
Binds the list of default request URI path segment parameters of the annotated method.
PathTemplate - Interface in org.codegist.crest.config
A path template hold informations relative to an URI with placeholder to be merged
placeholder(String, String) - Static method in class org.codegist.crest.CRest
Adds the given placeholder to the string-based annotations placeholders replacement map.
placeholder(String, String) - Method in class org.codegist.crest.CRestBuilder
Adds the given placeholder to the string-based annotations placeholders replacement map.
placeholders(Map<String, String>) - Static method in class org.codegist.crest.CRest
Sets all given placeholders to the string-based annotations placeholders replacement map.
Placeholders - Class in org.codegist.crest.util
 
POOL_RETRIEVAL_MAX_WAIT_PROP - Static variable in class org.codegist.crest.serializer.jaxb.JaxbDeserializer
Sets the max time in milliseconds to wait for a Jaxb-pooled instances to become available.
POST - Annotation Type in org.codegist.crest.annotate
Indicates that the annotated method issues HTTP POST requests
PrimitiveDeserializer<T> - Class in org.codegist.crest.serializer.primitive
 
PrimitiveDeserializer() - Constructor for class org.codegist.crest.serializer.primitive.PrimitiveDeserializer
 
process(Param, Charset, boolean) - Method in interface org.codegist.crest.param.ParamProcessor
Tranforms the given param into a ready-to-consume list of encoded pairs.
Produces - Annotation Type in org.codegist.crest.annotate
Defines the media type that the method will produce, sets the request's Content-Type header, overriding the default behavior.
property(String, Object) - Static method in class org.codegist.crest.CRest
Adds given property to the CRestConfig that will be passed to all CRest components.
property(String, Object) - Method in class org.codegist.crest.CRestBuilder
Adds given property to the CRestConfig that will be passed to all CRest components.
PUT - Annotation Type in org.codegist.crest.annotate
Indicates that the annotated method issues HTTP PUT requests
putMetaDatas(Map<String, Object>, String, String) - Static method in class org.codegist.crest.util.MultiParts
Puts multipart metadata informations into the given metadata map

Q

QueryParam - Annotation Type in org.codegist.crest.annotate
Binds a method parameter to be used as a request HTTP query parameter.
QueryParams - Annotation Type in org.codegist.crest.annotate
Binds the list of default request HTTP query parameters of the annotated method.

R

ReaderDeserializer - Class in org.codegist.crest.serializer
 
ReaderDeserializer() - Constructor for class org.codegist.crest.serializer.ReaderDeserializer
 
ReaderSerializer - Class in org.codegist.crest.serializer
 
ReaderSerializer() - Constructor for class org.codegist.crest.serializer.ReaderSerializer
 
refresh() - Method in interface org.codegist.crest.security.Authorization
Refreshes internal state when the application has detected authorization credential expiration
refresh() - Method in class org.codegist.crest.security.basic.BasicAuthorization
 
refresh() - Method in class org.codegist.crest.security.oauth.OAuthorization
 
refreshAccessToken(OAuthToken) - Method in interface org.codegist.crest.security.oauth.OAuthApi
Refreshes the expired access token.
refreshAccessTokenFrom(String) - Method in class org.codegist.crest.security.oauth.v1.OAuthApiV1Builder
Indicates the path context to use for expired token refresh
RefreshAuthorizationRetryHandler - Class in org.codegist.crest.security.handler
RetryHandler implementation that tries to detect unauthorized request failure.
RefreshAuthorizationRetryHandler(CRestConfig) - Constructor for class org.codegist.crest.security.handler.RefreshAuthorizationRetryHandler
 
RegexPathTemplate - Class in org.codegist.crest.config
Regex driven PathTemplate
register(Class<? extends T>, K...) - Method in class org.codegist.crest.util.ComponentRegistry.Builder
Registers a component class for the given key list
register(Class<? extends T>, K[], Map<String, Object>) - Method in class org.codegist.crest.util.ComponentRegistry.Builder
Registers a component class for the given key list
register(Map<K, Class<? extends T>>) - Method in class org.codegist.crest.util.ComponentRegistry.Builder
Registers a map of Keys/Components classes
Request - Interface in org.codegist.crest.io
Generic CRest request interface that hold informations relatives to a REST interface method's call
RequestBuilder - Interface in org.codegist.crest.io
Request builder
RequestBuilderFactory - Interface in org.codegist.crest.io
RequestBuilder's factory
RequestException - Exception in org.codegist.crest.io
Exception thrown during a request I/O
RequestException(Throwable) - Constructor for exception org.codegist.crest.io.RequestException
 
RequestException(String, Response) - Constructor for exception org.codegist.crest.io.RequestException
 
RequestExecutor - Interface in org.codegist.crest.io
CRest's Request executor
RequestInterceptor - Annotation Type in org.codegist.crest.annotate
Binds a request interceptor for the annotated method, intercepting any request before it gets fired.
RequestInterceptor - Interface in org.codegist.crest.interceptor
RequestInterceptors are called just before building the request and firing it.
Requests - Class in org.codegist.crest.util
Set of utility functions for dealing with Request types.
Response - Interface in org.codegist.crest.io
CRest's internal REST interface method's call execution response
ResponseDeserializer - Interface in org.codegist.crest.serializer
 
ResponseDeserializerByClass - Class in org.codegist.crest.serializer
Response deserializer that uses a component registry of deserializers by class type.
ResponseDeserializerByClass(ComponentRegistry<Class<?>, Deserializer>) - Constructor for class org.codegist.crest.serializer.ResponseDeserializerByClass
 
ResponseDeserializerByDeserializers - Class in org.codegist.crest.serializer
Response deserializer that uses the MethodConfig.getDeserializers() list to try to deserialize the response.
ResponseDeserializerByDeserializers() - Constructor for class org.codegist.crest.serializer.ResponseDeserializerByDeserializers
 
ResponseDeserializerByMimeType - Class in org.codegist.crest.serializer
Response deserializer that uses a component registry of deserializers by response Content-Type mime-type.
ResponseDeserializerByMimeType(ComponentRegistry<String, Deserializer>) - Constructor for class org.codegist.crest.serializer.ResponseDeserializerByMimeType
 
ResponseDeserializerComposite - Class in org.codegist.crest.serializer
Loops over a list of response deserializers until first success.
ResponseDeserializerComposite(ResponseDeserializer...) - Constructor for class org.codegist.crest.serializer.ResponseDeserializerComposite
 
ResponseHandler - Annotation Type in org.codegist.crest.annotate
Binds a response handler for the annotated method, overriding the default behavior.
ResponseHandler - Interface in org.codegist.crest.handler
ResponseHandlers are responsible for handling the server response and returning the deserialized response back to the caller.
retry(RequestException, int) - Method in class org.codegist.crest.handler.MaxAttemptRetryHandler
 
retry(RequestException, int) - Method in interface org.codegist.crest.handler.RetryHandler
Should return whether to retry or not the request.
retry(RequestException, int) - Method in class org.codegist.crest.security.handler.RefreshAuthorizationRetryHandler
 
RetryHandler - Annotation Type in org.codegist.crest.annotate
Binds a retry handler for the annotated method.
RetryHandler - Interface in org.codegist.crest.handler
RetryHandlers are responsible for deciding whether a request that have failed should be re-tried to not.
RetryingRequestExecutor - Class in org.codegist.crest.io
RequestExecutor implementation that used the request method config's retry handler to decides whether a failed request should be retried or not.
RetryingRequestExecutor(RequestExecutor) - Constructor for class org.codegist.crest.io.RetryingRequestExecutor
 

S

send() - Method in interface org.codegist.crest.io.http.HttpChannel
Sends the HTTP request.
serialize(Date, Charset) - Method in class org.codegist.crest.serializer.DateSerializer
 
serialize(File, Charset, OutputStream) - Method in class org.codegist.crest.serializer.FileSerializer
 
serialize(InputStream, Charset, OutputStream) - Method in class org.codegist.crest.serializer.InputStreamSerializer
 
serialize(Boolean, Charset) - Method in class org.codegist.crest.serializer.primitive.BooleanSerializer
 
serialize(Reader, Charset, OutputStream) - Method in class org.codegist.crest.serializer.ReaderSerializer
 
serialize(T, Charset, OutputStream) - Method in interface org.codegist.crest.serializer.Serializer
Serializes the given object into the given outputstream.
serialize(V, Charset) - Method in class org.codegist.crest.serializer.StringSerializer
Returns the string representation of the given value
serialize(V, Charset, OutputStream) - Method in class org.codegist.crest.serializer.StringSerializer
 
serialize(T, Charset) - Method in class org.codegist.crest.serializer.ToStringSerializer
Returns the toString() of the given object
serialize(Serializer<T>, T, Charset) - Static method in class org.codegist.crest.util.Serializers
If the given serializer is a StringSerializer, then it will directly call StringSerializer.serialize(Object, java.nio.charset.Charset).
Serializer - Annotation Type in org.codegist.crest.annotate
Binds a parameter serializer for the annotated method's parameter, overriding the default behavior.
Serializer<T> - Interface in org.codegist.crest.serializer
Serializers are used during serialization process of interface method's parameters
SERIALIZER_PROP - Static variable in class org.codegist.crest.serializer.simplexml.SimpleXmlDeserializer
CRestConfig property to provide a custom pre-configured SimpleXml Serializer instance.
Serializers - Class in org.codegist.crest.util
Set of utility functions for dealing with Serializer types.
setAccept(String) - Method in interface org.codegist.crest.io.http.HttpChannel
Sets the HTTP Accept header
setCharset(Charset) - Method in interface org.codegist.crest.config.MethodConfigBuilder
Indicates the encoding used for parameter url-encoding and request entity.
setConcurrencyLevel(int) - Method in class org.codegist.crest.CRestBuilder
Overrides the default concurrency level (default is 1).
setConnectionTimeout(int) - Method in interface org.codegist.crest.config.MethodConfigBuilder
Indicates the connection timeout the REST interface's method will use
setConnectionTimeout(int) - Method in interface org.codegist.crest.io.http.HttpChannel
Sets the connection timeout
setConsumes(String...) - Method in interface org.codegist.crest.config.MethodConfigBuilder
Defines the media types that the method will handle.
setContentType(String) - Method in interface org.codegist.crest.io.http.HttpChannel
Sets the HTTP Content-Type header
setDefaultValue(String) - Method in interface org.codegist.crest.config.ParamConfigBuilder
Indicates the default value to be used if no value is provider for the REST interface method's parameter.
setDeserializer(Class<? extends Deserializer>) - Method in interface org.codegist.crest.config.MethodConfigBuilder
Binds a deserializer for the REST interface's method return type
setEncoded(boolean) - Method in interface org.codegist.crest.config.ParamConfigBuilder
Indicates whether the REST interface method's parameter value is pre-encoded or not
setEndPoint(String) - Method in interface org.codegist.crest.config.MethodConfigBuilder
Indicates service end-point
setEntityWriter(Class<? extends EntityWriter>) - Method in interface org.codegist.crest.config.MethodConfigBuilder
Binds a entity writer for the REST interface's method
setErrorHandler(Class<? extends ErrorHandler>) - Method in interface org.codegist.crest.config.MethodConfigBuilder
Binds an error handler for the REST interface's method
setHeader(String, String) - Method in interface org.codegist.crest.io.http.HttpChannel
Sets a HTTP header, overriding any existing one
setHttpChannelFactory(Class<? extends HttpChannelFactory>) - Method in class org.codegist.crest.CRestBuilder
Overrides the default HttpURLConnectionHttpChannelFactory channel factory to use initiating http requests.
setHttpChannelFactory(HttpChannelFactory) - Method in class org.codegist.crest.CRestBuilder
Overrides the default HttpURLConnectionHttpChannelFactory channel factory to use initiating http requests.
setListSeparator(String) - Method in interface org.codegist.crest.config.ParamConfigBuilder
Defines a string to use for joining array/Collection values for the REST interface method's parameter
setMetaDatas(Map<String, Object>) - Method in interface org.codegist.crest.config.ParamConfigBuilder
Indicates the metadatas of the REST interface method's paramete
setMethodsCharset(Charset) - Method in interface org.codegist.crest.config.InterfaceConfigBuilder
Indicates the encoding used for parameter url-encoding and request entity for all REST interface's methods.
setMethodsConnectionTimeout(int) - Method in interface org.codegist.crest.config.InterfaceConfigBuilder
Indicates the connection timeout for all REST interface's methods
setMethodsConsumes(String...) - Method in interface org.codegist.crest.config.InterfaceConfigBuilder
Defines the media types that all REST interface's methods will handle.
setMethodsDeserializer(Class<? extends Deserializer>) - Method in interface org.codegist.crest.config.InterfaceConfigBuilder
Binds a deserializer for all interface method return types
setMethodsEndPoint(String) - Method in interface org.codegist.crest.config.InterfaceConfigBuilder
Indicates the service end-point for all REST interface's methods
setMethodsEntityWriter(Class<? extends EntityWriter>) - Method in interface org.codegist.crest.config.InterfaceConfigBuilder
Binds a entity writer for all REST interface's methods
setMethodsErrorHandler(Class<? extends ErrorHandler>) - Method in interface org.codegist.crest.config.InterfaceConfigBuilder
Binds an error handler for all REST interface's methods
setMethodsProduces(String) - Method in interface org.codegist.crest.config.InterfaceConfigBuilder
Defines the media type that all REST interface's methods will produce, sets the request's Content-Type header
setMethodsRequestInterceptor(Class<? extends RequestInterceptor>) - Method in interface org.codegist.crest.config.InterfaceConfigBuilder
Binds a request interceptor, intercepting any request before it gets fired for all REST interface's methods
setMethodsResponseHandler(Class<? extends ResponseHandler>) - Method in interface org.codegist.crest.config.InterfaceConfigBuilder
Binds a response handler for all REST interface's methods
setMethodsRetryHandler(Class<? extends RetryHandler>) - Method in interface org.codegist.crest.config.InterfaceConfigBuilder
Binds a retry handler for all REST interface's methods
setMethodsSocketTimeout(int) - Method in interface org.codegist.crest.config.InterfaceConfigBuilder
Indicates the socket timeout for all REST interface's methods
setMethodsType(MethodType) - Method in interface org.codegist.crest.config.InterfaceConfigBuilder
Indicates HTTP Method all REST interface's methods will issue
setName(String) - Method in interface org.codegist.crest.config.ParamConfigBuilder
Indicates the name of the REST interface method's parameter.
setParamsEncoded(boolean) - Method in interface org.codegist.crest.config.InterfaceConfigBuilder
Indicates whether all REST interface method's parameters are pre-encoded or not
setParamsEncoded(boolean) - Method in interface org.codegist.crest.config.MethodConfigBuilder
Indicates whether the REST interface method's parameters are pre-encoded or not
setParamsListSeparator(String) - Method in interface org.codegist.crest.config.InterfaceConfigBuilder
Defines a string to use for joining array/Collection values for all REST interface method's parameters
setParamsListSeparator(String) - Method in interface org.codegist.crest.config.MethodConfigBuilder
Defines a string to use for joining array/Collection values for all REST interface method's parameters
setParamsSerializer(Class<? extends Serializer>) - Method in interface org.codegist.crest.config.InterfaceConfigBuilder
Binds a parameter serializer for all REST interface method's parameters
setParamsSerializer(Class<? extends Serializer>) - Method in interface org.codegist.crest.config.MethodConfigBuilder
Binds a parameter serializer for the REST interface method's parameters
setPlaceholders(Map<String, String>) - Method in class org.codegist.crest.CRestBuilder
Sets all given placeholders to the string-based annotations placeholders replacement map.
setProduces(String) - Method in interface org.codegist.crest.config.MethodConfigBuilder
Defines the media type that the REST interface's method will produce, sets the request's Content-Type header
setProperties(Map<String, Object>) - Method in class org.codegist.crest.CRestBuilder
Sets all given properties to the CRestConfig that will be passed to all CRest components.
setProxyFactory(Class<? extends ProxyFactory>) - Method in class org.codegist.crest.CRestBuilder
Overrides the default JdkProxyFactory proxy factory to use for building user Interfaces proxies.
setProxyFactory(ProxyFactory) - Method in class org.codegist.crest.CRestBuilder
Overrides the default JdkProxyFactory proxy factory to use for building user Interfaces proxies.
setRequestInterceptor(Class<? extends RequestInterceptor>) - Method in interface org.codegist.crest.config.MethodConfigBuilder
Binds a request interceptor for the REST interface's method, intercepting any request before it gets fired
setResponseHandler(Class<? extends ResponseHandler>) - Method in interface org.codegist.crest.config.MethodConfigBuilder
Binds a response handler for the REST interface's method
setRetryHandler(Class<? extends RetryHandler>) - Method in interface org.codegist.crest.config.MethodConfigBuilder
Binds a retry handler for the REST interface's method
setSerializer(Class<? extends Serializer>) - Method in interface org.codegist.crest.config.ParamConfigBuilder
Binds a parameter serializer for the REST interface method's parameter
setSocketTimeout(int) - Method in interface org.codegist.crest.config.MethodConfigBuilder
Indicates the socket timeout the REST interface's method will use
setSocketTimeout(int) - Method in interface org.codegist.crest.io.http.HttpChannel
Sets the socket timeout
setType(MethodType) - Method in interface org.codegist.crest.config.MethodConfigBuilder
Indicates the HTTP Method the REST interface's method will issue
setType(ParamType) - Method in interface org.codegist.crest.config.ParamConfigBuilder
Indicates the REST interface method parameter's type
ShortPrimitiveDeserializer - Class in org.codegist.crest.serializer.primitive
 
ShortPrimitiveDeserializer() - Constructor for class org.codegist.crest.serializer.primitive.ShortPrimitiveDeserializer
 
ShortWrapperDeserializer - Class in org.codegist.crest.serializer.primitive
 
ShortWrapperDeserializer() - Constructor for class org.codegist.crest.serializer.primitive.ShortWrapperDeserializer
 
SimpleEncodedPair - Class in org.codegist.crest.param
 
SimpleEncodedPair(String, String) - Constructor for class org.codegist.crest.param.SimpleEncodedPair
 
SimpleXmlDeserializer - Class in org.codegist.crest.serializer.simplexml
SimpleXml XML deserializer implementation
SimpleXmlDeserializer(CRestConfig) - Constructor for class org.codegist.crest.serializer.simplexml.SimpleXmlDeserializer
 
SocketTimeout - Annotation Type in org.codegist.crest.annotate
Indicates the socket timeout of the annotated method
sortByNameAndValues(List<? extends EncodedPair>) - Static method in class org.codegist.crest.util.Pairs
Sort the given list of encoded pairs by name and by values.
startExtraParamConfig() - Method in interface org.codegist.crest.config.MethodConfigBuilder
Starts to configure an extra parameter for the REST interface's method
startMethodConfig(Method) - Method in interface org.codegist.crest.config.InterfaceConfigBuilder
Starts to configure the given REST interface's method
startMethodsExtraParamConfig() - Method in interface org.codegist.crest.config.InterfaceConfigBuilder
Starts to configure an extra parameter for all REST interface's methods
startParamConfig(int) - Method in interface org.codegist.crest.config.MethodConfigBuilder
Starts to configure the REST interface method's parameter at the given index
STRICT_PROP - Static variable in class org.codegist.crest.serializer.simplexml.SimpleXmlDeserializer
CRestConfig property to use strict mode for deserializing xml
StringBasedAnnotationHandler<A extends Annotation> - Class in org.codegist.crest.config.annotate
 
StringBasedAnnotationHandler(CRestConfig) - Constructor for class org.codegist.crest.config.annotate.StringBasedAnnotationHandler
 
StringDeserializer - Class in org.codegist.crest.serializer
 
StringDeserializer() - Constructor for class org.codegist.crest.serializer.StringDeserializer
 
StringSerializer<V> - Class in org.codegist.crest.serializer
Abstract serializer for scenarios where the serialized value can be dumped in memory (String)
StringSerializer() - Constructor for class org.codegist.crest.serializer.StringSerializer
 

T

to(Class<T>) - Method in interface org.codegist.crest.io.Response
 
to(Class<T>, Type) - Method in interface org.codegist.crest.io.Response
 
toMetaDatas(String, String) - Static method in class org.codegist.crest.util.MultiParts
Returns a multipart metadata map
toPair(String, String, Charset) - Static method in class org.codegist.crest.util.Pairs
Returns a EncodedPair with the given name/value considered as not encoded
toPair(String, String, Charset, boolean) - Static method in class org.codegist.crest.util.Pairs
Returns a EncodedPair with the given name/value.
toPreEncodedPair(String, String) - Static method in class org.codegist.crest.util.Pairs
Returns a EncodedPair with the given name/value considered as pre-encoded
toString() - Method in class org.codegist.crest.param.DefaultParam
 
toString() - Method in class org.codegist.crest.param.SimpleEncodedPair
 
toString() - Method in class org.codegist.crest.security.oauth.OAuthToken
 
ToStringSerializer<T> - Class in org.codegist.crest.serializer
Serializer that returns the toString() value of the given object.
ToStringSerializer() - Constructor for class org.codegist.crest.serializer.ToStringSerializer
 
TypeDeserializer<T> - Class in org.codegist.crest.serializer
Abstract serializer for scenarios where the deserializer will deserialize only to one type of object.
TypeDeserializer() - Constructor for class org.codegist.crest.serializer.TypeDeserializer
 

U

UNAUTHORIZED_STATUS_CODE_PROP - Static variable in class org.codegist.crest.security.handler.RefreshAuthorizationRetryHandler
 
unmarshal(Class<T>, Type, Reader) - Method in interface org.codegist.crest.serializer.jaxb.Jaxb
 
UrlEncodedFormEntityParamExtractor - Class in org.codegist.crest.io.http
EntityParamExtractor implementation that extract parameters from an URL-encoded entity
UrlEncodedFormEntityParamExtractor() - Constructor for class org.codegist.crest.io.http.UrlEncodedFormEntityParamExtractor
 
UrlEncodedFormEntityWriter - Class in org.codegist.crest.entity
 
UrlEncodedFormEntityWriter() - Constructor for class org.codegist.crest.entity.UrlEncodedFormEntityWriter
 
useGet() - Method in class org.codegist.crest.security.oauth.v1.OAuthApiV1Builder
Resulting OAuthApi will put OAuth parameter in the query-string rather than as header by default.
using(HttpChannelFactory) - Method in class org.codegist.crest.security.oauth.v1.OAuthApiV1Builder
Overrides the default http channel factory that will be used during the oauth process
using(VariantProvider) - Method in class org.codegist.crest.security.oauth.v1.OAuthApiV1Builder
Overrides the default variant provider that will be used during the oauth process

V

valueOf(String) - Static method in enum org.codegist.crest.config.MethodType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.codegist.crest.config.ParamType
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.codegist.crest.config.MethodType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.codegist.crest.config.ParamType
Returns an array containing the constants of this enum type, in the order they are declared.
VoidDeserializer - Class in org.codegist.crest.serializer.primitive
 
VoidDeserializer() - Constructor for class org.codegist.crest.serializer.primitive.VoidDeserializer
 

W

writeEntityWith(HttpEntityWriter) - Method in interface org.codegist.crest.io.http.HttpChannel
Sets the HTTP entity writer to use
writeTo(Request, OutputStream) - Method in interface org.codegist.crest.entity.EntityWriter
Writes the request entity into the given outputstream
writeTo(Request, OutputStream) - Method in class org.codegist.crest.entity.multipart.MultiPartEntityWriter
 
writeTo(Request, OutputStream) - Method in class org.codegist.crest.entity.UrlEncodedFormEntityWriter
 

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

Copyright © 2011. All Rights Reserved.