Class: WirisPlugin::HttpConnection
- Inherits:
-
Http
- Object
- Http
- WirisPlugin::HttpConnection
- Includes:
- Wiris
- Defined in:
- lib/com/wiris/util/sys/HttpConnection.rb
Instance Attribute Summary collapse
-
#listener ⇒ Object
Returns the value of attribute listener.
Instance Method Summary collapse
-
#initialize(url, listener) ⇒ HttpConnection
constructor
A new instance of HttpConnection.
- #onData(data) ⇒ Object
- #onError(error) ⇒ Object
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
#listener ⇒ Object
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 |