module Hessian2::Handler

Public Instance Methods

handle(data) click to toggle source
# File lib/hessian2/handler.rb, line 6
def handle(data)
  val = Hessian2.parse_rpc(data)
  begin
    res = self.send(*val)
  rescue NoMethodError, ArgumentError => e
    Hessian2.write_fault(e)
  else
    Hessian2.reply(res)
  end
end