public class NWebRequestImpl extends Object implements net.thevpc.nuts.web.NWebRequest
| Constructor and Description |
|---|
NWebRequestImpl(DefaultNWebCli cli,
net.thevpc.nuts.web.NHttpMethod method) |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.nuts.web.NWebRequest |
addCookie(net.thevpc.nuts.web.NWebCookie cookie) |
net.thevpc.nuts.web.NWebRequest |
addCookies(net.thevpc.nuts.web.NWebCookie[] cookies) |
net.thevpc.nuts.web.NWebRequest |
addFormData(String key,
net.thevpc.nuts.io.NInputContentProvider value) |
net.thevpc.nuts.web.NWebRequest |
addFormData(String key,
String value) |
net.thevpc.nuts.web.NWebRequest |
addFormUrlEncoded(Map<String,String> value) |
net.thevpc.nuts.web.NWebRequest |
addFormUrlEncoded(String key,
String value) |
NWebRequestImpl |
addHeader(String name,
String value) |
net.thevpc.nuts.web.NWebRequest |
addHeaders(Map<String,List<String>> headers) |
net.thevpc.nuts.web.NWebRequest |
addJsonFileHeaders(net.thevpc.nuts.io.NPath path) |
net.thevpc.nuts.web.NWebRequest |
addJsonFileParameters(net.thevpc.nuts.io.NPath path) |
net.thevpc.nuts.web.NWebRequest |
addParameter(String name,
String value) |
net.thevpc.nuts.web.NWebRequest |
addParameters(Map<String,List<String>> parameters) |
net.thevpc.nuts.web.NWebRequestBody |
addPart() |
net.thevpc.nuts.web.NWebRequest |
addPart(net.thevpc.nuts.web.NWebRequestBody body) |
net.thevpc.nuts.web.NWebRequestBody |
addPart(String name) |
net.thevpc.nuts.web.NWebRequest |
addPart(String name,
String value) |
net.thevpc.nuts.web.NWebRequest |
addPart(String name,
String fileName,
String contentType,
net.thevpc.nuts.io.NInputSource body) |
net.thevpc.nuts.web.NWebRequest |
addPropsFileHeaders(net.thevpc.nuts.io.NPath path) |
net.thevpc.nuts.web.NWebRequest |
addPropsFileParameters(net.thevpc.nuts.io.NPath path) |
net.thevpc.nuts.web.NWebRequest |
connect() |
net.thevpc.nuts.web.NWebRequest |
connect(String url) |
net.thevpc.nuts.web.NWebRequest |
DELETE() |
net.thevpc.nuts.web.NWebRequest |
DELETE(String url) |
net.thevpc.nuts.web.NWebRequest |
doWith(Consumer<net.thevpc.nuts.web.NWebRequest> any) |
net.thevpc.nuts.web.NWebRequest |
GET() |
net.thevpc.nuts.web.NWebRequest |
GET(String url) |
String |
getAuthorization() |
String |
getAuthorizationBearer() |
Integer |
getConnectTimeout() |
String |
getContentLanguage() |
String |
getContentType() |
String |
getEffectiveUrl() |
String |
getHeader(String name) |
Map<String,List<String>> |
getHeaders() |
List<String> |
getHeaders(String name) |
net.thevpc.nuts.web.NHttpMethod |
getMethod() |
Map<String,List<String>> |
getParameters() |
List<net.thevpc.nuts.web.NWebRequestBody> |
getParts() |
Integer |
getReadTimeout() |
net.thevpc.nuts.io.NInputSource |
getRequestBody() |
String |
getUrl() |
net.thevpc.nuts.web.NWebRequest |
HEAD() |
net.thevpc.nuts.web.NWebRequest |
HEAD(String url) |
boolean |
isOneWay() |
net.thevpc.nuts.web.NWebRequest |
OPTIONS() |
net.thevpc.nuts.web.NWebRequest |
OPTIONS(String url) |
net.thevpc.nuts.web.NWebRequest |
PATCH() |
net.thevpc.nuts.web.NWebRequest |
PATCH(String url) |
net.thevpc.nuts.web.NWebRequest |
POST() |
net.thevpc.nuts.web.NWebRequest |
POST(String url) |
net.thevpc.nuts.web.NWebRequest |
PUT() |
net.thevpc.nuts.web.NWebRequest |
PUT(String url) |
net.thevpc.nuts.web.NWebResponse |
run() |
NWebRequestImpl |
setAuthorization(String authorization) |
NWebRequestImpl |
setAuthorizationBearer(String authorizationBearer) |
net.thevpc.nuts.web.NWebRequest |
setConnectTimeout(Integer connectTimeout) |
NWebRequestImpl |
setContentLanguage(String contentLanguage) |
net.thevpc.nuts.web.NWebRequest |
setContentType(String contentType) |
net.thevpc.nuts.web.NWebRequest |
setContentTypeFormUrlEncoded() |
net.thevpc.nuts.web.NWebRequest |
setFormData(String key,
net.thevpc.nuts.io.NInputContentProvider value) |
net.thevpc.nuts.web.NWebRequest |
setFormData(String key,
String value) |
net.thevpc.nuts.web.NWebRequest |
setFormUrlEncoded(Map<String,String> m) |
NWebRequestImpl |
setHeader(String name,
String value) |
net.thevpc.nuts.web.NWebRequest |
setHeaders(Map<String,List<String>> headers) |
net.thevpc.nuts.web.NWebRequest |
setJsonFileHeaders(net.thevpc.nuts.io.NPath path) |
net.thevpc.nuts.web.NWebRequest |
setJsonFileParameters(net.thevpc.nuts.io.NPath path) |
NWebRequestImpl |
setJsonRequestBody(Object body) |
NWebRequestImpl |
setMethod(net.thevpc.nuts.web.NHttpMethod method) |
protected NWebRequestImpl |
setMode(net.thevpc.nuts.runtime.standalone.xtra.web.NWebRequestImpl.Mode mode) |
net.thevpc.nuts.web.NWebRequest |
setOneWay(boolean oneWay) |
net.thevpc.nuts.web.NWebRequest |
setParameter(String name,
String value) |
net.thevpc.nuts.web.NWebRequest |
setParameters(Map<String,List<String>> parameters) |
net.thevpc.nuts.web.NWebRequest |
setPropsFileHeaders(net.thevpc.nuts.io.NPath path) |
net.thevpc.nuts.web.NWebRequest |
setPropsFileParameters(net.thevpc.nuts.io.NPath path) |
net.thevpc.nuts.web.NWebRequest |
setReadTimeout(Integer readTimeout) |
net.thevpc.nuts.web.NWebRequest |
setRequestBody(byte[] body) |
net.thevpc.nuts.web.NWebRequest |
setRequestBody(net.thevpc.nuts.io.NInputSource body) |
net.thevpc.nuts.web.NWebRequest |
setRequestBody(String body) |
net.thevpc.nuts.web.NWebRequest |
setUrl(String url) |
NWebRequestImpl |
setUrl(String url,
Object... vars) |
net.thevpc.nuts.util.NMsg |
toMsg() |
String |
toString() |
net.thevpc.nuts.web.NWebRequest |
trace() |
net.thevpc.nuts.web.NWebRequest |
trace(String url) |
public NWebRequestImpl(DefaultNWebCli cli, net.thevpc.nuts.web.NHttpMethod method)
protected NWebRequestImpl setMode(net.thevpc.nuts.runtime.standalone.xtra.web.NWebRequestImpl.Mode mode)
public boolean isOneWay()
isOneWay in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest setOneWay(boolean oneWay)
setOneWay in interface net.thevpc.nuts.web.NWebRequestpublic String getUrl()
getUrl in interface net.thevpc.nuts.web.NWebRequestpublic NWebRequestImpl setUrl(String url, Object... vars)
setUrl in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest addCookies(net.thevpc.nuts.web.NWebCookie[] cookies)
public net.thevpc.nuts.web.NWebRequest addCookie(net.thevpc.nuts.web.NWebCookie cookie)
public net.thevpc.nuts.web.NWebRequest setUrl(String url)
setUrl in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NHttpMethod getMethod()
getMethod in interface net.thevpc.nuts.web.NWebRequestpublic NWebRequestImpl setMethod(net.thevpc.nuts.web.NHttpMethod method)
setMethod in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest GET()
GET in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest POST()
POST in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest PATCH()
PATCH in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest OPTIONS()
OPTIONS in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest HEAD()
HEAD in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest trace()
trace in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest trace(String url)
trace in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest connect()
connect in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest PUT()
PUT in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest DELETE()
DELETE in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest GET(String url)
GET in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest POST(String url)
POST in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest PATCH(String url)
PATCH in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest OPTIONS(String url)
OPTIONS in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest HEAD(String url)
HEAD in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest connect(String url)
connect in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest PUT(String url)
PUT in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest DELETE(String url)
DELETE in interface net.thevpc.nuts.web.NWebRequestpublic String getHeader(String name)
getHeader in interface net.thevpc.nuts.web.NWebRequestpublic List<String> getHeaders(String name)
getHeaders in interface net.thevpc.nuts.web.NWebRequestpublic Map<String,List<String>> getHeaders()
getHeaders in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest setHeaders(Map<String,List<String>> headers)
setHeaders in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest addHeaders(Map<String,List<String>> headers)
addHeaders in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest addParameters(Map<String,List<String>> parameters)
addParameters in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest setPropsFileHeaders(net.thevpc.nuts.io.NPath path)
setPropsFileHeaders in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest addPropsFileHeaders(net.thevpc.nuts.io.NPath path)
addPropsFileHeaders in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest addJsonFileHeaders(net.thevpc.nuts.io.NPath path)
addJsonFileHeaders in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest setJsonFileHeaders(net.thevpc.nuts.io.NPath path)
setJsonFileHeaders in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest setPropsFileParameters(net.thevpc.nuts.io.NPath path)
setPropsFileParameters in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest addPropsFileParameters(net.thevpc.nuts.io.NPath path)
addPropsFileParameters in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest addJsonFileParameters(net.thevpc.nuts.io.NPath path)
addJsonFileParameters in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest setJsonFileParameters(net.thevpc.nuts.io.NPath path)
setJsonFileParameters in interface net.thevpc.nuts.web.NWebRequestpublic NWebRequestImpl addHeader(String name, String value)
addHeader in interface net.thevpc.nuts.web.NWebRequestpublic NWebRequestImpl setHeader(String name, String value)
setHeader in interface net.thevpc.nuts.web.NWebRequestpublic Map<String,List<String>> getParameters()
getParameters in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest setParameters(Map<String,List<String>> parameters)
setParameters in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest doWith(Consumer<net.thevpc.nuts.web.NWebRequest> any)
doWith in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest addParameter(String name, String value)
addParameter in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest setParameter(String name, String value)
setParameter in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.io.NInputSource getRequestBody()
getRequestBody in interface net.thevpc.nuts.web.NWebRequestpublic NWebRequestImpl setJsonRequestBody(Object body)
setJsonRequestBody in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest setRequestBody(byte[] body)
setRequestBody in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest setRequestBody(String body)
setRequestBody in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest setRequestBody(net.thevpc.nuts.io.NInputSource body)
setRequestBody in interface net.thevpc.nuts.web.NWebRequestpublic NWebRequestImpl setContentLanguage(String contentLanguage)
setContentLanguage in interface net.thevpc.nuts.web.NWebRequestpublic NWebRequestImpl setAuthorizationBearer(String authorizationBearer)
setAuthorizationBearer in interface net.thevpc.nuts.web.NWebRequestpublic NWebRequestImpl setAuthorization(String authorization)
setAuthorization in interface net.thevpc.nuts.web.NWebRequestpublic String getAuthorization()
getAuthorization in interface net.thevpc.nuts.web.NWebRequestpublic String getAuthorizationBearer()
getAuthorizationBearer in interface net.thevpc.nuts.web.NWebRequestpublic String getContentLanguage()
getContentLanguage in interface net.thevpc.nuts.web.NWebRequestpublic String getContentType()
getContentType in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest setContentTypeFormUrlEncoded()
setContentTypeFormUrlEncoded in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest addFormUrlEncoded(String key, String value)
addFormUrlEncoded in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest addFormUrlEncoded(Map<String,String> value)
addFormUrlEncoded in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest addFormData(String key, net.thevpc.nuts.io.NInputContentProvider value)
addFormData in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest addFormData(String key, String value)
addFormData in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest setFormData(String key, net.thevpc.nuts.io.NInputContentProvider value)
setFormData in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest setFormData(String key, String value)
setFormData in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest setFormUrlEncoded(Map<String,String> m)
setFormUrlEncoded in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest setContentType(String contentType)
setContentType in interface net.thevpc.nuts.web.NWebRequestpublic Integer getReadTimeout()
getReadTimeout in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest setReadTimeout(Integer readTimeout)
setReadTimeout in interface net.thevpc.nuts.web.NWebRequestpublic Integer getConnectTimeout()
getConnectTimeout in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest setConnectTimeout(Integer connectTimeout)
setConnectTimeout in interface net.thevpc.nuts.web.NWebRequestpublic List<net.thevpc.nuts.web.NWebRequestBody> getParts()
getParts in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest addPart(net.thevpc.nuts.web.NWebRequestBody body)
addPart in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequestBody addPart()
addPart in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequestBody addPart(String name)
addPart in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest addPart(String name, String value)
addPart in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebRequest addPart(String name, String fileName, String contentType, net.thevpc.nuts.io.NInputSource body)
addPart in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.web.NWebResponse run()
run in interface net.thevpc.nuts.web.NWebRequestpublic String getEffectiveUrl()
getEffectiveUrl in interface net.thevpc.nuts.web.NWebRequestpublic net.thevpc.nuts.util.NMsg toMsg()
toMsg in interface net.thevpc.nuts.format.NMsgFormattableCopyright © 2025 vpc open source initiative. All rights reserved.