Class: VertxStomp::ServerFrame
- Inherits:
-
Object
- Object
- VertxStomp::ServerFrame
- Defined in:
- /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-stomp/server_frame.rb
Overview
Structure passed to server handler when receiving a frame. It provides a reference on the received Hash
but also on the StompServerConnection.
Instance Method Summary (collapse)
-
- (::VertxStomp::StompServerConnection) connection
@return the connection.
-
- (Hash) frame
@return the received frame.
Instance Method Details
- (::VertxStomp::StompServerConnection) connection
@return the connection
28 29 30 31 32 33 |
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-stomp/server_frame.rb', line 28 def connection if !block_given? return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:connection, []).call(),::VertxStomp::StompServerConnection) end raise ArgumentError, "Invalid arguments when calling connection()" end |
- (Hash) frame
@return the received frame
20 21 22 23 24 25 |
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-stomp/server_frame.rb', line 20 def frame if !block_given? return @j_del.java_method(:frame, []).call() != nil ? JSON.parse(@j_del.java_method(:frame, []).call().toJson.encode) : nil end raise ArgumentError, "Invalid arguments when calling frame()" end |