|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ltd.getahead.dwr.impl.DefaultProcessor
This is the main servlet that handles all the requests to DWR.
It is on the large side because it can't use technologies like JSPs etc since it all needs to be deployed in a single jar file, and while it might be possible to integrate Velocity or similar I think simplicity is more important, and there are only 2 real pages both script heavy in this servlet anyway.
There are 5 things to do, in the order that you come across them:
Constructor Summary | |
DefaultProcessor()
|
Method Summary | |
void |
handle(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Handle a request, the equivalent of doGet and doPost |
void |
setExec(Processor exec)
|
void |
setFile(FileProcessor file)
|
void |
setIndex(Processor index)
|
void |
setInterface(Processor iface)
|
void |
setNullPathInfoWorkaround(java.lang.String nullPathInfoWorkaround)
Do we use our hack for when pathInfo is null? |
void |
setTest(Processor test)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultProcessor()
Method Detail |
public void handle(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws java.io.IOException, javax.servlet.ServletException
Processor
handle
in interface Processor
req
- The HTTP request parametersresp
- The HTTP response data
javax.servlet.ServletException
- Other failures
java.io.IOException
- If i/o failspublic void setExec(Processor exec)
exec
- The exec to set.public void setFile(FileProcessor file)
file
- The file to set.public void setInterface(Processor iface)
iface
- The iface to set.public void setIndex(Processor index)
index
- The index to set.public void setTest(Processor test)
test
- The test to set.public void setNullPathInfoWorkaround(java.lang.String nullPathInfoWorkaround)
nullPathInfoWorkaround
- The nullPathInfoWorkaround to set.
|
Copyright ? 2005 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |