|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Servlet
public ServletConfig getServletConfig()
getServletConfig
in interface Servlet
public String getServletInfo()
getServletInfo
in interface Servlet
public void init(ServletConfig config) throws ServletException
init
in interface Servlet
ServletException
public void service(ServletRequest request, ServletResponse response) throws IOException, ServletException
service
in interface Servlet
IOException
ServletException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |