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