Interface AdvancedDataLoader

All Superinterfaces:
DataLoader, Serializable
All Known Implementing Classes:
AdvancedMemoryDataLoader, CommonsDataLoader, NativeHTTPDataLoader, OCSPDataLoader, TimestampDataLoader

public interface AdvancedDataLoader extends DataLoader
This data loader is used to perform a remote request (HTTP, HTTPS, etc.) and retrieve a eu.europa.esig.dss.model.http.ResponseEnvelope object, containing contextual information delivered from the response (response body, headers, session data, etc.).
  • Method Details

    • requestGet

      ResponseEnvelope requestGet(String url)
      Executes a GET request and returns an ResponseEnvelope object. This method included the response message body, context and metadata within the response object.
      Parameters:
      url - String URL to perform request to
      Returns:
      ResponseEnvelope
    • requestGet

      ResponseEnvelope requestGet(String url, boolean includeResponseDetails)
      Executes a GET request and returns an ResponseEnvelope object. This method allows configuration whether the response context (HTTP headers, TLS/SSL certificates, etc.), is to be included within the response object. The response body will be included within the response, when calling this method.
      Parameters:
      url - String URL to perform request to
      includeResponseDetails - defines whether the response context (HTTP headers, metadata) is to be included within the response
      Returns:
      ResponseEnvelope
    • requestGet

      ResponseEnvelope requestGet(String url, boolean includeResponseDetails, boolean includeResponseBody)
      Executes a GET request and returns an ResponseEnvelope object. This method allows configuration whether the response context (HTTP headers, TLS/SSL certificates, etc.), as well as the response message body are to be included within the response object. The data which is not included, won't be read by the execution process, thus helping to achieve time-memory efficiency.
      Parameters:
      url - String URL to perform request to
      includeResponseDetails - defines whether the response context (HTTP headers, metadata) is to be included within the response
      includeResponseBody - defines whether the response body is to be included within the response
      Returns:
      ResponseEnvelope
    • requestPost

      ResponseEnvelope requestPost(String url, byte[] content)
      Executes a POST request and returns an ResponseEnvelope object. This method included the response message body, context and metadata within the response object.
      Parameters:
      url - String URL to perform request to
      content - byte array containing request content for the POST call
      Returns:
      ResponseEnvelope
    • requestPost

      ResponseEnvelope requestPost(String url, byte[] content, boolean includeResponseDetails)
      Executes a POST request and returns an ResponseEnvelope object. This method allows configuration whether the response context (HTTP headers, TLS/SSL certificates, etc.), is to be included within the response object. The response body will be included within the response, when calling this method.
      Parameters:
      url - String URL to perform request to
      content - byte array containing request content for the POST call
      includeResponseDetails - defines whether the response context (HTTP headers, metadata) is to be included within the response
      Returns:
      ResponseEnvelope
    • requestPost

      ResponseEnvelope requestPost(String url, byte[] content, boolean includeResponseDetails, boolean includeResponseBody)
      Executes a POST request and returns an ResponseEnvelope object. This method allows configuration whether the response context (HTTP headers, TLS/SSL certificates, etc.), as well as the response message body are to be included within the response object. The data which is not included, won't be read by the execution process, thus helping to achieve time-memory efficiency.
      Parameters:
      url - String URL to perform request to
      content - byte array containing request content for the POST call
      includeResponseDetails - defines whether the response context (HTTP headers, metadata) is to be included within the response
      includeResponseBody - defines whether the response body is to be included within the response
      Returns:
      ResponseEnvelope