SlideShare a Scribd company logo
Advanced java programming
Servlet API & Servlet Http package
By
P.Abinaya
Servlet api & servlet http package
 Two packages contain the classes and
interfaces that are required to build
servlets.
 Then are javax.servlet and
javax.servlet.http.
 The Servelt API has been in a process of
ongoing development and enhancement.
 The current servlet specification is version
2.4.
Servlet api & servlet http package
 The javax.servlet.http package
contains a number of classes and
interfaces that describe and define the
contracts between a servlet class
running under the HTTP protocol and
the runtime environment provided for
an instance of such a class by a
conforming servlet container.
 init()
 Service()
 Destroy()
 That methods are the life cycle methods of
servlet.
 The getServletConfig() method is called by
the servlet to obtain initialization
parameter.
HttpServletRequest
Extends the ServletRequest interface
to provide request information for
HTTP servlets.
HttpServletResponse
Extends the ServletResponse interface
to provide HTTP-specific functionality
in sending a response.
The javax.servlet.http package
contains a number of interfaces
and classes that are commonly
used by servlet developers.
That its functionality makes it
easy to build servlets that work
with HTTP requests and
responses.
 The HttpServletRequest Interface
 Extends the ServletRequest interface to
provide request information for HTTP
servlets.
 The HttpServletRequest Interface
Extends the ServletResponse interface to
provide HTTP-specific functionality in
sending a response.
 The Cookie class encapsulates a cookie.
 A cookie is stored on a client and contains
state information.
 Some of the information that is saved for
each cookie includes the following:
o The name of the cookie.
o The value of the cookie.
o The expiration date of the cookie.
o The domain and path of the cookie.
 The HttpServlet class provides specialized
methods that handle the various types of
HTTP requests.
 The methods are
 doDelet()
 DoGet()
 doHead()
 doOptions()
 doPut()
 doTrace().
Servlet api & servlet http package

More Related Content

PPTX
Javax.servlet,http packages
PPT
Knowledge Sharing : Java Servlet
PPT
An Introduction To Java Web Technology
RTF
Servlet lifecycle
DOCX
Servlet
PPTX
Servletarchitecture,lifecycle,get,post
PPT
Java servlets
PPT
JAVA Servlets
Javax.servlet,http packages
Knowledge Sharing : Java Servlet
An Introduction To Java Web Technology
Servlet lifecycle
Servlet
Servletarchitecture,lifecycle,get,post
Java servlets
JAVA Servlets

What's hot (20)

PPTX
Chapter 3 servlet & jsp
PPTX
PPT
Listeners and filters in servlet
PPT
Java Servlet
PPT
Java Servlets
PPT
Servlet ppt by vikas jagtap
PPTX
Servlets
PPT
Web Tech Java Servlet Update1
PDF
Servlet and servlet life cycle
PPT
Java Servlets
PPTX
java Servlet technology
PPT
Java servlet life cycle - methods ppt
DOC
Java Servlets & JSP
PPTX
Servlets
PDF
java servlet and servlet programming
PPTX
Servlet.ppt
PPTX
Java Servlets
PPT
Servlet/JSP course chapter 1: Introduction to servlets
PPTX
UNIT-3 Servlet
Chapter 3 servlet & jsp
Listeners and filters in servlet
Java Servlet
Java Servlets
Servlet ppt by vikas jagtap
Servlets
Web Tech Java Servlet Update1
Servlet and servlet life cycle
Java Servlets
java Servlet technology
Java servlet life cycle - methods ppt
Java Servlets & JSP
Servlets
java servlet and servlet programming
Servlet.ppt
Java Servlets
Servlet/JSP course chapter 1: Introduction to servlets
UNIT-3 Servlet
Ad

Similar to Servlet api & servlet http package (20)

PPTX
Http Server Programming in JAVA - Handling http requests and responses
PPTX
Servlet in java , java servlet , servlet servlet and CGI, API
PPT
Module 4.pptModule 4.pptModule 4.pptModule 4.ppt
PPT
Servlet1.ppt
PPT
Servlet.ppt
PPT
Servlet.ppt
PPT
Servlet (1) also contains code to create it.ppt
PPTX
Java servlets
PPT
Servlet123jkhuiyhkjkljioyudfrtsdrestfhgb
PPTX
Servlets api overview
PPT
PPT
Chap4 4 1
PPTX
PPTX
Servlets-UNIT3and introduction to servlet
PPTX
servlets sessions and cookies, jdbc connectivity
PDF
Java EE 01-Servlets and Containers
PDF
Java Servlet Programming under Ubuntu Linux by Tushar B Kute
PPT
Session 1 introduction servlet - Giáo trình Bách Khoa Aptech
PPTX
WEB TECHNOLOGY Unit-3.pptx
PPTX
CS8651 IP Unit 3.pptx
Http Server Programming in JAVA - Handling http requests and responses
Servlet in java , java servlet , servlet servlet and CGI, API
Module 4.pptModule 4.pptModule 4.pptModule 4.ppt
Servlet1.ppt
Servlet.ppt
Servlet.ppt
Servlet (1) also contains code to create it.ppt
Java servlets
Servlet123jkhuiyhkjkljioyudfrtsdrestfhgb
Servlets api overview
Chap4 4 1
Servlets-UNIT3and introduction to servlet
servlets sessions and cookies, jdbc connectivity
Java EE 01-Servlets and Containers
Java Servlet Programming under Ubuntu Linux by Tushar B Kute
Session 1 introduction servlet - Giáo trình Bách Khoa Aptech
WEB TECHNOLOGY Unit-3.pptx
CS8651 IP Unit 3.pptx
Ad

