public class Result
extends org.osgl.exception.FastRuntimeException
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Result.Payload |
| Modifier and Type | Field and Description |
|---|---|
protected static ThreadLocal<Result.Payload> |
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 |
|---|---|
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 |
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() |
protected Result.Payload |
payload() |
org.osgl.http.H.Status |
status() |
Result |
status(org.osgl.http.H.Status status) |
int |
statusCode() |
doFillInStackTrace, fillInStackTraceaddSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected static final ThreadLocal<Result.Payload> payload
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,
Throwable cause)
protected Result.Payload payload()
public org.osgl.http.H.Status status()
public int statusCode()
public Result status(org.osgl.http.H.Status status)
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 © 2017. All Rights Reserved.