|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for a generic filter, to test incoming requests and screen them out or pass them through as appropriate.
Defines a single method,
filter(HttpServletRequest, HttpServletResponse)
.
Implementing classes will check parameters or cookies in the request
and may either write to the response output stream directly, or
pass the response object on to another request dispatcher.
RequestProcessor
,
FilterBase
Field Summary | |
static int |
FILTER_BREAK
Indicates that the caller should stop procesing the request, and not process any more filters. |
static int |
FILTER_OK
Indicates the caller should continue procesing the request |
static int |
FILTER_RETURN
Indicates that the caller should not continue processing the request |
Method Summary | |
int |
filter(HttpServletRequest req,
HttpServletResponse resp,
ServletContext ctx)
The request filter interface. |
String |
getPath()
Gets the relative URL path for this Filter. |
int |
getPriority()
Gets the priority level for this filter. |
void |
setPath(String s)
Sets the relative URL path for this Filter. |
void |
setPriority(int i)
Sets the priority level for this Filter. |
Field Detail |
public static final int FILTER_RETURN
public static final int FILTER_OK
public static final int FILTER_BREAK
Method Detail |
public int filter(HttpServletRequest req, HttpServletResponse resp, ServletContext ctx) throws ACSException
req
- The servlet requestresp
- The servlet responsectx
- The servlet contextpublic void setPath(String s)
s
- The path to filter.public String getPath()
public void setPriority(int i)
i
- The priority levelpublic int getPriority()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |