| Package | Description |
|---|---|
| org.cruxframework.crux.core.server.rest.core.dispatch | |
| org.cruxframework.crux.core.server.rest.spi |
| Modifier and Type | Method and Description |
|---|---|
static ResourceMethod.MethodReturn |
RestDispatcher.dispatch(HttpRequest request,
HttpResponse response,
boolean preflightRequest) |
abstract Object |
RestErrorHandler.handleError(InvocationTargetException error)
When an error occurs during a REST service invocation, a RestErrorHandler is called to handle this error.
|
Object |
RestErrorHandlerImpl.handleError(InvocationTargetException e) |
Object |
MethodInvoker.invoke(HttpRequest request,
HttpResponse response,
Object resource) |
protected void |
MethodInvoker.postprocess(HttpRequest request,
HttpResponse response) |
abstract void |
RequestPreprocessor.preprocess(HttpRequest request) |
protected void |
MethodInvoker.preprocess(HttpRequest request) |
| Modifier and Type | Class and Description |
|---|---|
class |
BadRequestException
Thrown when HTTP Bad Request (400) is encountered
|
class |
ForbiddenException
Thrown when HTTP Forbidden (403) is encountered
|
class |
InternalServerErrorException
Thrown when HTTP Internal Service Error (500) is encountered
|
class |
MethodNotAllowedException
Thrown when HTTP Method Not Allowed (405) is encountered
|
class |
NotAcceptableException
Thrown when HTTP Not Acceptable (406) is encountered
|
class |
NotFoundException
Thrown when HTTP Not Found (404) is encountered
|
class |
UnauthorizedException
Thrown when HTTP Unauthorized (401) is encountered
|
class |
UnsupportedMediaTypeException
Thrown when HTTP Not Acceptable (406) is encountered
|
Copyright © 2016. All rights reserved.