Class IgnoreDataLoader
java.lang.Object
eu.europa.esig.dss.spi.client.http.IgnoreDataLoader
- All Implemented Interfaces:
DataLoader,Serializable
This class allows to avoid downloading resources.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface eu.europa.esig.dss.spi.client.http.DataLoader
DataLoader.DataAndUrl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Execute a HTTP GET operation.Execute a HTTP GET operation.byte[]Executes a HTTP POST operationvoidsetContentType(String contentType) This allows to set the content type.
-
Constructor Details
-
IgnoreDataLoader
public IgnoreDataLoader()Default constructor
-
-
Method Details
-
get
Description copied from interface:DataLoaderExecute a HTTP GET operation.- Specified by:
getin interfaceDataLoader- Parameters:
url- the url to access- Returns:
bytearray of obtained data or null
-
get
Description copied from interface:DataLoaderExecute a HTTP GET operation. This method is used when many URls are available to access the same resource. The operation stops after the first successful download.- Specified by:
getin interfaceDataLoader- Parameters:
urlStrings-ListofStrings representing the URLs to be used in sequential way to obtain the data.- Returns:
DataAndUrlrepresenting the array of obtained data and used url, or null
-
post
Description copied from interface:DataLoaderExecutes a HTTP POST operation- Specified by:
postin interfaceDataLoader- Parameters:
url- to accesscontent- the content to post- Returns:
bytearray of obtained data
-
setContentType
Description copied from interface:DataLoaderThis allows to set the content type. Example: Content-Type "application/ocsp-request"- Specified by:
setContentTypein interfaceDataLoader- Parameters:
contentType- to set the Content-Type
-