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

A

AbstractDataSourceFactory<T extends DataSource> - Class in org.resthub.jpa.pool
Common abstract factory for dataSource creation

This factory allows to create directly a DataSource instance from a set of configuration properties.

AbstractDataSourceFactory() - Constructor for class org.resthub.jpa.pool.AbstractDataSourceFactory
 
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"
addAttribute(String, Object) - Method in class org.resthub.web.validation.ValidationConstraint
Add attribute to the current constraint definition.
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
addConstraint(String, ValidationConstraint) - Method in class org.resthub.web.validation.ModelConstraint
Add a ValidationConstraint for a given property for the current represented model
addCookie(Cookie) - Method in class org.resthub.web.Client.RequestHolder
Adds a cookie
afterClass() - Method in class org.resthub.test.AbstractWebTest
 
afterPropertiesSet() - Method in class org.resthub.web.view.JsonViewSupportFactoryBean
 
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.
asyncHead() - Method in class org.resthub.web.Client.RequestHolder
Perform a HEAD on the request asynchronously.
asyncJsonGet() - Method in class org.resthub.web.Client.RequestHolder
 
asyncJsonPost(Object) - Method in class org.resthub.web.Client.RequestHolder
 
asyncJsonPut(Object) - Method in class org.resthub.web.Client.RequestHolder
 
asyncOption() - Method in class org.resthub.web.Client.RequestHolder
Perform a OPTION on the request asynchronously.
asyncPost(String) - Method in class org.resthub.web.Client.RequestHolder
Perform a POST request asynchronously.
asyncPost() - Method in class org.resthub.web.Client.RequestHolder
 
asyncPost(InputStream) - Method in class org.resthub.web.Client.RequestHolder
 
asyncPost(File) - Method in class org.resthub.web.Client.RequestHolder
 
asyncPut(String) - Method in class org.resthub.web.Client.RequestHolder
Perform a PUT request asynchronously.
asyncPut(InputStream) - Method in class org.resthub.web.Client.RequestHolder
 
asyncPut(File) - Method in class org.resthub.web.Client.RequestHolder
 
asyncXmlGet() - Method in class org.resthub.web.Client.RequestHolder
 
asyncXmlPost(Object) - Method in class org.resthub.web.Client.RequestHolder
 
asyncXmlPut(Object) - Method in class org.resthub.web.Client.RequestHolder
 
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
 
BoneCPDataSourceFactory - Class in org.resthub.jpa.pool
This factory allows to create directly a BoneCPDataSource instance from a set of configuration properties.
BoneCPDataSourceFactory() - Constructor for class org.resthub.jpa.pool.BoneCPDataSourceFactory
 
browser - Variable in class org.resthub.web.log.Log
 
build() - Method in class org.resthub.common.model.RestError.Builder
 
build() - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
 
builder - Variable in class org.resthub.web.Client
 

C

callConstructor(Class<? extends T>, Properties) - Method in class org.resthub.jpa.pool.AbstractDataSourceFactory
Perform call to the DataSource constructor.
callConstructor(Class, Properties) - Method in class org.resthub.jpa.pool.BoneCPDataSourceFactory
Initialize a new BoneCPDataSource instance with given configuration properties
callConstructor(Class, Properties) - Method in class org.resthub.jpa.pool.HikariCPDataSourceFactory
Initialize a new HikariDataSource instance with given configuration properties
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.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(Class<? extends T>, Properties) - Method in class org.resthub.jpa.pool.AbstractDataSourceFactory
 
create(Properties) - Method in class org.resthub.jpa.pool.AbstractDataSourceFactory
Create new instance of DataSource fully configured with properties.
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 PagingAndSortingRepository Spring Data repository implementation You should extend it and inject your Repository bean by overriding CrudServiceImpl.setRepository(org.springframework.data.repository.PagingAndSortingRepository)
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

DataView - Interface in org.resthub.common.view
 
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

E

equals(Object) - Method in class org.resthub.common.model.RestError
 
equals(Object) - Method in class org.resthub.web.validation.ModelConstraint
 
