org.apache.myfaces.test.mock
Class MockServlet

java.lang.Object
  extended by org.apache.myfaces.test.mock.MockServlet
All Implemented Interfaces:
javax.servlet.Servlet

public class MockServlet
extends Object
implements javax.servlet.Servlet

Mock implementation of Servlet.

$Id$

Since:
1.0.0

Constructor Summary
MockServlet()
          Create a default Servlet instance.
MockServlet(javax.servlet.ServletConfig config)
          Create a new Servlet with the specified ServletConfig.
 
Method Summary
 void destroy()
          
 javax.servlet.ServletConfig getServletConfig()
          
 String getServletInfo()
          
 void init(javax.servlet.ServletConfig config)
          
 void service(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
          
 void setServletConfig(javax.servlet.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

MockServlet

public MockServlet()

Create a default Servlet instance.


MockServlet

public MockServlet(javax.servlet.ServletConfig config)
            throws javax.servlet.ServletException

Create a new Servlet with the specified ServletConfig.

Parameters:
config - The new ServletConfig instance
Throws:
javax.servlet.ServletException
Method Detail

setServletConfig

public void setServletConfig(javax.servlet.ServletConfig config)

Set the ServletConfig instance for this servlet.

Parameters:
config - The new ServletConfig instance

destroy

public void destroy()

Specified by:
destroy in interface javax.servlet.Servlet

getServletConfig

public javax.servlet.ServletConfig getServletConfig()

Specified by:
getServletConfig in interface javax.servlet.Servlet

getServletInfo

public String getServletInfo()

Specified by:
getServletInfo in interface javax.servlet.Servlet

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException

Specified by:
init in interface javax.servlet.Servlet
Throws:
javax.servlet.ServletException

service

public void service(javax.servlet.ServletRequest request,
                    javax.servlet.ServletResponse response)
             throws IOException,
                    javax.servlet.ServletException

Specified by:
service in interface javax.servlet.Servlet
Throws:
IOException
javax.servlet.ServletException


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.