Class: WirisPlugin::HttpConnection

Inherits:
Http
  • Object
show all
Includes:
Wiris
Defined in:
lib/com/wiris/util/sys/HttpConnection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, listener) ⇒ HttpConnection

Returns a new instance of HttpConnection.



7
8
9
10
# File 'lib/com/wiris/util/sys/HttpConnection.rb', line 7

def initialize(url, listener)
    super(url)
    self.listener = listener
end

Instance Attribute Details

#listenerObject

Returns the value of attribute listener.



6
7
8
# File 'lib/com/wiris/util/sys/HttpConnection.rb', line 6

def listener
  @listener
end

Instance Method Details

#onData(data) ⇒ Object



11
12
13
# File 'lib/com/wiris/util/sys/HttpConnection.rb', line 11

def onData(data)
    self.listener::onHTTPData(data)
end

#onError(error) ⇒ Object



14
15
16
# File 'lib/com/wiris/util/sys/HttpConnection.rb', line 14

def onError(error)
    self.listener::onHTTPError(error)
end