Class NativeDataLoaderCall
java.lang.Object
eu.europa.esig.dss.spi.client.http.NativeDataLoaderCall
- All Implemented Interfaces:
Callable<byte[]>
public class NativeDataLoaderCall extends Object implements Callable<byte[]>
The call of native java DataLoader using the java.net.URL class.
-
Constructor Summary
Constructors Constructor Description NativeDataLoaderCall(String url, byte[] content, boolean useCaches, long maxInputSize)
Default constructor -
Method Summary
Modifier and Type Method Description byte[]
call()
protected URLConnection
createConnection()
Creates connectionbyte[]
getContent()
Gets contentlong
getMaxInputSize()
Gets the maximum InputStream sizeString
getUrl()
Gets URLboolean
isUseCaches()
Gets if the caches are used
-
Constructor Details
-
NativeDataLoaderCall
Default constructor- Parameters:
url
-String
content
- byte arrayuseCaches
- if the caches shall be usedmaxInputSize
- maximum InputStream size
-
-
Method Details
-
call
public byte[] call() -
createConnection
Creates connection- Returns:
URLConnection
- Throws:
MalformedURLException
- if MalformedURLException occurredIOException
- if IOException occurred
-
getUrl
Gets URL- Returns:
String
-
getContent
public byte[] getContent()Gets content- Returns:
- byte array
-
getMaxInputSize
public long getMaxInputSize()Gets the maximum InputStream size- Returns:
- maximum InputStream size
-
isUseCaches
public boolean isUseCaches()Gets if the caches are used- Returns:
- TRUE if to use caches, FALSE otherwise
-