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. |
addCookie, addHeader, applyAfterCommitHandler, applyBeforeCommitHandler, applyCookies, applyHeaders, applyMessage, applyStatus, clearThreadLocals, header, payload, status, status, statusCode, timestamp, touchPayloaddoFillInStackTrace, fillInStackTraceaddSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final NotModified INSTANCE
The static NotModified result
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()
Returns the static NotModified instance
public 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.
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)
Returns a static NotModified instance which when calling on 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 © 2014–2018 OSGL (Open Source General Library). All rights reserved.