public class NWebResponseImpl extends Object implements net.thevpc.nuts.net.NWebResponse
| Constructor and Description |
|---|
NWebResponseImpl(net.thevpc.nuts.net.NHttpCode code,
net.thevpc.nuts.text.NMsg msg,
Map<String,List<String>> headers,
Supplier<net.thevpc.nuts.io.NInputSource> content) |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.nuts.io.NInputSource |
content() |
<T> List<T> |
contentArrayAsJson() |
<T> T |
contentAs(Class<T> clz,
net.thevpc.nuts.text.NContentType type) |
byte[] |
contentAsBytes() |
net.thevpc.nuts.elem.NElement |
contentAsJson() |
<T> T |
contentAsJson(Class<T> clz) |
List<?> |
contentAsJsonList() |
Map<?,?> |
contentAsJsonMap() |
String |
contentAsString() |
<K> List<K> |
contentListAsJson() |
<K,V> Map<K,V> |
contentMapAsJson() |
String |
contentType() |
List<net.thevpc.nuts.net.NWebCookie> |
cookies() |
net.thevpc.nuts.util.NOptional<String> |
header(String name) |
Map<String,List<String>> |
headers() |
List<String> |
headers(String name) |
net.thevpc.nuts.net.NWebResponse |
ifErrorThrow() |
int |
intStatusCode() |
boolean |
isClientError() |
boolean |
isError() |
boolean |
isOk() |
boolean |
isRedirect() |
boolean |
isServerError() |
net.thevpc.nuts.net.NHttpCode |
statusCode() |
net.thevpc.nuts.text.NMsg |
statusMessage() |
net.thevpc.nuts.text.NMsgCode |
userMessage() |
net.thevpc.nuts.net.NWebResponse |
userMessage(net.thevpc.nuts.text.NMsgCode msgCode) |
public net.thevpc.nuts.util.NOptional<String> header(String name)
header in interface net.thevpc.nuts.net.NWebResponsepublic int intStatusCode()
intStatusCode in interface net.thevpc.nuts.net.NWebResponsepublic net.thevpc.nuts.net.NHttpCode statusCode()
statusCode in interface net.thevpc.nuts.net.NWebResponsepublic net.thevpc.nuts.text.NMsg statusMessage()
statusMessage in interface net.thevpc.nuts.net.NWebResponsepublic List<String> headers(String name)
headers in interface net.thevpc.nuts.net.NWebResponsepublic Map<String,List<String>> headers()
headers in interface net.thevpc.nuts.net.NWebResponsepublic net.thevpc.nuts.io.NInputSource content()
content in interface net.thevpc.nuts.net.NWebResponsepublic <K,V> Map<K,V> contentMapAsJson()
contentMapAsJson in interface net.thevpc.nuts.net.NWebResponsepublic <K> List<K> contentListAsJson()
contentListAsJson in interface net.thevpc.nuts.net.NWebResponsepublic <T> List<T> contentArrayAsJson()
contentArrayAsJson in interface net.thevpc.nuts.net.NWebResponsepublic <T> T contentAs(Class<T> clz, net.thevpc.nuts.text.NContentType type)
contentAs in interface net.thevpc.nuts.net.NWebResponsepublic net.thevpc.nuts.elem.NElement contentAsJson()
contentAsJson in interface net.thevpc.nuts.net.NWebResponsepublic <T> T contentAsJson(Class<T> clz)
contentAsJson in interface net.thevpc.nuts.net.NWebResponsepublic Map<?,?> contentAsJsonMap()
contentAsJsonMap in interface net.thevpc.nuts.net.NWebResponsepublic List<?> contentAsJsonList()
contentAsJsonList in interface net.thevpc.nuts.net.NWebResponsepublic String contentAsString()
contentAsString in interface net.thevpc.nuts.net.NWebResponsepublic byte[] contentAsBytes()
contentAsBytes in interface net.thevpc.nuts.net.NWebResponsepublic List<net.thevpc.nuts.net.NWebCookie> cookies()
cookies in interface net.thevpc.nuts.net.NWebResponsepublic boolean isError()
isError in interface net.thevpc.nuts.net.NWebResponsepublic boolean isOk()
isOk in interface net.thevpc.nuts.net.NWebResponsepublic net.thevpc.nuts.net.NWebResponse ifErrorThrow()
ifErrorThrow in interface net.thevpc.nuts.net.NWebResponsepublic boolean isClientError()
isClientError in interface net.thevpc.nuts.net.NWebResponsepublic boolean isServerError()
isServerError in interface net.thevpc.nuts.net.NWebResponsepublic boolean isRedirect()
isRedirect in interface net.thevpc.nuts.net.NWebResponsepublic net.thevpc.nuts.text.NMsgCode userMessage()
userMessage in interface net.thevpc.nuts.net.NWebResponsepublic net.thevpc.nuts.net.NWebResponse userMessage(net.thevpc.nuts.text.NMsgCode msgCode)
userMessage in interface net.thevpc.nuts.net.NWebResponsepublic String contentType()
contentType in interface net.thevpc.nuts.net.NWebResponseCopyright © 2026 vpc open source initiative. All rights reserved.