|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shale.test.mock.MockServlet
public class MockServlet
Mock implementation of Servlet.
| Constructor Summary | |
|---|---|
MockServlet()
Create a default Servlet instance. |
|
MockServlet(ServletConfig config)
Create a new Servlet with the specified ServletConfig. |
|
| Method Summary | |
|---|---|
void |
destroy()
|
ServletConfig |
getServletConfig()
|
String |
getServletInfo()
|
void |
init(ServletConfig config)
|
void |
service(ServletRequest request,
ServletResponse response)
|
void |
setServletConfig(ServletConfig config)
Set the ServletConfig instance for this servlet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockServlet()
Create a default Servlet instance.
public MockServlet(ServletConfig config)
throws ServletException
Create a new Servlet with the specified ServletConfig.
config - The new ServletConfig instance
ServletException| Method Detail |
|---|
public void setServletConfig(ServletConfig config)
Set the ServletConfig instance for this servlet.
config - The new ServletConfig instancepublic void destroy()
destroy in interface Servletpublic ServletConfig getServletConfig()
getServletConfig in interface Servletpublic String getServletInfo()
getServletInfo in interface Servlet
public void init(ServletConfig config)
throws ServletException
init in interface ServletServletException
public void service(ServletRequest request,
ServletResponse response)
throws IOException,
ServletException
service in interface ServletIOException
ServletException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||