io.vertx.rxjava.ext.web.handler

## Class UserSessionHandler

- java.lang.Object
- - io.vertx.rxjava.ext.web.handler.UserSessionHandler

- All Implemented Interfaces:
    Handler<RoutingContext>

      public class UserSessionHandler
      extends Object
      implements Handler<RoutingContext>

  This handler should be used if you want to store the User object in the Session so it's available between different requests, without you having re-authenticate each time. It requires that the session handler is already present on previous matching routes. It requires an Auth provider so, if the user is deserialized from a clustered session it knows which Auth provider to associate the session with.

  NOTE: This class has been automatically generated from the `original` non RX-ified interface using Vert.x codegen.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static io.vertx.lang.rx.TypeArg<UserSessionHandler>` | `__TYPE_ARG`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `UserSessionHandler(UserSessionHandler delegate)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static UserSessionHandler` | `create(AuthProvider authProvider)` Create a new handler
    `boolean` | `equals(Object o)`
    `UserSessionHandler` | `getDelegate()`
    `void` | `handle(RoutingContext event)` Something has happened, so handle it.
    `int` | `hashCode()`
    `static UserSessionHandler` | `newInstance(UserSessionHandler arg)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### __TYPE_ARG

          public static final io.vertx.lang.rx.TypeArg<UserSessionHandler> __TYPE_ARG

  - ### Constructor Detail

    - #### UserSessionHandler

          public UserSessionHandler(UserSessionHandler delegate)

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### getDelegate

          public UserSessionHandler getDelegate()

    - #### handle

          public void handle(RoutingContext event)

      Something has happened, so handle it.
      Specified by:
        `handle` in interface `Handler<RoutingContext>`
      Parameters:
        `event` - the event to handle

    - #### create

          public static UserSessionHandler create(AuthProvider authProvider)

      Create a new handler
      Parameters:
        `authProvider` - The auth provider to use
      Returns:
        the handler

    - #### newInstance

          public static UserSessionHandler newInstance(UserSessionHandler arg)

Copyright © 2018 Eclipse. All rights reserved.