Overview

Namespaces

  • Ingenico
    • Connect
      • Sdk
        • Domain
          • Capture
            • Definitions
          • Definitions
          • Dispute
            • Definitions
          • Errors
            • Definitions
          • File
            • Definitions
          • Hostedcheckout
            • Definitions
          • Hostedmandatemanagement
            • Definitions
          • Installments
            • Definitions
          • Mandates
            • Definitions
          • MetaData
          • Payment
            • Definitions
          • Payout
            • Definitions
          • Product
            • Definitions
          • Refund
            • Definitions
          • Riskassessments
            • Definitions
          • Services
            • Definitions
          • Sessions
            • Definitions
          • Token
            • Definitions
          • Webhooks
        • Merchant
          • Disputes
          • Payments
          • Payouts
          • Productgroups
          • Products
          • Refunds
          • Services
          • Tokens
        • Webhooks

Classes

  • BodyHandler
  • BodyObfuscator
  • CallContext
  • Client
  • Communicator
  • CommunicatorConfiguration
  • CommunicatorLoggerHelper
  • DataObject
  • DefaultConnection
  • DefaultConnectionResponse
  • HeaderObfuscator
  • HttpHeaderHelper
  • HttpObfuscator
  • Merchant
  • MultipartDataObject
  • MultipartFormDataObject
  • ProxyConfiguration
  • RequestHeaderGenerator
  • RequestObject
  • Resource
  • ResourceLogger
  • ResponseBuilder
  • ResponseClassMap
  • ResponseExceptionFactory
  • ResponseFactory
  • ResponseHeaderBuilder
  • SplFileObjectLogger
  • UploadableFile
  • UuidGenerator
  • ValueObfuscator

Interfaces

  • CommunicatorLogger
  • Connection
  • ConnectionResponse

Exceptions

  • ApiException
  • AuthorizationException
  • DeclinedPaymentException
  • DeclinedPayoutException
  • DeclinedRefundException
  • GlobalCollectException
  • IdempotenceException
  • InvalidResponseException
  • ReferenceException
  • ResponseException
  • ValidationException
  • Overview
  • Namespace
  • Class
  • Deprecated

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
Methods summary
final public
# handleBodyPart( string $bodyPart, array $headers )

Initializes this body handler if not done yet, then calls doHandleBodyPart.

Initializes this body handler if not done yet, then calls doHandleBodyPart.

Parameters

$bodyPart
$headers
final public
# close( )

Calls doCleanup, then marks this body handler as not initialized. Afterwards this instance can be reused again.

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.

Can be used to initialize this body handler based on the given headers. The default implementation does nothing.

Parameters

$headers
protected
# doHandleBodyPart( string $bodyPart )

Can be used to handle a single body part. The default implementation does nothing.

Can be used to handle a single body part. The default implementation does nothing.

Parameters

$bodyPart
protected
# doCleanup( )

Can be used to do cleanup resources allocated by this body handler. The default implementation does nothing.

Can be used to do cleanup resources allocated by this body handler. The default implementation does nothing.

Ingenico Connect PHP SDK API documentation generated by ApiGen