Interface IRequestScope

  • All Superinterfaces:
    com.helger.commons.id.IHasID<String>, IScope
    All Known Implementing Classes:
    RequestScope

    public interface IRequestScope
    extends IScope
    Interface for a single request scope object.
    Author:
    Philip Helger
    • Method Detail

      • getSessionID

        @Nonnull
        @Nonempty
        default String getSessionID()
        Shortcut for getSessionID(true)
        Returns:
        The session ID associated with this request. May be null if no session ID is present and no session should be created.
      • getSessionID

        @Nullable
        String getSessionID​(boolean bCreateIfNotExisting)
        Parameters:
        bCreateIfNotExisting - if true a session ID is created if needed
        Returns:
        The session ID associated with this request. May be null if no session ID is present and no session should be created.