Class: SOAP::HTTPStreamHandler::HttpPostRequestFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/soap/streamHandler.rb

Instance Method Summary collapse

Constructor Details

#initialize(filterchain) ⇒ HttpPostRequestFilter

Returns a new instance of HttpPostRequestFilter.



115
116
117
# File 'lib/soap/streamHandler.rb', line 115

def initialize(filterchain)
  @filterchain = filterchain
end

Instance Method Details

#filter_request(req) ⇒ Object



119
120
121
122
123
# File 'lib/soap/streamHandler.rb', line 119

def filter_request(req)
  @filterchain.each do |filter|
    filter.on_http_outbound(req)
  end
end

#filter_response(req, res) ⇒ Object



125
126
127
128
129
# File 'lib/soap/streamHandler.rb', line 125

def filter_response(req, res)
  @filterchain.each do |filter|
    filter.on_http_inbound(req, res)
  end
end