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

A

AbstractTest - Class in org.resthub.test
Base class for your non transactional Spring aware unit tests ContextConfiguration is preconfigured to scan your applicationContext.xml files from classpath
AbstractTest() - Constructor for class org.resthub.test.AbstractTest
 
AbstractTransactionalTest - Class in org.resthub.test
Base class for your transactional unit tests, preconfigure Spring test framework It is suitable for your DAO unit tests, that need to be transactional ContextConfiguration is preconfigured to scan your applicationContext.xml files from classpath
AbstractTransactionalTest() - Constructor for class org.resthub.test.AbstractTransactionalTest
 
AbstractWebTest - Class in org.resthub.test
Base class for your webservice tests, based on Jetty and with preconfigured Spring configuration.
AbstractWebTest() - Constructor for class org.resthub.test.AbstractWebTest
Default constructor
AbstractWebTest(String) - Constructor for class org.resthub.test.AbstractWebTest
Constructor allowing to specify Spring active profiles
AbstractWebTest(int) - Constructor for class org.resthub.test.AbstractWebTest
Constructor allowing to specify HTTP port used to run the server
AbstractWebTest(String, int) - Constructor for class org.resthub.test.AbstractWebTest
Constructor allowing to specify Spring active profiles and HTTP port used to run the server
ACCEPT - Static variable in class org.resthub.web.Http
Accept header name, define response content type
accessToken - Variable in class org.resthub.web.oauth2.OAuth2Token
The access token issued by the authorization server.
accessTokenEndpoint - Variable in class org.resthub.web.oauth2.OAuth2Config
 
accessTokenEndPoint - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
acquireTime - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
activeProfiles - Variable in class org.resthub.test.AbstractWebTest
List of Spring profiles (use comma separator) to activate For example "resthub-web-server,resthub-jpa"
addBodyReader(BodyReader) - Method in class org.resthub.web.Client
Add a candidate BodyReader to read an HTTP response body to an object
addBodyReader(BodyReader) - Method in class org.resthub.web.Response
 
addBodyReader(BodyReader) - Method in class org.resthub.web.support.AsyncEntityHandler
 
addBodyReaders(List<BodyReader>) - Method in class org.resthub.web.Response
 
addBodyWriter(BodyWriter) - Method in class org.resthub.web.Client
Add a candidate BodyWriter to serialize an object to an HTTP response body
addCookie(Cookie) - Method in class org.resthub.web.Client.RequestHolder
Adds a cookie
afterClass() - Method in class org.resthub.test.AbstractWebTest
 
annotationBasedConfig - Variable in class org.resthub.test.AbstractWebTest
When set to true, activate Spring 3.1 JavaConfig based configuration, by setting context param contextClass to org.springframework.web.context.support.AnnotationConfigWebApplicationContext
asyncDelete() - Method in class org.resthub.web.Client.RequestHolder
Perform a DELETE on the request asynchronously.
AsyncEntityHandler - Class in org.resthub.web.support
 
AsyncEntityHandler() - Constructor for class org.resthub.web.support.AsyncEntityHandler
 
asyncGet() - Method in class org.resthub.web.Client.RequestHolder
Perform a GET request asynchronously.
asyncGetJson() - Method in class org.resthub.web.Client.RequestHolder
 
asyncGetXml() - Method in class org.resthub.web.Client.RequestHolder
 
asyncHead() - Method in class org.resthub.web.Client.RequestHolder
Perform a HEAD on the request asynchronously.
asyncJsonPost(Object) - Method in class org.resthub.web.Client.RequestHolder
 
asyncJsonPut(Object) - Method in class org.resthub.web.Client.RequestHolder
 
asyncOption() - Method in class org.resthub.web.Client.RequestHolder
Perform a OPTION on the request asynchronously.
asyncPost(String) - Method in class org.resthub.web.Client.RequestHolder
Perform a POST request asynchronously.
asyncPost() - Method in class org.resthub.web.Client.RequestHolder
 
asyncPost(InputStream) - Method in class org.resthub.web.Client.RequestHolder
 
asyncPost(File) - Method in class org.resthub.web.Client.RequestHolder
 
asyncPut(String) - Method in class org.resthub.web.Client.RequestHolder
Perform a PUT request asynchronously.
asyncPut(InputStream) - Method in class org.resthub.web.Client.RequestHolder
 
asyncPut(File) - Method in class org.resthub.web.Client.RequestHolder
 
asyncXmlPost(Object) - Method in class org.resthub.web.Client.RequestHolder
 
asyncXmlPut(Object) - Method in class org.resthub.web.Client.RequestHolder
 
AUTHORIZATION - Static variable in class org.resthub.web.Http
Authorization header name

B

BAD_REQUEST - Static variable in class org.resthub.web.Http
BAD_REQUEST HTTP status code value
BadRequestClientException - Exception in org.resthub.web.exception
Exception mapped to Bad Request HTTP status code (400)
BadRequestClientException() - Constructor for exception org.resthub.web.exception.BadRequestClientException
 
BadRequestClientException(String, Throwable) - Constructor for exception org.resthub.web.exception.BadRequestClientException
 
BadRequestClientException(String) - Constructor for exception org.resthub.web.exception.BadRequestClientException
 
BadRequestClientException(Throwable) - Constructor for exception org.resthub.web.exception.BadRequestClientException
 
beforeClass() - Method in class org.resthub.test.AbstractWebTest
 
BodyReader - Interface in org.resthub.web.support
 
bodyReaders - Variable in class org.resthub.web.Client
 
bodyReaders - Variable in class org.resthub.web.support.AsyncEntityHandler
 
BodyWriter - Interface in org.resthub.web.support
 
bodyWriters - Variable in class org.resthub.web.Client
 
browser - Variable in class org.resthub.web.log.Log
 
build() - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
 
