Order the Book
A B C D E F G H I K L M N O P Q R S T U W

A

AccessCountBean - class coreservlets.AccessCountBean.
Simple bean to illustrate sharing beans through use of the scope attribute of jsp:useBean.
AccessCountBean() - Constructor for class coreservlets.AccessCountBean
 
actionPerformed(ActionEvent) - Method in class SearchApplet
Submit data when button is pressed or user presses Return in the TextField.
actionPerformed(ActionEvent) - Method in class SendPost
 
actionPerformed(ActionEvent) - Method in class ShowQueries
If you press the "Start" button, the system starts a background thread that displays the queries in the TextArea.
actionPerformed(ActionEvent) - Method in class WebClient
 
actionPerformed(ActionEvent) - Method in class coreservlets.QueryViewer
When the "Show Results" button is pressed or RETURN is hit while the query textfield has the keyboard focus, a database lookup is performed, the results are placed in a JTable, and the window is resized to accommodate the table.
actionPerformed(ActionEvent) - Method in class coreservlets.ShadowedTextApplet
 
addItem(String) - Method in class coreservlets.ShoppingCart
Looks through cart to see if it already contains an order entry corresponding to item ID.
addRow(String[]) - Method in class coreservlets.DBResults
 

B

BadCodeServlet - class coreservlets.BadCodeServlet.
Servlet that displays a fragment of some Java code, but forgets to filter out the HTML-specific characters (the less-than sign in this case).
BadCodeServlet() - Constructor for class coreservlets.BadCodeServlet
 

C

cancelOrder() - Method in class coreservlets.ItemOrder
 
Catalog - class coreservlets.Catalog.
A catalog listing the items available in inventory.
Catalog() - Constructor for class coreservlets.Catalog
 
CatalogPage - class coreservlets.CatalogPage.
Base class for pages showing catalog entries.
CatalogPage() - Constructor for class coreservlets.CatalogPage
 
CatalogTest - class coreservlets.CatalogTest.
 
CatalogTest() - Constructor for class coreservlets.CatalogTest
 
CloseableFrame - class CloseableFrame.
A Frame that you can actually quit.
CloseableFrame(String) - Constructor for class CloseableFrame
 
closeAllConnections() - Method in class coreservlets.ConnectionPool
Close all the connections.
connect() - Method in class NetworkClient
Establishes the connection, then passes the socket to handleConnection.
Connection - class coreservlets.Connection.
 
Connection() - Constructor for class coreservlets.Connection
 
ConnectionPool - class coreservlets.ConnectionPool.
A class for preallocating, recycling, and managing JDBC connections.
ConnectionPool(String, String, String, String, int, int, boolean) - Constructor for class coreservlets.ConnectionPool
 
ConnectionPoolServlet - class coreservlets.ConnectionPoolServlet.
A servlet that reads information from a database and presents it in an HTML table.
ConnectionPoolServlet() - Constructor for class coreservlets.ConnectionPoolServlet
 
ConnectionPoolServlet2 - class coreservlets.ConnectionPoolServlet2.
A variation of ConnectionPoolServlet that uses only a single connection, queueing up all requests to it.
ConnectionPoolServlet2() - Constructor for class coreservlets.ConnectionPoolServlet2
 
ConnectionPoolServlet3 - class coreservlets.ConnectionPoolServlet3.
A variation of ConnectionPoolServlet that does NOT use connection pooling.
ConnectionPoolServlet3() - Constructor for class coreservlets.ConnectionPoolServlet3
 
ConnectionPoolTest - class coreservlets.ConnectionPoolTest.
 
ConnectionPoolTest(String, String, String, String) - Constructor for class coreservlets.ConnectionPoolTest
 
ConnectionPoolTestOracle - class coreservlets.ConnectionPoolTestOracle.
 
ConnectionPoolTestOracle() - Constructor for class coreservlets.ConnectionPoolTestOracle
 
coreservlets - package coreservlets
 
coreservlets.tags - package coreservlets.tags
 
count - Variable in class coreservlets.Connection
 
createEmployees(String, String, String, String, boolean) - Static method in class coreservlets.EmployeeCreation
 
createTable(Connection, String, String, String, String, String[], boolean) - Static method in class coreservlets.DatabaseUtilities
Like the previous method, but uses existing connection.
createTable(String, String, String, String, String, String, String[], boolean) - Static method in class coreservlets.DatabaseUtilities
Build a table with the specified format and rows.
CustomizedSearchEngines - class coreservlets.CustomizedSearchEngines.
A variation of the SearchEngine servlet that uses cookies to remember users choices.
CustomizedSearchEngines() - Constructor for class coreservlets.CustomizedSearchEngines
 

D

DatabaseUtilities - class coreservlets.DatabaseUtilities.
Three database utilities:
1) getQueryResults.
DatabaseUtilities() - Constructor for class coreservlets.DatabaseUtilities
 
DBResults - class coreservlets.DBResults.
Class to store completed results of a JDBC Query.
DBResults(Connection, String, String, int, String[]) - Constructor for class coreservlets.DBResults
 
DBResultsTableModel - class coreservlets.DBResultsTableModel.
Simple class that tells a JTable how to extract relevant data from a DBResults object (which is used to store the results from a database query).
DBResultsTableModel(DBResults) - Constructor for class coreservlets.DBResultsTableModel
 
DebugTag - class coreservlets.tags.DebugTag.
A tag that includes the body content only if the "debug" request parameter is set.
DebugTag() - Constructor for class coreservlets.tags.DebugTag
 
destroy() - Method in class coreservlets.ConnectionPoolServlet
 
doAfterBody() - Method in class coreservlets.tags.RepeatTag
 
