Class: Seahorse::Client::Handler

Inherits:
Object
  • Object
show all
Defined in:
lib/seahorse/client/handler.rb

Direct Known Subclasses

Aws::Json::Handler, Aws::Plugins::APIGatewayHeader::Handler, Aws::Plugins::CSDSwitchToPost::Handler, Aws::Plugins::DynamoDBCRC32Validation::Handler, Aws::Plugins::DynamoDBSimpleAttributes::Handler, Aws::Plugins::EC2CopyEncryptedSnapshot::Handler, Aws::Plugins::EndpointDiscovery::Handler, Aws::Plugins::EndpointPattern::Handler, Aws::Plugins::GlacierApiVersion::Handler, Aws::Plugins::GlacierChecksums::Handler, Aws::Plugins::HelpfulSocketErrors::Handler, Aws::Plugins::IdempotencyToken::Handler, Aws::Plugins::JsonvalueConverter::Handler, Aws::Plugins::Logging::Handler, Aws::Plugins::MachineLearningPredictEndpoint::Handler, Aws::Plugins::ParamConverter::Handler, Aws::Plugins::ParamValidator::Handler, Aws::Plugins::RDSCrossRegionCopying::Handler, Aws::Plugins::RequestSigner::Handler, Aws::Plugins::ResponsePaging::Handler, Aws::Plugins::RetryErrors::Handler, Aws::Plugins::Route53IdFix::Handler, Aws::Plugins::S3Accelerate::AccelerateHandler, Aws::Plugins::S3Accelerate::OptionHandler, Aws::Plugins::S3BucketDns::Handler, Aws::Plugins::S3BucketNameRestrictions::Handler, Aws::Plugins::S3ControlDns::Handler, Aws::Plugins::S3ControlDualstack::DualstackHandler, Aws::Plugins::S3ControlDualstack::OptionHandler, Aws::Plugins::S3ControlSigner::Handler, Aws::Plugins::S3Dualstack::DualstackHandler, Aws::Plugins::S3Dualstack::OptionHandler, Aws::Plugins::S3Expect100Continue::Handler, Aws::Plugins::S3GetBucketLocationFix::Handler, Aws::Plugins::S3HostId::Handler, Aws::Plugins::S3Http200Errors::Handler, Aws::Plugins::S3LocationConstraint::Handler, Aws::Plugins::S3Md5s::Handler, Aws::Plugins::S3Redirects::Handler, Aws::Plugins::S3RequestSigner::Handler, Aws::Plugins::S3SseCpk::Handler, Aws::Plugins::S3UrlEncodedKeys::Handler, Aws::Plugins::SQSMd5s::Handler, Aws::Plugins::SQSQueueUrls::Handler, Aws::Plugins::SWFReadTimeouts::Handler, Aws::Plugins::StubResponses::Handler, Aws::Plugins::UserAgent::Handler, Aws::Query::Handler, Aws::Rest::Handler, Aws::Xml::ErrorHandler, Logging::Handler, NetHttp::Handler, Plugins::ContentLength::Handler, Plugins::Endpoint::Handler, Plugins::RaiseResponseErrors::Handler, Plugins::ResponseTarget::Handler, Plugins::RestfulBindings::Handler

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(handler = nil) ⇒ Handler

Returns a new instance of Handler.

Parameters:

  • handler (Handler) (defaults to: nil)

    (nil) The next handler in the stack that should be called from within the #call method. This value must only be nil for send handlers.



8
9
10
# File 'lib/seahorse/client/handler.rb', line 8

def initialize(handler = nil)
  @handler = handler
end

Instance Attribute Details

#handlerHandler?

Returns:



13
14
15
# File 'lib/seahorse/client/handler.rb', line 13

def handler
  @handler
end

Instance Method Details

#call(context) ⇒ Response

Parameters:

Returns:



17
18
19
# File 'lib/seahorse/client/handler.rb', line 17

def call(context)
  @handler.call(context)
end

#inspectObject



21
22
23
# File 'lib/seahorse/client/handler.rb', line 21

def inspect
  "#<#{self.class.name||'UnnamedHandler'} @handler=#{@handler.inspect}>"
end