|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.barracudamvc.core.comp.helper.ComponentGateway
org.barracudamvc.examples.xmlc.CompEx11
public class CompEx11
Here's an example of how the component stuff can be implemented in a standalone servlet.
Field Summary |
---|
Fields inherited from class org.barracudamvc.core.comp.helper.ComponentGateway |
---|
HTTP_SERVLET_REQUEST, HTTP_SERVLET_RESPONSE, logger, recycleChildren |
Constructor Summary | |
---|---|
CompEx11()
|
Method Summary | |
---|---|
DOMWriter |
getDOMWriter()
Get a DOMWriter. |
Document |
handleDefault(BComponent root,
ViewContext vc,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Handle the default HttpRequest. |
Methods inherited from class org.barracudamvc.core.comp.helper.ComponentGateway |
---|
doDelete, doGet, doOptions, doPost, doPut, doTrace, getIterator, handleDefault, handleEventException, handleRenderException |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doHead, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompEx11()
Method Detail |
---|
public Document handleDefault(BComponent root, ViewContext vc, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException
handleDefault
in class ComponentGateway
root
- the root component which will get rendered as a result
of this requestvc
- the ViewContext object describes what features the
client view is capable of supportingreq
- the servlet requestresp
- the servlet response
IOException
public DOMWriter getDOMWriter()
Get a DOMWriter. By default, we use a DefaultDOMWriter. If you'd like to use something else, override this method.
getDOMWriter
in class ComponentGateway
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |