TODAY JAVA SCHOOL

In java school, programming, design, computer general knowledge, web application, software, web services, social media, digital marketing, oops, concept of programming language, oops feature, console media, graphics medium, first programming, c, c ++ , Java, PHP, SQL, MySQL, HTML, HTML_5, J_query, JavaScript, Bootstrap, Framework, images with logos, examples, shared and explained.

https://www.amazon.in/b?node=26373545031&linkCode=ll2&tag=1234567801cdb-21&linkId=3b9882431b00409b44141e0344b35a15&language=en_IN&ref_=as_li_ss_tl

Breaking

Thursday, 16 April 2020

Servlet API In Java | Servlet API In Java In Hindi

Servlet API

The javax.servlet and javax.servlet.http packages represent interfaces and classes for servlet api.

The javax.servlet package contains many interfaces and classes that are used by the servlet or web container. These are not specific to any protocol.

The javax.servlet.http package contains interfaces and classes that are responsible for http requests only.

Image of servlet API

Fig: Servlet API


Interfaces in javax.servlet package

There are many interfaces in javax.servlet package. They are as follows:
1.    Servlet
2.    ServletRequest
3.    ServletResponse
4.    RequestDispatcher
5.    ServletConfig
6.    ServletContext
7.    SingleThreadModel
8.    Filter
9.    FilterConfig
10.                       FilterChain
11.                       ServletRequestListener
12.                       ServletRequestAttributeListener
13.                       ServletContextListener
14.                       ServletContextAttributeListener

 

Classes in javax.servlet package

There are many classes in javax.servlet package. They are as follows:
1.    GenericServlet
2.    ServletInputStream
3.    ServletOutputStream
4.    ServletRequestWrapper
5.    ServletResponseWrapper
6.    ServletRequestEvent
7.    ServletContextEvent
8.    ServletRequestAttributeEvent
9.    ServletContextAttributeEvent
10.                       ServletException
11.                       UnavailableException



Interfaces in javax.servlet.http package

There are many interfaces in javax.servlet.http package. They are as follows:

1.    HttpServletRequest

2.    HttpServletResponse

3.    HttpSession

4.    HttpSessionListener

5.    HttpSessionAttributeListener

6.    HttpSessionBindingListener

7.    HttpSessionActivationListener

8.    HttpSessionContext (deprecated now)


Classes in javax.servlet.http package

There are many classes in javax.servlet.http package. They are as follows:

1.    HttpServlet

2.    Cookie

3.    HttpServletRequestWrapper

4.    HttpServletResponseWrapper

5.    HttpSessionEvent

6.    HttpSessionBindingEvent

7.    HttpUtils (deprecated now)


No comments:

Post a Comment