当前页面:
在线文档首页 >
JBOSS Portal 2.2 API 英文版文档
CommandServlet - JBOSS Portal 2.2 API 英文版文档
org.jboss.portal.server.servlet
Class CommandServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.jboss.portal.server.servlet.CommandServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class CommandServlet
- extends javax.servlet.http.HttpServlet
This servlet is used to execute command coming from another
context through a dispatching request.
The command invocation is detyped to allow it working on redeploy
and avoid class cast exception.
- See Also:
- Serialized Form
Method Summary |
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
static void |
include(CommandServlet.Dispatcher dispatcher,
ServletCommand cmd,
javax.servlet.ServletContext ctx)
Execute a command after having performed a request dispatch in the target
servlet context. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, 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 |
CommandServlet
public CommandServlet()
include
public static void include(CommandServlet.Dispatcher dispatcher,
ServletCommand cmd,
javax.servlet.ServletContext ctx)
throws java.io.IOException,
javax.servlet.ServletException
- Execute a command after having performed a request dispatch in the target
servlet context.
- Parameters:
dispatcher
- the dispatcher that will provide the request and response.cmd
- the command to execute after the inclusion is donectx
- the target servlet context
- Throws:
java.io.IOException
javax.servlet.ServletException
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
doPost
protected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException