protected static class Result.Payload
extends org.osgl.util.KVStore
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
Object |
attachment |
Throwable |
cause |
org.osgl.Lang.Visitor<Writer> |
contentWriter |
Integer |
errorCode |
String |
etag |
org.osgl.http.H.Format |
format |
String |
message |
Boolean |
outputEncoding |
org.osgl.http.H.Status |
status |
org.osgl.Lang.Func0<String> |
stringContentProducer |
long |
timestamp |
| Modifier | Constructor and Description |
|---|---|
protected |
Payload() |
| Modifier and Type | Method and Description |
|---|---|
Result.Payload |
attach(Object attachment) |
Result.Payload |
cause(Throwable cause) |
Result.Payload |
contentWriter(org.osgl.Lang.Visitor<Writer> contentWriter) |
Result.Payload |
errorCode(int errorCode) |
String |
etag() |
Result.Payload |
etag(String etag) |
Result.Payload |
format(org.osgl.http.H.Format format) |
Result.Payload |
message(String message) |
Result.Payload |
message(String message,
Object... args) |
boolean |
outputEncoding() |
Result.Payload |
outputEncoding(boolean outputEncoding) |
Result.Payload |
status(org.osgl.http.H.Status status) |
Result.Payload |
stringContentProducer(org.osgl.Lang.Func0<String> producer) |
Result.Payload |
touch() |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic String message
public org.osgl.Lang.Visitor<Writer> contentWriter
public org.osgl.Lang.Func0<String> stringContentProducer
public Integer errorCode
public Throwable cause
public org.osgl.http.H.Format format
public org.osgl.http.H.Status status
public Object attachment
public String etag
public Boolean outputEncoding
public long timestamp
public Result.Payload message(String message)
public Result.Payload message(String message, Object... args)
public Result.Payload contentWriter(org.osgl.Lang.Visitor<Writer> contentWriter)
public Result.Payload stringContentProducer(org.osgl.Lang.Func0<String> producer)
public Result.Payload touch()
public Result.Payload errorCode(int errorCode)
public Result.Payload cause(Throwable cause)
public Result.Payload format(org.osgl.http.H.Format format)
public Result.Payload status(org.osgl.http.H.Status status)
public Result.Payload attach(Object attachment)
public Result.Payload etag(String etag)
public String etag()
public Result.Payload outputEncoding(boolean outputEncoding)
public boolean outputEncoding()
Copyright © 2014–2018 OSGL (Open Source General Library). All rights reserved.