Professional Java Servlets 2.3
| < Free Open Study > |
|
In this chapter we introduced you to the Servlet 2.3 API, and focused upon the javax.servlet package.
We examined the API structure and design and then looked at the classes and interfaces of the javax.servlet package in detail, building some example servlets that made use of them along the way. We looked at the Servlet interface and the GenericServlet class that implements this interface, as well as the servlet lifecycle.
The request-response cycle was then covered, and we discussed the relevant ServletRequest and ServletResponse interfaces. We also reviewed their wrapper classes - the ServletRequestWrapper and ServletResponseWrapper.
We examined the design and use of the servlet input and output classes ServletInputStream and ServletOutputStream, followed by a look at servlet-container communication through the ServletConfig and ServletContext interfaces.
This was followed by a look at the SingleThreadModel and the RequestDispatcher interfaces. We concluded our look at the javax.servlet package by examining the two servlet exception classes ServletException and UnavailableException.
We concluded the chapter by developing a small Personal Portal application, in order to implement and demonstrate the use of the API classes, interfaces, and methods that we have learnt so far. We explained how a web application like this can be run in the Catalina servlet container within the Tomcat web server.
In the next chapter we will examine HTTP servlets and the javax.servlet.http package in detail, and develop an example HTTP client-server (servlet) application.
A |
---|
AppendRow() method
appendTitleRow() method
attribute reference
attributeAdded() method
attributeRemoved() method
attributeReplaced() method
attributes
|
B |
---|
BasicServlet, GenericServlet class
buffer sizing
BufferedReader object, java.io
buffering
|
C |
---|
change notification
character sets
checking security
classes
client information
connection security
constructors
container requests
containers
ContainerServlet class
content length
contextDestroyed() method
contextInitialized() method
customizing response to client
|
D |
---|
DataMapping Interface
debugging
destroy() method
Dispatching interface
Domain Name Servers (DNS)
|
E |
---|
environment methods
event classes
exception classes
exception handling process, 55 exceptions
|
F |
---|
FAQ HTML page
filter unavailability
flushBuffer() method
forward() method
|
G |
---|
GenericServlet abstract class, 8-13
getAccessData() method
getAttribute() method
getAttributeNames() method
getBufferSize() method
getCharacterEncoding() method
getClosePage() method
getConfigTable() method
getContentLength() method
getContentType() method
getContext() method
getContextTable() method
getError() method
getForm() method
getInitParameter() method
getInitParameterNames() method
getInputStream() method
getLocale() method
getLocales() method
getMajorVersion() method
getMimeType() method
getMinorVersion() method
getName() method
getNamedDispatcher() method
getNewsPage() method
getOpenPage() method
getOutputStream() method
getPageTitle() method
getParameter() method
getParameterMap() method
getParameterNames() method
getParameterValues() method
getProtocol() method
getReader() method
getRealPath() method
getRemoteAddr() method
getRemoteHost() method
getRequestDispatcher() method
getRequestTable() method
getResource() method
getResourceAsStream() method
getResourcePaths() method
getResponseTable() method
getRootCause() method
getScheme() method
getServerInfo() method
getServerName() method
getServerPort() method
getServletConfig() method
getServletContext() method
getServletContextName() method
getServletInfo() method
getServletName() method
getUnavailableSeconds() method
getValue() method
getWriter() method
|
H |
---|
HTMLPortal class
HTMLPortal object
HTMLTable utility class
|
I |
---|
I/O streams
IllegalStateException
include() method
init() method
initialization parameter names
InputStream class, java.io
InputStream object
interfaces
internationalization
IOException class
IP addresses
isCommitted() method
isEmailOK() method
isPermanent() method
isSecure() method
|
J |
---|
Java Servlet 2.3 API see p.Servlet 2.3 API. javax.servlet package, 1
|
L |
---|
lifecycle methods
Locale object
Locale object/class
locales
log() utility method
log() utility methods
|
M |
---|
methods
MIME types
|
N |
---|
NewsServlet class
|
O |
---|
objects
output buffering
OutputStream class, java.io
overriding
|
P |
---|
packages
parameters
path information
personalPortal web application, 56-71
PortalServlet class
prepareMenu() method
prepareOpenPage() method
preparePrintLink() method
preparePrintOpenPage() method
prepareUrl() method
print/~ln() methods
printForm() method
PrintWriter class, java.io
PrintWriter object
processSubscription() method
|
R |
---|
references to web sites
removeAttribute() method
request header information, ServletRequest
request object
RequestDispatcher interface
RequestDispatcher object
RequestDispatcherServlet class
RequestDispatcherServlet example
request-response cycle
RequestResponseServlet class
requests
reset() method
resetBuffer() method
response
response object
|
S |
---|
security
server environment information
server information
service() method
Servlet 2.3 API, 1
servlet container
servlet container communication, 37-49
servlet exception classes
Servlet interface, 5-7
servlet lifecycle
servlet unavailability
ServletConfig interface
ServletConfig object
ServletContext attributes
ServletContext interface
ServletContext lifecycle classes
ServletContext object
ServletContextAttributeEvent class
ServletContextAttributeListener interface
ServletContextEvent class
ServletContextListener interface
ServletException class
ServletException() constructors
ServletInputStream class, 35
ServletOutputStream class, 35
ServletOutputStream object
ServletRequest interface, 19-29
ServletRequestWrapper class, javax.servlet
ServletResponse interface, 29-34
ServletResponseWrapper class, javax.servlet
servlets
setAttribute() method
setBufferSize() method
setCharacterEncoding() method
setContentLength() method
setContentType() method
setLocale() method
SingleThreadModel interface
storeAttribute() method
SubscribeServlet class
superclass method call
synchronization
|
T |
---|
threading
Tomcat
toString() method
toStringBuffer() method
|
U |
---|
UnavailableException class
UnavailableException() constructors
utility methods
|
W |
---|
web applications
wrapper classes
wrapper objects
|
| < Free Open Study > |
|