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
ConstructorsConstructorDescriptionNativeDataLoaderCall(String url, byte[] content, boolean useCaches, long maxInputSize) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionbyte[]call()protected URLConnectionCreates connectionbyte[]Gets contentlongGets the maximum InputStream sizegetUrl()Gets URLbooleanGets if the caches are used
-
Constructor Details
-
NativeDataLoaderCall
Default constructor- Parameters:
url-Stringcontent- byte arrayuseCaches- if the caches shall be usedmaxInputSize- maximum InputStream size
-
-
Method Details
-
call
public byte[] call() -
createConnection
Creates connection- Returns:
URLConnection- Throws:
IOException- 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
-