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, AttrActorName, AttrArrayType, AttrArrayTypeName, AttrEncodingStyle, AttrEncodingStyleName, AttrMustUnderstand, AttrMustUnderstandName, AttrOffset, AttrOffsetName, AttrPosition, AttrPositionName, AttrRoot, AttrRootName, Base64Literal, Charset, EleBody, EleBodyName, EleEnvelope, EleEnvelopeName, EleFault, EleFaultActor, EleFaultActorName, EleFaultCode, EleFaultCodeName, EleFaultDetail, EleFaultDetailName, EleFaultName, EleFaultString, EleFaultStringName, EleHeader, EleHeaderName, EncodingNamespace, EnvelopeNamespace, LiteralNamespace, MediaType, NS, NextActor, PropertyName, RPCRouter, RPCServerException, RPCUtils, SOAPNamespaceTag, SOAPProxy, TypeMap, VERSION, ValueArray, ValueArrayName, XSDNamespaceTag, XSINamespaceTag

Constants inherited from StreamHandler

StreamHandler::RUBY_VERSION_STRING

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from StreamHandler

create_media_type, parse_media_type, #set_wiredump_file_base

Constructor Details

#initialize(options) ⇒ HTTPStreamHandler

Returns a new instance of HTTPStreamHandler.



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

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.



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

def client
  @client
end

#wiredump_file_baseObject

Returns the value of attribute wiredump_file_base.



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

def wiredump_file_base
  @wiredump_file_base
end

Class Method Details

.create(options) ⇒ Object



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

def self.create(options)
  new(options)
end

Instance Method Details

#accept_encoding_gzip=(allow) ⇒ Object



127
128
129
# File 'lib/soap/streamHandler.rb', line 127

def accept_encoding_gzip=(allow)
  @accept_encoding_gzip = allow
end

#inspectObject



131
132
133
# File 'lib/soap/streamHandler.rb', line 131

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

#reset(endpoint_url = nil) ⇒ Object



140
141
142
143
144
145
146
147
# File 'lib/soap/streamHandler.rb', line 140

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



135
136
137
138
# File 'lib/soap/streamHandler.rb', line 135

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



123
124
125
# File 'lib/soap/streamHandler.rb', line 123

def test_loopback_response
  @client.test_loopback_response
end