session-package provides some interfaces to implement
session trackers.See: Description
| Interface | Description |
|---|---|
| HttpProtocol |
This interface defines the constants that are part of the HTTP protocol.
|
| SessionContext |
This interface defines an abstract session context that is associated with a session-identifier
and provides features like setting variables and removing or expiring variables of session scope.
|
| SessionTracker |
This interface defines the basic function of a session tracker.
|
| Class | Description |
|---|---|
| AbstractSessionTracker |
This class is an abstract implementation of a simple session tracker and provides the
basis for the tracker HeuristicSessionTracker and CookieSessionTracker.
|
| CookieSessionTracker |
This tracker creates a session-context wrt to a specific session-cookie.
|
| HeuristicSessionTracker |
This heuristic session-tracker implements the session-algorithm used by
most popular web-statistic tools, e.g.
|
| Session |
This class implements a data storage of some key-value-pairs, all associated
with a unique session-id.
|
The session-package provides some interfaces to implement
session trackers. The core interfaces are SessionContext, which
represents a user session among several requests and SessionTracker,
which defines the methods common to all classes that provide session tracking
facilities.
In addition to these interfaces the package does include implementations for session trackers based on
The cookie-based session tracker is probably the best starting point to implement
your own session tracker by either directly extending the cookie-session tracker
or using the AbstractSessionTracker as a basis.
Copyright © 2013 jwall.org. All Rights Reserved.