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 Summary
Modifier and TypeMethodDescriptiongetRequest(HttpServer.Request request) The remembered address -- a path, with its query -- or null.voidremoveRequest(HttpServer.Request request) Forgets it.voidsaveRequest(HttpServer.Request request) Remembersrequest's address, when it is one worth returning to.
-
Method Details
-
saveRequest
Remembersrequest's address, when it is one worth returning to. -
getRequest
The remembered address -- a path, with its query -- or null. -
removeRequest
Forgets it.
-