org.enhydra.barracuda.tutorials.comp
Class HelloWorld2

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.enhydra.barracuda.core.comp.helper.ComponentGateway
              extended byorg.enhydra.barracuda.tutorials.comp.HelloWorld2
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class HelloWorld2
extends ComponentGateway

Here's an example of HelloWorld using the BTemplate component

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.enhydra.barracuda.core.comp.helper.ComponentGateway
logger, recycleChildren
 
Constructor Summary
HelloWorld2()
           
 
Method Summary
 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.enhydra.barracuda.core.comp.helper.ComponentGateway
doDelete, doGet, doOptions, doPost, doPut, doTrace, getDOMWriter, 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

HelloWorld2

public HelloWorld2()
Method Detail

handleDefault

public Document handleDefault(BComponent root,
                              ViewContext vc,
                              javax.servlet.http.HttpServletRequest req,
                              javax.servlet.http.HttpServletResponse resp)
                       throws IOException
Handle the default HttpRequest.

Specified by:
handleDefault in class ComponentGateway
Parameters:
root - the root component which will get rendered as a result of this request
vc - the ViewContext object describes what features the client view is capable of supporting
req - the servlet request
resp - the servlet response
Returns:
the Document to be rendered
Throws:
IOException


Copyright © 2003 BarracudaMVC.org All Rights Reserved.