Class List Method List File List

# Class: VertxWeb::FormLoginHandler

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

## Class Method Summary (collapse)

- + (Object) create(authProvider = nil, usernameParam = nil, passwordParam = nil, returnURLParam = nil, directLoggedInOKURL = nil)

## Instance Method Summary (collapse)

- - (Object) handle(arg0 = nil)
- - (FormLoginHandler) initialize(j_del) constructor
  A new instance of FormLoginHandler.
- - (Object) j_del
- - (Object) set_direct_logged_in_okurl(directLoggedInOKURL = nil)
- - (Object) set_password_param(passwordParam = nil)
- - (Object) set_return_url_param(returnURLParam = nil)
- - (Object) set_username_param(usernameParam = nil)

## Constructor Details

### - (`FormLoginHandler`) initialize(j_del)

Returns a new instance of FormLoginHandler

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

    def initialize(j_del)
      @j_del = j_del
    end

## Class Method Details

### + (`Object`) create(authProvider = nil, usernameParam = nil, passwordParam = nil, returnURLParam = nil, directLoggedInOKURL = nil)

Raises:

- (`ArgumentError`)

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

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

## Instance Method Details

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

Raises:

- (`ArgumentError`)

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

    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

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

    def j_del
      @j_del
    end

### - (`Object`) set_direct_logged_in_okurl(directLoggedInOKURL = nil)

Raises:

- (`ArgumentError`)

    77
    78
    79
    80
    81
    82
    83
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web/form_login_handler.rb', line 77

    def set_direct_logged_in_okurl(directLoggedInOKURL=nil)
      if directLoggedInOKURL.class == String && !block_given?
        @j_del.java_method(:setDirectLoggedInOKURL, [Java::java.lang.String.java_class]).call(directLoggedInOKURL)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_direct_logged_in_okurl(directLoggedInOKURL)"
    end

### - (`Object`) set_password_param(passwordParam = nil)

Raises:

- (`ArgumentError`)

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

    def set_password_param(passwordParam=nil)
      if passwordParam.class == String && !block_given?
        @j_del.java_method(:setPasswordParam, [Java::java.lang.String.java_class]).call(passwordParam)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_password_param(passwordParam)"
    end

### - (`Object`) set_return_url_param(returnURLParam = nil)

Raises:

- (`ArgumentError`)

    66
    67
    68
    69
    70
    71
    72
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web/form_login_handler.rb', line 66

    def set_return_url_param(returnURLParam=nil)
      if returnURLParam.class == String && !block_given?
        @j_del.java_method(:setReturnURLParam, [Java::java.lang.String.java_class]).call(returnURLParam)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_return_url_param(returnURLParam)"
    end

### - (`Object`) set_username_param(usernameParam = nil)

Raises:

- (`ArgumentError`)

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

    def set_username_param(usernameParam=nil)
      if usernameParam.class == String && !block_given?
        @j_del.java_method(:setUsernameParam, [Java::java.lang.String.java_class]).call(usernameParam)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_username_param(usernameParam)"
    end