|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.directwebremoting.servlet.UrlProcessor
public class UrlProcessor
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 | |
---|---|
UrlProcessor()
|
Method Summary | |
---|---|
void |
afterContainerSetup(Container container)
This method allows the bean instance to perform initialization only possible when all bean properties have been set |
void |
handle(HttpServletRequest request,
HttpServletResponse response)
Handle a URL request that has been mapped to this Handler |
void |
setIndexHandlerUrl(java.lang.String indexHandlerUrl)
The URL for the IndexHandler |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UrlProcessor()
Method Detail |
---|
public void afterContainerSetup(Container container)
InitializingBean
This method allows the bean instance to perform initialization only possible when all bean properties have been set
afterContainerSetup
in interface InitializingBean
container
- The container that is doing the initializationpublic void handle(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException
Handler
handle
in interface Handler
request
- The HTTP request dataresponse
- Where we write the HTTP response data
java.io.IOException
- If the write process failspublic void setIndexHandlerUrl(java.lang.String indexHandlerUrl)
IndexHandler
indexHandlerUrl
- the indexHandlerUrl to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |