Class: SOAP::HTTPStreamHandler

Inherits:
StreamHandler show all
Includes:
SOAP
Defined in:
lib/soap/streamHandler.rb

Constant Summary collapse

MAX_RETRY_COUNT =
times
10

Constants included from SOAP

AttrActor, AttrArrayType, AttrArrayTypeName, AttrEncodingStyle, AttrEncodingStyleName, AttrMustUnderstand, AttrMustUnderstandName, AttrOffset, AttrOffsetName, AttrPosition, AttrPositionName, AttrRoot, AttrRootName, Base64Literal, EleBody, EleBodyName, EleEnvelope, EleEnvelopeName, EleFault, EleFaultActor, EleFaultActorName, EleFaultCode, EleFaultCodeName, EleFaultDetail, EleFaultDetailName, EleFaultName, EleFaultString, EleFaultStringName, EleHeader, EleHeaderName, EncodingNamespace, EnvelopeNamespace, LiteralNamespace, MediaType, NextActor, PropertyName, SOAPNamespaceTag, TypeMap, VERSION, ValueArray, ValueArrayName, XSDNamespaceTag, XSINamespaceTag

Constants inherited from StreamHandler

StreamHandler::RUBY_VERSION_STRING

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from StreamHandler

create_media_type, parse_media_type

Constructor Details

#initialize(options) ⇒ HTTPStreamHandler

Returns a new instance of HTTPStreamHandler.



83
84
85
86
87
88
89
90
91
92
93
# File 'lib/soap/streamHandler.rb', line 83

def initialize(options)
  super()
  @client = Client.new(nil, "SOAP4R/#{ Version }")
  @wiredump_file_base = nil
  @charset = @wiredump_dev = nil
  @options = options
  set_options
  @client.debug_dev = @wiredump_dev
  @cookie_store = nil
  @accept_encoding_gzip = false
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client



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

def client
  @client
end

#wiredump_file_baseObject

Returns the value of attribute wiredump_file_base



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

def wiredump_file_base
  @wiredump_file_base
end

Instance Method Details

#accept_encoding_gzip=(allow) ⇒ Object



99
100
101
# File 'lib/soap/streamHandler.rb', line 99

def accept_encoding_gzip=(allow)
  @accept_encoding_gzip = allow
end

#inspectObject



103
104
105
# File 'lib/soap/streamHandler.rb', line 103

def inspect
  "#<#{self.class}>"
end

#reset(endpoint_url = nil) ⇒ Object



112
113
114
115
116
117
118
119
# File 'lib/soap/streamHandler.rb', line 112

def reset(endpoint_url = nil)
  if endpoint_url.nil?
    @client.reset_all
  else
    @client.reset(endpoint_url)
  end
  @client.save_cookie_store if @cookie_store
end

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



107
108
109
110
# File 'lib/soap/streamHandler.rb', line 107

def send(endpoint_url, conn_data, soapaction = nil, charset = @charset)
  conn_data.soapaction ||= soapaction # for backward conpatibility
  send_post(endpoint_url, conn_data, charset)
end

#test_loopback_responseObject



95
96
97
# File 'lib/soap/streamHandler.rb', line 95

def test_loopback_response
  @client.test_loopback_response
end