builder - Variable in class org.resthub.web.Client
 

C

canRead(Class<?>, MediaType) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
 
canRead(Class<?>, MediaType) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
 
canRead(Response) - Method in interface org.resthub.web.support.BodyReader
 
canRead(Response) - Method in class org.resthub.web.support.JsonBodyReader
 
canRead(Response) - Method in class org.resthub.web.support.XmlBodyReader
 
canWrite(Class<?>, MediaType) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
 
canWrite(Class<?>, MediaType) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
 
canWrite(String) - Method in interface org.resthub.web.support.BodyWriter
 
canWrite(String) - Method in class org.resthub.web.support.JsonBodyWriter
 
canWrite(String) - Method in class org.resthub.web.support.XmlBodyWriter
 
ClassUtils - Class in org.resthub.common.util
Utility class to work with classes.
client - Variable in class org.resthub.test.AbstractWebTest
RESThub http client used to send test requests
Client - Class in org.resthub.web
RESThub AsyncHttpClient wrapper inspired from Play!
Client() - Constructor for class org.resthub.web.Client
Create an HTTP client with default configuration
Client(AsyncHttpClientConfig.Builder) - Constructor for class org.resthub.web.Client
Create an HTTP client with a pre-configured Builder
client - Variable in class org.resthub.web.Client
 
Client.Request - Class in org.resthub.web
Provides the bridge between the wrapper and the underlying ning request
Client.Request(String) - Constructor for class org.resthub.web.Client.Request
 
Client.RequestHolder - Class in org.resthub.web
provides the User facing API for building WS request.
Client.RequestHolder(String) - Constructor for class org.resthub.web.Client.RequestHolder
 
CLIENT_ID_PARAMETER_NAME - Static variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
CLIENT_SECRET_PARAMETER_NAME - Static variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
ClientException - Exception in org.resthub.web.exception
Base exception class for HTTP error requests
ClientException() - Constructor for exception org.resthub.web.exception.ClientException
 
ClientException(int) - Constructor for exception org.resthub.web.exception.ClientException
 
ClientException(int, String) - Constructor for exception org.resthub.web.exception.ClientException
 
ClientException(String, Throwable) - Constructor for exception org.resthub.web.exception.ClientException
 
ClientException(String) - Constructor for exception org.resthub.web.exception.ClientException
 
ClientException(Throwable) - Constructor for exception org.resthub.web.exception.ClientException
 
ClientExceptionFactory - Class in org.resthub.web.exception
 
ClientExceptionFactory() - Constructor for class org.resthub.web.exception.ClientExceptionFactory
 
clientId - Variable in class org.resthub.web.oauth2.OAuth2Config
 
clientId - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
clientSecret - Variable in class org.resthub.web.oauth2.OAuth2Config
 
clientSecret - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
close() - Method in class org.resthub.web.Client
 
CONFLICT - Static variable in class org.resthub.web.Http
CONFLICT HTTP status code value
ConflictClientException - Exception in org.resthub.web.exception
Exception mapped to Conflict HTTP status code (409)
ConflictClientException() - Constructor for exception org.resthub.web.exception.ConflictClientException
 
ConflictClientException(String, Throwable) - Constructor for exception org.resthub.web.exception.ConflictClientException
 
ConflictClientException(String) - Constructor for exception org.resthub.web.exception.ConflictClientException
 
ConflictClientException(Throwable) - Constructor for exception org.resthub.web.exception.ConflictClientException
 
content - Variable in class org.resthub.web.PageResponse
 
CONTENT_TYPE - Static variable in class org.resthub.web.Http
Content type header name, define request content type
context - Variable in class org.resthub.web.log.Log
 
contextLocations - Variable in class org.resthub.test.AbstractWebTest
Default Spring contexts imported.
count() - Method in interface org.resthub.common.service.CrudService
Count all resources.
count() - Method in class org.resthub.common.service.CrudServiceImpl
Count all resources.
create(T) - Method in interface org.resthub.common.service.CrudService
Create new resource.
create(T) - Method in class org.resthub.common.service.CrudServiceImpl
Create new resource.
create(T) - Method in class org.resthub.web.controller.RepositoryBasedRestController
Create a new resource
REST webservice published : POST /
create(T) - Method in interface org.resthub.web.controller.RestController
Create a new resource
REST webservice published : POST /
create(T) - Method in class org.resthub.web.controller.ServiceBasedRestController
Create a new resource
REST webservice published : POST /
CREATED - Static variable in class org.resthub.web.Http
CREATED HTTP status code value
createHttpExceptionFromStatusCode(int) - Static method in class org.resthub.web.exception.ClientExceptionFactory
 
createHttpExceptionFromStatusCode(int, String) - Static method in class org.resthub.web.exception.ClientExceptionFactory
 
CrudService<T,ID extends Serializable> - Interface in org.resthub.common.service
Crud Service interface.
CrudServiceImpl<T,ID extends Serializable,R extends org.springframework.data.repository.PagingAndSortingRepository<T,ID>> - Class in org.resthub.common.service
Crud service that uses a repository implementation You should extend it and inject your Repository bean by overriding setRepository
CrudServiceImpl() - Constructor for class org.resthub.common.service.CrudServiceImpl
 
customizeContextHandler(ServletContextHandler) - Method in class org.resthub.test.AbstractWebTest
You should override it in order to customize the servlet context handler

D

DEFAULT_CHARSET - Static variable in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
 
DEFAULT_CHARSET - Static variable in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
 
DefaultLogStrategy - Class in org.resthub.web.log
Default log strategy
DefaultLogStrategy() - Constructor for class org.resthub.web.log.DefaultLogStrategy
 
