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.



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

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

Instance Attribute Details

#filterchainObject (readonly)

Returns the value of attribute filterchain.



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

def filterchain
  @filterchain
end

Class Method Details

.create_media_type(charset) ⇒ Object



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

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

.parse_media_type(str) ⇒ Object



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

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



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

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



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

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)


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

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)


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

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