Interface RequestCache

All Known Implementing Classes:
HttpSessionRequestCache, NullRequestCache

public interface RequestCache

Remembers where an anonymous request was going, so that signing in can send the user there instead of to a fixed page.

Only the address is kept, and only of a GET: a request with a body is not replayed after sign-in.

  • Method Details

    • saveRequest

      void saveRequest(HttpServer.Request request)
      Remembers request's address, when it is one worth returning to.
    • getRequest

      String getRequest(HttpServer.Request request)
      The remembered address -- a path, with its query -- or null.
    • removeRequest

      void removeRequest(HttpServer.Request request)
      Forgets it.