delete(T) - Method in interface org.resthub.common.service.CrudService
Delete existing resource.
delete(ID) - Method in interface org.resthub.common.service.CrudService
Delete existing resource.
delete(T) - Method in class org.resthub.common.service.CrudServiceImpl
Delete existing resource.
delete(ID) - Method in class org.resthub.common.service.CrudServiceImpl
Delete existing resource.
delete() - Method in class org.resthub.web.Client.RequestHolder
 
delete() - Method in class org.resthub.web.controller.RepositoryBasedRestController
Delete all resources
REST webservice published : DELETE /
Return No Content http status code if the request has been correctly processed
delete(ID) - Method in class org.resthub.web.controller.RepositoryBasedRestController
Delete a resource by its identifier
REST webservice published : DELETE /{id}
Return No Content http status code if the request has been correctly processed
delete() - Method in interface org.resthub.web.controller.RestController
Delete all resources
REST webservice published : DELETE /
Return No Content http status code if the request has been correctly processed
delete(ID) - Method in interface org.resthub.web.controller.RestController
Delete a resource by its identifier
REST webservice published : DELETE /{id}
Return No Content http status code if the request has been correctly processed
delete() - Method in class org.resthub.web.controller.ServiceBasedRestController
Delete all resources
REST webservice published : DELETE /
Return No Content http status code if the request has been correctly processed
delete(ID) - Method in class org.resthub.web.controller.ServiceBasedRestController
Delete a resource by its identifier
REST webservice published : DELETE /{id}
Return No Content http status code if the request has been correctly processed
deleteAll() - Method in interface org.resthub.common.service.CrudService
Delete all existing resource.
deleteAll() - Method in class org.resthub.common.service.CrudServiceImpl
Delete all existing resource.
deleteAllWithCascade() - Method in interface org.resthub.common.service.CrudService
Delete all existing resource, including linked entities with cascade delete
deleteAllWithCascade() - Method in class org.resthub.common.service.CrudServiceImpl
Delete all existing resource, including linked entities with cascade delete
deserialize(String, Class<T>) - Static method in class org.resthub.web.JsonHelper
Deserialize a JSON string
deserialize(String, TypeReference) - Static method in class org.resthub.web.JsonHelper
Deserialize a JSON string
deserialize(String, Class<T>) - Static method in class org.resthub.web.XmlHelper
Deserialize a XML string
deserialize(String, TypeReference) - Static method in class org.resthub.web.XmlHelper
Deserialize a XML string
doResolveException(HttpServletRequest, HttpServletResponse, Object, Exception) - Method in class org.resthub.jpa.JpaHandlerExceptionResolver
 
doResolveException(HttpServletRequest, HttpServletResponse, Object, Exception) - Method in class org.resthub.web.ResthubHandlerExceptionResolver
 

E

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

F

filter(FilterContext) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
findAll() - Method in interface org.resthub.common.service.CrudService
Find all resources.
findAll(Pageable) - Method in interface org.resthub.common.service.CrudService
Find all resources (pageable).
findAll() - Method in class org.resthub.common.service.CrudServiceImpl
Find all resources.
findAll(Pageable) - Method in class org.resthub.common.service.CrudServiceImpl
Find all resources (pageable).
findAll() - Method in class org.resthub.web.controller.RepositoryBasedRestController
Find all resources, and return the full collection (plain list not paginated)
REST webservice published : GET /?
findAll() - Method in interface org.resthub.web.controller.RestController
Find all resources, and return the full collection (plain list not paginated)
REST webservice published : GET /?
findAll() - Method in class org.resthub.web.controller.ServiceBasedRestController
Find all resources, and return the full collection (plain list not paginated)
REST webservice published : GET /?
findAllXml() - Method in class org.resthub.web.controller.RepositoryBasedRestController
XML findAll is currently unimplemented, see https://github.com/FasterXML/jackson-dataformat-xml/issues/38 for more details
findAllXml() - Method in interface org.resthub.web.controller.RestController
XML findAll is currently unimplemented, see https://github.com/FasterXML/jackson-dataformat-xml/issues/38 for more details
findAllXml() - Method in class org.resthub.web.controller.ServiceBasedRestController
XML findAll is currently unimplemented, see https://github.com/FasterXML/jackson-dataformat-xml/issues/38 for more details
findById(ID) - Method in interface org.resthub.common.service.CrudService
Find resource by id.
findById(ID) - Method in class org.resthub.common.service.CrudServiceImpl
Find resource by id.
findById(ID) - Method in class org.resthub.web.controller.RepositoryBasedRestController
Find a resource by its identifier
REST webservice published : GET /{id}
findById(ID) - Method in interface org.resthub.web.controller.RestController
Find a resource by its identifier
REST webservice published : GET /{id}
findById(ID) - Method in class org.resthub.web.controller.ServiceBasedRestController
Find a resource by its identifier
REST webservice published : GET /{id}
findPaginated(Integer, Integer) - Method in class org.resthub.web.controller.RepositoryBasedRestController
Find all resources, and return a paginated collection
REST webservice published : GET /search?
findPaginated(Integer, Integer) - Method in interface org.resthub.web.controller.RestController
Find all resources, and return a paginated collection
REST webservice published : GET /search?
findPaginated(Integer, Integer) - Method in class org.resthub.web.controller.ServiceBasedRestController
Find all resources, and return a paginated collection
REST webservice published : GET /search?
FORBIDDEN - Static variable in class org.resthub.web.Http
FORBIDDEN HTTP status code value
ForbiddenClientException - Exception in org.resthub.web.exception
Exception mapped to forbidden Request HTTP status code (403)
ForbiddenClientException() - Constructor for exception org.resthub.web.exception.ForbiddenClientException
 
ForbiddenClientException(String, Throwable) - Constructor for exception org.resthub.web.exception.ForbiddenClientException
 
ForbiddenClientException(String) - Constructor for exception org.resthub.web.exception.ForbiddenClientException
 
