Class HttpSessionRequestCache

java.lang.Object
com.codename1.backend.security.HttpSessionRequestCache
All Implemented Interfaces:
RequestCache

public final class HttpSessionRequestCache extends Object implements RequestCache

Remembers the address in the HTTP session, under SAVED_REQUEST.

A request is worth returning to when it is a GET a person's browser made: not one a script sent (X-Requested-With: XMLHttpRequest), not one that asks for JSON only, and not a request for the site's icon.

  • Field Details

    • SAVED_REQUEST

      public static final String SAVED_REQUEST
      The session attribute the address is stored under.
      See Also:
  • Constructor Details

    • HttpSessionRequestCache

      public HttpSessionRequestCache()
  • Method Details