Class ProxyAwareResourceRetriever
-
- All Implemented Interfaces:
-
com.nimbusds.jose.util.ResourceRetriever,com.nimbusds.jose.util.RestrictedResourceRetriever
public class ProxyAwareResourceRetriever extends DefaultResourceRetriever
-
-
Field Summary
Fields Modifier and Type Field Description public final static IntegerDEFAULT_HTTP_CONNECT_TIMEOUTpublic final static IntegerDEFAULT_HTTP_READ_TIMEOUTpublic final static IntegerDEFAULT_HTTP_SIZE_LIMITprivate Proxyproxyprivate IntegerconnectTimeoutprivate IntegerreadTimeoutprivate IntegersizeLimitprivate Map<String, List<String>>headers
-
Constructor Summary
Constructors Constructor Description ProxyAwareResourceRetriever(URL proxyUrl, Boolean usePlainTextForHttps)ProxyAwareResourceRetriever(URL proxyUrl)ProxyAwareResourceRetriever()ProxyAwareResourceRetriever(URL proxyUrl, Boolean usePlainTextForHttps, Integer connectTimeout, Integer readTimeout, Integer sizeLimit)
-
Method Summary
Modifier and Type Method Description final URLurlWithPlainTextForHttps(URL url)final BooleanshouldProxy(URL url)-
Methods inherited from class com.nimbusds.jose.util.DefaultResourceRetriever
disconnectsAfterUse, getProxy, retrieveResource, setDisconnectsAfterUse, setProxy -
Methods inherited from class com.nimbusds.jose.util.AbstractRestrictedResourceRetriever
getConnectTimeout, getHeaders, getReadTimeout, getSizeLimit, setConnectTimeout, setHeaders, setReadTimeout, setSizeLimit -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ProxyAwareResourceRetriever
ProxyAwareResourceRetriever(URL proxyUrl)
-
ProxyAwareResourceRetriever
ProxyAwareResourceRetriever()
-
-
Method Detail
-
urlWithPlainTextForHttps
final URL urlWithPlainTextForHttps(URL url)
-
shouldProxy
final Boolean shouldProxy(URL url)
-
-
-
-