public class DefaultNWebCli extends Object implements net.thevpc.nuts.web.NWebCli
| Modifier and Type | Field and Description |
|---|---|
static net.thevpc.nuts.boot.reserved.util.NBootLog |
log |
| Constructor and Description |
|---|
DefaultNWebCli() |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.nuts.web.NWebCli |
addCookie(net.thevpc.nuts.web.NWebCookie cookie) |
net.thevpc.nuts.web.NWebCli |
addCookies(net.thevpc.nuts.web.NWebCookie[] cookies) |
net.thevpc.nuts.web.NWebCli |
addHeader(String name,
String value) |
net.thevpc.nuts.web.NWebCli |
clearCookies() |
net.thevpc.nuts.web.NWebCli |
clearHeaders() |
net.thevpc.nuts.web.NWebRequest |
CONNECT() |
net.thevpc.nuts.web.NWebRequest |
CONNECT(String path) |
boolean |
containsCookie(String cookieName) |
boolean |
containsHeader(String name) |
net.thevpc.nuts.web.NWebRequest |
DELETE() |
net.thevpc.nuts.web.NWebRequest |
DELETE(String path) |
String |
formatURL(net.thevpc.nuts.web.NWebRequest r,
boolean safe) |
net.thevpc.nuts.web.NWebRequest |
GET() |
net.thevpc.nuts.web.NWebRequest |
GET(String path) |
Integer |
getConnectTimeout() |
net.thevpc.nuts.web.NWebCookie[] |
getCookies() |
static Integer |
getGlobalConnectionTimeout() |
static int |
getGlobalConnectionTimeoutOrDefault() |
static Integer |
getGlobalReadConnectionTimeoutOrDefault() |
static Integer |
getGlobalReadTimeout() |
Map<String,List<String>> |
getHeaders() |
String |
getPrefix() |
Integer |
getReadTimeout() |
Function<net.thevpc.nuts.web.NWebResponse,net.thevpc.nuts.web.NWebResponse> |
getResponsePostProcessor() |
int |
getSupportLevel(net.thevpc.nuts.spi.NSupportLevelContext context) |
net.thevpc.nuts.web.NWebRequest |
HEAD() |
net.thevpc.nuts.web.NWebRequest |
HEAD(String path) |
net.thevpc.nuts.web.NWebRequest |
OPTIONS() |
net.thevpc.nuts.web.NWebRequest |
OPTIONS(String path) |
net.thevpc.nuts.web.NWebRequest |
PATCH() |
net.thevpc.nuts.web.NWebRequest |
PATCH(String path) |
net.thevpc.nuts.web.NWebRequest |
POST() |
net.thevpc.nuts.web.NWebRequest |
POST(String path) |
static URLConnection |
prepareGlobalConnection(URLConnection c) |
static InputStream |
prepareGlobalOpenStream(URL url) |
net.thevpc.nuts.web.NWebRequest |
PUT() |
net.thevpc.nuts.web.NWebRequest |
PUT(String path) |
net.thevpc.nuts.web.NWebCli |
removeCookie(net.thevpc.nuts.web.NWebCookie cookie) |
net.thevpc.nuts.web.NWebCli |
removeCookie(String cookieName) |
net.thevpc.nuts.web.NWebCli |
removeCookies(net.thevpc.nuts.web.NWebCookie[] cookies) |
net.thevpc.nuts.web.NWebCli |
removeHeader(String name) |
net.thevpc.nuts.web.NWebCli |
removeHeader(String name,
String value) |
net.thevpc.nuts.web.NWebRequest |
req() |
net.thevpc.nuts.web.NWebRequest |
req(net.thevpc.nuts.web.NHttpMethod method) |
net.thevpc.nuts.web.NWebResponse |
run(net.thevpc.nuts.web.NWebRequest r) |
net.thevpc.nuts.web.NWebCli |
setConnectTimeout(Integer connectTimeout) |
net.thevpc.nuts.web.NWebCli |
setHeader(String name,
String value) |
net.thevpc.nuts.web.NWebCli |
setPrefix(String prefix) |
net.thevpc.nuts.web.NWebCli |
setReadTimeout(Integer readTimeout) |
net.thevpc.nuts.web.NWebCli |
setResponsePostProcessor(Function<net.thevpc.nuts.web.NWebResponse,net.thevpc.nuts.web.NWebResponse> responsePostProcessor) |
net.thevpc.nuts.web.NWebRequest |
TRACE() |
net.thevpc.nuts.web.NWebRequest |
TRACE(String path) |
static String |
UNIFORM_HEADER(String h) |
public static URLConnection prepareGlobalConnection(URLConnection c)
public static int getGlobalConnectionTimeoutOrDefault()
public static Integer getGlobalReadConnectionTimeoutOrDefault()
public static Integer getGlobalConnectionTimeout()
public static Integer getGlobalReadTimeout()
public static InputStream prepareGlobalOpenStream(URL url) throws IOException
IOExceptionpublic net.thevpc.nuts.web.NWebCookie[] getCookies()
getCookies in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebCli addHeader(String name, String value)
addHeader in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebCli setHeader(String name, String value)
setHeader in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebCli removeHeader(String name, String value)
removeHeader in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebCli removeHeader(String name)
removeHeader in interface net.thevpc.nuts.web.NWebClipublic boolean containsHeader(String name)
containsHeader in interface net.thevpc.nuts.web.NWebClipublic boolean containsCookie(String cookieName)
containsCookie in interface net.thevpc.nuts.web.NWebClipublic Map<String,List<String>> getHeaders()
getHeaders in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebCli clearHeaders()
clearHeaders in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebCli clearCookies()
clearCookies in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebCli removeCookies(net.thevpc.nuts.web.NWebCookie[] cookies)
removeCookies in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebCli removeCookie(net.thevpc.nuts.web.NWebCookie cookie)
removeCookie in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebCli removeCookie(String cookieName)
removeCookie in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebCli addCookie(net.thevpc.nuts.web.NWebCookie cookie)
addCookie in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebCli addCookies(net.thevpc.nuts.web.NWebCookie[] cookies)
addCookies in interface net.thevpc.nuts.web.NWebClipublic Function<net.thevpc.nuts.web.NWebResponse,net.thevpc.nuts.web.NWebResponse> getResponsePostProcessor()
getResponsePostProcessor in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebCli setResponsePostProcessor(Function<net.thevpc.nuts.web.NWebResponse,net.thevpc.nuts.web.NWebResponse> responsePostProcessor)
setResponsePostProcessor in interface net.thevpc.nuts.web.NWebClipublic String getPrefix()
getPrefix in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebCli setPrefix(String prefix)
setPrefix in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebRequest req()
req in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebRequest req(net.thevpc.nuts.web.NHttpMethod method)
req in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebRequest GET()
GET in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebRequest POST()
POST in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebRequest PUT()
PUT in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebRequest DELETE()
DELETE in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebRequest PATCH()
PATCH in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebRequest OPTIONS()
OPTIONS in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebRequest HEAD()
HEAD in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebRequest CONNECT()
CONNECT in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebRequest TRACE()
TRACE in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebRequest GET(String path)
GET in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebRequest POST(String path)
POST in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebRequest PUT(String path)
PUT in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebRequest DELETE(String path)
DELETE in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebRequest PATCH(String path)
PATCH in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebRequest OPTIONS(String path)
OPTIONS in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebRequest HEAD(String path)
HEAD in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebRequest CONNECT(String path)
CONNECT in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebRequest TRACE(String path)
TRACE in interface net.thevpc.nuts.web.NWebClipublic String formatURL(net.thevpc.nuts.web.NWebRequest r, boolean safe)
public net.thevpc.nuts.web.NWebResponse run(net.thevpc.nuts.web.NWebRequest r)
public Integer getReadTimeout()
getReadTimeout in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebCli setReadTimeout(Integer readTimeout)
setReadTimeout in interface net.thevpc.nuts.web.NWebClipublic Integer getConnectTimeout()
getConnectTimeout in interface net.thevpc.nuts.web.NWebClipublic net.thevpc.nuts.web.NWebCli setConnectTimeout(Integer connectTimeout)
setConnectTimeout in interface net.thevpc.nuts.web.NWebClipublic int getSupportLevel(net.thevpc.nuts.spi.NSupportLevelContext context)
getSupportLevel in interface net.thevpc.nuts.spi.NComponentCopyright © 2025 vpc open source initiative. All rights reserved.