More from renukarenuka9 (20)

PPTX
mobile computing
PPTX
PPTX
Compiler design
PPTX
Web programming
PPTX
Software engineering
PPTX
Software engineering
PPTX
Software engineering
PPTX
Bigdata
PPTX
Bigdata ppt
PPTX
PPTX
PPTX
operating system
PPTX
PPTX
OPERATING SYSTEM
PPTX
Data mining
PPTX
Computer network
PPTX
computer network
PPTX
operating system
PPTX
data mining
PPTX
COMPUTER NETWORK
mobile computing
Compiler design
Web programming
Software engineering
Software engineering
Software engineering
Bigdata
Bigdata ppt
operating system
OPERATING SYSTEM
Data mining
Computer network
computer network
operating system
data mining
COMPUTER NETWORK

Recently uploaded (20)

DOCX
Q1_LE_Mathematics 8_Lesson 5_Week 5.docx
PDF
HPLC-PPT.docx high performance liquid chromatography
PPTX
Introduction to Fisheries Biotechnology_Lesson 1.pptx
PPTX
famous lake in india and its disturibution and importance
PDF
The scientific heritage No 166 (166) (2025)
PPT
6.1 High Risk New Born. Padetric health ppt
PDF
An interstellar mission to test astrophysical black holes
PDF
Formation of Supersonic Turbulence in the Primordial Star-forming Cloud
PPTX
ognitive-behavioral therapy, mindfulness-based approaches, coping skills trai...
PPTX
Classification Systems_TAXONOMY_SCIENCE8.pptx
PDF
CAPERS-LRD-z9:AGas-enshroudedLittleRedDotHostingaBroad-lineActive GalacticNuc...
PPTX
2. Earth - The Living Planet Module 2ELS
PPTX
EPIDURAL ANESTHESIA ANATOMY AND PHYSIOLOGY.pptx
PDF
Biophysics 2.pdffffffffffffffffffffffffff
PDF
. Radiology Case Scenariosssssssssssssss
PDF
Lymphatic System MCQs & Practice Quiz – Functions, Organs, Nodes, Ducts
PDF
Phytochemical Investigation of Miliusa longipes.pdf
PPTX
INTRODUCTION TO EVS | Concept of sustainability
PDF
Looking into the jet cone of the neutrino-associated very high-energy blazar ...
PDF
CHAPTER 3 Cell Structures and Their Functions Lecture Outline.pdf
Q1_LE_Mathematics 8_Lesson 5_Week 5.docx
HPLC-PPT.docx high performance liquid chromatography
Introduction to Fisheries Biotechnology_Lesson 1.pptx
famous lake in india and its disturibution and importance
The scientific heritage No 166 (166) (2025)
6.1 High Risk New Born. Padetric health ppt
An interstellar mission to test astrophysical black holes
Formation of Supersonic Turbulence in the Primordial Star-forming Cloud
ognitive-behavioral therapy, mindfulness-based approaches, coping skills trai...
Classification Systems_TAXONOMY_SCIENCE8.pptx
CAPERS-LRD-z9:AGas-enshroudedLittleRedDotHostingaBroad-lineActive GalacticNuc...
2. Earth - The Living Planet Module 2ELS
EPIDURAL ANESTHESIA ANATOMY AND PHYSIOLOGY.pptx
Biophysics 2.pdffffffffffffffffffffffffff
. Radiology Case Scenariosssssssssssssss
Lymphatic System MCQs & Practice Quiz – Functions, Organs, Nodes, Ducts
Phytochemical Investigation of Miliusa longipes.pdf
INTRODUCTION TO EVS | Concept of sustainability
Looking into the jet cone of the neutrino-associated very high-energy blazar ...
CHAPTER 3 Cell Structures and Their Functions Lecture Outline.pdf

Servlet api & servlet http package

  • 1. Advanced java programming Servlet API & Servlet Http package By P.Abinaya
  • 3.  Two packages contain the classes and interfaces that are required to build servlets.  Then are javax.servlet and javax.servlet.http.  The Servelt API has been in a process of ongoing development and enhancement.  The current servlet specification is version 2.4.
  • 5.  The javax.servlet.http package contains a number of classes and interfaces that describe and define the contracts between a servlet class running under the HTTP protocol and the runtime environment provided for an instance of such a class by a conforming servlet container.
  • 6.  init()  Service()  Destroy()  That methods are the life cycle methods of servlet.  The getServletConfig() method is called by the servlet to obtain initialization parameter.
  • 7. HttpServletRequest Extends the ServletRequest interface to provide request information for HTTP servlets. HttpServletResponse Extends the ServletResponse interface to provide HTTP-specific functionality in sending a response.
  • 8. The javax.servlet.http package contains a number of interfaces and classes that are commonly used by servlet developers. That its functionality makes it easy to build servlets that work with HTTP requests and responses.
  • 9.  The HttpServletRequest Interface  Extends the ServletRequest interface to provide request information for HTTP servlets.  The HttpServletRequest Interface Extends the ServletResponse interface to provide HTTP-specific functionality in sending a response.
  • 10.  The Cookie class encapsulates a cookie.  A cookie is stored on a client and contains state information.  Some of the information that is saved for each cookie includes the following: o The name of the cookie. o The value of the cookie. o The expiration date of the cookie. o The domain and path of the cookie.
  • 11.  The HttpServlet class provides specialized methods that handle the various types of HTTP requests.  The methods are  doDelet()  DoGet()  doHead()  doOptions()  doPut()  doTrace().