SetaPDF_Signer_InformationResolver_HttpCurlResolver Resolver for HTTP(s) using CURL functions.
File: /SetaPDF v2/Signer/InformationResolver/HttpCurlResolver.php
Class hierarchy
Implements
Summary
Properties
$_logger
protected SetaPDF_Signer_ValidationRelatedInfo_LoggerInterface SetaPDF_Signer_InformationResolver_HttpCurlResolver::$_logger
A logger instance.
$_sleeptimeAfterFailure
Defines how long the process sleeps until the next try on error in microseconds.
Methods
__construct()
public SetaPDF_Signer_InformationResolver_HttpCurlResolver::__construct (
[ array $curlOptions = array (
) ]
)The constructor.
Parameters
- $curlOptions : array
See https://www.php.net/curl-setopt
getLogger()
public SetaPDF_Signer_InformationResolver_HttpCurlResolver::getLogger (
void
): SetaPDF_Signer_ValidationRelatedInfo_LoggerInterfaceGet the logger instance.
If no logger instance was passed before a new instance of SetaPDF_Signer_ValidationRelatedInfo_Logger
is
returned.
resolve()
public SetaPDF_Signer_InformationResolver_HttpCurlResolver::resolve (
[ string $uri = null ]
): arrayParameters
- $uri : string
Return Values
An array where index 0 is the content-type and 1 is the content itself.
Exceptions
Throws SetaPDF_Signer_Exception
setCurlOptions()
public SetaPDF_Signer_InformationResolver_HttpCurlResolver::setCurlOptions (
array $curlOptions
): voidSet options for the cURL transfer.
Parameters
- $curlOptions : array
The curl options.
See
setLogger()
Parameters
setSleeptimeAfterFailure()
public SetaPDF_Signer_InformationResolver_HttpCurlResolver::setSleeptimeAfterFailure (
int $sleeptimeAfterFailure
): voidParameters
- $sleeptimeAfterFailure : int