Class: ActionWebService::Protocol::AbstractProtocol

Inherits:
Object
  • Object
show all
Defined in:
lib/action_web_service/protocol/abstract.rb

Overview

:nodoc:

Direct Known Subclasses

Soap::SoapProtocol, XmlRpc::XmlRpcProtocol

Instance Method Summary collapse

Instance Method Details

#decode_action_pack_request(action_pack_request) ⇒ Object



11
12
# File 'lib/action_web_service/protocol/abstract.rb', line 11

def decode_action_pack_request(action_pack_request)
end

#decode_request(raw_request, service_name, protocol_options = {}) ⇒ Object



24
25
# File 'lib/action_web_service/protocol/abstract.rb', line 24

def decode_request(raw_request, service_name, protocol_options={})
end

#decode_response(raw_response) ⇒ Object



30
31
# File 'lib/action_web_service/protocol/abstract.rb', line 30

def decode_response(raw_response)
end

#encode_action_pack_request(service_name, public_method_name, raw_body, options = {}) ⇒ Object



14
15
16
17
18
19
20
21
22
# File 'lib/action_web_service/protocol/abstract.rb', line 14

def encode_action_pack_request(service_name, public_method_name, raw_body, options={})
  klass = options[:request_class] || SimpleActionPackRequest
  request = klass.new({})
  request.request_parameters['action'] = service_name.to_s
  request.env['RAW_POST_DATA'] = raw_body
  request.env['REQUEST_METHOD'] = 'POST'
  request.env['HTTP_CONTENT_TYPE'] = 'text/xml'
  request
end

#encode_request(method_name, params, param_types) ⇒ Object



27
28
# File 'lib/action_web_service/protocol/abstract.rb', line 27

def encode_request(method_name, params, param_types)
end

#encode_response(method_name, return_value, return_type, protocol_options = {}) ⇒ Object



33
34
# File 'lib/action_web_service/protocol/abstract.rb', line 33

def encode_response(method_name, return_value, return_type, protocol_options={})
end

#protocol_client(api, protocol_name, endpoint_uri, options) ⇒ Object



36
37
# File 'lib/action_web_service/protocol/abstract.rb', line 36

def protocol_client(api, protocol_name, endpoint_uri, options)
end

#register_api(api) ⇒ Object



39
40
# File 'lib/action_web_service/protocol/abstract.rb', line 39

def register_api(api)
end

#setup(controller) ⇒ Object



8
9
# File 'lib/action_web_service/protocol/abstract.rb', line 8

def setup(controller)
end