Class ExampleServlet
- java.lang.Object
- javax.servlet.GenericServlet
- org.springframework.boot.testsupport.web.servlet.ExampleServlet
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class ExampleServlet extends javax.servlet.GenericServlet
Simple example Servlet used for testing.- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description ExampleServlet()
ExampleServlet(boolean echoRequestInfo, boolean writeWithoutContentLength)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
service(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
Constructor Detail
ExampleServlet
public ExampleServlet()
ExampleServlet
public ExampleServlet(boolean echoRequestInfo, boolean writeWithoutContentLength)
Method Detail
service
public void service(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws javax.servlet.ServletException, IOException
- Specified by:
service
in interfacejavax.servlet.Servlet
- Specified by:
service
in classjavax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
IOException