Class: SOAP::StreamHandler

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

Direct Known Subclasses

HTTPStreamHandler

Defined Under Namespace

Classes: ConnectionData

Constant Summary

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

- (StreamHandler) initialize



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

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

Instance Attribute Details

- (Object) filterchain (readonly)

Returns the value of attribute filterchain



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

def filterchain
  @filterchain
end

Class Method Details

+ (Object) create_media_type(charset)



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

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

+ (Object) parse_media_type(str)



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

- (Object) reset(url = nil)



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

- (Object) send(url, conn_data, soapaction = nil, charset = nil)



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

- (Object) set_wiredump_file_base(wiredump_file_base)

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

- (Object) test_loopback_response

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