Class: SOAP::StreamHandler

Inherits:
Object show all
Defined in:
lib/soap/streamHandler.rb

Direct Known Subclasses

HTTPStreamHandler

Defined Under Namespace

Classes: ConnectionData

Constant Summary collapse

RUBY_VERSION_STRING =
"ruby #{ RUBY_VERSION } (#{ RUBY_RELEASE_DATE }) [#{ RUBY_PLATFORM }]"

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStreamHandler

Returns a new instance of StreamHandler.



49
50
51
# File 'lib/soap/streamHandler.rb', line 49

def initialize
  @filterchain = Filter::FilterChain.new
end

Instance Attribute Details

#filterchainObject (readonly)

Returns the value of attribute filterchain.



27
28
29
# File 'lib/soap/streamHandler.rb', line 27

def filterchain
  @filterchain
end

Class Method Details

.create_media_type(charset) ⇒ Object



62
63
64
# File 'lib/soap/streamHandler.rb', line 62

def self.create_media_type(charset)
  "#{ MediaType }; charset=#{ charset }"
end

.parse_media_type(str) ⇒ Object



53
54
55
56
57
58
59
60
# File 'lib/soap/streamHandler.rb', line 53

def self.parse_media_type(str)
  if /^#{ MediaType }(?:\s*;\s*charset=([^"]+|"[^"]+"))?$/i !~ str
    return nil
  end
  charset = $1
  charset.gsub!(/"/, '') if charset
  charset || 'us-ascii'
end

Instance Method Details

#reset(url = nil) ⇒ Object



72
73
74
75
# File 'lib/soap/streamHandler.rb', line 72

def reset(url = nil)
  # for initializing connection status if needed.
  # return value is not expected.
end

#send(url, conn_data, soapaction = nil, charset = nil) ⇒ Object



66
67
68
69
70
# File 'lib/soap/streamHandler.rb', line 66

def send(url, conn_data, soapaction = nil, charset = nil)
  # send a ConnectionData to specified url.
  # return value is a ConnectionData with receive_* property filled.
  # You can fill values of given conn_data and return it.
end

#set_wiredump_file_base(wiredump_file_base) ⇒ Object

Raises:

  • (NotImplementedError)


77
78
79
80
81
# File 'lib/soap/streamHandler.rb', line 77

def set_wiredump_file_base(wiredump_file_base)
  # for logging.  return value is not expected.
  # Override it when you want.
  raise NotImplementedError
end

#test_loopback_responseObject

Raises:

  • (NotImplementedError)


83
84
85
86
87
88
# File 'lib/soap/streamHandler.rb', line 83

def test_loopback_response
  # for loopback testing.  see HTTPStreamHandler for more detail.
  # return value is an Array of loopback responses.
  # Override it when you want.
  raise NotImplementedError
end