public class User extends Service
CREATE, DISCONNECT, TIMEOUT
Constructor and Description |
---|
User() |
Modifier and Type | Method and Description |
---|---|
void |
filter(Event event)
The service method, equivalent of HttpServlet.service().
|
java.lang.String |
path()
The identifier that should trigger this service.
|
static void |
redirect(Event event) |
static void |
redirect(Event event,
java.lang.String path) |
static void |
redirect(Event event,
java.lang.String path,
boolean forward) |
static void |
refill(Event event) |
public static void redirect(Event event) throws java.io.IOException, Event
java.io.IOException
Event
public static void redirect(Event event, java.lang.String path) throws java.io.IOException, Event
java.io.IOException
Event
public static void redirect(Event event, java.lang.String path, boolean forward) throws java.io.IOException, Event
java.io.IOException
Event
public static void refill(Event event)
public java.lang.String path()
Service
event.daemon().chain(event, "/login").filter(event); throw event; // stop the chainor
event.reply().header("Location", "/login"); event.reply().code("302 Found"); throw event; // stop the chain