public class NotModified extends Result
Result.Payload| Modifier and Type | Field and Description |
|---|---|
static NotModified |
INSTANCE
The static NotModified result
|
| Constructor and Description |
|---|
NotModified() |
NotModified(String etag) |
NotModified(String etag,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(org.osgl.http.H.Request req,
org.osgl.http.H.Response resp) |
protected String |
etag() |
static NotModified |
get()
Returns the
static NotModified instance |
static NotModified |
of(String etag)
Returns a static NotModified instance which when calling on
etag() method, will return whatever stored in the
Result.payload thread local. |
static NotModified |
of(String etag,
Object... args)
Returns a static NotModified instance which when calling on
etag() method, will return whatever stored in the
Result.payload thread local. |
applyAfterCommitHandler, applyBeforeCommitHandler, applyMessage, applyStatus, clearThreadLocals, payload, status, status, statusCodedoFillInStackTrace, fillInStackTraceaddSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final NotModified INSTANCE
public NotModified()
public NotModified(String etag)
protected String etag()
public void apply(org.osgl.http.H.Request req,
org.osgl.http.H.Response resp)
public static NotModified get()
static NotModified instancepublic static NotModified of(String etag)
etag() method, will return whatever stored in the
Result.payload thread local.
Before return the static instance, the specified etag will
be stored into the Result.payload thread local
etag - the etagpublic static NotModified of(String etag, Object... args)
etag() method, will return whatever stored in the
Result.payload thread local.
Before return the static instance, the specified etag will
be stored into the Result.payload thread local
etag - the etagargs - the args used to populate the etagCopyright © 2017. All Rights Reserved.