Class List Method List File List

# Class: VertxWeb::CookieHandler

Inherits:
  Object
  - Object
  - VertxWeb::CookieHandler
  show all
Defined in:
  /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web/cookie_handler.rb

## Class Method Summary (collapse)

- + (Object) create

## Instance Method Summary (collapse)

- - (Object) handle(arg0 = nil)
- - (CookieHandler) initialize(j_del) constructor
  A new instance of CookieHandler.
- - (Object) j_del

## Constructor Details

### - (`CookieHandler`) initialize(j_del)

Returns a new instance of CookieHandler

    10
    11
    12
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web/cookie_handler.rb', line 10

    def initialize(j_del)
      @j_del = j_del
    end

## Class Method Details

### + (`Object`) create

Raises:

- (`ArgumentError`)

    28
    29
    30
    31
    32
    33
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web/cookie_handler.rb', line 28

    def self.create
      if !block_given?
        return ::Vertx::Util::Utils.safe_create(Java::IoVertxExtWebHandler::CookieHandler.java_method(:create, []).call(),::VertxWeb::CookieHandler)
      end
      raise ArgumentError, "Invalid arguments when calling create()"
    end

## Instance Method Details

### - (`Object`) handle(arg0 = nil)

Raises:

- (`ArgumentError`)

    20
    21
    22
    23
    24
    25
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web/cookie_handler.rb', line 20

    def handle(arg0=nil)
      if arg0.class.method_defined?(:j_del) && !block_given?
        return @j_del.java_method(:handle, [Java::IoVertxExtWeb::RoutingContext.java_class]).call(arg0.j_del)
      end
      raise ArgumentError, "Invalid arguments when calling handle(arg0)"
    end

### - (`Object`) j_del

    15
    16
    17
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web/cookie_handler.rb', line 15

    def j_del
      @j_del
    end