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 Details

    • NativeDataLoaderCall

      public NativeDataLoaderCall​(String url, byte[] content, boolean useCaches, long maxInputSize)
      Default constructor
      Parameters:
      url - String
      content - byte array
      useCaches - if the caches shall be used
      maxInputSize - maximum InputStream size
  • Method Details

    • call

      public byte[] call()
      Specified by:
      call in interface Callable<byte[]>
    • createConnection

      protected URLConnection createConnection() throws MalformedURLException, IOException
      Creates connection
      Returns:
      URLConnection
      Throws:
      MalformedURLException - if MalformedURLException occurred
      IOException - if IOException occurred
    • getUrl

      public String 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