Class NativeDataLoaderCall
java.lang.Object
eu.europa.esig.dss.spi.client.http.NativeDataLoaderCall
- All Implemented Interfaces:
Callable<byte[]>
The call of native java DataLoader using the java.net.URL class.
-
Constructor Summary
ConstructorDescriptionNativeDataLoaderCall
(String url, byte[] content, boolean useCaches, int maxInputSize) Constructor with unconfigured timeoutNativeDataLoaderCall
(String url, byte[] content, boolean useCaches, int maxInputSize, int connectTimeout, int readTimeout) Constructor with configured timeouts -
Method Summary
-
Constructor Details
-
NativeDataLoaderCall
Constructor with unconfigured timeout- Parameters:
url
-String
content
- byte arrayuseCaches
- if the caches shall be usedmaxInputSize
- maximum InputStream size
-
NativeDataLoaderCall
public NativeDataLoaderCall(String url, byte[] content, boolean useCaches, int maxInputSize, int connectTimeout, int readTimeout) Constructor with configured timeouts- Parameters:
url
-String
content
- byte arrayuseCaches
- if the caches shall be usedmaxInputSize
- maximum InputStream sizeconnectTimeout
- timeout on opening a connection (in milliseconds)readTimeout
- timeout on reading a response from a remote resource (in milliseconds)
-
-
Method Details
-
call
public byte[] call() -
createConnection
Creates connection- Returns:
URLConnection
- Throws:
IOException
- if IOException occurred
-