That HttpServlet Class

The Http Servlet class extends Generic it is commonly used when lopil  servlets that receive and process HTTP’ flush The methods of the  cLass are summarized here


void doDe!ete(HttpServletRcquest req,

 HttpServletResponse res) throwsKrlixception, ScrvletException
void doGet(HttpServletRequ~st rcq,

HttpServletResponsc res) throws IOException, SerYletExceptio~
void doOptions(HttpServletRequest req,
HttpServletRcsponse res) throws IOExce’ption, ServletException
void doPost(HttpServletRequcst req,
HttpServletRcsponsc res) throws IOException, ServlctException
void dOPut(HttpServletRequest req,
HttpServlctResponse r1’5) throws IOException, ServletExccption
void doTrace(HttpScrvletR”cquest req
HttpServlctResponse res) throws IOExcep!ion, ServlctException
long getLastModi£ied(HttpServletRequest rL’q)
void scrvke(Ht~ervlctRequest rcq
HttpServletResponse res) throws IOException, SetvletException

Performs an HTTP DELETE.
Performs an HTTP GET.
Performs an HTTP OPTIONS.
Performs an HTTP POST.
Performs an HTTP PUT.
Performs an HTTP TRACE.

Returns the time in milliseconds since midnight, January 1, 1970, UTC) when the requested resource was last modified. Called by the server when HTTP request arrives for servlet The arguments provide access to the HTTP request and response, respectively:

[vfb id=1]

Share This