| Package | Description |
|---|---|
| org.osgl.mvc | |
| org.osgl.mvc.result |
| Modifier and Type | Method and Description |
|---|---|
static void |
MvcConfig.applyAfterCommitResultHandler(Result result,
org.osgl.http.H.Request<?> req,
org.osgl.http.H.Response<?> resp) |
static void |
MvcConfig.applyBeforeCommitResultHandler(Result result,
org.osgl.http.H.Request req,
org.osgl.http.H.Response resp) |
| Modifier and Type | Method and Description |
|---|---|
static void |
MvcConfig.afterCommitResultHandler(org.osgl.Lang.Func3<Result,org.osgl.http.H.Request<?>,org.osgl.http.H.Response<?>,?> afterCommitResultHandler) |
static void |
MvcConfig.beforeCommitResultHandler(org.osgl.Lang.Func3<Result,org.osgl.http.H.Request<?>,org.osgl.http.H.Response<?>,?> beforeCommitResultHandler) |
| Modifier and Type | Class and Description |
|---|---|
class |
Accepted |
class |
BadGateway
The server was acting as a gateway or proxy and received an invalid response from the upstream server.
|
class |
BadRequest
Indicate a client error
|
class |
Conflict
Indicates that the request could not be processed because of conflict in the request, such as an edit conflict between multiple simultaneous updates.
|
class |
Created |
class |
ErrorResult
Base class for Error results, i.e result with status code between 400 and 600 (excluded)
|
class |
ExpectationFailed
The server cannot meet the requirements of the Expect request-header field.
|
class |
Forbidden
HTTP 403 Forbidden
|
class |
Found |
class |
GatewayTimeout
The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
|
class |
Gone
Indicates that the resource requested is no longer available and will not be available again.
|
class |
InternalServerError
Indicate an internal server error and set 500 status on response
|
class |
MethodNotAllowed
Indicate a 405 Method not allowed response
|
class |
MovedPermanently |
class |
NoContent
Render NO_CONTENT response
|
class |
NoResult
Deprecated.
|
class |
NotAcceptable
The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.
|
class |
NotFound
Indicate a 404 Not found response
|
class |
NotImplemented
Indicate a 501 Not implemented response
|
class |
NotModified |
class |
Ok |
class |
PaymentRequired
Reserved for future use.
|
class |
PermanentRedirect |
class |
PreconditionRequired
The origin server requires the request to be conditional.
|
class |
Redirect |
class |
RedirectBase
Base class for different Redirect result
|
class |
RenderBinary |
class |
RenderContent |
class |
RenderHtml |
class |
RenderJSON |
class |
RenderText
Render a text message
|
class |
RenderXML |
class |
RequestTimeout
The server timed out waiting for the request.
|
class |
SeeOther |
class |
ServerError
Deprecated.
|
class |
ServiceUnavailable
The server is currently unavailable (because it is overloaded or down for maintenance).
|
class |
TemporaryRedirect |
class |
TooManyRequests
The user has sent too many requests in a given amount of time.
|
class |
Unauthorized
HTTP 401 Unauthorized,
|
class |
UnavailableForLegalReasons
A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource.
|
class |
UnsupportedMediaType
The request entity has a media type which the server or resource does not support.
|
| Modifier and Type | Method and Description |
|---|---|
Result |
Result.addCookie(org.osgl.http.H.Cookie cookie) |
Result |
Result.addHeader(String name,
String... values) |
Result |
Result.header(org.osgl.http.H.Header header) |
Result |
Result.status(org.osgl.http.H.Status status) |
Copyright © 2014–2018 OSGL (Open Source General Library). All rights reserved.