- AbstractTest - Class in org.resthub.test
-
Base class for your non transactional Spring aware unit tests
ContextConfiguration is preconfigured to scan your applicationContext.xml
files from classpath
- AbstractTest() - Constructor for class org.resthub.test.AbstractTest
-
- AbstractTransactionalTest - Class in org.resthub.test
-
Base class for your transactional unit tests, preconfigure Spring test
framework It is suitable for your DAO unit tests, that need to be
transactional ContextConfiguration is preconfigured to scan your
applicationContext.xml files from classpath
- AbstractTransactionalTest() - Constructor for class org.resthub.test.AbstractTransactionalTest
-
- AbstractWebTest - Class in org.resthub.test
-
Base class for your webservice tests, based on Jetty and with preconfigured Spring configuration.
- AbstractWebTest() - Constructor for class org.resthub.test.AbstractWebTest
-
Default constructor
- AbstractWebTest(String) - Constructor for class org.resthub.test.AbstractWebTest
-
Constructor allowing to specify Spring active profiles
- AbstractWebTest(int) - Constructor for class org.resthub.test.AbstractWebTest
-
Constructor allowing to specify HTTP port used to run the server
- AbstractWebTest(String, int) - Constructor for class org.resthub.test.AbstractWebTest
-
Constructor allowing to specify Spring active profiles and HTTP port used to run the server
- ACCEPT - Static variable in class org.resthub.web.Http
-
Accept header name, define response content type
- accessToken - Variable in class org.resthub.web.oauth2.OAuth2Token
-
The access token issued by the authorization server.
- accessTokenEndpoint - Variable in class org.resthub.web.oauth2.OAuth2Config
-
- accessTokenEndPoint - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
-
- acquireTime - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
-
- activeProfiles - Variable in class org.resthub.test.AbstractWebTest
-
List of Spring profiles (use comma separator) to activate
For example "resthub-web-server,resthub-jpa"
- addBodyReader(BodyReader) - Method in class org.resthub.web.Client
-
Add a candidate BodyReader to read an HTTP response body to an object
- addBodyReader(BodyReader) - Method in class org.resthub.web.Response
-
- addBodyReader(BodyReader) - Method in class org.resthub.web.support.AsyncEntityHandler
-
- addBodyReaders(List<BodyReader>) - Method in class org.resthub.web.Response
-
- addBodyWriter(BodyWriter) - Method in class org.resthub.web.Client
-
Add a candidate BodyWriter to serialize an object to an HTTP response
body
- addCookie(Cookie) - Method in class org.resthub.web.Client.RequestHolder
-
Adds a cookie
- afterClass() - Method in class org.resthub.test.AbstractWebTest
-
- annotationBasedConfig - Variable in class org.resthub.test.AbstractWebTest
-
When set to true, activate Spring 3.1 JavaConfig based configuration, by setting context param contextClass to org.springframework.web.context.support.AnnotationConfigWebApplicationContext
- asyncDelete() - Method in class org.resthub.web.Client.RequestHolder
-
Perform a DELETE on the request asynchronously.
- AsyncEntityHandler - Class in org.resthub.web.support
-
- AsyncEntityHandler() - Constructor for class org.resthub.web.support.AsyncEntityHandler
-
- asyncGet() - Method in class org.resthub.web.Client.RequestHolder
-
Perform a GET request asynchronously.
- asyncGetJson() - Method in class org.resthub.web.Client.RequestHolder
-
- asyncGetXml() - Method in class org.resthub.web.Client.RequestHolder
-
- asyncHead() - Method in class org.resthub.web.Client.RequestHolder
-
Perform a HEAD on the request asynchronously.
- asyncJsonPost(Object) - Method in class org.resthub.web.Client.RequestHolder
-
- asyncJsonPut(Object) - Method in class org.resthub.web.Client.RequestHolder
-
- asyncOption() - Method in class org.resthub.web.Client.RequestHolder
-
Perform a OPTION on the request asynchronously.
- asyncPost(String) - Method in class org.resthub.web.Client.RequestHolder
-
Perform a POST request asynchronously.
- asyncPost() - Method in class org.resthub.web.Client.RequestHolder
-
- asyncPost(InputStream) - Method in class org.resthub.web.Client.RequestHolder
-
- asyncPost(File) - Method in class org.resthub.web.Client.RequestHolder
-
- asyncPut(String) - Method in class org.resthub.web.Client.RequestHolder
-
Perform a PUT request asynchronously.
- asyncPut(InputStream) - Method in class org.resthub.web.Client.RequestHolder
-
- asyncPut(File) - Method in class org.resthub.web.Client.RequestHolder
-
- asyncXmlPost(Object) - Method in class org.resthub.web.Client.RequestHolder
-
- asyncXmlPut(Object) - Method in class org.resthub.web.Client.RequestHolder
-
- AUTHORIZATION - Static variable in class org.resthub.web.Http
-
Authorization header name
- canRead(Class<?>, MediaType) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
-
- canRead(Class<?>, MediaType) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
-
- canRead(Response) - Method in interface org.resthub.web.support.BodyReader
-
- canRead(Response) - Method in class org.resthub.web.support.JsonBodyReader
-
- canRead(Response) - Method in class org.resthub.web.support.XmlBodyReader
-
- canWrite(Class<?>, MediaType) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
-
- canWrite(Class<?>, MediaType) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
-
- canWrite(String) - Method in interface org.resthub.web.support.BodyWriter
-
- canWrite(String) - Method in class org.resthub.web.support.JsonBodyWriter
-
- canWrite(String) - Method in class org.resthub.web.support.XmlBodyWriter
-
- ClassUtils - Class in org.resthub.common.util
-
Utility class to work with classes.
- client - Variable in class org.resthub.test.AbstractWebTest
-
RESThub http client used to send test requests
- Client - Class in org.resthub.web
-
RESThub AsyncHttpClient wrapper inspired from Play!
- Client() - Constructor for class org.resthub.web.Client
-
Create an HTTP client with default configuration
- Client(AsyncHttpClientConfig.Builder) - Constructor for class org.resthub.web.Client
-
Create an HTTP client with a pre-configured Builder
- client - Variable in class org.resthub.web.Client
-
- Client.Request - Class in org.resthub.web
-
Provides the bridge between the wrapper and the underlying ning request
- Client.Request(String) - Constructor for class org.resthub.web.Client.Request
-
- Client.RequestHolder - Class in org.resthub.web
-
provides the User facing API for building WS request.
- Client.RequestHolder(String) - Constructor for class org.resthub.web.Client.RequestHolder
-
- CLIENT_ID_PARAMETER_NAME - Static variable in class org.resthub.web.oauth2.OAuth2RequestFilter
-
- CLIENT_SECRET_PARAMETER_NAME - Static variable in class org.resthub.web.oauth2.OAuth2RequestFilter
-
- ClientException - Exception in org.resthub.web.exception
-
Base exception class for HTTP error requests
- ClientException() - Constructor for exception org.resthub.web.exception.ClientException
-
- ClientException(int) - Constructor for exception org.resthub.web.exception.ClientException
-
- ClientException(int, String) - Constructor for exception org.resthub.web.exception.ClientException
-
- ClientException(String, Throwable) - Constructor for exception org.resthub.web.exception.ClientException
-
- ClientException(String) - Constructor for exception org.resthub.web.exception.ClientException
-
- ClientException(Throwable) - Constructor for exception org.resthub.web.exception.ClientException
-
- ClientExceptionFactory - Class in org.resthub.web.exception
-
- ClientExceptionFactory() - Constructor for class org.resthub.web.exception.ClientExceptionFactory
-
- clientId - Variable in class org.resthub.web.oauth2.OAuth2Config
-
- clientId - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
-
- clientSecret - Variable in class org.resthub.web.oauth2.OAuth2Config
-
- clientSecret - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
-
- close() - Method in class org.resthub.web.Client
-
- CONFLICT - Static variable in class org.resthub.web.Http
-
CONFLICT HTTP status code value
- ConflictClientException - Exception in org.resthub.web.exception
-
Exception mapped to Conflict HTTP status code (409)
- ConflictClientException() - Constructor for exception org.resthub.web.exception.ConflictClientException
-
- ConflictClientException(String, Throwable) - Constructor for exception org.resthub.web.exception.ConflictClientException
-
- ConflictClientException(String) - Constructor for exception org.resthub.web.exception.ConflictClientException
-
- ConflictClientException(Throwable) - Constructor for exception org.resthub.web.exception.ConflictClientException
-
- content - Variable in class org.resthub.web.PageResponse
-
- CONTENT_TYPE - Static variable in class org.resthub.web.Http
-
Content type header name, define request content type
- context - Variable in class org.resthub.web.log.Log
-
- contextLocations - Variable in class org.resthub.test.AbstractWebTest
-
Default Spring contexts imported.
- count() - Method in interface org.resthub.common.service.CrudService
-
Count all resources.
- count() - Method in class org.resthub.common.service.CrudServiceImpl
-
Count all resources.
- create(T) - Method in interface org.resthub.common.service.CrudService
-
Create new resource.
- create(T) - Method in class org.resthub.common.service.CrudServiceImpl
-
Create new resource.
- create(T) - Method in class org.resthub.web.controller.RepositoryBasedRestController
-
Create a new resource
REST webservice published : POST /
- create(T) - Method in interface org.resthub.web.controller.RestController
-
Create a new resource
REST webservice published : POST /
- create(T) - Method in class org.resthub.web.controller.ServiceBasedRestController
-
Create a new resource
REST webservice published : POST /
- CREATED - Static variable in class org.resthub.web.Http
-
CREATED HTTP status code value
- createHttpExceptionFromStatusCode(int) - Static method in class org.resthub.web.exception.ClientExceptionFactory
-
- createHttpExceptionFromStatusCode(int, String) - Static method in class org.resthub.web.exception.ClientExceptionFactory
-
- CrudService<T,ID extends Serializable> - Interface in org.resthub.common.service
-
Crud Service interface.
- CrudServiceImpl<T,ID extends Serializable,R extends org.springframework.data.repository.PagingAndSortingRepository<T,ID>> - Class in org.resthub.common.service
-
Crud service that uses a repository implementation
You should extend it and inject your Repository bean by overriding setRepository
- CrudServiceImpl() - Constructor for class org.resthub.common.service.CrudServiceImpl
-
- customizeContextHandler(ServletContextHandler) - Method in class org.resthub.test.AbstractWebTest
-
You should override it in order to customize the servlet context handler
- DEFAULT_CHARSET - Static variable in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
-
- DEFAULT_CHARSET - Static variable in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
-
- DefaultLogStrategy - Class in org.resthub.web.log
-
Default log strategy
- DefaultLogStrategy() - Constructor for class org.resthub.web.log.DefaultLogStrategy
-
- delete(T) - Method in interface org.resthub.common.service.CrudService
-
Delete existing resource.
- delete(ID) - Method in interface org.resthub.common.service.CrudService
-
Delete existing resource.
- delete(T) - Method in class org.resthub.common.service.CrudServiceImpl
-
Delete existing resource.
- delete(ID) - Method in class org.resthub.common.service.CrudServiceImpl
-
Delete existing resource.
- delete() - Method in class org.resthub.web.Client.RequestHolder
-
- delete() - Method in class org.resthub.web.controller.RepositoryBasedRestController
-
Delete all resources
REST webservice published : DELETE /
Return No Content http status code if the request has been correctly processed
- delete(ID) - Method in class org.resthub.web.controller.RepositoryBasedRestController
-
Delete a resource by its identifier
REST webservice published : DELETE /{id}
Return No Content http status code if the request has been correctly processed
- delete() - Method in interface org.resthub.web.controller.RestController
-
Delete all resources
REST webservice published : DELETE /
Return No Content http status code if the request has been correctly processed
- delete(ID) - Method in interface org.resthub.web.controller.RestController
-
Delete a resource by its identifier
REST webservice published : DELETE /{id}
Return No Content http status code if the request has been correctly processed
- delete() - Method in class org.resthub.web.controller.ServiceBasedRestController
-
Delete all resources
REST webservice published : DELETE /
Return No Content http status code if the request has been correctly processed
- delete(ID) - Method in class org.resthub.web.controller.ServiceBasedRestController
-
Delete a resource by its identifier
REST webservice published : DELETE /{id}
Return No Content http status code if the request has been correctly processed
- deleteAll() - Method in interface org.resthub.common.service.CrudService
-
Delete all existing resource.
- deleteAll() - Method in class org.resthub.common.service.CrudServiceImpl
-
Delete all existing resource.
- deleteAllWithCascade() - Method in interface org.resthub.common.service.CrudService
-
Delete all existing resource, including linked entities with cascade delete
- deleteAllWithCascade() - Method in class org.resthub.common.service.CrudServiceImpl
-
Delete all existing resource, including linked entities with cascade delete
- deserialize(String, Class<T>) - Static method in class org.resthub.web.JsonHelper
-
Deserialize a JSON string
- deserialize(String, TypeReference) - Static method in class org.resthub.web.JsonHelper
-
Deserialize a JSON string
- deserialize(String, Class<T>) - Static method in class org.resthub.web.XmlHelper
-
Deserialize a XML string
- deserialize(String, TypeReference) - Static method in class org.resthub.web.XmlHelper
-
Deserialize a XML string
- doResolveException(HttpServletRequest, HttpServletResponse, Object, Exception) - Method in class org.resthub.jpa.JpaHandlerExceptionResolver
-
- doResolveException(HttpServletRequest, HttpServletResponse, Object, Exception) - Method in class org.resthub.web.ResthubHandlerExceptionResolver
-
- filter(FilterContext) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
-
- findAll() - Method in interface org.resthub.common.service.CrudService
-
Find all resources.
- findAll(Pageable) - Method in interface org.resthub.common.service.CrudService
-
Find all resources (pageable).
- findAll() - Method in class org.resthub.common.service.CrudServiceImpl
-
Find all resources.
- findAll(Pageable) - Method in class org.resthub.common.service.CrudServiceImpl
-
Find all resources (pageable).
- findAll() - Method in class org.resthub.web.controller.RepositoryBasedRestController
-
Find all resources, and return the full collection (plain list not paginated)
REST webservice published : GET /?
- findAll() - Method in interface org.resthub.web.controller.RestController
-
Find all resources, and return the full collection (plain list not paginated)
REST webservice published : GET /?
- findAll() - Method in class org.resthub.web.controller.ServiceBasedRestController
-
Find all resources, and return the full collection (plain list not paginated)
REST webservice published : GET /?
- findAllXml() - Method in class org.resthub.web.controller.RepositoryBasedRestController
-
XML findAll is currently unimplemented, see https://github.com/FasterXML/jackson-dataformat-xml/issues/38 for more details
- findAllXml() - Method in interface org.resthub.web.controller.RestController
-
XML findAll is currently unimplemented, see https://github.com/FasterXML/jackson-dataformat-xml/issues/38 for more details
- findAllXml() - Method in class org.resthub.web.controller.ServiceBasedRestController
-
XML findAll is currently unimplemented, see https://github.com/FasterXML/jackson-dataformat-xml/issues/38 for more details
- findById(ID) - Method in interface org.resthub.common.service.CrudService
-
Find resource by id.
- findById(ID) - Method in class org.resthub.common.service.CrudServiceImpl
-
Find resource by id.
- findById(ID) - Method in class org.resthub.web.controller.RepositoryBasedRestController
-
Find a resource by its identifier
REST webservice published : GET /{id}
- findById(ID) - Method in interface org.resthub.web.controller.RestController
-
Find a resource by its identifier
REST webservice published : GET /{id}
- findById(ID) - Method in class org.resthub.web.controller.ServiceBasedRestController
-
Find a resource by its identifier
REST webservice published : GET /{id}
- findPaginated(Integer, Integer) - Method in class org.resthub.web.controller.RepositoryBasedRestController
-
Find all resources, and return a paginated collection
REST webservice published : GET /search?
- findPaginated(Integer, Integer) - Method in interface org.resthub.web.controller.RestController
-
Find all resources, and return a paginated collection
REST webservice published : GET /search?
- findPaginated(Integer, Integer) - Method in class org.resthub.web.controller.ServiceBasedRestController
-
Find all resources, and return a paginated collection
REST webservice published : GET /search?
- FORBIDDEN - Static variable in class org.resthub.web.Http
-
FORBIDDEN HTTP status code value
- ForbiddenClientException - Exception in org.resthub.web.exception
-
Exception mapped to forbidden Request HTTP status code (403)
- ForbiddenClientException() - Constructor for exception org.resthub.web.exception.ForbiddenClientException
-
- ForbiddenClientException(String, Throwable) - Constructor for exception org.resthub.web.exception.ForbiddenClientException
-
- ForbiddenClientException(String) - Constructor for exception org.resthub.web.exception.ForbiddenClientException
-
- ForbiddenClientException(Throwable) - Constructor for exception org.resthub.web.exception.ForbiddenClientException
-
- FORM - Static variable in class org.resthub.web.Http
-
Form content type value, can be used for Accept or Content-type header
- FOUND - Static variable in class org.resthub.web.Http
-
FOUND HTTP status code value
- scheme_name - Variable in class org.resthub.web.oauth2.OAuth2RequestFilter
-
- scope - Variable in class org.resthub.web.oauth2.OAuth2Token
-
The scope of the access token as a list of space-delimited strings.
- SCOPE_PARAMETER_NAME - Static variable in class org.resthub.web.oauth2.OAuth2RequestFilter
-
- SerializationException - Exception in org.resthub.web.exception
-
- SerializationException() - Constructor for exception org.resthub.web.exception.SerializationException
-
- SerializationException(String, Throwable) - Constructor for exception org.resthub.web.exception.SerializationException
-
- SerializationException(String) - Constructor for exception org.resthub.web.exception.SerializationException
-
- SerializationException(Throwable) - Constructor for exception org.resthub.web.exception.SerializationException
-
- serialize(Object) - Static method in class org.resthub.web.JsonHelper
-
Serialize and object to a JSON String representation
- serialize(Object) - Static method in class org.resthub.web.XmlHelper
-
Serialize and object to an XML String representation
- server - Variable in class org.resthub.test.AbstractWebTest
-
Class specific Jetty embedded server that will run your application
- service - Variable in class org.resthub.web.controller.ServiceBasedRestController
-
- ServiceBasedRestController<T,ID extends Serializable,S extends CrudService> - Class in org.resthub.web.controller
-
Abstract REST controller using a service implementation
You should extend this class when you want to use a 3 layers pattern : Repository, Service and Controller
If you don't have a real service (also called business layer), consider using RepositoryBasedRestController
Default implementation uses "id" field (usually a Long) in order to identify resources in web request.
- ServiceBasedRestController() - Constructor for class org.resthub.web.controller.ServiceBasedRestController
-
- servletContextHandlerOption - Variable in class org.resthub.test.AbstractWebTest
-
- setAccessToken(String) - Method in class org.resthub.web.oauth2.OAuth2Token
-
- setAccessTokenEndpoint(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
-
- setAccessTokenEndPoint(String) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
-
- setAuth(String, String, Realm.AuthScheme) - Method in class org.resthub.web.Client
-
Sets the authentication header for the current client.
- setBodyReaders(List<BodyReader>) - Method in class org.resthub.web.support.AsyncEntityHandler
-
- setClientId(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
-
- setClientId(String) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
-
- setClientSecret(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
-
- setClientSecret(String) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
-
- setContent(List<T>) - Method in class org.resthub.web.PageResponse
-
- setCredentials(String, String) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
-
- setExpiresIn(Integer) - Method in class org.resthub.web.oauth2.OAuth2Token
-
- setHeader(String, String) - Method in class org.resthub.web.Client.RequestHolder
-
Sets a header with the given name, this can be called repeatedly
- setLogStrategy(LogStrategy) - Method in class org.resthub.web.controller.LogController
-
You can inject another LogStrategy bean in order to customize log handling
- setNumber(int) - Method in class org.resthub.web.PageResponse
-
- setNumberOfElements(int) - Method in class org.resthub.web.PageResponse
-
- setOAuth2(String, String, String, String, String) - Method in class org.resthub.web.Client
-
Sets the OAuth2 authentication header for the current client.
- setOAuth2Builder(OAuth2Config.Builder) - Method in class org.resthub.web.Client
-
Set the given OAuth2Config builder for this client.
- setOAuth2Scheme(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
-
- setObjectMapper(ObjectMapper) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
-
Set the ObjectMapper
for this view.
- setObjectMapper(ObjectMapper) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
-
Set the ObjectMapper
for this view.
- setPassword(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
-
- setPrefixJson(boolean) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
-
Indicate whether the JSON output by this view should be prefixed with "{} &&".
- setPrettyPrint(boolean) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
-
Whether to use the DefaultPrettyPrinter
when writing JSON.
- setPrettyPrint(boolean) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
-
Whether to use the DefaultPrettyPrinter
when writing XML.
- setProxy(String, int) - Method in class org.resthub.web.Client
-
Set HTTP proxy configuration
- setQueryParameter(String, String) - Method in class org.resthub.web.Client.RequestHolder
-
Sets a query parameter with the given name,this can be called
repeatedly
- setRefreshToken(String) - Method in class org.resthub.web.oauth2.OAuth2Token
-
- setRefreshTokenEndpoint(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
-
- setRepository(R) - Method in class org.resthub.common.service.CrudServiceImpl
-
- setRepository(R) - Method in class org.resthub.web.controller.RepositoryBasedRestController
-
You should override this setter in order to inject your repository with @Inject annotation
- setSchemeName(String) - Method in class org.resthub.web.oauth2.OAuth2RequestFilter
-
- setScope(String) - Method in class org.resthub.web.oauth2.OAuth2Token
-
- setService(S) - Method in class org.resthub.web.controller.ServiceBasedRestController
-
You should override this setter in order to inject your service with @Inject annotation
- setSize(int) - Method in class org.resthub.web.PageResponse
-
- setStatusCode(int) - Method in exception org.resthub.web.exception.ClientException
-
- setTotalElements(long) - Method in class org.resthub.web.PageResponse
-
- setTotalPages(int) - Method in class org.resthub.web.PageResponse
-
- setUsername(String) - Method in class org.resthub.web.oauth2.OAuth2Config.Builder
-
- size - Variable in class org.resthub.web.PageResponse
-
- startServerOnce - Variable in class org.resthub.test.AbstractWebTest
-
Specify if the embedded Jetty server should run once (true, default value) or for each class (false)
- supports(Class<?>) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
-
- supports(Class<?>) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
-