doAfterBody() - Method in class coreservlets.tags.IfThenTag
 
doAfterBody() - Method in class coreservlets.tags.IfElseTag
 
doAfterBody() - Method in class coreservlets.tags.IfConditionTag
 
doAfterBody() - Method in class coreservlets.tags.FilterTag
 
DOCTYPE - Static variable in class coreservlets.ServletUtilities
 
doEndTag() - Method in class coreservlets.tags.HeadingTag
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class HelloWorld
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class HelloWWW
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.CatalogPage
First display title, then, for each catalog item, put its short description in a level-two (H2) heading with the price in parentheses and long description below.
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.BadCodeServlet
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.SearchEngines
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.ThreeParams
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.SearchEnginesFrontEnd
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.HelloWWW3
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.SetCookies
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.ConnectionPoolServlet
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.ShowCookies
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.PersistentConnection
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.ShowCGIVariables
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.FrameCell
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.ConnectionPoolServlet3
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.HelloWWW2
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.ShowPage
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.LotteryNumbers
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.ShowRequestHeaders
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.PrimeNumbers
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.ShowMessage
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.ShadowedText
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.EncodedPage
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.QueryGenerator
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.ShowSession
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.ShowParameters
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.OrderPage
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.CustomizedSearchEngines
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.PersistentFrame
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.ImageRetriever
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.ProtectedPage
 
