public final class Request
extends java.lang.Object
ThreadLocal
.Modifier and Type | Method and Description |
---|---|
EditSession |
getEditSession()
Get the
EditSession . |
LocalSession |
getSession()
Get the request session.
|
World |
getWorld()
Get the request world.
|
boolean |
isValid()
Check if the current request object is still valid.
|
static Request |
request()
Get the current request, which is specific to the current thread.
|
static void |
reset()
Reset the current request and clear all fields.
|
void |
setEditSession(EditSession editSession)
Set the
EditSession . |
void |
setSession(LocalSession session)
Get the request session.
|
void |
setWorld(World world)
Set the request world.
|
@Nullable public World getWorld()
public void setWorld(@Nullable World world)
world
- the world, which may be null@Nullable public LocalSession getSession()
public void setSession(@Nullable LocalSession session)
session
- the session, which may be null@Nullable public EditSession getEditSession()
EditSession
.public void setEditSession(@Nullable EditSession editSession)
EditSession
.editSession
- the edit session, which may be nullpublic static Request request()
public static void reset()
public boolean isValid()