Class List Method List File List

# Class: VertxWeb::UserHandler

Inherits:
  Object
  - Object
  - VertxWeb::UserHandler
  show all
Defined in:
  /Users/julien/java/vertx-aggregator/modules/vertx-web/src/main/resources/vertx-web/user_handler.rb

## Class Method Summary (collapse)

- + (::VertxWeb::UserHandler) create(authProvider = nil)

## Instance Method Summary (collapse)

- - (void) handle(arg0 = nil)

## Class Method Details

### + (`::VertxWeb::UserHandler`) create(authProvider = nil)

Parameters:

- authProvider (`::VertxAuth::AuthProvider`) (defaults to: `nil`)

Returns:

- (`::VertxWeb::UserHandler`)

Raises:

- (`ArgumentError`)

    27
    28
    29
    30
    31
    32
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-web/src/main/resources/vertx-web/user_handler.rb', line 27

    def self.create(authProvider=nil)
      if authProvider.class.method_defined?(:j_del) && !block_given?
        return ::VertxWeb::UserHandler.new(Java::IoVertxExtWebHandler::UserHandler.java_method(:create, [Java::IoVertxExtAuth::AuthProvider.java_class]).call(authProvider.j_del))
      end
      raise ArgumentError, "Invalid arguments when calling create(authProvider)"
    end

## Instance Method Details

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

This method returns an undefined value.

Parameters:

- arg0 (`::VertxWeb::RoutingContext`) (defaults to: `nil`)

Raises:

- (`ArgumentError`)

    19
    20
    21
    22
    23
    24
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-web/src/main/resources/vertx-web/user_handler.rb', line 19

    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