public final class ReferrerRelayer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COOKIE_PATH
The path for all relay cookies.
|
static boolean |
COOKIE_SECURE
The security mode for all relay cookies.
|
static String |
KEY
The key under which the state of the stage is stored.
|
static String |
KEY_HREF
The key under which the URL of the link target (stripped of any fragment) is
stored.
|
(package private) static int |
MAX_REFERRER_RESOLUTION_MS
The time limit for resolving the referrer in cases of deferred resolution, which
is 5000 ms.
|
Constructor and Description |
---|
ReferrerRelayer()
Creates the single instance of ReferrerRelayer.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
activate()
Attempts to enable the forward relayer, which will then store the state of the
stage on detection of each link gesture.
|
static String |
cookieDomain(String host)
Returns a cookie domain (e.g. ".mydomain.dom") suitable for use in a relay cookie,
or null if no domain can be determined from the provided host specification.
|
(package private) void |
resolveReferrer(Stage stage)
Attempts to resolve the referrer and immediately calls back to stage.
|
public static final String COOKIE_PATH
public static final boolean COOKIE_SECURE
public static final String KEY
public static final String KEY_HREF
static final int MAX_REFERRER_RESOLUTION_MS
ReferrerRelayer()
void activate()
public static String cookieDomain(String host)
host
- the host specification per Net.widestCookieDomain, or null. If this is an Internet address
("206.248.142.181") or "localhost", then the host ought to have no siblings
under the same domain that serve theatre pages to which it links.void resolveReferrer(Stage stage)