- 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
-
- 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
- callConstructor(Class<? extends T>, Properties) - Method in class org.resthub.jpa.pool.AbstractDataSourceFactory
-
- 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
-
- 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
- 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
- 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
- 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
-
- 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
-