Class BodyHandler
Class BodyHandler A utility class that can be used to support binary responses. Its handleBodyPart method can be used as callback to methods that require a body handler callable.
Namespace: Ingenico\Connect\Sdk
Package: Ingenico\Connect\Sdk
Located at Ingenico/Connect/Sdk/BodyHandler.php
Package: Ingenico\Connect\Sdk
Located at Ingenico/Connect/Sdk/BodyHandler.php
final public
|
#
handleBodyPart( string $bodyPart, array $headers )
Initializes this body handler if not done yet, then calls doHandleBodyPart. |
final public
|
#
close( )
Calls doCleanup, then marks this body handler as not initialized. Afterwards this instance can be reused again. |
protected
|
#
initialize( array $headers )
Can be used to initialize this body handler based on the given headers. The default implementation does nothing. |
protected
|
#
doHandleBodyPart( string $bodyPart )
Can be used to handle a single body part. The default implementation does nothing. |
protected
|
#
doCleanup( )
Can be used to do cleanup resources allocated by this body handler. The default implementation does nothing. |