| org.cougaar.core.servlet.BaseServletComponent org.cougaar.pizza.servlet.PizzaPreferenceServlet
PizzaPreferenceServlet | public class PizzaPreferenceServlet extends BaseServletComponent (Code) | | The main UI for the application: shows collected RSVPs from invited guests
at "/pizza", and the progress on ordering the pizza.
Load into the Agent doing the inviting (has the
PizzaPreferences object).
In our case, that is Alice.
|
Inner Class :protected class PizzaWorker extends HttpServlet | |
Inner Class :protected class PizzaFormatter | |
Method Summary | |
protected Servlet | createServlet() Using an inner class to implement the Servlet interface
provides a useful design pattern. | protected String | getPath() This servlet listens at "/pizza". | public void | load() Load services needed by this servlet: BlackboardQueryService, AgentIDService. | public void | unload() Whenever you have a load() method, you should have an unload, to release services. |
createServlet | protected Servlet createServlet()(Code) | | Using an inner class to implement the Servlet interface
provides a useful design pattern.
|
getPath | protected String getPath()(Code) | | This servlet listens at "/pizza".
|
load | public void load()(Code) | | Load services needed by this servlet: BlackboardQueryService, AgentIDService.
Uses the BlackboardQueryService to get a snapshot of the blackboard
status when a user asks, and the AgentIDService to get this agent's name.
|
unload | public void unload()(Code) | | Whenever you have a load() method, you should have an unload, to release services.
|
|
|