@ThreadSafe public abstract class AbstractRestrictedResourceRetriever extends Object implements RestrictedResourceRetriever
| Constructor and Description |
|---|
AbstractRestrictedResourceRetriever(int connectTimeout,
int readTimeout,
int sizeLimit)
Creates a new abstract restricted resource retriever.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConnectTimeout()
Gets the HTTP connect timeout.
|
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 |
setReadTimeout(int readTimeoutMs)
Sets the HTTP read timeout.
|
void |
setSizeLimit(int sizeLimitBytes)
Sets the HTTP entity size limit.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitretrieveResourcepublic AbstractRestrictedResourceRetriever(int connectTimeout, int readTimeout, int sizeLimit)
connectTimeout - The HTTP connects timeout, in milliseconds,
zero for infinite. Must not be negative.readTimeout - The HTTP read timeout, in milliseconds, zero
for infinite. Must not be negative.sizeLimit - The HTTP entity size limit, in bytes, zero for
infinite. Must not be negative.public int getConnectTimeout()
RestrictedResourceRetrievergetConnectTimeout in interface RestrictedResourceRetrieverpublic void setConnectTimeout(int connectTimeoutMs)
RestrictedResourceRetrieversetConnectTimeout in interface RestrictedResourceRetrieverconnectTimeoutMs - The HTTP connect timeout, in milliseconds,
zero for infinite. Must not be negative.public int getReadTimeout()
RestrictedResourceRetrievergetReadTimeout in interface RestrictedResourceRetrieverpublic void setReadTimeout(int readTimeoutMs)
RestrictedResourceRetrieversetReadTimeout in interface RestrictedResourceRetrieverreadTimeoutMs - The HTTP read timeout, in milliseconds, zero
for infinite. Must not be negative.public int getSizeLimit()
RestrictedResourceRetrievergetSizeLimit in interface RestrictedResourceRetrieverpublic void setSizeLimit(int sizeLimitBytes)
RestrictedResourceRetrieversetSizeLimit in interface RestrictedResourceRetrieversizeLimitBytes - The HTTP entity size limit, in bytes, zero for
infinite. Must not be negative.Copyright © 2016 Connect2id Ltd.. All Rights Reserved.