public class NWebResponseImpl extends Object implements net.thevpc.nuts.web.NWebResponse
| Constructor and Description |
|---|
NWebResponseImpl(int code,
NMsg msg,
Map<String,List<String>> headers,
NInputSource content) |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.nuts.web.NWebResponse |
failFast() |
net.thevpc.nuts.web.NHttpCode |
getCode() |
NInputSource |
getContent() |
<T> List<T> |
getContentArrayAsJson() |
<T> T |
getContentAs(Class<T> clz,
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() |
NOptional<String> |
getHeader(String name) |
Map<String,List<String>> |
getHeaders() |
List<String> |
getHeaders(String name) |
int |
getIntCode() |
NMsg |
getMsg() |
NMsg |
getUserMessage() |
boolean |
isError() |
boolean |
isOk() |
net.thevpc.nuts.web.NWebResponse |
setUserMessage(NMsg userMessage) |
public 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 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 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, 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 NMsg getUserMessage()
getUserMessage in interface net.thevpc.nuts.web.NWebResponsepublic net.thevpc.nuts.web.NWebResponse setUserMessage(NMsg userMessage)
setUserMessage 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.