public class Result
extends org.osgl.exception.FastRuntimeException
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Result.Payload |
| Modifier | Constructor and Description |
|---|---|
protected |
Result() |
protected |
Result(org.osgl.http.H.Status status) |
protected |
Result(org.osgl.http.H.Status status,
String message) |
protected |
Result(org.osgl.http.H.Status status,
String message,
Object... args) |
protected |
Result(org.osgl.http.H.Status status,
Throwable cause) |
protected |
Result(org.osgl.http.H.Status status,
Throwable cause,
String message,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
Result |
addCookie(org.osgl.http.H.Cookie cookie) |
Result |
addHeader(String name,
String... values) |
void |
apply(org.osgl.http.H.Request req,
org.osgl.http.H.Response resp) |
protected void |
applyAfterCommitHandler(org.osgl.http.H.Request req,
org.osgl.http.H.Response resp) |
protected void |
applyBeforeCommitHandler(org.osgl.http.H.Request req,
org.osgl.http.H.Response resp) |
protected void |
applyCookies(org.osgl.http.H.Response response) |
protected void |
applyHeaders(org.osgl.http.H.Response response) |
protected void |
applyMessage(org.osgl.http.H.Request request,
org.osgl.http.H.Response response) |
protected void |
applyStatus(org.osgl.http.H.Response response) |
static void |
clearThreadLocals() |
Result |
header(org.osgl.http.H.Header header) |
protected static Result.Payload |
payload() |
org.osgl.http.H.Status |
status() |
Result |
status(org.osgl.http.H.Status status) |
int |
statusCode() |
long |
timestamp() |
protected static Result.Payload |
touchPayload() |
doFillInStackTrace, fillInStackTraceaddSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected Result()
protected Result(org.osgl.http.H.Status status)
protected Result(org.osgl.http.H.Status status,
String message)
protected Result(org.osgl.http.H.Status status,
Throwable cause)
protected static Result.Payload payload()
protected static Result.Payload touchPayload()
public org.osgl.http.H.Status status()
public int statusCode()
public Result status(org.osgl.http.H.Status status)
public long timestamp()
public Result header(org.osgl.http.H.Header header)
public Result addCookie(org.osgl.http.H.Cookie cookie)
protected final void applyHeaders(org.osgl.http.H.Response response)
protected final void applyCookies(org.osgl.http.H.Response response)
protected final void applyStatus(org.osgl.http.H.Response response)
protected final void applyBeforeCommitHandler(org.osgl.http.H.Request req,
org.osgl.http.H.Response resp)
protected final void applyAfterCommitHandler(org.osgl.http.H.Request req,
org.osgl.http.H.Response resp)
protected void applyMessage(org.osgl.http.H.Request request,
org.osgl.http.H.Response response)
public void apply(org.osgl.http.H.Request req,
org.osgl.http.H.Response resp)
public static void clearThreadLocals()
Copyright © 2014–2018 OSGL (Open Source General Library). All rights reserved.