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 }]"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.create_media_type(charset) ⇒ Object


54
55
56
# File 'lib/soap/streamHandler.rb', line 54

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

.parse_media_type(str) ⇒ Object


45
46
47
48
49
50
51
52
# File 'lib/soap/streamHandler.rb', line 45

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(endpoint_url = nil) ⇒ Object


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

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

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


58
59
60
61
62
# File 'lib/soap/streamHandler.rb', line 58

def send(endpoint_url, conn_data, soapaction = nil, charset = nil)
  # send a ConnectionData to specified endpoint_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)

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

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)

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

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