equals(Object) - Method in class org.resthub.web.validation.ValidationConstraint
 
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 /?
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}
findByIds(Set<ID>) - Method in interface org.resthub.common.service.CrudService
Find resources by their ids.
findByIds(Set<ID>) - Method in class org.resthub.common.service.CrudServiceImpl
Find resources by their ids.
findByIds(Set<ID>) - Method in class org.resthub.web.controller.RepositoryBasedRestController
Find multiple resources by their identifiers
REST webservice published : GET /?
findByIds(Set<ID>) - Method in interface org.resthub.web.controller.RestController
Find multiple resources by their identifiers
REST webservice published : GET /?
findByIds(Set<ID>) - Method in class org.resthub.web.controller.ServiceBasedRestController
Find multiple resources by their identifiers
REST webservice published : GET /?
findPaginated(Integer, Integer, String, String) - Method in class org.resthub.web.controller.RepositoryBasedRestController
Find all resources, and return a paginated and optionaly sorted collection
REST webservice published : GET /search?
findPaginated(Integer, Integer, String, String) - Method in interface org.resthub.web.controller.RestController
Find all resources, and return a paginated and optionaly sorted collection
REST webservice published : GET /search?
findPaginated(Integer, Integer, String, String) - Method in class org.resthub.web.controller.ServiceBasedRestController
Find all resources, and return a paginated and optionaly sorted 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
 
getAttributes() - Method in class org.resthub.web.validation.ValidationConstraint
 
getBody() - Method in class org.resthub.web.Response
Get the response body as a string
getBody(String) - Method in class org.resthub.web.Response
Get the response body as a string with charset as parameter
getClientId() - Method in class org.resthub.web.oauth2.OAuth2Config
 
getClientId() - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
getClientSecret() - Method in class org.resthub.web.oauth2.OAuth2Config
 
getClientSecret() - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
getCode() - Method in class org.resthub.common.model.RestError
 
getConstraintDescriptor() - Method in class org.resthub.web.validation.ValidationContext
 
getConstraints() - Method in class org.resthub.web.validation.ModelConstraint
 
getConstraintsForClass(Class<?>) - Method in interface org.resthub.web.validation.ValidationService
Find validation constraints for a model class and return their representation
getConstraintsForClass(Class<?>, Locale) - Method in interface org.resthub.web.validation.ValidationService
Find validation constraints for a model class and return their representation.
getConstraintsForClass(Class<?>) - Method in class org.resthub.web.validation.ValidationServiceImpl
Find validation constraints for a model class and return their representation
getConstraintsForClass(Class<?>, Locale) - Method in class org.resthub.web.validation.ValidationServiceImpl
Find validation constraints for a model class and return their representation.
getConstraintsForClassName(String, String) - Method in class org.resthub.web.controller.ValidationController
Exposes an "/api/validation/{canonicalClassName}" endpoint to get all validation constraints for a given object className and optional locale parameter.
getConstraintsForClassName(String) - Method in interface org.resthub.web.validation.ValidationService
Find validation constraints for a model class name and return their representation
getConstraintsForClassName(String, Locale) - Method in interface org.resthub.web.validation.ValidationService
Find validation constraints for a model class name and return their representation.
getConstraintsForClassName(String) - Method in class org.resthub.web.validation.ValidationServiceImpl
Find validation constraints for a model class name and return their representation
getConstraintsForClassName(String, Locale) - Method in class org.resthub.web.validation.ValidationServiceImpl
Find validation constraints for a model class name and return their representation.
getContent() - Method in class org.resthub.web.PageResponse
 
getCookies() - Method in class org.resthub.web.Response
Get the cookies sent along the response
getData() - Method in interface org.resthub.common.view.DataView
 
getData() - Method in class org.resthub.web.view.PojoView
 
getDeveloperMessage() - Method in class org.resthub.common.model.RestError
 
getDsClass() - Method in class org.resthub.jpa.pool.AbstractDataSourceFactory
 
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.MappingJackson2XmlHttpMessageConverter
Return the Jackson JavaType for the specified class.
getJsonEncoding(MediaType) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
Determine the JSON encoding to use for the given content type.
getMessage() - Method in class org.resthub.common.model.RestError
 
