<div dir="ltr" style="text-align: justify;">
<div dir="ltr" style="text-align: justify;">
<p>The <i><b>javax.servlet</b></i> and<i><b> javax.servlet.http </b></i>packages represent interfaces and classes for servlet api. Let&#8217;s see what are the interfaces of javax.servlet package.</p>
<h2>Interfaces in <i>javax.servlet</i> package</h2>
<p>There are many interfaces in <b>javax.servlet</b> package. They are as follows:</p>
<ul style="text-align: left;">
<li><b>Servlet</b></li>
<li><b>ServletRequest</b></li>
<li><b>ServletResponse</b></li>
<li><b>RequestDispatcher</b></li>
<li><b>ServletConfig</b></li>
<li><b>ServletContext</b></li>
<li><b>SingleThreadModel</b></li>
<li><b>Filter</b></li>
<li><b>FilterConfig</b></li>
<li><b>FilterChain</b></li>
<li><b>ServletRequestListener</b></li>
<li><b>ServletRequestAttributeListener</b></li>
<li><b>ServletContextListener</b></li>
<li><b>ServletContextAttributeListener</b></li>
</ul>
<div style="background-color: #f2f9fc; border: 1px solid #c9e6f2; border-radius: 3px; padding: 16px; line-height: 1.45;">
<p><span style="color: red; font-size: x-large; text-align: center;"><b>Popular Tutorials</b></span></p>
<ul style="text-align: left;">
<li><b><a href="https://dineshonjava.com/spring-tutorial/"><em><strong>Spring Tutorial</strong> </em></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-web-mvc-framework-chapter-38/"><strong><em>Spring MVC Web Tutorial </em></strong></a></b></li>
<li><b><a href="https://dineshonjava.com/introduction-to-spring-boot-a-spring-boot-complete-guide/"><strong>Spring Boot Tutorial</strong> </a></b></li>
<li><b><a href="https://dineshonjava.com/spring-security-take-baby-step-to-secure/"><em>Spring Security Tutorial</em></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-aop-tutorial-with-example-aspect-advice-pointcut-joinpoint/"><em>Spring AOP Tutorial</em></a></b></li>
<li><b><a href="https://dineshonjava.com/using-spring-jdbc-framework-chapter-32/"><em>Spring JDBC Tutorial</em></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-hateoas-hypermedia-driven-restful-web-service/"><em><strong>Spring HATEOAS </strong></em></a></b></li>
<li><b><a href="https://dineshonjava.com/microservices-with-spring-boot/"><em><strong>Microservices with Spring Boot</strong></em></a></b></li>
<li><b><a href="https://dineshonjava.com/jax-rs-web-service-tutorial/"><strong><em>REST Webservice</em> </strong></a></b></li>
<li><b><a href="https://dineshonjava.com/core-java-baby-step-to-be-best-java-ian/"><em><strong>Core Java </strong></em></a></b></li>
<li><b><a href="https://dineshonjava.com/hibernate-3-on-baby-steps/"><em><strong>Hibernate Tutorial</strong></em></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-batch-process-with-example/"><strong><em>Spring Batch</em> </strong></a></b></li>
</ul>
</div>
<h2>Classes in <b>javax.servlet </b>package</h2>
<p>There are many classes in <b>javax.servlet</b> package. They are as follows:</p>
<ul style="text-align: left;">
<li><b>GenericServlet</b></li>
<li><b>ServletInputStream</b></li>
<li><b>ServletOutputStream</b></li>
<li><b>ServletRequestWrapper</b></li>
<li><b>ServletResponseWrapper</b></li>
<li><b>ServletRequestEvent</b></li>
<li><b>ServletContextEvent</b></li>
<li><b>ServletRequestAttributeEvent</b></li>
<li><b>ServletContextAttributeEvent</b></li>
<li><b>ServletException</b></li>
<li><b>UnavailableException</b></li>
</ul>
<h2>Interfaces in <i>javax.servlet.http</i> package</h2>
<p>There are many interfaces in <b>javax.servlet.http</b> package. They are as follows:</p>
<ul style="text-align: left;">
<li><b>HttpServletRequest</b></li>
<li><b>HttpServletResponse</b></li>
<li><b>HttpSession</b></li>
<li><b>HttpSessionListener</b></li>
<li><b>HttpSessionAttributeListener</b></li>
<li><b>HttpSessionBindingListener</b></li>
<li><b>HttpSessionActivationListener</b></li>
<li><b>HttpSessionContext (deprecated now)</b></li>
</ul>
<h2>Classes in <i>javax.servlet.http</i> package</h2>
<p>There are many classes in <i><b>javax.servlet.http</b></i> package. They are as follows:</p>
<ul style="text-align: left;">
<li><b>HttpServlet</b></li>
<li><b>Cookie</b></li>
<li><b>HttpServletRequestWrapper</b></li>
<li><b>HttpServletResponseWrapper</b></li>
<li><b>HttpSessionEvent</b></li>
<li><b>HttpSessionBindingEvent</b></li>
<li><b>HttpUtils (deprecated now)</b></li>
</ul>
</div>
<div style="background-color: pink; border-width: thin; text-align: center;"><b><;<;<a href="https://dineshonjava.com/servlet-life-cycle/">Previous</a> <;<; || <a href="https://dineshonjava.com/java-servlets-overview/">Index </a>|| >;>;<a href="https://dineshonjava.com/hello-world-example-in-servlet-interface/" target="_blank" rel="noopener">Next</a> >;>;</b></div>
<p> ;</p>
<div style="background-color: #f2f9fc; border: 1px solid #c9e6f2; border-radius: 3px; padding: 16px; line-height: 1.45;">
<p><b>Servlet Related Posts</b></p>
<ol style="text-align: left;">
<li><b><a href="https://dineshonjava.com/java-servlets-overview/">Java Servlets Overview</a></b></li>
<li><b><a href="https://dineshonjava.com/servlet-life-cycle/">Servlet Life Cycle</a></b></li>
<li><b><a href="https://dineshonjava.com/hello-world-example-in-servlet-interface/">Servlet Example</a></b></li>
<li><b><a href="https://dineshonjava.com/difference-between-servletconfig-and-cervletcontext-in-java-servlet/ "> Difference between ServletConfig and ServletContext<br />
</a></b></li>
<li><b><a href="https://dineshonjava.com/difference-between-genericservlet-and/"> Difference between GenericServlet and HttpServlet<br />
</a></b></li>
<li><b><a href="https://dineshonjava.com/what-is-web-application-servlet/">What is web application?</a></b></li>
<li><b><a href="https://dineshonjava.com/advantages-of-servlets-over-cgi/">Advantages of Servlets over CGI</a></b></li>
<li><b><a href="https://dineshonjava.com/difference-between-genericservlet-and/">GenericServlet Example</a></b></li>
<li><b><a href="https://dineshonjava.com/requestdispatcher-interface/">RequestDispatcher Example</a></b></li>
<li><b><a href="https://dineshonjava.com/servletconfig-interface/">ServletConfig</a></b></li>
<li><b><a href="https://dineshonjava.com/servletcontext-interface/">ServletContext </a></b></li>
<li><b><a href="https://dineshonjava.com/servlet-filters/">Servlet Filter Example</a></b></li>
<li><b><a href="https://dineshonjava.com/servlets-database-access/">Database Access Example using Sevlet</a></b></li>
<li><b><a href="https://dineshonjava.com/servlet-upload-file-example/">File Uploading Example using Servlet</a></b></li>
</ol>
</div>
</div>
<div class="wp-post-navigation"> 
									 <div class="wp-post-navigation-pre"> 
									 <a href="https://dineshonjava.com/servlet-life-cycle/">Previous</a> 
									 </div> 
									 <div class="wp-post-navigation-next"> 
									 <a href="https://dineshonjava.com/hello-world-example-in-servlet-interface/">Next</a> 
									 </div> 
									</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
 $.post('https://dineshonjava.com/wp-admin/admin-ajax.php', {action: 'mts_view_count', id: '273'});
});
</script>
Strategy Design Patterns We can easily create a strategy design pattern using lambda. To implement…
Decorator Pattern A decorator pattern allows a user to add new functionality to an existing…
Delegating pattern In software engineering, the delegation pattern is an object-oriented design pattern that allows…
Technology has emerged a lot in the last decade, and now we have artificial intelligence;…
Managing a database is becoming increasingly complex now due to the vast amount of data…
Overview In this article, we will explore Spring Scheduler how we could use it by…