Servlet API - Javatpoint

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

6/13/22, 4:14 PM Servlet API - javatpoint

Home Core Java Servlet JSP Struts2 Mail API Hibernate Spring Android

https://www.javatpoint.com/servlet-api 1/6
6/13/22, 4:14 PM Servlet API - javatpoint

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.

Let's see what are the interfaces of javax.servlet package.

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

https://www.javatpoint.com/servlet-api 2/6
6/13/22, 4:14 PM Servlet API - javatpoint

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)

https://www.javatpoint.com/servlet-api 3/6
6/13/22, 4:14 PM Servlet API - javatpoint

<<Prev
Next>>


For Videos Join Our Youtube Channel: Join Now

Feedback

Send your Feedback to feedback@javatpoint.com

Help Others, Please Share

Learn Latest Tutorials

Splunk SPSS Swagger Transact-SQL

Tumblr ReactJS Regex Reinforcement


Learning

R Programming RxJS React Native Python Design


Patterns

Python Pillow Python Turtle Keras

https://www.javatpoint.com/servlet-api 4/6
6/13/22, 4:14 PM Servlet API - javatpoint

Preparation

Aptitude Reasoning Verbal Ability Interview Questions

Company Questions

Trending Technologies

Artificial AWS Selenium Cloud Computing


Intelligence

Hadoop ReactJS Data Science Angular 7

Machine DevOps
Learning Tutorial Tutorial
Machine Learning DevOps
Blockchain Git

B.Tech / MCA

DBMS tutorial

https://www.javatpoint.com/servlet-api 5/6
6/13/22, 4:14 PM Servlet API - javatpoint

DBMS
Data Structures DAA tutorial Operating
tutorial System tutorial
DAA
Data Structures Operating System

Computer Compiler Computer Discrete


Network tutorial Design tutorial Organization and Mathematics
Architecture Tutorial
Computer Network Compiler Design
Computer Discrete
Organization Mathematics

Ethical Hacking Computer Software html tutorial


Tutorial Graphics Tutorial Engineering
Web Technology
Tutorial
Ethical Hacking Computer Graphics
Software
Engineering

Cyber Security Automata C Language C++ tutorial


tutorial Tutorial tutorial
C++
Cyber Security Automata C Programming

Java tutorial .Net Python tutorial List of


Framework Programs
Java Python
tutorial
Programs
.Net

Control Data Mining Data


Systems tutorial Tutorial Warehouse
Tutorial
Control System Data Mining
Data Warehouse

https://www.javatpoint.com/servlet-api 6/6

You might also like