getMessage() - Method in class org.resthub.web.validation.ValidationConstraint
 
getModelRef() - Method in class org.resthub.web.validation.ModelConstraint
 
getMoreInfoUrl() - Method in class org.resthub.common.model.RestError
 
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.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
 
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.common.model.RestError
 
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
 
getThrowable() - Method in class org.resthub.common.model.RestError
 
getTotalElements() - Method in class org.resthub.web.PageResponse
 
getTotalPages() - Method in class org.resthub.web.PageResponse
 
getType() - Method in class org.resthub.web.validation.ValidationConstraint
 
getUsername() - Method in class org.resthub.web.oauth2.OAuth2Config
 
getValidatedValue() - Method in class org.resthub.web.validation.ValidationContext
 
getView() - Method in interface org.resthub.common.view.DataView
 
getView() - Method in class org.resthub.web.view.PojoView
 
GRANT_TYPE_PARAMETER_NAME - Static variable in class org.resthub.web.oauth2.OAuth2RequestFilter
 

H

handleCustomException(Exception, WebRequest) - Method in class org.resthub.jpa.JpaHandlerExceptionHandler
 
handleCustomException(Exception, WebRequest) - Method in class org.resthub.web.ResthubExceptionHandler
 
handleReturnValue(Object, MethodParameter, ModelAndViewContainer, NativeWebRequest) - Method in class org.resthub.web.view.ViewInjectingReturnValueHandler
 
hasContent() - Method in class org.resthub.web.PageResponse
 
hashCode() - Method in class org.resthub.common.model.RestError
 
hashCode() - Method in class org.resthub.web.validation.ModelConstraint
 
hashCode() - Method in class org.resthub.web.validation.ValidationConstraint
 
hasNext() - Method in class org.resthub.web.PageResponse
 
hasPrevious() - Method in class org.resthub.web.PageResponse
 
hasView() - Method in interface org.resthub.common.view.DataView
 
hasView() - Method in class org.resthub.web.view.PojoView
 
head() - Method in class org.resthub.web.Client.RequestHolder
 
HikariCPDataSourceFactory - Class in org.resthub.jpa.pool
This factory allows to create directly a HikariDataSource instance from a set of configuration properties.
HikariCPDataSourceFactory() - Constructor for class org.resthub.jpa.pool.HikariCPDataSourceFactory
 
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
 
instantiateDataSource(Properties) - Method in class org.resthub.jpa.pool.AbstractDataSourceFactory
Instantiate a concrete dataSource instance depending on the property value
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
 
isFirst() - Method in class org.resthub.web.PageResponse
 
isLast() - Method in class org.resthub.web.PageResponse
 
isResolvedProperty(Properties, String) - Method in class org.resthub.jpa.pool.AbstractDataSourceFactory
Check if a property has been resolved. i.e. the property does not contain the special spring placeholder resolver character '$').
iterator() - Method in class org.resthub.web.PageResponse
 

J

JpaHandlerExceptionHandler - Class in org.resthub.jpa
Spring MVC exception handler user to map JPA related exception to HTTP error codes.
JpaHandlerExceptionHandler() - Constructor for class org.resthub.jpa.JpaHandlerExceptionHandler
 
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
 
jsonGet() - Method in class org.resthub.web.Client.RequestHolder
 
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
 
JsonViewSupportFactoryBean - Class in org.resthub.web.view
 
JsonViewSupportFactoryBean() - Constructor for class org.resthub.web.view.JsonViewSupportFactoryBean
 

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
 
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
 
ModelConstraint - Class in org.resthub.web.validation
Object representation of validation constraints defined on a model domain object (POJO).
ModelConstraint(String) - Constructor for class org.resthub.web.validation.ModelConstraint
 
MOVED_PERMANENTLY - Static variable in class org.resthub.web.Http
MOVED_PERMANENTLY HTTP status code value

N

nextPageable() - Method in class org.resthub.web.PageResponse
 
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 a declared method is not currently implemented
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.model - package org.resthub.common.model
 
