|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.alicebot.server.core.responder.SmartResponder
public class SmartResponder
The SmartResponder
is a broker for requests coming into the server.
Its goal is to accept and process a response and format it for the appropriate
device, formatting the output as needed through other Responders.
What makes it "smart" is its ability to parse the User-Agent and forward
the request to the appropriate Responder.
In general a Responder must have:
The main method of this class is doResponse()
,
which will redirects the HttpRequest as needed.
Constructor Summary | |
---|---|
SmartResponder(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Constructs a new SmartResponder
from a given servlet request, and given a
servlet response object to send back. |
Method Summary | |
---|---|
void |
doResponse()
Invokes a response. |
int |
getServiceType()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SmartResponder(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
SmartResponder
from a given servlet request, and given a
servlet response object to send back.
request
- the servlet requestresponse
- the response to modify and send backMethod Detail |
---|
public void doResponse()
public int getServiceType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |