public class GuiceComponentServlet
extends javax.servlet.http.HttpServlet
new ServletModule(){
protected void configureServlets() {
serve("/web/*").with(GuiceComponentServlet.class);
// list all page classes here
bind(HomePage.class);
}
}
| Constructor and Description |
|---|
GuiceComponentServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Dispatch an incoming request to a Renderable component
by looking for a named component that matches the path.
|
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Dispatch an incoming request to a PostHandler component
by looking for a named component that matches the path.
|
void |
init(javax.servlet.ServletConfig config)
Initializes the mapping between path info and Renderable components.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprotected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionpublic void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionCopyright © 2010–2018. All rights reserved.