Interface AdvancedDataLoader
- All Superinterfaces:
DataLoader, Serializable
- All Known Implementing Classes:
AdvancedMemoryDataLoader, CommonsDataLoader, NativeHTTPDataLoader, OCSPDataLoader, TimestampDataLoader
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.).-
Nested Class Summary
Nested classes/interfaces inherited from interface DataLoader
DataLoader.DataAndUrl -
Method Summary
Modifier and TypeMethodDescriptionrequestGet(String url) Executes a GET request and returns anResponseEnvelopeobject.requestGet(String url, boolean includeResponseDetails) Executes a GET request and returns anResponseEnvelopeobject.requestGet(String url, boolean includeResponseDetails, boolean includeResponseBody) Executes a GET request and returns anResponseEnvelopeobject.requestPost(String url, byte[] content) Executes a POST request and returns anResponseEnvelopeobject.requestPost(String url, byte[] content, boolean includeResponseDetails) Executes a POST request and returns anResponseEnvelopeobject.requestPost(String url, byte[] content, boolean includeResponseDetails, boolean includeResponseBody) Executes a POST request and returns anResponseEnvelopeobject.Methods inherited from interface DataLoader
get, get, post, setContentType
-
Method Details
-
requestGet
Executes a GET request and returns anResponseEnvelopeobject. This method included the response message body, context and metadata within the response object.- Parameters:
url-StringURL to perform request to- Returns:
ResponseEnvelope
-
requestGet
Executes a GET request and returns anResponseEnvelopeobject. 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-StringURL to perform request toincludeResponseDetails- 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 anResponseEnvelopeobject. 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-StringURL to perform request toincludeResponseDetails- defines whether the response context (HTTP headers, metadata) is to be included within the responseincludeResponseBody- defines whether the response body is to be included within the response- Returns:
ResponseEnvelope
-
requestPost
Executes a POST request and returns anResponseEnvelopeobject. This method included the response message body, context and metadata within the response object.- Parameters:
url-StringURL to perform request tocontent- byte array containing request content for the POST call- Returns:
ResponseEnvelope
-
requestPost
Executes a POST request and returns anResponseEnvelopeobject. 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-StringURL to perform request tocontent- byte array containing request content for the POST callincludeResponseDetails- 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 anResponseEnvelopeobject. 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-StringURL to perform request tocontent- byte array containing request content for the POST callincludeResponseDetails- defines whether the response context (HTTP headers, metadata) is to be included within the responseincludeResponseBody- defines whether the response body is to be included within the response- Returns:
ResponseEnvelope
-