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

A

addAttribute(String, Object) - Method in class org.resthub.web.validation.ValidationConstraint
 
addConstraint(String, ValidationConstraint) - Method in class org.resthub.web.validation.ModelConstraint
 
afterPropertiesSet() - Method in class org.resthub.web.view.JsonViewSupportFactoryBean
 

B

browser - Variable in class org.resthub.web.log.Log
 

C

canRead(Class<?>, MediaType) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
 
canRead(Class<?>, MediaType) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
 
canWrite(Class<?>, MediaType) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
 
canWrite(Class<?>, MediaType) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
 
context - Variable in class org.resthub.web.log.Log
 
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 /

D

DEFAULT_CHARSET - Static variable in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
 
DEFAULT_CHARSET - Static variable in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
 
DefaultLogStrategy - Class in org.resthub.web.log
Default log strategy
DefaultLogStrategy() - Constructor for class org.resthub.web.log.DefaultLogStrategy
 
delete() - 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

F

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 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, 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?

G

getAttributes() - Method in class org.resthub.web.validation.ValidationConstraint
 
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
 
getConstraintsForClass(Class<?>, Locale) - Method in interface org.resthub.web.validation.ValidationService
 
getConstraintsForClass(Class<?>) - Method in class org.resthub.web.validation.ValidationServiceImpl
 
getConstraintsForClass(Class<?>, Locale) - Method in class org.resthub.web.validation.ValidationServiceImpl
 
getConstraintsForClassName(String, String) - Method in class org.resthub.web.controller.ValidationController
 
getConstraintsForClassName(String) - Method in interface org.resthub.web.validation.ValidationService
 
getConstraintsForClassName(String, Locale) - Method in interface org.resthub.web.validation.ValidationService
 
getConstraintsForClassName(String) - Method in class org.resthub.web.validation.ValidationServiceImpl
 
getConstraintsForClassName(String, Locale) - Method in class org.resthub.web.validation.ValidationServiceImpl
 
getData() - Method in class org.resthub.web.view.PojoView
 
getJavaType(Class<?>) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
Return the Jackson JavaType for the specified class.
getJavaType(Class<?>) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
Return the Jackson JavaType for the specified class.
getJsonEncoding(MediaType) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
Determine the JSON encoding to use for the given content type.
getJsonEncoding(MediaType) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
Determine the JSON encoding to use for the given content type.
getMessage() - Method in class org.resthub.web.validation.ValidationConstraint
 
getModelRef() - Method in class org.resthub.web.validation.ModelConstraint
 
getObjectMapper() - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
Return the underlying ObjectMapper for this view.
getObjectMapper() - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
Return the underlying ObjectMapper for this view.
getOrder() - Method in class org.resthub.web.LoggingHandlerExceptionResolver
 
getType() - Method in class org.resthub.web.validation.ValidationConstraint
 
getValidatedValue() - Method in class org.resthub.web.validation.ValidationContext
 
getView() - Method in class org.resthub.web.view.PojoView
 

H

handleCustomException(Exception, WebRequest) - Method in class org.resthub.web.ResthubExceptionHandler
 
handleIllegalArgument(IllegalArgumentException, HttpHeaders, HttpStatus, WebRequest) - Method in class org.resthub.web.ResthubExceptionHandler
 
handleNotFound(NotFoundException, HttpHeaders, HttpStatus, WebRequest) - Method in class org.resthub.web.ResthubExceptionHandler
 
handleNotImplemented(NotImplementedException, HttpHeaders, HttpStatus, WebRequest) - Method in class org.resthub.web.ResthubExceptionHandler
 
handleReturnValue(Object, MethodParameter, ModelAndViewContainer, NativeWebRequest) - Method in class org.resthub.web.view.ViewInjectingReturnValueHandler
 
handleValidation(ValidationException, HttpHeaders, HttpStatus, WebRequest) - Method in class org.resthub.web.ResthubExceptionHandler
 
hasView() - Method in class org.resthub.web.view.PojoView
 

J

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 - Variable in class org.resthub.web.controller.RepositoryBasedRestController
 
logger - Variable in class org.resthub.web.LoggingHandlerExceptionResolver
 
LoggingHandlerExceptionResolver - Class in org.resthub.web
ExceptionResolver responsible for logging exception
LoggingHandlerExceptionResolver() - Constructor for class org.resthub.web.LoggingHandlerExceptionResolver
 
logInfo(Log) - Method in class org.resthub.web.log.DefaultLogStrategy
 
