SessionIdGenerator (Apache Tomcat 7.0.76 API Documentation)

org.apache.catalina

## Interface SessionIdGenerator

- All Known Implementing Classes:
    SessionIdGeneratorBase, StandardSessionIdGenerator

      public interface SessionIdGenerator

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `generateSessionId()` Generate and return a new session identifier.
    `String` | `generateSessionId(String route)` Generate and return a new session identifier.
    `String` | `getJvmRoute()` Return the node identifier associated with this node which will be included in the generated session ID.
    `int` | `getSessionIdLength()` Return the number of bytes for a session ID
    `void` | `setJvmRoute(String jvmRoute)` Specify the node identifier associated with this node which will be included in the generated session ID.
    `void` | `setSessionIdLength(int sessionIdLength)` Specify the number of bytes for a session ID

- - ### Method Detail

    - #### getJvmRoute

          String getJvmRoute()

      Return the node identifier associated with this node which will be included in the generated session ID.

    - #### setJvmRoute

          void setJvmRoute(String jvmRoute)

      Specify the node identifier associated with this node which will be included in the generated session ID.
      Parameters:
        `jvmRoute` - The node identifier

    - #### getSessionIdLength

          int getSessionIdLength()

      Return the number of bytes for a session ID

    - #### setSessionIdLength

          void setSessionIdLength(int sessionIdLength)

      Specify the number of bytes for a session ID
      Parameters:
        `sessionIdLength` - Number of bytes

    - #### generateSessionId

          String generateSessionId()

      Generate and return a new session identifier.

    - #### generateSessionId

          String generateSessionId(String route)

      Generate and return a new session identifier.
      Parameters:
        `route` - node identifier to include in generated id

Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.