public class NWebRequestImpl extends Object implements NWebRequest
| Constructor and Description |
|---|
NWebRequestImpl(DefaultNWebCli cli,
NHttpMethod method) |
public NWebRequestImpl(DefaultNWebCli cli, NHttpMethod method)
protected NWebRequestImpl setMode(net.thevpc.nuts.runtime.standalone.xtra.web.NWebRequestImpl.Mode mode)
public boolean isOneWay()
isOneWay in interface NWebRequestpublic NWebRequest oneWay(boolean oneWay)
oneWay in interface NWebRequestpublic String uri()
uri in interface NWebRequestpublic NWebRequestImpl uri(String url, Object... vars)
uri in interface NWebRequestpublic NWebRequest addCookies(NWebCookie[] cookies)
public NWebRequest addCookie(NWebCookie cookie)
public NWebRequest uri(String url)
uri in interface NWebRequestpublic NHttpMethod method()
method in interface NWebRequestpublic NWebRequestImpl method(NHttpMethod method)
method in interface NWebRequestpublic NWebRequest GET()
GET in interface NWebRequestpublic NWebRequest POST()
POST in interface NWebRequestpublic NWebRequest PATCH()
PATCH in interface NWebRequestpublic NWebRequest OPTIONS()
OPTIONS in interface NWebRequestpublic NWebRequest HEAD()
HEAD in interface NWebRequestpublic NWebRequest TRACE()
TRACE in interface NWebRequestpublic NWebRequest TRACE(String url)
TRACE in interface NWebRequestpublic NWebRequest CONNECT()
CONNECT in interface NWebRequestpublic NWebRequest PUT()
PUT in interface NWebRequestpublic NWebRequest DELETE()
DELETE in interface NWebRequestpublic NWebRequest GET(String url)
GET in interface NWebRequestpublic NWebRequest POST(String url)
POST in interface NWebRequestpublic NWebRequest PATCH(String url)
PATCH in interface NWebRequestpublic NWebRequest OPTIONS(String url)
OPTIONS in interface NWebRequestpublic NWebRequest HEAD(String url)
HEAD in interface NWebRequestpublic NWebRequest CONNECT(String url)
CONNECT in interface NWebRequestpublic NWebRequest PUT(String url)
PUT in interface NWebRequestpublic NWebRequest DELETE(String url)
DELETE in interface NWebRequestpublic String header(String name)
header in interface NWebRequestpublic List<String> headers(String name)
headers in interface NWebRequestpublic NWebRequest headers(Map<String,List<String>> headers)
headers in interface NWebRequestpublic NWebRequest addHeaders(Map<String,List<String>> headers)
addHeaders in interface NWebRequestpublic NWebRequest addParameters(Map<String,List<String>> parameters)
addParameters in interface NWebRequestpublic NWebRequest propsFileHeaders(NPath path)
propsFileHeaders in interface NWebRequestpublic NWebRequest addPropsFileHeaders(NPath path)
addPropsFileHeaders in interface NWebRequestpublic NWebRequest addJsonFileHeaders(NPath path)
addJsonFileHeaders in interface NWebRequestpublic NWebRequest jsonFileHeaders(NPath path)
jsonFileHeaders in interface NWebRequestpublic NWebRequest propsFileParameters(NPath path)
propsFileParameters in interface NWebRequestpublic NWebRequest addPropsFileParameters(NPath path)
addPropsFileParameters in interface NWebRequestpublic NWebRequest addJsonFileParameters(NPath path)
addJsonFileParameters in interface NWebRequestpublic NWebRequest psonFileParameters(NPath path)
psonFileParameters in interface NWebRequestpublic NWebRequestImpl header(String name, String value)
header in interface NWebRequestpublic NWebRequestImpl addHeader(String name, String value)
addHeader in interface NWebRequestpublic Map<String,List<String>> parameters()
parameters in interface NWebRequestpublic NWebRequest parameters(Map<String,List<String>> parameters)
parameters in interface NWebRequestpublic NWebRequest doWith(Consumer<NWebRequest> any)
doWith in interface NWebRequestpublic NWebRequest addParameter(String name, String value)
addParameter in interface NWebRequestpublic NWebRequest parameter(String name, String value)
parameter in interface NWebRequestpublic NInputSource requestBody()
requestBody in interface NWebRequestpublic NWebRequestImpl jsonRequestBody(Object body)
jsonRequestBody in interface NWebRequestpublic NWebRequest requestBody(byte[] body)
requestBody in interface NWebRequestpublic NWebRequest requestBody(String body)
requestBody in interface NWebRequestpublic NWebRequest requestBody(NInputSource body)
requestBody in interface NWebRequestpublic NWebRequest contentLanguage(String contentLanguage)
contentLanguage in interface NWebRequestpublic NWebRequest authorizationBearer(String authorizationBearer)
authorizationBearer in interface NWebRequestpublic NWebRequest authorizationBasic(String username, String password)
authorizationBasic in interface NWebRequestpublic NWebRequest authorization(String authorization)
authorization in interface NWebRequestpublic String authorization()
authorization in interface NWebRequestpublic String authorizationBearer()
authorizationBearer in interface NWebRequestpublic String contentLanguage()
contentLanguage in interface NWebRequestpublic String contentType()
contentType in interface NWebRequestpublic NWebRequest contentTypeFormUrlEncoded()
contentTypeFormUrlEncoded in interface NWebRequestpublic NWebRequest addFormUrlEncoded(String key, String value)
addFormUrlEncoded in interface NWebRequestpublic NWebRequest addFormUrlEncoded(Map<String,String> value)
addFormUrlEncoded in interface NWebRequestpublic NWebRequest formData(String key, NInputContentProvider value)
formData in interface NWebRequestpublic NWebRequest formData(String key, String value)
formData in interface NWebRequestpublic NWebRequest formUrlEncoded(Map<String,String> m)
formUrlEncoded in interface NWebRequestpublic NWebRequest contentType(String contentType)
contentType in interface NWebRequestpublic NDuration readTimeout()
readTimeout in interface NWebRequestpublic NWebRequest readTimeout(NDuration readTimeout)
readTimeout in interface NWebRequestpublic NWebRequest timeout(NDuration timeout)
timeout in interface NWebRequestpublic NDuration connectTimeout()
connectTimeout in interface NWebRequestpublic NWebRequest connectTimeout(NDuration duration)
connectTimeout in interface NWebRequestpublic List<NWebRequestBody> parts()
parts in interface NWebRequestpublic NWebRequest addPart(NWebRequestBody body)
addPart in interface NWebRequestpublic NWebRequestBody addPart()
addPart in interface NWebRequestpublic NWebRequestBody addPart(String name)
addPart in interface NWebRequestpublic NWebRequest addPart(String name, String value)
addPart in interface NWebRequestpublic NWebRequest addPart(String name, String fileName, String contentType, NInputSource body)
addPart in interface NWebRequestpublic NWebResponse run()
run in interface NWebRequestpublic String effectiveUri()
effectiveUri in interface NWebRequestpublic NMsg toMsg()
toMsg in interface NMsgFormattableCopyright © 2026 vpc open source initiative. All rights reserved.