Class SingleIndexResolver<S extends Session>

java.lang.Object
org.springframework.session.SingleIndexResolver<S>
Type Parameters:
S - the type of Session being handled
All Implemented Interfaces:
IndexResolver<S>
Direct Known Subclasses:
PrincipalNameIndexResolver

public abstract class SingleIndexResolver<S extends Session> extends Object implements IndexResolver<S>
Base class for IndexResolvers that resolve a single index.
Since:
2.2.0
  • Constructor Details

    • SingleIndexResolver

      protected SingleIndexResolver(String indexName)
  • Method Details

    • getIndexName

      protected String getIndexName()
    • resolveIndexValueFor

      public abstract String resolveIndexValueFor(S session)
    • resolveIndexesFor

      public final Map<String,String> resolveIndexesFor(S session)
      Description copied from interface: IndexResolver
      Resolve indexes for the session.
      Specified by:
      resolveIndexesFor in interface IndexResolver<S extends Session>
      Parameters:
      session - the session
      Returns:
      a map of resolved indexes, never null