public interface RestrictedResourceRetriever extends ResourceRetriever
Modifier and Type | Method and Description |
---|---|
int |
getConnectTimeout()
Gets the HTTP connect timeout.
|
Map<String,List<String>> |
getHeaders()
Gets the headers to set for the HTTP request.
|
int |
getReadTimeout()
Gets the HTTP read timeout.
|
int |
getSizeLimit()
Gets the HTTP entity size limit.
|
void |
setConnectTimeout(int connectTimeoutMs)
Sets the HTTP connect timeout.
|
void |
setHeaders(Map<String,List<String>> headers)
Sets the headers to set for the HTTP request.
|
void |
setReadTimeout(int readTimeoutMs)
Sets the HTTP read timeout.
|
void |
setSizeLimit(int sizeLimitBytes)
Sets the HTTP entity size limit.
|
retrieveResource
int getConnectTimeout()
void setConnectTimeout(int connectTimeoutMs)
connectTimeoutMs
- The HTTP connect timeout, in milliseconds,
zero for infinite. Must not be negative.int getReadTimeout()
void setReadTimeout(int readTimeoutMs)
readTimeoutMs
- The HTTP read timeout, in milliseconds, zero
for infinite. Must not be negative.int getSizeLimit()
void setSizeLimit(int sizeLimitBytes)
sizeLimitBytes
- The HTTP entity size limit, in bytes, zero for
infinite. Must not be negative.Map<String,List<String>> getHeaders()
null
if not
set.void setHeaders(Map<String,List<String>> headers)
headers
- The HTTP headers as name - values map, null
if none.Copyright © 2020 Connect2id Ltd.. All rights reserved.