Class: Vertx::HttpFrame

Inherits:
Object
  • Object
show all
Defined in:
/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/http_frame.rb

Instance Method Summary (collapse)

Constructor Details

- (HttpFrame) initialize(j_del)

Returns a new instance of HttpFrame


9
10
11
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/http_frame.rb', line 9

def initialize(j_del)
  @j_del = j_del
end

Instance Method Details

- (Object) flags

Raises:

  • (ArgumentError)


28
29
30
31
32
33
34
35
36
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/http_frame.rb', line 28

def flags
  if !block_given?
    if @cached_flags != nil
      return @cached_flags
    end
    return @cached_flags = @j_del.java_method(:flags, []).call()
  end
  raise ArgumentError, "Invalid arguments when calling flags()"
end

- (Object) j_del



14
15
16
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/http_frame.rb', line 14

def j_del
  @j_del
end

- (Object) payload

Raises:

  • (ArgumentError)


38
39
40
41
42
43
44
45
46
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/http_frame.rb', line 38

def payload
  if !block_given?
    if @cached_payload != nil
      return @cached_payload
    end
    return @cached_payload = ::Vertx::Util::Utils.safe_create(@j_del.java_method(:payload, []).call(),::Vertx::Buffer)
  end
  raise ArgumentError, "Invalid arguments when calling payload()"
end

- (Object) type

Raises:

  • (ArgumentError)


18
19
20
21
22
23
24
25
26
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/http_frame.rb', line 18

def type
  if !block_given?
    if @cached_type != nil
      return @cached_type
    end
    return @cached_type = @j_del.java_method(:type, []).call()
  end
  raise ArgumentError, "Invalid arguments when calling type()"
end