ForbiddenClientException(Throwable) - Constructor for exception org.resthub.web.exception.ForbiddenClientException
 
FORM - Static variable in class org.resthub.web.Http
Form content type value, can be used for Accept or Content-type header
FOUND - Static variable in class org.resthub.web.Http
FOUND HTTP status code value

G

get() - Method in class org.resthub.web.Client.RequestHolder
Perform a GET request synchronously.
getAccessToken() - Method in class org.resthub.web.oauth2.OAuth2Token
 
getAccessTokenEndpoint() - Method in class org.resthub.web.oauth2.OAuth2Config
 
getAccessTokenEndPoint() - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
getBody() - Method in class org.resthub.web.Response
Get the response body as a string
getClientId() - Method in class org.resthub.web.oauth2.OAuth2Config
 
getClientId() - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
getClientSecret() - Method in class org.resthub.web.oauth2.OAuth2Config
 
getClientSecret() - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
getContent() - Method in class org.resthub.web.PageResponse
 
getCookies() - Method in class org.resthub.web.Response
Get the cookies sent along the response
getExpiresIn() - Method in class org.resthub.web.oauth2.OAuth2Token
 
getGenericType(Class<?>) - Static method in class org.resthub.common.util.ClassUtils
 
getGenericType(Class<?>, int) - Static method in class org.resthub.common.util.ClassUtils
Returns the generic type with the given index from the given Class.
getGenericTypeFromBean(Object) - Static method in class org.resthub.common.util.ClassUtils
 
getHeader(String) - Method in class org.resthub.web.Response
Get the given HTTP header of the response
getJavaType(Class<?>) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
Return the Jackson JavaType for the specified class.
getJavaType(Class<?>) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
Return the Jackson JavaType for the specified class.
getJson() - Method in class org.resthub.web.Client.RequestHolder
 
getJsonEncoding(MediaType) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
Determine the JSON encoding to use for the given content type.
getJsonEncoding(MediaType) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
Determine the JSON encoding to use for the given content type.
getNativeClient() - Method in class org.resthub.web.Client
Return the AsyncHttpClient native client for advanced features
getNumber() - Method in class org.resthub.web.PageResponse
 
getNumberOfElements() - Method in class org.resthub.web.PageResponse
 
getOAuth2Scheme() - Method in class org.resthub.web.oauth2.OAuth2Config
 
getObjectMapper() - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
Return the underlying ObjectMapper for this view.
getObjectMapper() - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
Return the underlying ObjectMapper for this view.
getObjectMapper() - Method in class org.resthub.web.JsonHelper
Return the ObjectMapper.
getObjectMapper() - Method in class org.resthub.web.XmlHelper
Return the objectMapper.
getOrder() - Method in class org.resthub.web.LoggingHandlerExceptionResolver
 
getPassword() - Method in class org.resthub.web.oauth2.OAuth2Config
 
getRefreshToken() - Method in class org.resthub.web.oauth2.OAuth2Token
 
getRefreshTokenEndpoint() - Method in class org.resthub.web.oauth2.OAuth2Config
 
getSchemeName() - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
getScope() - Method in class org.resthub.web.oauth2.OAuth2Token
 
getSize() - Method in class org.resthub.web.PageResponse
 
getSort() - Method in class org.resthub.web.PageResponse
 
getStatus() - Method in class org.resthub.web.Response
Get the HTTP status code of the response
getStatusCode() - Method in exception org.resthub.web.exception.ClientException
 
getTotalElements() - Method in class org.resthub.web.PageResponse
 
getTotalPages() - Method in class org.resthub.web.PageResponse
 
getUsername() - Method in class org.resthub.web.oauth2.OAuth2Config
 
getXml() - Method in class org.resthub.web.Client.RequestHolder
 
GRANT_TYPE_PARAMETER_NAME - Static variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 

H

handleEntityExists(EntityExistsException, HttpServletRequest, HttpServletResponse, Object) - Method in class org.resthub.jpa.JpaHandlerExceptionResolver
 
handleEntityNotFound(EntityNotFoundException, HttpServletRequest, HttpServletResponse, Object) - Method in class org.resthub.jpa.JpaHandlerExceptionResolver
 
handleIllegalArgument(IllegalArgumentException, HttpServletRequest, HttpServletResponse, Object) - Method in class org.resthub.web.ResthubHandlerExceptionResolver
 
handleNotFound(NotFoundException, HttpServletRequest, HttpServletResponse, Object) - Method in class org.resthub.web.ResthubHandlerExceptionResolver
 
handleNotImplemented(NotImplementedException, HttpServletRequest, HttpServletResponse, Object) - Method in class org.resthub.web.ResthubHandlerExceptionResolver
 
handleObjectNotFound(ObjectNotFoundException, HttpServletRequest, HttpServletResponse, Object) - Method in class org.resthub.jpa.JpaHandlerExceptionResolver
 
handleValidation(ValidationException, HttpServletRequest, HttpServletResponse, Object) - Method in class org.resthub.web.ResthubHandlerExceptionResolver
 
hasContent() - Method in class org.resthub.web.PageResponse
 
hasNextPage() - Method in class org.resthub.web.PageResponse
 
hasPreviousPage() - Method in class org.resthub.web.PageResponse
 
head() - Method in class org.resthub.web.Client.RequestHolder
 
Http - Class in org.resthub.web
HTTP status code and header constant definitions
Http() - Constructor for class org.resthub.web.Http
 

I

initialize() - Static method in class org.resthub.web.JsonHelper
 
initialize() - Static method in class org.resthub.web.XmlHelper
 
INTERNAL_SERVER_ERROR - Static variable in class org.resthub.web.Http
INTERNAL_SERVER_ERROR HTTP status code value
InternalServerErrorClientException - Exception in org.resthub.web.exception
Exception mapped to Internal Server Error HTTP status code (500)
InternalServerErrorClientException() - Constructor for exception org.resthub.web.exception.InternalServerErrorClientException
 
