Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 1870

Show
Ignore:
Timestamp:
07/01/07 01:20:18 (1 year ago)
Author:
nahi
Message:
  • change SOAP::Filter::StreamHandler? hook method name: on_httppost_* -> on_http_*.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/soap/filter/streamhandler.rb

    r1868 r1870  
    1414 
    1515  # no returning value expected. 
    16   def on_httppost_outbound(req) 
     16  def on_http_outbound(req) 
    1717    # do something. 
    1818  end 
    1919 
    2020  # no returning value expected. 
    21   def on_httppost_inbound(req, res) 
     21  def on_http_inbound(req, res) 
    2222    # do something. 
    2323  end 
  • trunk/lib/soap/streamHandler.rb

    r1869 r1870  
    113113    def filter_request(req) 
    114114      @filterchain.each do |filter| 
    115         filter.on_httppost_outbound(req) 
     115        filter.on_http_outbound(req) 
    116116      end 
    117117    end 
     
    119119    def filter_response(req, res) 
    120120      @filterchain.each do |filter| 
    121         filter.on_httppost_inbound(req, res) 
     121        filter.on_http_inbound(req, res) 
    122122      end 
    123123    end 
  • trunk/sample/payload/cookies/filterclient.rb

    r1868 r1870  
    1111  end 
    1212 
    13   def on_httppost_outbound(req) 
     13  def on_http_outbound(req) 
    1414    req.header['Cookie'] = @cookie_value if @cookie_value 
    1515  end 
    1616 
    17   def on_httppost_inbound(req, res) 
     17  def on_http_inbound(req, res) 
    1818    # this sample filter only caputures the first cookie. 
    1919    cookie = res.header['Set-Cookie'][0] 
  • trunk/test/soap/test_cookie.rb

    r1868 r1870  
    1919    end 
    2020 
    21     def on_httppost_outbound(req) 
     21    def on_http_outbound(req) 
    2222      if @cookie_value 
    2323        req.header.delete('Cookie') 
     
    2626    end 
    2727 
    28     def on_httppost_inbound(req, res) 
     28    def on_http_inbound(req, res) 
    2929      # this sample filter only caputures the first cookie. 
    3030      cookie = res.header['Set-Cookie'][0]