Class List Method List File List

# Class: VertxStomp::ServerFrame

Inherits:
  Object
  - Object
  - VertxStomp::ServerFrame
  show all
Defined in:
  /Users/julien/java/vertx-aggregator/modules/vertx-stomp/src/main/resources/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

Returns:

- (`::VertxStomp::StompServerConnection`)

Raises:

- (`ArgumentError`)

    28
    29
    30
    31
    32
    33
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-stomp/src/main/resources/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

Returns:

- (`Hash`)

Raises:

- (`ArgumentError`)

    20
    21
    22
    23
    24
    25
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-stomp/src/main/resources/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