org.resthub.common.service - package org.resthub.common.service
REST services
org.resthub.common.util - package org.resthub.common.util
Utils classes
org.resthub.common.view - package org.resthub.common.view
Custom Json views annotations and interfaces
org.resthub.jpa - package org.resthub.jpa
JPA database support
org.resthub.jpa.pool - package org.resthub.jpa.pool
 
org.resthub.test - package org.resthub.test
Reusable base test classes
org.resthub.web - package org.resthub.web
RESThub Web 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
org.resthub.web.validation - package org.resthub.web.validation
 
org.resthub.web.view - package org.resthub.web.view
Custom Json views implementation

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
 
PageResponse.View - Interface in org.resthub.web
 
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
 
PojoView - Class in org.resthub.web.view
 
PojoView(Object, Class<?>) - Constructor for class org.resthub.web.view.PojoView
 
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
 
previousPageable() - Method in class org.resthub.web.PageResponse
 
put(String) - Method in class org.resthub.web.Client.RequestHolder
Perform a PUT request synchronously.
put(InputStream) - Method in class org.resthub.web.Client.RequestHolder
 
put(File) - Method in class org.resthub.web.Client.RequestHolder
 

R

readEntity(Response, Class<T>) - Method in interface org.resthub.web.support.BodyReader
 
readEntity(Response, Class<T>, String) - Method in interface org.resthub.web.support.BodyReader
 
readEntity(Response, TypeReference) - Method in interface org.resthub.web.support.BodyReader
 
readEntity(Response, TypeReference, String) - Method in interface org.resthub.web.support.BodyReader
 
readEntity(Response, Class<T>) - Method in class org.resthub.web.support.JsonBodyReader
 
readEntity(Response, Class<T>, String) - Method in class org.resthub.web.support.JsonBodyReader
 
readEntity(Response, TypeReference) - Method in class org.resthub.web.support.JsonBodyReader
 
readEntity(Response, TypeReference, String) - Method in class org.resthub.web.support.JsonBodyReader
 
readEntity(Response, Class<T>) - Method in class org.resthub.web.support.XmlBodyReader
 
readEntity(Response, Class<T>, String) - Method in class org.resthub.web.support.XmlBodyReader
 
readEntity(Response, TypeReference) - Method in class org.resthub.web.support.XmlBodyReader
 
readEntity(Response, TypeReference, String) - Method in class org.resthub.web.support.XmlBodyReader
 
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(Class<T>, String) - Method in class org.resthub.web.Response
 
resource(TypeReference) - Method in class org.resthub.web.Response
 
resource(TypeReference, String) - Method in class org.resthub.web.Response
 
Response - Class in org.resthub.web
 
Response(Response) - Constructor for class org.resthub.web.Response
 
ResponseView - Annotation Type in org.resthub.common.view
 
RestController<T,ID extends Serializable> - Interface in org.resthub.web.controller
REST controller interface
RestError - Class in org.resthub.common.model
Value object use to serialize REST error messages
RestError(String, int, String, String, String, Throwable) - Constructor for class org.resthub.common.model.RestError
 
RestError.Builder - Class in org.resthub.common.model
 
RestError.Builder() - Constructor for class org.resthub.common.model.RestError.Builder
 
ResthubExceptionHandler - Class in org.resthub.web
RESThub default exception handler for most common exceptions.
ResthubExceptionHandler() - Constructor for class org.resthub.web.ResthubExceptionHandler
 
ResthubPageModule - Class in org.resthub.web.converter
Jackson module.
ResthubPageModule() - Constructor for class org.resthub.web.converter.ResthubPageModule
 
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, Class<?>) - Static method in class org.resthub.web.JsonHelper
Serialize and object to a JSON String representation with a Jackson view
serialize(Object) - Static method in class org.resthub.web.XmlHelper
Serialize and object to an XML String representation
serialize(Object, Class<?>) - Static method in class org.resthub.web.XmlHelper
Serialize and object to a JSON String representation with a Jackson view
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
 
setAttributes(Map<String, Object>) - Method in class org.resthub.web.validation.ValidationConstraint
 
