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



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

def decode_action_pack_request(action_pack_request)
end

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



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

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

#decode_response(raw_response) ⇒ Object



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

def decode_response(raw_response)
end

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



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

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



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

def encode_request(method_name, params, param_types)
end

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



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

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

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



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

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

#register_api(api) ⇒ Object



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

def register_api(api)
end

#setup(controller) ⇒ Object



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

def setup(controller)
end