uk.ltd.getahead.dwr.impl
Class DefaultProcessor

java.lang.Object
  extended byuk.ltd.getahead.dwr.impl.DefaultProcessor
All Implemented Interfaces:
Processor

public class DefaultProcessor
extends java.lang.Object
implements Processor

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:

Author:
Joe Walker [joe at getahead dot ltd dot uk]

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

DefaultProcessor

public DefaultProcessor()
Method Detail

handle

public void handle(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse resp)
            throws java.io.IOException,
                   javax.servlet.ServletException
Description copied from interface: Processor
Handle a request, the equivalent of doGet and doPost

Specified by:
handle in interface Processor
Parameters:
req - The HTTP request parameters
resp - The HTTP response data
Throws:
javax.servlet.ServletException - Other failures
java.io.IOException - If i/o fails

setExec

public void setExec(Processor exec)
Parameters:
exec - The exec to set.

setFile

public void setFile(FileProcessor file)
Parameters:
file - The file to set.

setInterface

public void setInterface(Processor iface)
Parameters:
iface - The iface to set.

setIndex

public void setIndex(Processor index)
Parameters:
index - The index to set.

setTest

public void setTest(Processor test)
Parameters:
test - The test to set.

setNullPathInfoWorkaround

public void setNullPathInfoWorkaround(java.lang.String nullPathInfoWorkaround)
Do we use our hack for when pathInfo is null?

Parameters:
nullPathInfoWorkaround - The nullPathInfoWorkaround to set.

Copyright ? 2005