public class DefaultNWebCli extends Object implements NWebCli
| Modifier and Type | Field and Description |
|---|---|
static NBootLog |
log |
CUSTOM_SCORE, DEFAULT_SCORE, UNSUPPORTED_SCORE| Constructor and Description |
|---|
DefaultNWebCli() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisValidScore, query, querypublic static NBootLog log
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 NWebCookie[] getCookies()
getCookies in interface NWebClipublic NWebCli removeHeader(String name, String value)
removeHeader in interface NWebClipublic NWebCli removeHeader(String name)
removeHeader in interface NWebClipublic boolean containsHeader(String name)
containsHeader in interface NWebClipublic boolean containsCookie(String cookieName)
containsCookie in interface NWebClipublic Map<String,List<String>> getHeaders()
getHeaders in interface NWebClipublic NWebCli clearHeaders()
clearHeaders in interface NWebClipublic NWebCli clearCookies()
clearCookies in interface NWebClipublic NWebCli removeCookies(NWebCookie[] cookies)
removeCookies in interface NWebClipublic NWebCli removeCookie(NWebCookie cookie)
removeCookie in interface NWebClipublic NWebCli removeCookie(String cookieName)
removeCookie in interface NWebClipublic NWebCli addCookie(NWebCookie cookie)
public NWebCli addCookies(NWebCookie[] cookies)
addCookies in interface NWebClipublic Function<NWebResponse,NWebResponse> getResponsePostProcessor()
getResponsePostProcessor in interface NWebClipublic NWebCli setResponsePostProcessor(Function<NWebResponse,NWebResponse> responsePostProcessor)
setResponsePostProcessor in interface NWebClipublic NWebRequest req()
public NWebRequest req(NHttpMethod method)
public NWebRequest GET()
public NWebRequest POST()
public NWebRequest PUT()
public NWebRequest DELETE()
public NWebRequest PATCH()
public NWebRequest OPTIONS()
public NWebRequest HEAD()
public NWebRequest CONNECT()
public NWebRequest TRACE()
public NWebRequest GET(String path)
public NWebRequest POST(String path)
public NWebRequest PUT(String path)
public NWebRequest DELETE(String path)
public NWebRequest PATCH(String path)
public NWebRequest OPTIONS(String path)
public NWebRequest HEAD(String path)
public NWebRequest CONNECT(String path)
public NWebRequest TRACE(String path)
public String formatURL(NWebRequest r, boolean safe)
public NWebResponse run(NWebRequest r)
public Integer getReadTimeout()
getReadTimeout in interface NWebClipublic NWebCli setReadTimeout(Integer readTimeout)
setReadTimeout in interface NWebClipublic Integer getConnectTimeout()
getConnectTimeout in interface NWebClipublic NWebCli setConnectTimeout(Integer connectTimeout)
setConnectTimeout in interface NWebClipublic int getScore(NScorableContext context)
getScore in interface NComponentgetScore in interface NScorableCopyright © 2025 vpc open source initiative. All rights reserved.