setAuth(String, String, Realm.AuthScheme) - Method in class org.resthub.web.Client
Sets the authentication header for the current client.
setBodyEncoding(String) - Method in class org.resthub.web.Client.RequestHolder
 
setBodyReaders(List<BodyReader>) - Method in class org.resthub.web.support.AsyncEntityHandler
 
setClientId(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
 
setClientId(String) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
setClientSecret(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
 
setClientSecret(String) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
setCode(int) - Method in class org.resthub.common.model.RestError.Builder
 
setConstraints(Map<String, List<ValidationConstraint>>) - Method in class org.resthub.web.validation.ModelConstraint
 
setContent(List<T>) - Method in class org.resthub.web.PageResponse
 
setCredentials(String, String) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
 
setDeveloperMessage(String) - Method in class org.resthub.common.model.RestError.Builder
 
setDsClass(Class<? extends T>) - Method in class org.resthub.jpa.pool.AbstractDataSourceFactory
 
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
setJsonPrefix(String) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
 
setLogStrategy(LogStrategy) - Method in class org.resthub.web.controller.LogController
You can inject another LogStrategy bean in order to customize log handling
setMessage(String) - Method in class org.resthub.common.model.RestError.Builder
 
setMessage(String) - Method in class org.resthub.web.validation.ValidationConstraint
 
setModelRef(String) - Method in class org.resthub.web.validation.ModelConstraint
 
setMoreInfoUrl(String) - Method in class org.resthub.common.model.RestError.Builder
 
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.MappingJackson2XmlHttpMessageConverter
Set the ObjectMapper for this view.
setPassword(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
 
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
setService(ValidationService) - Method in class org.resthub.web.controller.ValidationController
 
setSize(int) - Method in class org.resthub.web.PageResponse
 
setStatus(String) - Method in class org.resthub.common.model.RestError.Builder
 
setStatusCode(int) - Method in exception org.resthub.web.exception.ClientException
 
setThrowable(Throwable) - Method in class org.resthub.common.model.RestError.Builder
 
setTotalElements(long) - Method in class org.resthub.web.PageResponse
 
setTotalPages(int) - Method in class org.resthub.web.PageResponse
 
setType(String) - Method in class org.resthub.web.validation.ValidationConstraint
 
setupModule(Module.SetupContext) - Method in class org.resthub.web.converter.ResthubPageModule
 
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.MappingJackson2XmlHttpMessageConverter
 
supportsReturnType(MethodParameter) - Method in class org.resthub.web.view.ViewInjectingReturnValueHandler
 

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.common.model.RestError
 
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
 
unwrap(Class<T>) - Method in class org.resthub.web.validation.ValidationContext
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

ValidationConstraint - Class in org.resthub.web.validation
Object representation of validation constraints.
ValidationConstraint() - Constructor for class org.resthub.web.validation.ValidationConstraint
 
ValidationContext - Class in org.resthub.web.validation
Specific interpolation context management for resthub validation utilities Allows to manage messages and interpolations related to a ConstraintDescriptor and a value.
ValidationContext(ConstraintDescriptor<?>, Object) - Constructor for class org.resthub.web.validation.ValidationContext
 
ValidationController - Class in org.resthub.web.controller
Exposes dedicated API to export defined validation constraints related to object class name.
ValidationController() - Constructor for class org.resthub.web.controller.ValidationController
 
ValidationService - Interface in org.resthub.web.validation
Provides service methods to export validation constraints configured on a given model object.
ValidationServiceImpl - Class in org.resthub.web.validation
JSR303, BeanValidation compliant implementation of ValidationService.
ValidationServiceImpl() - Constructor for class org.resthub.web.validation.ValidationServiceImpl
 
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.
ViewInjectingReturnValueHandler - Class in org.resthub.web.view
Decorator that detects a declared ResponseView, and injects support if required
ViewInjectingReturnValueHandler(HandlerMethodReturnValueHandler) - Constructor for class org.resthub.web.view.ViewInjectingReturnValueHandler
 

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
 
xmlGet() - Method in class org.resthub.web.Client.RequestHolder
 
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–2014. All rights reserved.