Class List Method List File List

# Class: Vertx::HttpServerRequestStream

Inherits:
  Object
  - Object
  - Vertx::HttpServerRequestStream
  show all
Includes:
  ReadStream
Defined in:
  /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/http_server_request_stream.rb

## Instance Method Summary (collapse)

- - (Object) end_handler
- - (Object) exception_handler
- - (Object) handler
- - (HttpServerRequestStream) initialize(j_del) constructor
  A new instance of HttpServerRequestStream.
- - (Object) j_del
- - (Object) pause
- - (Object) resume

## Constructor Details

### - (`HttpServerRequestStream`) initialize(j_del)

Returns a new instance of HttpServerRequestStream

    12
    13
    14
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/http_server_request_stream.rb', line 12

    def initialize(j_del)
      @j_del = j_del
    end

## Instance Method Details

### - (`Object`) end_handler

Raises:

- (`ArgumentError`)

    56
    57
    58
    59
    60
    61
    62
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/http_server_request_stream.rb', line 56

    def end_handler
      if block_given?
        @j_del.java_method(:endHandler, [Java::IoVertxCore::Handler.java_class]).call(Proc.new { yield })
        return self
      end
      raise ArgumentError, "Invalid arguments when calling end_handler()"
    end

### - (`Object`) exception_handler

Raises:

- (`ArgumentError`)

    22
    23
    24
    25
    26
    27
    28
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/http_server_request_stream.rb', line 22

    def exception_handler
      if block_given?
        @j_del.java_method(:exceptionHandler, [Java::IoVertxCore::Handler.java_class]).call((Proc.new { |event| yield(::Vertx::Util::Utils.from_throwable(event)) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling exception_handler()"
    end

### - (`Object`) handler

Raises:

- (`ArgumentError`)

    31
    32
    33
    34
    35
    36
    37
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/http_server_request_stream.rb', line 31

    def handler
      if block_given?
        @j_del.java_method(:handler, [Java::IoVertxCore::Handler.java_class]).call((Proc.new { |event| yield(::Vertx::Util::Utils.safe_create(event,::Vertx::HttpServerRequest)) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling handler()"
    end

### - (`Object`) j_del

    17
    18
    19
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/http_server_request_stream.rb', line 17

    def j_del
      @j_del
    end

### - (`Object`) pause

Raises:

- (`ArgumentError`)

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

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

### - (`Object`) resume

Raises:

- (`ArgumentError`)

    47
    48
    49
    50
    51
    52
    53
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/http_server_request_stream.rb', line 47

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