|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
public interface I_CmsRequestHandler
Describes an OpenCms request handler.
Request handlers are used for special requests to OpenCms
that should NOT be mapped to a VFS resource.
A request handler URI always start with /handle and then
one or more possible handler names as defined with the getHandlerNames()
method.
For example, if a registerd request handler has the name "MyName",
any request (in a simple setup) to /opencms/opencms/handlerMyName... will directly be transfered
to the handle(HttpServletRequest, HttpServletResponse, String) method of this
handler.
In essence, the request handlers are like simplified mini-servlets that run inside OpenCms. Of course they are not intended as replacements for real servlets. In case you require sophisticated lifecycle support use a genuine servlet instead.
| Method Summary | |
|---|---|
java.lang.String[] |
getHandlerNames()
Returns the handler name. |
void |
handle(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String name)
Handles an OpenCms request. |
| Method Detail |
|---|
java.lang.String[] getHandlerNames()
void handle(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String name)
throws java.io.IOException,
javax.servlet.ServletException
req - the current requestres - the current responsename - the handler name to invoke
javax.servlet.ServletException - in case an error occurs
java.io.IOException - in case an error occurs
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||