InternalServerErrorClientException(String, Throwable) - Constructor for exception org.resthub.web.exception.InternalServerErrorClientException
 
InternalServerErrorClientException(String) - Constructor for exception org.resthub.web.exception.InternalServerErrorClientException
 
InternalServerErrorClientException(Throwable) - Constructor for exception org.resthub.web.exception.InternalServerErrorClientException
 
isFirstPage() - Method in class org.resthub.web.PageResponse
 
isLastPage() - Method in class org.resthub.web.PageResponse
 
iterator() - Method in class org.resthub.web.PageResponse
 

J

JpaHandlerExceptionResolver - Class in org.resthub.jpa
Spring MVC exception resolver user to map JPA related exception to HTTP error codes.
JpaHandlerExceptionResolver() - Constructor for class org.resthub.jpa.JpaHandlerExceptionResolver
 
JSON - Static variable in class org.resthub.web.Http
JSON content type value, can be used for Accept or Content-type header
JsonBodyReader - Class in org.resthub.web.support
 
JsonBodyReader() - Constructor for class org.resthub.web.support.JsonBodyReader
 
JsonBodyWriter - Class in org.resthub.web.support
 
JsonBodyWriter() - Constructor for class org.resthub.web.support.JsonBodyWriter
 
JsonHelper - Class in org.resthub.web
Helper for JSON serialization and deserialization
JsonHelper() - Constructor for class org.resthub.web.JsonHelper
 
jsonPost(Object) - Method in class org.resthub.web.Client.RequestHolder
 
jsonPut(Object) - Method in class org.resthub.web.Client.RequestHolder
 

L

level - Variable in class org.resthub.web.log.Log
 
log(Logs, String) - Method in class org.resthub.web.controller.LogController
Multiple log handling
REST webservice published : POST /api/logs
Log - Class in org.resthub.web.log
A single log sent by the client
Log() - Constructor for class org.resthub.web.log.Log
 
logAction(Log, String) - Method in class org.resthub.web.controller.LogController
Single log handling
REST webservice published : POST /api/log
LogController - Class in org.resthub.web.controller
Log controller for client logging
LogController() - Constructor for class org.resthub.web.controller.LogController
 
logDebug(Log) - Method in class org.resthub.web.log.DefaultLogStrategy
 
logDebug(Log) - Method in interface org.resthub.web.log.LogStrategy
 
logError(Log) - Method in class org.resthub.web.log.DefaultLogStrategy
 
logError(Log) - Method in interface org.resthub.web.log.LogStrategy
 
logger - Static variable in class org.resthub.test.AbstractWebTest
 
logger - Variable in class org.resthub.web.controller.RepositoryBasedRestController
 
logger - Variable in class org.resthub.web.LoggingHandlerExceptionResolver
 
LoggingHandlerExceptionResolver - Class in org.resthub.web
ExceptionResolver responsible for logging exception
LoggingHandlerExceptionResolver() - Constructor for class org.resthub.web.LoggingHandlerExceptionResolver
 
logInfo(Log) - Method in class org.resthub.web.log.DefaultLogStrategy
 
logInfo(Log) - Method in interface org.resthub.web.log.LogStrategy
 
LogLevel - Enum in org.resthub.web.log
 
Logs - Class in org.resthub.web.log
 
Logs(int) - Constructor for class org.resthub.web.log.Logs
 
Logs() - Constructor for class org.resthub.web.log.Logs
 
Logs(Collection<? extends Log>) - Constructor for class org.resthub.web.log.Logs
 
LogStrategy - Interface in org.resthub.web.log
Implement this interface to define the behaviour of the log controller
logWarn(Log) - Method in class org.resthub.web.log.DefaultLogStrategy
 
logWarn(Log) - Method in interface org.resthub.web.log.LogStrategy
 

M

MappingJackson2JsonHttpMessageConverter - Class in org.resthub.web.converter
Implementation of HttpMessageConverter that can read and write JSON using Jackson 2's ObjectMapper.
MappingJackson2JsonHttpMessageConverter() - Constructor for class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
Construct a new BindingJacksonHttpMessageConverter.
MappingJackson2XmlHttpMessageConverter - Class in org.resthub.web.converter
Implementation of HttpMessageConverter that can read and write JSON using Jackson 2's ObjectMapper.
MappingJackson2XmlHttpMessageConverter() - Constructor for class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
Construct a new BindingJacksonHttpMessageConverter.
message - Variable in class org.resthub.web.log.Log
 
MOVED_PERMANENTLY - Static variable in class org.resthub.web.Http
MOVED_PERMANENTLY HTTP status code value

N

NO_CONTENT - Static variable in class org.resthub.web.Http
OK NO_CONTENT status code value
NOT_ACCEPTABLE - Static variable in class org.resthub.web.Http
NOT_ACCEPTABLE HTTP status code value
NOT_FOUND - Static variable in class org.resthub.web.Http
NOT_FOUND HTTP status code value
NOT_IMPLEMENTED - Static variable in class org.resthub.web.Http
NOT_IMPLEMENTED HTTP status code value
NOT_MODIFIED - Static variable in class org.resthub.web.Http
NOT_MODIFIED HTTP status code value
NotAcceptableClientException - Exception in org.resthub.web.exception
Exception mapped to not acceptable Error HTTP status code (406)
NotAcceptableClientException() - Constructor for exception org.resthub.web.exception.NotAcceptableClientException
 
NotAcceptableClientException(String, Throwable) - Constructor for exception org.resthub.web.exception.NotAcceptableClientException
 
NotAcceptableClientException(String) - Constructor for exception org.resthub.web.exception.NotAcceptableClientException
 
NotAcceptableClientException(Throwable) - Constructor for exception org.resthub.web.exception.NotAcceptableClientException
 
NotFoundClientException - Exception in org.resthub.web.exception
Exception mapped to not found Error HTTP status code (404)
NotFoundClientException() - Constructor for exception org.resthub.web.exception.NotFoundClientException
 
NotFoundClientException(String, Throwable) - Constructor for exception org.resthub.web.exception.NotFoundClientException
 
NotFoundClientException(String) - Constructor for exception org.resthub.web.exception.NotFoundClientException
 
NotFoundClientException(Throwable) - Constructor for exception org.resthub.web.exception.NotFoundClientException
 
NotFoundException - Exception in org.resthub.common.exception
Exception thrown when not result was found (for example findById with null return value)
NotFoundException() - Constructor for exception org.resthub.common.exception.NotFoundException
 
NotFoundException(String, Throwable) - Constructor for exception org.resthub.common.exception.NotFoundException
 
NotFoundException(String) - Constructor for exception org.resthub.common.exception.NotFoundException
 
NotFoundException(Throwable) - Constructor for exception org.resthub.common.exception.NotFoundException
 
NotImplementedClientException - Exception in org.resthub.web.exception
Exception mapped to not implemented Error HTTP status code (501)
NotImplementedClientException() - Constructor for exception org.resthub.web.exception.NotImplementedClientException
 
NotImplementedClientException(String, Throwable) - Constructor for exception org.resthub.web.exception.NotImplementedClientException
 
NotImplementedClientException(String) - Constructor for exception org.resthub.web.exception.NotImplementedClientException
 
NotImplementedClientException(Throwable) - Constructor for exception org.resthub.web.exception.NotImplementedClientException
 
NotImplementedException - Exception in org.resthub.common.exception
Exception used to signify that an element (class, webservice, method) does not exists
NotImplementedException() - Constructor for exception org.resthub.common.exception.NotImplementedException
 
NotImplementedException(String, Throwable) - Constructor for exception org.resthub.common.exception.NotImplementedException
 
NotImplementedException(String) - Constructor for exception org.resthub.common.exception.NotImplementedException
 
NotImplementedException(Throwable) - Constructor for exception org.resthub.common.exception.NotImplementedException
 
number - Variable in class org.resthub.web.PageResponse
 
numberOfElements - Variable in class org.resthub.web.PageResponse
 

O

oauth2_scheme - Variable in class org.resthub.web.oauth2.OAuth2Config
 
oAuth2Config - Variable in class org.resthub.web.Client
 
OAuth2Config - Class in org.resthub.web.oauth2
Configuration class to use with a Client.
OAuth2Config(String, String, String, String, String, String, String) - Constructor for class org.resthub.web.oauth2.OAuth2Config
 
OAuth2Config.Builder - Class in org.resthub.web.oauth2
 
OAuth2Config.Builder() - Constructor for class org.resthub.web.oauth2.OAuth2Config.Builder
 
oAuth2ConfigBuilder - Variable in class org.resthub.web.Client
 
OAuth2RequestFilter - Class in org.resthub.web.oauth2
HTTP client filter that deals with OAuth2.0 Token authentication
OAuth2RequestFilter(String, String, String) - Constructor for class org.resthub.web.oauth2.OAuth2RequestFilter
Request filter that acquires an OAuth token if: no token has been acquired the current token is expired, given its "ExpiresIn" information
OAuth2Token - Class in org.resthub.web.oauth2
Response of the token end-point, as described in the Oauth 2 specification (Section 4.2).
OAuth2Token() - Constructor for class org.resthub.web.oauth2.OAuth2Token
 
objectMapper - Static variable in class org.resthub.web.JsonHelper
Jackson Object Mapper used to serialization/deserialization
objectMapper - Static variable in class org.resthub.web.XmlHelper
Jackson Object Mapper used to serialization/deserialization
OK - Static variable in class org.resthub.web.Http
OK HTTP status code value
onApplicationEvent(ApplicationEvent) - Method in class org.resthub.common.util.PostInitializerRunner
 
onCompleted(Response) - Method in class org.resthub.web.support.AsyncEntityHandler
 
option() - Method in class org.resthub.web.Client.RequestHolder
 
org.resthub.common.exception - package org.resthub.common.exception
 
org.resthub.common.service - package org.resthub.common.service
REST services
org.resthub.common.util - package org.resthub.common.util
Utils classes
org.resthub.jpa - package org.resthub.jpa
JPA database support
org.resthub.test - package org.resthub.test
Reusable base test classes
org.resthub.web - package org.resthub.web
REST webservices root package
org.resthub.web.controller - package org.resthub.web.controller
REST controllers
org.resthub.web.converter - package org.resthub.web.converter
Spring converter used for serialization and deserialization
org.resthub.web.exception - package org.resthub.web.exception
HTTP related exceptions with Spring MVC mapping to HTTP status code
org.resthub.web.log - package org.resthub.web.log
Client logging management
org.resthub.web.oauth2 - package org.resthub.web.oauth2
OAuth2 support
org.resthub.web.support - package org.resthub.web.support
Support classes for RESThub web client

P

PageResponse<T> - Class in org.resthub.web
Implementation of Page compatible with Jackson deserialization (default constructor + setters)
PageResponse() - Constructor for class org.resthub.web.PageResponse
 
password - Variable in class org.resthub.web.oauth2.OAuth2Config
 
password - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
PASSWORD_PARAMETER_NAME - Static variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
PASSWORD_PARAMETER_VALUE - Static variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
port - Variable in class org.resthub.test.AbstractWebTest
HTTP port used for running web tests, default is 9797
post(String) - Method in class org.resthub.web.Client.RequestHolder
Perform a POST request synchronously.
post() - Method in class org.resthub.web.Client.RequestHolder
 
post(InputStream) - Method in class org.resthub.web.Client.RequestHolder
 
