Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public enum SessionCreationPolicy
- Object
- Enum<SessionCreationPolicy>
- SessionCreationPolicy
ImplementsComparable<SessionCreationPolicy>
Whether a chain may use the HTTP session.
Enum constants
ALWAYS | Every request under the chain gets a session. |
NEVER | The chain never starts a session and uses one that is already there. |
IF_REQUIRED | A session starts when the chain needs one: at sign-in, or to remember where an anonymous request was going. |
STATELESS | The chain neither starts nor reads a session: each request carries its own credentials. |
Methods
public static SessionCreationPolicy[] values() | |
public static SessionCreationPolicy valueOf(String name) |
Inherited methods
Enum constant details
ALWAYS
ALWAYSEvery request under the chain gets a session.
NEVER
NEVERThe chain never starts a session and uses one that is already there.
IF_REQUIRED
IF_REQUIREDA session starts when the chain needs one: at sign-in, or to remember
where an anonymous request was going. The default.
STATELESS
STATELESSThe chain neither starts nor reads a session: each request carries its
own credentials.
Method details
values
public static SessionCreationPolicy[] values()valueOf
public static SessionCreationPolicy valueOf(String name)