Servlet과 Servlet Container
Servlet
package jakarta.servlet;
import java.io.IOException;
/**
* Defines methods that all servlets must implement.
~ 어쩌구 저쩌구
*/
public interface Servlet {
/**
* Called by the servlet container to indicate to a servlet that the servlet is being placed into service.
~ 어쩌구 저쩌구
*/
public void init(ServletConfig config) throws ServletException;
/**
* Returns a {@link ServletConfig} object, which contains initialization and startup parameters for this servlet. The
~ 어쩌구 저쩌구
*/
public ServletConfig getServletConfig();
/**
* Called by the servlet container to allow the servlet to respond to a request.
~ 어쩌구 저쩌구
*/
public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException;
/**
* Returns information about the servlet, such as author, version, and copyright.
~ 어쩌구 저쩌구
*/
public String getServletInfo();
/**
* Called by the servlet container to indicate to a servlet that the servlet is being taken out of service. This method
~ 어쩌구 저쩌구
*/
public void destroy();
}

Servlet Container


필터(Filter)란?
Summary
Last updated