Class: Vertx::HttpFrame
- Inherits:
-
Object
- Object
- Vertx::HttpFrame
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/http_frame.rb
Overview
An HTTP/2 frame.
Constant Summary
- @@j_api_type =
Object.new
Class Method Summary (collapse)
- + (Boolean) accept?(obj)
- + (Object) j_api_type
- + (Object) j_class
- + (Object) unwrap(obj)
- + (Object) wrap(obj)
Instance Method Summary (collapse)
-
- (Fixnum) flags
The 8-bit flags specific to the frame.
-
- (::Vertx::Buffer) payload
The frame payload.
-
- (Fixnum) type
The 8-bit type of the frame.
Class Method Details
+ (Boolean) accept?(obj)
19 20 21 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/http_frame.rb', line 19 def @@j_api_type.accept?(obj) obj.class == HttpFrame end |
+ (Object) j_api_type
28 29 30 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/http_frame.rb', line 28 def self.j_api_type @@j_api_type end |
+ (Object) j_class
31 32 33 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/http_frame.rb', line 31 def self.j_class Java::IoVertxCoreHttp::HttpFrame.java_class end |
+ (Object) unwrap(obj)
25 26 27 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/http_frame.rb', line 25 def @@j_api_type.unwrap(obj) obj.j_del end |
+ (Object) wrap(obj)
22 23 24 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/http_frame.rb', line 22 def @@j_api_type.wrap(obj) HttpFrame.new(obj) end |
Instance Method Details
- (Fixnum) flags
Returns the 8-bit flags specific to the frame
51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/http_frame.rb', line 51 def flags if !block_given? if @cached_flags != nil return @cached_flags end return @cached_flags = @j_del.java_method(:flags, []).call() end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling flags()" end end |
- (::Vertx::Buffer) payload
Returns the frame payload
36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/http_frame.rb', line 36 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 if defined?(super) super else raise ArgumentError, "Invalid arguments when calling payload()" end end |
- (Fixnum) type
Returns the 8-bit type of the frame
66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/http_frame.rb', line 66 def type if !block_given? if @cached_type != nil return @cached_type end return @cached_type = @j_del.java_method(:type, []).call() end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling type()" end end |