post(File) - Method in class org.resthub.web.Client.RequestHolder
 
PostInitialize - Annotation Type in org.resthub.common.util
Similar to @PostConstruct Spring annotation, but executed later in application lifecycle, in order to get transaction management ready.
PostInitializerRunner - Class in org.resthub.common.util
Runner for @PostInitialize annotation registration
PostInitializerRunner() - Constructor for class org.resthub.common.util.PostInitializerRunner
 
put(String) - Method in class org.resthub.web.Client.RequestHolder
Perform a PUT request synchronously.
put(InputStream) - Method in class org.resthub.web.Client.RequestHolder
 
put(File) - Method in class org.resthub.web.Client.RequestHolder
 

R

readEntity(Response, Class<T>) - Method in interface org.resthub.web.support.BodyReader
 
readEntity(Response, TypeReference) - Method in interface org.resthub.web.support.BodyReader
 
readEntity(Response, Class<T>) - Method in class org.resthub.web.support.JsonBodyReader
 
readEntity(Response, TypeReference) - Method in class org.resthub.web.support.JsonBodyReader
 
readEntity(Response, Class<T>) - Method in class org.resthub.web.support.XmlBodyReader
 
readEntity(Response, TypeReference) - Method in class org.resthub.web.support.XmlBodyReader
 
readInternal(Class<?>, HttpInputMessage) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
 
readInternal(Class<?>, HttpInputMessage) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
 
refreshToken - Variable in class org.resthub.web.oauth2.OAuth2Token
The refresh token used to obtain new access tokens using the same end-user access grant.
refreshTokenEndpoint - Variable in class org.resthub.web.oauth2.OAuth2Config
 
repository - Variable in class org.resthub.common.service.CrudServiceImpl
 
repository - Variable in class org.resthub.web.controller.RepositoryBasedRestController
 
RepositoryBasedRestController<T,ID extends Serializable,R extends org.springframework.data.repository.PagingAndSortingRepository> - Class in org.resthub.web.controller
Abstract REST controller using a repository implementation

You should extend this class when you want to use a 2 layers pattern : Repository and Controller.

RepositoryBasedRestController() - Constructor for class org.resthub.web.controller.RepositoryBasedRestController
 
request(String) - Method in class org.resthub.test.AbstractWebTest
Send a request to the embedded test webserver
resolveException(HttpServletRequest, HttpServletResponse, Object, Exception) - Method in class org.resthub.web.LoggingHandlerExceptionResolver
 
resource(Class<T>) - Method in class org.resthub.web.Response
 
resource(TypeReference) - Method in class org.resthub.web.Response
 
Response - Class in org.resthub.web
 
Response(Response) - Constructor for class org.resthub.web.Response
 
RestController<T,ID extends Serializable> - Interface in org.resthub.web.controller
REST controller interface
ResthubHandlerExceptionResolver - Class in org.resthub.web
 
ResthubHandlerExceptionResolver() - Constructor for class org.resthub.web.ResthubHandlerExceptionResolver
 
reusableServer - Static variable in class org.resthub.test.AbstractWebTest
Jetty reusable embedded server that will run your application
rootUrl - Variable in class org.resthub.test.AbstractWebTest
Default rootUrl used to send requests

S

scheme_name - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
scope - Variable in class org.resthub.web.oauth2.OAuth2Token
The scope of the access token as a list of space-delimited strings.
SCOPE_PARAMETER_NAME - Static variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
SerializationException - Exception in org.resthub.web.exception
 
SerializationException() - Constructor for exception org.resthub.web.exception.SerializationException
 
SerializationException(String, Throwable) - Constructor for exception org.resthub.web.exception.SerializationException
 
SerializationException(String) - Constructor for exception org.resthub.web.exception.SerializationException
 
SerializationException(Throwable) - Constructor for exception org.resthub.web.exception.SerializationException
 
serialize(Object) - Static method in class org.resthub.web.JsonHelper
Serialize and object to a JSON String representation
serialize(Object) - Static method in class org.resthub.web.XmlHelper
Serialize and object to an XML String representation
server - Variable in class org.resthub.test.AbstractWebTest
Class specific Jetty embedded server that will run your application
service - Variable in class org.resthub.web.controller.ServiceBasedRestController
 
ServiceBasedRestController<T,ID extends Serializable,S extends CrudService> - Class in org.resthub.web.controller
Abstract REST controller using a service implementation

You should extend this class when you want to use a 3 layers pattern : Repository, Service and Controller If you don't have a real service (also called business layer), consider using RepositoryBasedRestController Default implementation uses "id" field (usually a Long) in order to identify resources in web request.

ServiceBasedRestController() - Constructor for class org.resthub.web.controller.ServiceBasedRestController
 
servletContextHandlerOption - Variable in class org.resthub.test.AbstractWebTest
 
setAccessToken(String) - Method in class org.resthub.web.oauth2.OAuth2Token
 
