Sha256: 3a0120d92a87277e1d145b2aa3fef7856029261b939e846ed6c928e892d903dd
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 Bytes
Contents
require 'alephant/broker/models/request' require 'alephant/broker/models/response_factory' module Alephant module Broker class RequestHandler include Logger def initialize(config) @response_factory = ResponseFactory.new(config) end def process(request) begin @response_factory.response_from(request) rescue Exception => e logger.info("Broker.requestHandler.process: Exception raised (#{e.message})") @response_factory.response(500) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alephant-broker-0.0.3 | lib/alephant/broker/models/request_handler.rb |