|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A class implementing this interface can process requests.
It implements one method processRequest
that takes a request
and returns an int saying whether
the request shall be removed and served, removed without serving or kept.
It is used as a call back interface allowing a custom processing on request stored in the request queue.
Typically it can be used to serve requests stored in a request queue in a custom manner. When doing custom processing, a request should be REMOVED from the queue BEFORE serving.
Field Summary | |
static int |
KEEP
Constant indicating that the request shall be kept. |
static int |
REMOVE
Constant indicating that the request shall removed without being served. |
static int |
REMOVE_AND_SERVE
Constant indicating that the request shall be removed and served. |
Method Summary | |
int |
processRequest(Request request)
Returns one of the constants indicating the desired treatment for the request. |
Field Detail |
public static final int REMOVE_AND_SERVE
public static final int REMOVE
public static final int KEEP
Method Detail |
public int processRequest(Request request)
request
- the request to process
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |