Class: ActionWebService::Protocol::AbstractProtocol
- Inherits:
-
Object
- Object
- ActionWebService::Protocol::AbstractProtocol
show all
- Defined in:
- lib/action_web_service/protocol/abstract.rb
Overview
Instance Method Summary
collapse
-
#decode_action_pack_request(action_pack_request) ⇒ Object
-
#decode_request(raw_request, service_name, protocol_options = {}) ⇒ Object
-
#decode_response(raw_response) ⇒ Object
-
#encode_action_pack_request(service_name, public_method_name, raw_body, options = {}) ⇒ Object
-
#encode_request(method_name, params, param_types) ⇒ Object
-
#encode_response(method_name, return_value, return_type, protocol_options = {}) ⇒ Object
-
#protocol_client(api, protocol_name, endpoint_uri, options) ⇒ Object
-
#register_api(api) ⇒ Object
-
#setup(controller) ⇒ Object
Instance Method Details
#decode_action_pack_request(action_pack_request) ⇒ Object
13
14
|
# File 'lib/action_web_service/protocol/abstract.rb', line 13
def decode_action_pack_request(action_pack_request)
end
|
#decode_request(raw_request, service_name, protocol_options = {}) ⇒ Object
26
27
|
# File 'lib/action_web_service/protocol/abstract.rb', line 26
def decode_request(raw_request, service_name, protocol_options={})
end
|
#decode_response(raw_response) ⇒ Object
32
33
|
# File 'lib/action_web_service/protocol/abstract.rb', line 32
def decode_response(raw_response)
end
|
#encode_action_pack_request(service_name, public_method_name, raw_body, options = {}) ⇒ Object
16
17
18
19
20
21
22
23
24
|
# File 'lib/action_web_service/protocol/abstract.rb', line 16
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
29
30
|
# File 'lib/action_web_service/protocol/abstract.rb', line 29
def encode_request(method_name, params, param_types)
end
|
#encode_response(method_name, return_value, return_type, protocol_options = {}) ⇒ Object
35
36
|
# File 'lib/action_web_service/protocol/abstract.rb', line 35
def encode_response(method_name, return_value, return_type, protocol_options={})
end
|
#protocol_client(api, protocol_name, endpoint_uri, options) ⇒ Object
38
39
|
# File 'lib/action_web_service/protocol/abstract.rb', line 38
def protocol_client(api, protocol_name, endpoint_uri, options)
end
|
#register_api(api) ⇒ Object
41
42
|
# File 'lib/action_web_service/protocol/abstract.rb', line 41
def register_api(api)
end
|
#setup(controller) ⇒ Object
10
11
|
# File 'lib/action_web_service/protocol/abstract.rb', line 10
def setup(controller)
end
|