logInfo(Log) - Method in interface org.resthub.web.log.LogStrategy
 
LogLevel - Enum in org.resthub.web.log
 
Logs - Class in org.resthub.web.log
 
Logs(int) - Constructor for class org.resthub.web.log.Logs
 
Logs() - Constructor for class org.resthub.web.log.Logs
 
Logs(Collection<? extends Log>) - Constructor for class org.resthub.web.log.Logs
 
LogStrategy - Interface in org.resthub.web.log
Implement this interface to define the behaviour of the log controller
logWarn(Log) - Method in class org.resthub.web.log.DefaultLogStrategy
 
logWarn(Log) - Method in interface org.resthub.web.log.LogStrategy
 

M

MappingJackson2JsonHttpMessageConverter - Class in org.resthub.web.converter
Implementation of HttpMessageConverter that can read and write JSON using Jackson 2's ObjectMapper.
MappingJackson2JsonHttpMessageConverter() - Constructor for class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
Construct a new BindingJacksonHttpMessageConverter.
MappingJackson2XmlHttpMessageConverter - Class in org.resthub.web.converter
Implementation of HttpMessageConverter that can read and write JSON using Jackson 2's ObjectMapper.
MappingJackson2XmlHttpMessageConverter() - Constructor for class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
Construct a new BindingJacksonHttpMessageConverter.
message - Variable in class org.resthub.web.log.Log
 
ModelConstraint - Class in org.resthub.web.validation
 
ModelConstraint(String) - Constructor for class org.resthub.web.validation.ModelConstraint
 

O

org.resthub.web - package org.resthub.web
REST webservices root package
org.resthub.web.controller - package org.resthub.web.controller
REST controllers
org.resthub.web.converter - package org.resthub.web.converter
Spring converter used for serialization and deserialization
org.resthub.web.log - package org.resthub.web.log
Client logging management
org.resthub.web.validation - package org.resthub.web.validation
 
org.resthub.web.view - package org.resthub.web.view
Custom Json views implementation

P

PojoView - Class in org.resthub.web.view
 
PojoView(Object, Class<?>) - Constructor for class org.resthub.web.view.PojoView
 

R

readInternal(Class<?>, HttpInputMessage) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
 
readInternal(Class<?>, HttpInputMessage) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
 
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
 
resolveException(HttpServletRequest, HttpServletResponse, Object, Exception) - Method in class org.resthub.web.LoggingHandlerExceptionResolver
 
RestController<T,ID extends Serializable> - Interface in org.resthub.web.controller
REST controller interface
ResthubExceptionHandler - Class in org.resthub.web
RESThub default exception handler for most common exceptions.
ResthubExceptionHandler() - Constructor for class org.resthub.web.ResthubExceptionHandler
 

S

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
 
setAttributes(Map<String, Object>) - Method in class org.resthub.web.validation.ValidationConstraint
 
setConstraints(Map<String, List<ValidationConstraint>>) - Method in class org.resthub.web.validation.ModelConstraint
 
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.web.validation.ValidationConstraint
 
setModelRef(String) - Method in class org.resthub.web.validation.ModelConstraint
 
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.
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.
setRepository(R) - Method in class org.resthub.web.controller.RepositoryBasedRestController
You should override this setter in order to inject your repository with @Inject annotation
setService(S) - Method in class org.resthub.web.controller.ServiceBasedRestController
You should override this setter in order to inject your service with @Inject annotation
setType(String) - Method in class org.resthub.web.validation.ValidationConstraint
 
supports(Class<?>) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
 
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
 

U

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}

V

ValidationConstraint - Class in org.resthub.web.validation
 
ValidationConstraint() - Constructor for class org.resthub.web.validation.ValidationConstraint
 
ValidationContext - Class in org.resthub.web.validation
 
ValidationContext(ConstraintDescriptor<?>, Object) - Constructor for class org.resthub.web.validation.ValidationContext
 
ValidationController - Class in org.resthub.web.controller
 
ValidationController() - Constructor for class org.resthub.web.controller.ValidationController
 
ValidationService - Interface in org.resthub.web.validation
 
ValidationServiceImpl - Class in org.resthub.web.validation
 
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

writeInternal(Object, HttpOutputMessage) - Method in class org.resthub.web.converter.MappingJackson2JsonHttpMessageConverter
 
writeInternal(Object, HttpOutputMessage) - Method in class org.resthub.web.converter.MappingJackson2XmlHttpMessageConverter
 
A B C D F G H J L M O P R S T U V W 

Copyright © 2009-2013. All Rights Reserved.