doPost(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.CatalogPage
POST and GET requests handled identically.
doPost(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.SearchEngines
 
doPost(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.PersistentConnection
 
doPost(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.ShowCGIVariables
POST and GET requests handled identically.
doPost(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.ShowPage
Handle GET and POST identically.
doPost(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.Travel
Since password is being sent, use POST only.
doPost(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.ShowRequestHeaders
Let the same servlet handle both GET and POST.
doPost(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.PrimeNumbers
 
doPost(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.ShadowedText
Allow form to send data via either GET or POST.
doPost(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.SubmitResume
 
doPost(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.QueryGenerator
 
doPost(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.ShowSession
Handle GET and POST requests identically.
doPost(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.ShowParameters
 
doPost(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.OrderPage
POST and GET requests handled identically.
doPost(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.CustomizedSearchEngines
 
doPost(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.PersistentFrame
 
doPost(HttpServletRequest, HttpServletResponse) - Method in class coreservlets.ProtectedPage
Handle GET and POST identically.
doRawQueries(Connection, boolean) - Static method in class coreservlets.PreparedStatements
 
doStartTag() - Method in class coreservlets.tags.SimplePrimeTag
 
doStartTag() - Method in class coreservlets.tags.ExampleTag
 
doStartTag() - Method in class coreservlets.tags.HeadingTag
 
doStartTag() - Method in class coreservlets.tags.IfTag
 
doStartTag() - Method in class coreservlets.tags.IfThenTag
 
doStartTag() - Method in class coreservlets.tags.IfElseTag
 
doStartTag() - Method in class coreservlets.tags.IfConditionTag
 
doStartTag() - Method in class coreservlets.tags.DebugTag
 
DriverUtilities - class coreservlets.DriverUtilities.
Some simple utilities for building Oracle and Sybase JDBC connections.
DriverUtilities() - Constructor for class coreservlets.DriverUtilities
 

E

EchoServer - class EchoServer.
A simple HTTP server that generates a Web page showing all of the data that it received from the Web client (usually a browser).
EchoServer(int, int) - Constructor for class EchoServer
 
EmployeeCreation - class coreservlets.EmployeeCreation.
Make a simple "employees" table using DatabaseUtilities.
EmployeeCreation() - Constructor for class coreservlets.EmployeeCreation
 
EmployeeTest - class coreservlets.EmployeeTest.
Connect to Oracle or Sybase and print "employees" table.
EmployeeTest() - Constructor for class coreservlets.EmployeeTest
 
EmployeeTest2 - class coreservlets.EmployeeTest2.
Connect to Oracle or Sybase and print "employees" table as an HTML table.
EmployeeTest2() - Constructor for class coreservlets.EmployeeTest2
 
EmployeeTest2Oracle - class coreservlets.EmployeeTest2Oracle.
 
EmployeeTest2Oracle() - Constructor for class coreservlets.EmployeeTest2Oracle
 
EmployeeTest2Sybase - class coreservlets.EmployeeTest2Sybase.
 
EmployeeTest2Sybase() - Constructor for class coreservlets.EmployeeTest2Sybase
 
EmployeeTestOracle - class coreservlets.EmployeeTestOracle.
 
EmployeeTestOracle() - Constructor for class coreservlets.EmployeeTestOracle
 
EmployeeTestSybase - class coreservlets.EmployeeTestSybase.
 
EmployeeTestSybase() - Constructor for class coreservlets.EmployeeTestSybase
 
EncodedPage - class coreservlets.EncodedPage.
Example showing benefits of gzipping pages to browsers that can handle gzip.
EncodedPage() - Constructor for class coreservlets.EncodedPage
 
ExampleTag - class coreservlets.tags.ExampleTag.
Very simple JSP tag that just inserts a string ("Custom tag example...") into the output.
ExampleTag() - Constructor for class coreservlets.tags.ExampleTag
 
ExitListener - class coreservlets.ExitListener.
A listener that you attach to the top-level Frame or JFrame of your application, so quitting the frame exits the application.
ExitListener() - Constructor for class coreservlets.ExitListener
 

F

filter(String) - Static method in class coreservlets.ServletUtilities
Given a string, this method replaces all occurrences of '<' with '<', all occurrences of '>' with '>', and (to handle cases that occur inside attribute values), all occurrences of double quotes with '"' and all occurrences of '&' with '&'.
FilteredCodeServlet - class coreservlets.FilteredCodeServlet.
Subclass of BadCodeServlet that keeps the same doGet method but filters the code fragment for HTML-specific characters.
FilteredCodeServlet() - Constructor for class coreservlets.FilteredCodeServlet
 
FilterTag - class coreservlets.tags.FilterTag.
A tag that replaces <, >, ", and & with their HTML character entities (<, >, ", and &).
FilterTag() - Constructor for class coreservlets.tags.FilterTag
 
FilterTest - class coreservlets.FilterTest.
 
FilterTest() - Constructor for class coreservlets.FilterTest
 
findCustomer(String, TravelCustomer[]) - Static method in class coreservlets.TravelCustomer
 
FrameCell - class coreservlets.FrameCell.
Illustrates the value of persistent HTTP connections for pages that includes many images, applet classes, or other auxiliary content that would otherwise require a separate connection to retrieve.
FrameCell() - Constructor for class coreservlets.FrameCell
 
free(Connection) - Method in class coreservlets.ConnectionPool
 
FrequentFlyerInfo - class coreservlets.FrequentFlyerInfo.
Simple class describing an airline and associated frequent flyer number, used from the TravelData class (where an array of FrequentFlyerInfo is associated with each customer).
FrequentFlyerInfo(String, String) - Constructor for class coreservlets.FrequentFlyerInfo
 
FruitCreation - class coreservlets.FruitCreation.
Creates a simple table named "fruits" in either an Oracle or a Sybase database.
FruitCreation() - Constructor for class coreservlets.FruitCreation
 
FruitTest - class coreservlets.FruitTest.
A JDBC example that connects to either an Oracle or a Sybase database and prints out the values of predetermined columns in the "fruits" table.
FruitTest() - Constructor for class coreservlets.FruitTest
 
FruitTestOracle - class coreservlets.FruitTestOracle.
 
FruitTestOracle() - Constructor for class coreservlets.FruitTestOracle
 
FruitTestSybase - class coreservlets.FruitTestSybase.
 
FruitTestSybase() - Constructor for class coreservlets.FruitTestSybase
 

G

getAccessCount() - Method in class coreservlets.AccessCountBean
 
getAirlineName() - Method in class coreservlets.FrequentFlyerInfo
 
getCodeFragment() - Method in class coreservlets.BadCodeServlet
 
getCodeFragment() - Method in class coreservlets.FilteredCodeServlet
 
getColumnCount() - Method in class coreservlets.DBResultsTableModel
 
getColumnCount() - Method in class coreservlets.DBResults
 
getColumnName(int) - Method in class coreservlets.DBResultsTableModel
 
getColumnNames() - Method in class coreservlets.DBResults
 
getCommonSpecs() - Static method in class coreservlets.SearchSpec
 
getCondition() - Method in class coreservlets.tags.IfTag
 
getConnection() - Method in class coreservlets.ConnectionPool
 
getConnection() - Method in class coreservlets.DBResults
 
getCookie(Cookie[], String) - Static method in class coreservlets.ServletUtilities
Given an array of cookies and a name, this method tries to find and return the cookie from the array that has the given name.
getCookieValue(Cookie[], String, String) - Static method in class coreservlets.ServletUtilities
Given an array of Cookies, a name, and a default value, this method tries to find the value of the cookie with the given name.
getCost() - Method in class coreservlets.Item
 
getCreditCard() - Method in class coreservlets.TravelCustomer
 
getCreditCardName() - Method in class coreservlets.TravelCustomer
 
getCreditCardNumber() - Method in class coreservlets.TravelCustomer
 
getDestination() - Method in class coreservlets.TravelCustomer
 
getDiscountCode() - Method in class coreservlets.SaleEntry
 
getDriver(int) - Static method in class coreservlets.DriverUtilities
Get the fully qualified name of a driver.
getEmailAddress() - Method in class coreservlets.TravelCustomer
 
getEndDate() - Method in class coreservlets.TravelCustomer
 
getFirstName() - Method in class coreservlets.TravelCustomer
 
getFirstPage() - Method in class coreservlets.AccessCountBean
 
getFlights() - Method in class coreservlets.TravelCustomer
 
getFrequentFlyerData() - Method in class coreservlets.TravelCustomer
 
getFrequentFlyerNumber() - Method in class coreservlets.FrequentFlyerInfo
 
getFrequentFlyerTable() - Method in class coreservlets.TravelCustomer
 
getfrequentGuestNumber() - Method in class coreservlets.HotelInfo
 
getFullName() - Method in class coreservlets.TravelCustomer
 
getHomeAddress() - Method in class coreservlets.TravelCustomer
 
getHost() - Method in class NetworkClient
The hostname of the server we're contacting.
getHotelData() - Method in class coreservlets.TravelCustomer
 
getHotelName() - Method in class coreservlets.HotelInfo
 
getIntParameter(HttpServletRequest, String, int) - Static method in class coreservlets.ServletUtilities
Read a parameter with the specified name, convert it to an int, and return it.
getItem() - Method in class coreservlets.ItemOrder
 
getItem(String) - Static method in class coreservlets.Catalog
 
getItemCost() - Method in class coreservlets.SaleEntry
 
getItemID() - Method in class coreservlets.ItemOrder
 
getItemID() - Method in class coreservlets.Item
 
getItemID() - Method in class coreservlets.SaleEntry
 
getItemsOrdered() - Method in class coreservlets.ShoppingCart
Returns Vector of ItemOrder entries giving Item and number ordered.
getLabel() - Method in class LabeledTextField
The Label at the left side of the LabeledTextField.
getLastModified(HttpServletRequest) - Method in class coreservlets.LotteryNumbers
The standard service method compares this date against any date specified in the If-Modified-Since request header.
getLastName() - Method in class coreservlets.TravelCustomer
 
getLongDescription() - Method in class coreservlets.ItemOrder
 
getLongDescription() - Method in class coreservlets.Item
 
getMaxConnections() - Method in class NetworkServer
Gets the max connections server will handle before exiting.
getMessage() - Method in class coreservlets.StringBean
 
getName() - Method in class coreservlets.SearchSpec
 
getNumItems() - Method in class coreservlets.ItemOrder
 
getNumItems() - Method in class coreservlets.SaleEntry
 
getOrigin() - Method in class coreservlets.TravelCustomer
 
getPassword() - Method in class coreservlets.TravelCustomer
 
getPhoneNumber() - Method in class coreservlets.TravelCustomer
 
getPort() - Method in class NetworkClient
The port connection will be made on.
getPort() - Method in class NetworkServer
Gets port on which server is listening.
getPrimes() - Method in class coreservlets.PrimeList
 
getProductName() - Method in class coreservlets.DBResults
 
getProductVersion() - Method in class coreservlets.DBResults
 
getQueries() - Method in class QueryCollection
 
getQueryResults(Connection, String, boolean) - Static method in class coreservlets.DatabaseUtilities
Retrieves results as in previous method but uses an existing connection instead of opening a new one.
getQueryResults(String, String, String, String, String, boolean) - Static method in class coreservlets.DatabaseUtilities
Connect to database, execute specified query, and accumulate results into DBRresults object.
getReader(Socket) - Static method in class SocketUtil
Make a BufferedReader to get incoming data.
getRentalCarCompany() - Method in class coreservlets.RentalCarInfo
 
getRentalCarData() - Method in class coreservlets.TravelCustomer
 
getRentalCarNumber() - Method in class coreservlets.RentalCarInfo
 
getRow(int) - Method in class coreservlets.DBResults
 
getRowCount() - Method in class coreservlets.DBResultsTableModel
 
getRowCount() - Method in class coreservlets.DBResults
 
getShortDescription() - Method in class coreservlets.ItemOrder
 
getShortDescription() - Method in class coreservlets.Item
 
getStartDate() - Method in class coreservlets.TravelCustomer
 
getTextField() - Method in class LabeledTextField
The TextField at the right side of the LabeledTextField.
getTotalCost() - Method in class coreservlets.ItemOrder
 
getTotalCost() - Method in class coreservlets.SaleEntry
 
getTravelData() - Static method in class coreservlets.TravelData
 
getUnitCost() - Method in class coreservlets.ItemOrder
 
getValueAt(int, int) - Method in class coreservlets.DBResultsTableModel
 
getVendor(String) - Static method in class coreservlets.DriverUtilities
Map name to int value.
getWriter(Socket) - Static method in class SocketUtil
Make a PrintWriter to send outgoing data.

H

handleConnection(Socket) - Method in class EchoServer
Overrides the NetworkServer handleConnection method to read each line of data received, save it into an array of strings, then send it back embedded inside a PRE element in an HTML page.
handleConnection(Socket) - Method in class HttpClient
 
handleConnection(Socket) - Method in class NetworkClient
This is the method you will override when making a network client for your task.
handleConnection(Socket) - Method in class NetworkServer
This is the method that provides the behavior to the server, since it determines what is done with the resulting socket.
handleConnection(Socket) - Method in class ThreadedEchoServer
The new version of handleConnection starts a thread.
hasCondition() - Method in class coreservlets.tags.IfTag
Has the condition field been explicitly set?
HeadingTag - class coreservlets.tags.HeadingTag.
Generates an HTML heading with the specified background color, foreground color, alignment, font, and font size.
HeadingTag() - Constructor for class coreservlets.tags.HeadingTag
 
headWithTitle(String) - Static method in class coreservlets.ServletUtilities
 
HelloWorld - class HelloWorld.
Very simplistic servlet that generates plain text.
HelloWorld() - Constructor for class HelloWorld
 
HelloWWW - class HelloWWW.
Simple servlet that generates HTML.
HelloWWW() - Constructor for class HelloWWW
 
HelloWWW2 - class coreservlets.HelloWWW2.
Simple servlet that generates HTML.
HelloWWW2() - Constructor for class coreservlets.HelloWWW2
 
HelloWWW3 - class coreservlets.HelloWWW3.
Simple servlet that generates HTML.
HelloWWW3() - Constructor for class coreservlets.HelloWWW3
 
host - Variable in class NetworkClient
 
HotelInfo - class coreservlets.HotelInfo.
Simple class describing a hotel name and associated frequent guest number, used from the TravelData class (where an array of HotelInfo is associated with each customer).
HotelInfo(String, String) - Constructor for class coreservlets.HotelInfo
 
HttpClient - class HttpClient.
The underlying network client used by WebClient.
HttpClient(String, int, String, String[], TextArea, Interruptible) - Constructor for class HttpClient
 

I

IfConditionTag - class coreservlets.tags.IfConditionTag.
The condition part of an if tag.
IfConditionTag() - Constructor for class coreservlets.tags.IfConditionTag
 
IfElseTag - class coreservlets.tags.IfElseTag.
The else part of an if tag.
IfElseTag() - Constructor for class coreservlets.tags.IfElseTag
 
IfTag - class coreservlets.tags.IfTag.
A tag that acts like an if/then/else.
IfTag() - Constructor for class coreservlets.tags.IfTag
 
IfThenTag - class coreservlets.tags.IfThenTag.
The then part of an if tag.
IfThenTag() - Constructor for class coreservlets.tags.IfThenTag
 
ImageRetriever - class coreservlets.ImageRetriever.
A servlet that reads a GIF file off the local system and sends it to the client with the appropriate MIME type.
ImageRetriever() - Constructor for class coreservlets.ImageRetriever
 
incrementNumItems() - Method in class coreservlets.ItemOrder
 
init() - Method in class SearchApplet
 
init() - Method in class SendPost
 
init() - Method in class ShowQueries
 
init() - Method in class coreservlets.KidsBooksPage
 
init() - Method in class coreservlets.ConnectionPoolServlet
Initialize the connection pool when servlet is initialized.
init() - Method in class coreservlets.TechBooksPage
 
init() - Method in class coreservlets.ConnectionPoolServlet3
 
init() - Method in class coreservlets.Travel
 
init() - Method in class coreservlets.LotteryNumbers
The init method is called only when the servlet is first loaded, before the first request is processed.
init() - Method in class coreservlets.ShadowedTextApplet
 
init(ServletConfig) - Method in class coreservlets.ShowMessage
 
init(ServletConfig) - Method in class coreservlets.ProtectedPage
Read the password file from the location specified by the passwordFile initialization parameter.
initialConnections() - Method in class coreservlets.ConnectionPoolServlet
Override this in subclass to change number of initial connections.
initialConnections() - Method in class coreservlets.ConnectionPoolServlet2
 
Interruptible - interface Interruptible.
An interface for classes that can be polled to see if they've been interrupted.
isDone() - Method in class QueryCollection
 
isDone() - Method in class coreservlets.PrimeList
 
isInterrupted() - Method in interface Interruptible
 
isInterrupted() - Method in class WebClient
 
Item - class coreservlets.Item.
Describes a catalog item for on-line store.
Item(String, String, String, double) - Constructor for class coreservlets.Item
 
ItemOrder - class coreservlets.ItemOrder.
Associates a catalog Item with a specific order by keeping track of the number ordered and the total price.
ItemOrder(Item) - Constructor for class coreservlets.ItemOrder
 

K

KidsBooksPage - class coreservlets.KidsBooksPage.
A specialization of the CatalogPage servlet that displays a page selling three famous kids-book series.
KidsBooksPage() - Constructor for class coreservlets.KidsBooksPage
 

L

LabeledTextField - class LabeledTextField.
A TextField with an associated Label.
LabeledTextField(String, Font, int, Font) - Constructor for class LabeledTextField
 
LabeledTextField(String, Font, String, int, Font) - Constructor for class LabeledTextField
 
LabeledTextField(String, int) - Constructor for class LabeledTextField
 
LabeledTextField(String, String) - Constructor for class LabeledTextField
 
LabelPanel - class coreservlets.LabelPanel.
A small JPanel that includes a JLabel to the left of a designated component.
LabelPanel(String, String, Color, Font, JComponent) - Constructor for class coreservlets.LabelPanel
 
len - Variable in class coreservlets.tags.SimplePrimeTag
 
listen() - Method in class NetworkServer
Monitor a port for connections.
LongLivedCookie - class coreservlets.LongLivedCookie.
Cookie that persists 1 year.
LongLivedCookie(String, String) - Constructor for class coreservlets.LongLivedCookie
 
LotteryNumbers - class coreservlets.LotteryNumbers.
Example using servlet initialization and the getLastModified method.
LotteryNumbers() - Constructor for class coreservlets.LotteryNumbers
 

M

main(String[]) - Static method in class EchoServer
Supply a port number as a command-line argument.
main(String[]) - Static method in class ThreadedEchoServer
 
main(String[]) - Static method in class WebClient
 
main(String[]) - Static method in class coreservlets.ConnectionPoolTestOracle
 
main(String[]) - Static method in class coreservlets.EmployeeCreation
 
main(String[]) - Static method in class coreservlets.FruitTest
Reads the hostname, database name, username, password, and vendor identifier from the command line.
main(String[]) - Static method in class coreservlets.EmployeeTest2
 
main(String[]) - Static method in class coreservlets.FruitTestOracle
 
main(String[]) - Static method in class coreservlets.FilterTest
 
main(String[]) - Static method in class coreservlets.ConnectionPoolTest
 
main(String[]) - Static method in class coreservlets.EmployeeTest2Oracle
 
main(String[]) - Static method in class coreservlets.QueryViewer
 
main(String[]) - Static method in class coreservlets.EmployeeTestOracle
 
main(String[]) - Static method in class coreservlets.ShadowedTextFrame
 
main(String[]) - Static method in class coreservlets.Primes
Simple command-line program to test.
main(String[]) - Static method in class coreservlets.EmployeeTest
 
main(String[]) - Static method in class coreservlets.FruitTestSybase
 
main(String[]) - Static method in class coreservlets.EmployeeTest2Sybase
 
main(String[]) - Static method in class coreservlets.FruitCreation
 
main(String[]) - Static method in class coreservlets.EmployeeTestSybase
 
main(String[]) - Static method in class coreservlets.CatalogTest
 
main(String[]) - Static method in class coreservlets.PreparedStatements
 
main(String[]) - Static method in class coreservlets.TravelCustomerTest
 
makeMessageImage(String, String, int) - Static method in class coreservlets.MessageImage
Creates an Image of a string with an oblique shadow behind it.
makeURL(String, String) - Method in class coreservlets.SearchSpec
 
makeURL(String, String, int) - Static method in class coreservlets.DriverUtilities
Build a URL in the format needed by the Oracle and Sybase drivers I am using.
maxConnections() - Method in class coreservlets.ConnectionPoolServlet
Override this in subclass to change maximum number of connections.
maxConnections() - Method in class coreservlets.ConnectionPoolServlet2
 
maxRequestLines - Variable in class EchoServer
 
MessageImage - class coreservlets.MessageImage.
Utilities for building images showing shadowed messages.
MessageImage() - Constructor for class coreservlets.MessageImage
 

N

NetworkClient - class NetworkClient.
A starting point for network clients.
NetworkClient(String, int) - Constructor for class NetworkClient
Register host and port.
NetworkServer - class NetworkServer.
A starting point for network servers.
NetworkServer(int, int) - Constructor for class NetworkServer
Build a server on specified port.
nextPrime(BigInteger) - Static method in class coreservlets.Primes
 
numCalculatedPrimes() - Method in class coreservlets.PrimeList
 
numDigits() - Method in class coreservlets.PrimeList
 
numPrimes() - Method in class coreservlets.PrimeList
 

O

openInJFrame(Container, int, int) - Static method in class coreservlets.WindowUtilities
Uses Color.white as the background color, and the name of the Container's class as the JFrame title.
openInJFrame(Container, int, int, String) - Static method in class coreservlets.WindowUtilities
Uses Color.white as the background color.
openInJFrame(Container, int, int, String, Color) - Static method in class coreservlets.WindowUtilities
A simplified way to see a JPanel or other Container.
ORACLE - Static variable in class coreservlets.DriverUtilities
 
OrderPage - class coreservlets.OrderPage.
Shows all items currently in ShoppingCart.
OrderPage() - Constructor for class coreservlets.OrderPage
 

P

paintComponent(Graphics) - Method in class coreservlets.ShadowedTextFrame
 
pause(double) - Method in class ShowQueries
 
pause(int) - Method in class coreservlets.ConnectionPoolTest
 
PersistentConnection - class coreservlets.PersistentConnection.
Illustrates the value of persistent HTTP connections for pages that includes many images, applet classes, or other auxiliary content that would otherwise require a separate connection to retrieve.
PersistentConnection() - Constructor for class coreservlets.PersistentConnection
 
PersistentFrame - class coreservlets.PersistentFrame.
Illustrates the value of persistent HTTP connections for pages that includes many images, applet classes, or other auxiliary content that would otherwise require a separate connection to retrieve.
PersistentFrame() - Constructor for class coreservlets.PersistentFrame
 
port - Variable in class NetworkClient
 
PreparedStatements - class coreservlets.PreparedStatements.
An example to test the timing differences resulting from repeated raw queries vs.
PreparedStatements() - Constructor for class coreservlets.PreparedStatements
 
PrimeList - class coreservlets.PrimeList.
Creates a Vector of large prime numbers, usually in a low-priority background thread.
PrimeList(int, int, boolean) - Constructor for class coreservlets.PrimeList
Finds numPrimes prime numbers, each of which are numDigits long or longer.
PrimeNumbers - class coreservlets.PrimeNumbers.
Servlet that processes a request to generate n prime numbers, each with at least m digits.
PrimeNumbers() - Constructor for class coreservlets.PrimeNumbers
 
Primes - class coreservlets.Primes.
A few utilities to generate a large random BigInteger, and find the next prime number above a given BigInteger.
Primes() - Constructor for class coreservlets.Primes
 
PrimeTag - class coreservlets.tags.PrimeTag.
Generates an N-digit random prime (default N = 50).
PrimeTag() - Constructor for class coreservlets.tags.PrimeTag
 
printTable(Connection, String, int, boolean) - Static method in class coreservlets.DatabaseUtilities
Prints out all entries in a table.
printTable(String, String, String, String, String, int, boolean) - Static method in class coreservlets.DatabaseUtilities
 
printTableData(String, DBResults, int, boolean) - Static method in class coreservlets.DatabaseUtilities
 
processWindowEvent(WindowEvent) - Method in class CloseableFrame
Since we are doing something permanent, we need to call super.processWindowEvent first.
ProtectedPage - class coreservlets.ProtectedPage.
Example of password-protected pages handled directly by servlets.
ProtectedPage() - Constructor for class coreservlets.ProtectedPage
 

Q

QueryCollection - class QueryCollection.
When this class is built, it returns a value immediately, but this value returns false for isDone and null for getQueries.
QueryCollection(String, URL) - Constructor for class QueryCollection
 
QueryGenerator - class coreservlets.QueryGenerator.
Servlet that generates an array of strings and sends them via an ObjectOutputStream to applet or other Java client.
QueryGenerator() - Constructor for class coreservlets.QueryGenerator
 
QueryViewer - class coreservlets.QueryViewer.
An interactive database query viewer.
QueryViewer() - Constructor for class coreservlets.QueryViewer
 

R

random(int) - Static method in class coreservlets.Primes
 
RentalCarInfo - class coreservlets.RentalCarInfo.
Simple class describing a car company and associated frequent renter number, used from the TravelData class (where an array of RentalCarInfo is associated with each customer).
RentalCarInfo(String, String) - Constructor for class coreservlets.RentalCarInfo
 
RepeatTag - class coreservlets.tags.RepeatTag.
A tag that repeats the body the specified number of times.
RepeatTag() - Constructor for class coreservlets.tags.RepeatTag
 
reportError(HttpServletResponse, String) - Method in class coreservlets.ImageRetriever
 
run() - Method in class QueryCollection
 
run() - Method in class ShowQueries
The background thread takes the currentQueries object and every half-second places one of the queries the object holds into the bottom of the TextArea.
run() - Method in class ThreadedEchoServer
 
run() - Method in class WebClient
 
run() - Method in class coreservlets.ConnectionPool
 
run() - Method in class coreservlets.ConnectionPoolTest
 
run() - Method in class coreservlets.PrimeList
 

S

SaleEntry - class coreservlets.SaleEntry.
Simple bean to illustrate the various forms of jsp:setProperty.
SaleEntry() - Constructor for class coreservlets.SaleEntry
 
SearchApplet - class SearchApplet.
An applet that reads a value from a TextField, then uses it to build three distinct URLs with embedded GET data: one each for Google, Infoseek, and Lycos.
SearchApplet() - Constructor for class SearchApplet
 
SearchEngines - class coreservlets.SearchEngines.
Servlet that takes a search string, number of results per page, and a search engine name, sending the query to that search engine.
SearchEngines() - Constructor for class coreservlets.SearchEngines
 
SearchEnginesFrontEnd - class coreservlets.SearchEnginesFrontEnd.
Dynamically generated variation of the SearchEngines.html front end that uses cookies to remember a user's preferences.
SearchEnginesFrontEnd() - Constructor for class coreservlets.SearchEnginesFrontEnd
 
SearchSpec - class coreservlets.SearchSpec.
Small class that encapsulates how to construct a search string for a particular search engine.
SearchSpec(String, String, String) - Constructor for class coreservlets.SearchSpec
 
SECONDS_PER_YEAR - Static variable in class coreservlets.LongLivedCookie
 
sendAsGIF(Image, OutputStream) - Static method in class coreservlets.MessageImage
Uses GifEncoder to send the Image down output stream in GIF89A format.
SendPost - class SendPost.
Applet that reads firstName, lastName, and emailAddress parameters and sends them via POST to the host, port, and URI specified.
SendPost() - Constructor for class SendPost
 
serverName - Variable in class EchoServer
 
ServletUtilities - class coreservlets.ServletUtilities.
Some simple time savers.
ServletUtilities() - Constructor for class coreservlets.ServletUtilities
 
setAlign(String) - Method in class coreservlets.tags.HeadingTag
 
setBgColor(String) - Method in class coreservlets.tags.HeadingTag
 
setBorder(String) - Method in class coreservlets.tags.HeadingTag
 
setColor(String) - Method in class coreservlets.tags.HeadingTag
 
setCondition(boolean) - Method in class coreservlets.tags.IfTag
 
SetCookies - class coreservlets.SetCookies.
Sets six cookies: three that apply only to the current session (regardless of how long that session lasts) and three that persist for an hour (regardless of whether the browser is restarted).
SetCookies() - Constructor for class coreservlets.SetCookies
 
setCost(double) - Method in class coreservlets.Item
 
setCreditCardName(String) - Method in class coreservlets.TravelCustomer
 
setCreditCardNumber(String) - Method in class coreservlets.TravelCustomer
 
setDestination(String) - Method in class coreservlets.TravelCustomer
 
setDiscountCode(double) - Method in class coreservlets.SaleEntry
 
setEmailAddress(String) - Method in class coreservlets.TravelCustomer
 
setEndDate(String) - Method in class coreservlets.TravelCustomer
 
setFirstName(String) - Method in class coreservlets.TravelCustomer
 
setFirstPage(String) - Method in class coreservlets.AccessCountBean
 
setFontList(String) - Method in class coreservlets.tags.HeadingTag
 
setFontSize(String) - Method in class coreservlets.tags.HeadingTag
 
setFrequentFlyerData(FrequentFlyerInfo[]) - Method in class coreservlets.TravelCustomer
 
setHasCondition(boolean) - Method in class coreservlets.tags.IfTag
 
setHomeAddress(String) - Method in class coreservlets.TravelCustomer
 
setHotelData(HotelInfo[]) - Method in class coreservlets.TravelCustomer
 
setItem(Item) - Method in class coreservlets.ItemOrder
 
setItemID(String) - Method in class coreservlets.Item
 
setItemID(String) - Method in class coreservlets.SaleEntry
 
setItems(String[]) - Method in class coreservlets.CatalogPage
Given an array of item IDs, look them up in the Catalog and put their corresponding Item entry into the items array.
setJavaLookAndFeel() - Static method in class coreservlets.WindowUtilities
 
setLastName(String) - Method in class coreservlets.TravelCustomer
 
setLength(String) - Method in class coreservlets.tags.PrimeTag
 
setLongDescription(String) - Method in class coreservlets.Item
 
setMaxConnections(int) - Method in class NetworkServer
Sets max connections.
setMessage(String) - Method in class coreservlets.StringBean
 
setMotifLookAndFeel() - Static method in class coreservlets.WindowUtilities
 
setNativeLookAndFeel() - Static method in class coreservlets.WindowUtilities
Tell system to use native look and feel, as in previous releases.
setNumItems(int) - Method in class coreservlets.ItemOrder
 
setNumItems(int) - Method in class coreservlets.SaleEntry
 
setNumOrdered(String, int) - Method in class coreservlets.ShoppingCart
Looks through cart to find order entry corresponding to item ID listed.
setOrigin(String) - Method in class coreservlets.TravelCustomer
 
setPassword(String) - Method in class coreservlets.TravelCustomer
 
setPhoneNumber(String) - Method in class coreservlets.TravelCustomer
 
setPort(int) - Method in class NetworkServer
Sets port.
setRentalCarData(RentalCarInfo[]) - Method in class coreservlets.TravelCustomer
 
setReps(String) - Method in class coreservlets.tags.RepeatTag
 
setShortDescription(String) - Method in class coreservlets.Item
 
setStartDate(String) - Method in class coreservlets.TravelCustomer
 
setTitle(String) - Method in class coreservlets.CatalogPage
Sets the page title, which is displayed in an H1 heading in resultant page.
setWidth(String) - Method in class coreservlets.tags.HeadingTag
 
ShadowedText - class coreservlets.ShadowedText.
Servlet that generates GIF images representing a designated message with an oblique shadowed version behind it.
ShadowedText() - Constructor for class coreservlets.ShadowedText
 
ShadowedTextApplet - class coreservlets.ShadowedTextApplet.
Applet interface to the ShadowedTextFrame class.
ShadowedTextApplet() - Constructor for class coreservlets.ShadowedTextApplet
 
ShadowedTextFrame - class coreservlets.ShadowedTextFrame.
Interactive interface to MessageImage class.
ShadowedTextFrame(String, String, int) - Constructor for class coreservlets.ShadowedTextFrame
 
ShoppingCart - class coreservlets.ShoppingCart.
A shopping cart data structure used to track orders.
ShoppingCart() - Constructor for class coreservlets.ShoppingCart
Builds an empty shopping cart.
ShowCGIVariables - class coreservlets.ShowCGIVariables.
Creates a table showing the current value of each of the standard CGI variables.
ShowCGIVariables() - Constructor for class coreservlets.ShowCGIVariables
 
ShowCookies - class coreservlets.ShowCookies.
Creates a table of the cookies associated with the current page.
ShowCookies() - Constructor for class coreservlets.ShowCookies
 
showFruitTable(String, String, String, String) - Static method in class coreservlets.FruitTest
Get the table and print all the values.
ShowMessage - class coreservlets.ShowMessage.
Example using servlet initialization.
ShowMessage() - Constructor for class coreservlets.ShowMessage
 
ShowPage - class coreservlets.ShowPage.
Example of the include method of RequestDispatcher.
ShowPage() - Constructor for class coreservlets.ShowPage
 
ShowParameters - class coreservlets.ShowParameters.
Shows all the parameters sent to the servlet via either GET or POST.
ShowParameters() - Constructor for class coreservlets.ShowParameters
 
ShowQueries - class ShowQueries.
Applet reads arrays of strings packaged inside a QueryCollection and places them in a scrolling TextArea.
ShowQueries() - Constructor for class ShowQueries
 
ShowRequestHeaders - class coreservlets.ShowRequestHeaders.
Shows all the request headers sent on this particular request.
ShowRequestHeaders() - Constructor for class coreservlets.ShowRequestHeaders
 
ShowSession - class coreservlets.ShowSession.
Simple example of session tracking.
ShowSession() - Constructor for class coreservlets.ShowSession
 
SimplePrimeTag - class coreservlets.tags.SimplePrimeTag.
Generates a prime of approximately 50 digits.
SimplePrimeTag() - Constructor for class coreservlets.tags.SimplePrimeTag
 
SocketUtil - class SocketUtil.
A shorthand way to create BufferedReaders and PrintWriters associated with a Socket.
SocketUtil() - Constructor for class SocketUtil
 
StringBean - class coreservlets.StringBean.
A simple bean that has a single String property called message.
StringBean() - Constructor for class coreservlets.StringBean
 
SubmitResume - class coreservlets.SubmitResume.
Servlet that handles previewing and storing resumes submitted by job applicants.
SubmitResume() - Constructor for class coreservlets.SubmitResume
 
SYBASE - Static variable in class coreservlets.DriverUtilities
 

T

TechBooksPage - class coreservlets.TechBooksPage.
A specialization of the CatalogPage servlet that displays a page selling two famous computer books.
TechBooksPage() - Constructor for class coreservlets.TechBooksPage
 
ThreadedEchoServer - class ThreadedEchoServer.
A multithreaded variation of EchoServer.
ThreadedEchoServer(int, int) - Constructor for class ThreadedEchoServer
 
ThreeParams - class coreservlets.ThreeParams.
Simple servlet that reads three parameters from the form data.
ThreeParams() - Constructor for class coreservlets.ThreeParams
 
toHTMLTable(String) - Method in class coreservlets.DBResults
Output the results as an HTML table, with the column names as headings and the rest of the results filling regular data cells.
toString() - Method in class coreservlets.ConnectionPool
 
toString() - Method in class coreservlets.Connection
 
totalConnections() - Method in class coreservlets.ConnectionPool
 
Travel - class coreservlets.Travel.
Top-level travel-processing servlet.
Travel() - Constructor for class coreservlets.Travel
 
TravelCustomer - class coreservlets.TravelCustomer.
Describes a travel services customer.
TravelCustomer(String, String, String, String, String, String, String, String, FrequentFlyerInfo[], RentalCarInfo[], HotelInfo[]) - Constructor for class coreservlets.TravelCustomer
 
TravelCustomerTest - class coreservlets.TravelCustomerTest.
 
TravelCustomerTest() - Constructor for class coreservlets.TravelCustomerTest
 
TravelData - class coreservlets.TravelData.
This class simply sets up some static data to describe some supposed preexisting customers.
TravelData() - Constructor for class coreservlets.TravelData
 

U

UNKNOWN - Static variable in class coreservlets.DriverUtilities
 

W

wasClosed() - Method in class coreservlets.Connection
 
WebClient - class WebClient.
A graphical client that lets you interactively connect to Web servers and send custom request lines and request headers.
WebClient(String) - Constructor for class WebClient
 
windowClosing(WindowEvent) - Method in class coreservlets.ExitListener
 
WindowUtilities - class coreservlets.WindowUtilities.
A few utilities that simplify using windows in Swing.
WindowUtilities() - Constructor for class coreservlets.WindowUtilities
 

A B C D E F G H I K L M N O P Q R S T U W
Order the Book

Order
CSAJSP @ amazon.com

Return to Top-Level Source Code Archive