public class NWebResponseImpl extends Object implements net.thevpc.nuts.web.NWebResponse
| Constructor and Description |
|---|
NWebResponseImpl(net.thevpc.nuts.web.NHttpCode code,
net.thevpc.nuts.util.NMsg msg,
Map<String,List<String>> headers,
Supplier<net.thevpc.nuts.io.NInputSource> content) |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.nuts.web.NWebResponse |
failFast() |
net.thevpc.nuts.web.NHttpCode |
getCode() |
net.thevpc.nuts.io.NInputSource |
getContent() |
<T> List<T> |
getContentArrayAsJson() |
<T> T |
getContentAs(Class<T> clz,
net.thevpc.nuts.format.NContentType type) |
byte[] |
getContentAsBytes() |
<T> T |
getContentAsJson(Class<T> clz) |
List<?> |
getContentAsJsonList() |
Map<?,?> |
getContentAsJsonMap() |
String |
getContentAsString() |
<K> List<K> |
getContentListAsJson() |
<K,V> Map<K,V> |
getContentMapAsJson() |
String |
getContentType() |
net.thevpc.nuts.web.NWebCookie[] |
getCookies() |
net.thevpc.nuts.util.NOptional<String> |
getHeader(String name) |
Map<String,List<String>> |
getHeaders() |
List<String> |
getHeaders(String name) |
int |
getIntCode() |
net.thevpc.nuts.util.NMsg |
getMsg() |
net.thevpc.nuts.util.NMsgCode |
getMsgCode() |
boolean |
isError() |
boolean |
isOk() |
net.thevpc.nuts.web.NWebResponse |
setMsgCode(net.thevpc.nuts.util.NMsgCode msgCode) |
public net.thevpc.nuts.util.NOptional<String> getHeader(String name)
getHeader in interface net.thevpc.nuts.web.NWebResponsepublic int getIntCode()
getIntCode in interface net.thevpc.nuts.web.NWebResponsepublic net.thevpc.nuts.web.NHttpCode getCode()
getCode in interface net.thevpc.nuts.web.NWebResponsepublic net.thevpc.nuts.util.NMsg getMsg()
getMsg in interface net.thevpc.nuts.web.NWebResponsepublic List<String> getHeaders(String name)
getHeaders in interface net.thevpc.nuts.web.NWebResponsepublic Map<String,List<String>> getHeaders()
getHeaders in interface net.thevpc.nuts.web.NWebResponsepublic net.thevpc.nuts.io.NInputSource getContent()
getContent in interface net.thevpc.nuts.web.NWebResponsepublic <K,V> Map<K,V> getContentMapAsJson()
getContentMapAsJson in interface net.thevpc.nuts.web.NWebResponsepublic <K> List<K> getContentListAsJson()
getContentListAsJson in interface net.thevpc.nuts.web.NWebResponsepublic <T> List<T> getContentArrayAsJson()
getContentArrayAsJson in interface net.thevpc.nuts.web.NWebResponsepublic <T> T getContentAs(Class<T> clz, net.thevpc.nuts.format.NContentType type)
getContentAs in interface net.thevpc.nuts.web.NWebResponsepublic <T> T getContentAsJson(Class<T> clz)
getContentAsJson in interface net.thevpc.nuts.web.NWebResponsepublic Map<?,?> getContentAsJsonMap()
getContentAsJsonMap in interface net.thevpc.nuts.web.NWebResponsepublic List<?> getContentAsJsonList()
getContentAsJsonList in interface net.thevpc.nuts.web.NWebResponsepublic String getContentAsString()
getContentAsString in interface net.thevpc.nuts.web.NWebResponsepublic byte[] getContentAsBytes()
getContentAsBytes in interface net.thevpc.nuts.web.NWebResponsepublic net.thevpc.nuts.web.NWebCookie[] getCookies()
getCookies in interface net.thevpc.nuts.web.NWebResponsepublic boolean isError()
isError in interface net.thevpc.nuts.web.NWebResponsepublic boolean isOk()
isOk in interface net.thevpc.nuts.web.NWebResponsepublic net.thevpc.nuts.web.NWebResponse failFast()
failFast in interface net.thevpc.nuts.web.NWebResponsepublic net.thevpc.nuts.util.NMsgCode getMsgCode()
getMsgCode in interface net.thevpc.nuts.web.NWebResponsepublic net.thevpc.nuts.web.NWebResponse setMsgCode(net.thevpc.nuts.util.NMsgCode msgCode)
setMsgCode in interface net.thevpc.nuts.web.NWebResponsepublic String getContentType()
getContentType in interface net.thevpc.nuts.web.NWebResponseCopyright © 2025 vpc open source initiative. All rights reserved.