Class List Method List File List

# Class: VertxWeb::UserSessionHandler

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

## Class Method Summary (collapse)

- + (Object) create(authProvider = nil)

## Instance Method Summary (collapse)

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

## Constructor Details

### - (`UserSessionHandler`) initialize(j_del)

Returns a new instance of UserSessionHandler

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

    def initialize(j_del)
      @j_del = j_del
    end

## Class Method Details

### + (`Object`) create(authProvider = nil)

Raises:

- (`ArgumentError`)

    36
    37
    38
    39
    40
    41
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web/user_session_handler.rb', line 36

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

## Instance Method Details

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

Raises:

- (`ArgumentError`)

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

    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

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

    def j_del
      @j_del
    end