setAccessTokenEndpoint(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
 
setAccessTokenEndPoint(String) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
setAuth(String, String, Realm.AuthScheme) - Method in class org.resthub.web.Client
Sets the authentication header for the current client.
setBodyReaders(List<BodyReader>) - Method in class org.resthub.web.support.AsyncEntityHandler
 
setClientId(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
 
setClientId(String) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
setClientSecret(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
 
setClientSecret(String) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
setContent(List<T>) - Method in class org.resthub.web.PageResponse
 
setCredentials(String, String) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
setExpiresIn(Integer) - Method in class org.resthub.web.oauth2.OAuth2Token
 
setHeader(String, String) - Method in class org.resthub.web.Client.RequestHolder
Sets a header with the given name, this can be called repeatedly
setLogStrategy(LogStrategy) - Method in class org.resthub.web.controller.LogController
You can inject another LogStrategy bean in order to customize log handling
setNumber(int) - Method in class org.resthub.web.PageResponse
 
setNumberOfElements(int) - Method in class org.resthub.web.PageResponse
 
setOAuth2(String, String, String, String, String) - Method in class org.resthub.web.Client
Sets the OAuth2 authentication header for the current client.
setOAuth2Builder(OAuth2Config.Builder) - Method in class org.resthub.web.Client
Set the given OAuth2Config builder for this client.
setOAuth2Scheme(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
 
setObjectMapper(ObjectMapper) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
Set the ObjectMapper for this view.
setObjectMapper(ObjectMapper) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
Set the ObjectMapper for this view.
setPassword(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
 
setPrefixJson(boolean) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
Indicate whether the JSON output by this view should be prefixed with "{} &&".
setPrettyPrint(boolean) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
Whether to use the DefaultPrettyPrinter when writing JSON.
setPrettyPrint(boolean) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
Whether to use the DefaultPrettyPrinter when writing XML.
setProxy(String, int) - Method in class org.resthub.web.Client
Set HTTP proxy configuration
setQueryParameter(String, String) - Method in class org.resthub.web.Client.RequestHolder
Sets a query parameter with the given name,this can be called repeatedly
setRefreshToken(String) - Method in class org.resthub.web.oauth2.OAuth2Token
 
setRefreshTokenEndpoint(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
 
setRepository(R) - Method in class org.resthub.common.service.CrudServiceImpl
 
setRepository(R) - Method in class org.resthub.web.controller.RepositoryBasedRestController
You should override this setter in order to inject your repository with @Inject annotation
setSchemeName(String) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
setScope(String) - Method in class org.resthub.web.oauth2.OAuth2Token
 
setService(S) - Method in class org.resthub.web.controller.ServiceBasedRestController
You should override this setter in order to inject your service with @Inject annotation
setSize(int) - Method in class org.resthub.web.PageResponse
 
setStatusCode(int) - Method in exception org.resthub.web.exception.ClientException
 
setTotalElements(long) - Method in class org.resthub.web.PageResponse
 
setTotalPages(int) - Method in class org.resthub.web.PageResponse
 
setUsername(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
 
size - Variable in class org.resthub.web.PageResponse
 
startServerOnce - Variable in class org.resthub.test.AbstractWebTest
Specify if the embedded Jetty server should run once (true, default value) or for each class (false)
supports(Class<?>) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
 
supports(Class<?>) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
 

T

time - Variable in class org.resthub.web.log.Log
 
token - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
toString() - Method in class org.resthub.web.oauth2.OAuth2Token
totalElements - Variable in class org.resthub.web.PageResponse
 
totalPages - Variable in class org.resthub.web.PageResponse
 

U

UNAUTHORIZED - Static variable in class org.resthub.web.Http
UNAUTHORIZED HTTP status code value
UnauthorizedClientException - Exception in org.resthub.web.exception
Exception mapped to unauthorized Request HTTP status code (401)
UnauthorizedClientException() - Constructor for exception org.resthub.web.exception.UnauthorizedClientException
 
UnauthorizedClientException(String, Throwable) - Constructor for exception org.resthub.web.exception.UnauthorizedClientException
 
UnauthorizedClientException(String) - Constructor for exception org.resthub.web.exception.UnauthorizedClientException
 
UnauthorizedClientException(Throwable) - Constructor for exception org.resthub.web.exception.UnauthorizedClientException
 
update(T) - Method in interface org.resthub.common.service.CrudService
Update existing resource.
update(T) - Method in class org.resthub.common.service.CrudServiceImpl
Update existing resource.
update(ID, T) - Method in class org.resthub.web.controller.RepositoryBasedRestController
Update an existing resource
REST webservice published : PUT /{id}
update(ID, T) - Method in interface org.resthub.web.controller.RestController
Update an existing resource
REST webservice published : PUT /{id}
update(ID, T) - Method in class org.resthub.web.controller.ServiceBasedRestController
Update an existing resource
REST webservice published : PUT /{id}
url(String) - Method in class org.resthub.web.Client
Prepare a new request.
useOpenEntityManagerInViewFilter - Variable in class org.resthub.test.AbstractWebTest
Define in OpenEntityManagerInViewFilter should be activated or not.
username - Variable in class org.resthub.web.oauth2.OAuth2Config
 
username - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 
USERNAME_PARAMETER_NAME - Static variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 

V

valueOf(String) - Static method in enum org.resthub.web.log.LogLevel
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.resthub.web.log.LogLevel
Returns an array containing the constants of this enum type, in the order they are declared.

W

writeEntity(String, Object) - Method in interface org.resthub.web.support.BodyWriter
 
writeEntity(String, Object) - Method in class org.resthub.web.support.JsonBodyWriter
 
writeEntity(String, Object) - Method in class org.resthub.web.support.XmlBodyWriter
 
writeInternal(Object, HttpOutputMessage) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
 
writeInternal(Object, HttpOutputMessage) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
 

X

XML - Static variable in class org.resthub.web.Http
XML content type value, can be used for Accept or Content-type header
XmlBodyReader - Class in org.resthub.web.support
 
XmlBodyReader() - Constructor for class org.resthub.web.support.XmlBodyReader
 
XmlBodyWriter - Class in org.resthub.web.support
 
XmlBodyWriter() - Constructor for class org.resthub.web.support.XmlBodyWriter
 
XmlHelper - Class in org.resthub.web
Helper for XML serialization and deserialization.
XmlHelper() - Constructor for class org.resthub.web.XmlHelper
 
xmlPost(Object) - Method in class org.resthub.web.Client.RequestHolder
 
xmlPut(Object) - Method in class org.resthub.web.Client.RequestHolder
 
A B C D E F G H I J L M N O P R S T U V W X 

Copyright © 2009-2012. All Rights Reserved.