Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
A
C
D
E
F
G
I
M
R
S
T
U
V
A
addForum(Forum)
- Method in class com.peter.forum.
DBForum
Adding one Forum to the database.
addMessage(Message)
- Method in class com.peter.message.
DBMessage
Adds one Message to the database.
AddNewTopic
- class
AddNewTopic
.
This class implements a servlet for adding a new topic in the forum.
AddNewTopic()
- Constructor for class
AddNewTopic
addNewTopic(PrintWriter, String, int, String, String, String)
- Method in class
AddNewTopic
Adds a new topic to the selected forum.
addNewUser(PrintWriter, User)
- Method in class
UserHandler
Adds a new User the DB.
addNoOfViews(int)
- Method in class
ViewTopic
Adds no of views used for a topic.
AddReplyToTopic
- class
AddReplyToTopic
.
This class implements a servlet for adding a reply to an existing topic in the forum.
AddReplyToTopic()
- Constructor for class
AddReplyToTopic
addReplyToTopic(PrintWriter, String, int, int, String, String)
- Method in class
AddReplyToTopic
Adds a new topic to the selected forum.
addSubject(Subject)
- Method in class com.peter.subject.
DBSubject
Adds one Subject to the database.
addTopic(Topic)
- Method in class com.peter.topic.
DBTopic
Adds one Topic to the database.
addUser(User)
- Method in class com.peter.user.
DBUser
Adds one User to the database.
Ass13
- class
Ass13
.
This class implements a simple class, that returns a webfile.
Ass13()
- Constructor for class
Ass13
C
closeConnection()
- Method in class com.peter.db.
DBConHandler
Closes this handler's database connection.
closeConnections()
- Method in class com.peter.db.
DBConPool
Closes all database connections managed by this pool
com.peter.db
- package com.peter.db
com.peter.forum
- package com.peter.forum
com.peter.message
- package com.peter.message
com.peter.subject
- package com.peter.subject
com.peter.topic
- package com.peter.topic
com.peter.user
- package com.peter.user
countDown()
- Method in class com.peter.db.
DBConHandler
Starts counting down until the maximum time threashold is reached
D
dateFormat
- Static variable in class
ViewSubjects
dateFormat
- Static variable in class
Ass13
dateFormat
- Static variable in class com.peter.subject.
Subject
dateFormat
- Static variable in class com.peter.topic.
Topic
dateFormat
- Static variable in class com.peter.message.
Message
dateFormat
- Static variable in class com.peter.forum.
Forum
dateFormat
- Static variable in class com.peter.user.
User
DBAccess
- class com.peter.db.
DBAccess
.
This class handles the queries to the Database.
DBAccess(DBConHandler)
- Constructor for class com.peter.db.
DBAccess
The constructor for this object
DBConHandler
- class com.peter.db.
DBConHandler
.
This class handles the queries to the database.
DBConHandler(DBConPool, Connection)
- Constructor for class com.peter.db.
DBConHandler
Constructor for this class
DBConPool
- class com.peter.db.
DBConPool
.
This class handles a pool of database connections
DBConPool(Properties, int)
- Constructor for class com.peter.db.
DBConPool
Constructor for the a new object
DBForum
- class com.peter.forum.
DBForum
.
This class handles the queries to the Database.
DBForum(DBConHandler)
- Constructor for class com.peter.forum.
DBForum
The constructor for this object
DBMatrix
- class com.peter.db.
DBMatrix
.
This class creates a data structure (Matrix) from a ResultSet, in order to that data retrieved from a ResultSet can be used after the ResultSet, and its Statement are no longer needed and can be closed.
DBMatrix(ResultSet)
- Constructor for class com.peter.db.
DBMatrix
The constructor creates an instance of the structure given a ResultSet.
DBMessage
- class com.peter.message.
DBMessage
.
This class handles the queries to the Database.
DBMessage(DBConHandler)
- Constructor for class com.peter.message.
DBMessage
The constructor for this object
DBProperties
- class com.peter.db.
DBProperties
.
This class contains the properties for accessing the database at atlas.dsv.su.se.
DBProperties()
- Constructor for class com.peter.db.
DBProperties
DBSubject
- class com.peter.subject.
DBSubject
.
This class handles the queries to the Database.
DBSubject(DBConHandler)
- Constructor for class com.peter.subject.
DBSubject
The constructor for this object
DBTopic
- class com.peter.topic.
DBTopic
.
This class handles the queries to the Database.
DBTopic(DBConHandler)
- Constructor for class com.peter.topic.
DBTopic
The constructor for this object
DBUser
- class com.peter.user.
DBUser
.
This class handles the queries to the Database.
DBUser(DBConHandler)
- Constructor for class com.peter.user.
DBUser
The constructor for this object
DBUtils
- class com.peter.db.
DBUtils
.
This is a general database utilities manager.
DBUtils()
- Constructor for class com.peter.db.
DBUtils
deleteForum(Forum)
- Method in class com.peter.forum.
DBForum
Deleting one Forum from the database.
deleteMessage(Message)
- Method in class com.peter.message.
DBMessage
Deleting one object from the database.
deleteSubject(Subject)
- Method in class com.peter.subject.
DBSubject
Deleting one Subject from the database.
deleteTopic(Topic)
- Method in class com.peter.topic.
DBTopic
Deleting one object from the database.
deleteUser(User)
- Method in class com.peter.user.
DBUser
Deleting one object from the database.
destroy()
- Method in class
SuperServlet
Releases the servlets resources.
doGet(HttpServletRequest, HttpServletResponse)
- Method in class
ViewForum
The Get method is run when the Client requests the htmlFile.
doGet(HttpServletRequest, HttpServletResponse)
- Method in class
AddNewTopic
The Get method is run when the Client requests the htmlFile.
doGet(HttpServletRequest, HttpServletResponse)
- Method in class
AddReplyToTopic
The Get method is run when the Client requests the htmlFile.
doGet(HttpServletRequest, HttpServletResponse)
- Method in class
UserSession
The Get method is run when a User is to be logged in or logged out.
doGet(HttpServletRequest, HttpServletResponse)
- Method in class
ViewSubjects
The Get method is run when the Client requests the htmlFile.
doGet(HttpServletRequest, HttpServletResponse)
- Method in class
ViewTopic
The Get method is run when the Client requests the htmlFile.
doGet(HttpServletRequest, HttpServletResponse)
- Method in class
UserHandler
The Get method is run when the Client requests the htmlFile.
doGet(HttpServletRequest, HttpServletResponse)
- Method in class
Ass13
The GET-method runs at request.
doPost(HttpServletRequest, HttpServletResponse)
- Method in class
ViewForum
The Post method is run when a new message is added to the guestbook.
doPost(HttpServletRequest, HttpServletResponse)
- Method in class
AddNewTopic
The Post method is run when a new message is added to the guestbook.
doPost(HttpServletRequest, HttpServletResponse)
- Method in class
AddReplyToTopic
The Post method is run when a new message is added to the guestbook.
doPost(HttpServletRequest, HttpServletResponse)
- Method in class
UserSession
The Post method is run when a User is to be logged in or logged out.
doPost(HttpServletRequest, HttpServletResponse)
- Method in class
ViewSubjects
The Post method is run when a new message is added to the guestbook.
doPost(HttpServletRequest, HttpServletResponse)
- Method in class
ViewTopic
The Post method is run when a new message is added to the guestbook.
doPost(HttpServletRequest, HttpServletResponse)
- Method in class
UserHandler
The Post method is run when a new user is to be added to the DB.
E
executeNQueries(String[])
- Method in class com.peter.db.
DBConHandler
Executes a selection of N queries in the database
executePreparedStatement(String, Object[])
- Method in class com.peter.db.
DBConHandler
Executes a selection query in the database.
executeQuery(String)
- Method in class com.peter.db.
DBConHandler
Executes a selection query in the database.
executeQueryRS(String)
- Method in class com.peter.db.
DBConHandler
Executes a selection query in the database.
executeUpdate(String)
- Method in class com.peter.db.
DBConHandler
Excutes an update query in the database.
executeUpdatePS(String, Object[])
- Method in class com.peter.db.
DBConHandler
Excutes an update query in the database.
F
Forum
- class com.peter.forum.
Forum
.
This class contains all data for the Forum.
Forum()
- Constructor for class com.peter.forum.
Forum
Forum(int)
- Constructor for class com.peter.forum.
Forum
Forum(int, int, String, String, int, int, int, int, String)
- Constructor for class com.peter.forum.
Forum
Forum(String, String)
- Constructor for class com.peter.forum.
Forum
G
getAuthorID()
- Method in class com.peter.message.
Message
getColumn(int)
- Method in class com.peter.db.
DBMatrix
Returns a Vector containing all values in a column
getColumn(String)
- Method in class com.peter.db.
DBMatrix
Returns a Vector containing all values in a column
getColumnNames()
- Method in class com.peter.db.
DBMatrix
Returns a Vector containing all column names
getCommment()
- Method in class com.peter.forum.
Forum
getConnection()
- Method in class com.peter.db.
DBConHandler
This method is used when it's necessary to retrieve the Connection and handle it by yourself.
getCountry()
- Method in class com.peter.user.
User
getData()
- Method in class com.peter.db.
DBMatrix
Returns the whole data structure.
getDate()
- Method in class com.peter.topic.
Topic
getDate()
- Method in class com.peter.message.
Message
getDate()
- Method in class com.peter.user.
User
getEmail()
- Method in class com.peter.user.
User
getForum()
- Method in class com.peter.forum.
Forum
getForum(HashMap)
- Static method in class com.peter.forum.
Forum
Converts a HashMap to a new Forum
getForumFromDBM(DBMatrix)
- Method in class com.peter.forum.
DBForum
Returns an array of fetched Objects from the database.
getForumID()
- Method in class com.peter.topic.
Topic
getForums()
- Method in class com.peter.forum.
DBForum
Fetch an array of Topic from the database.
getForums(Forum)
- Method in class com.peter.forum.
DBForum
Fetch an array of Forum from the database, with the same value as each variable in forum has.
getHandler()
- Method in class com.peter.db.
DBConPool
Returns a DB connection handler
getICQ()
- Method in class com.peter.user.
User
getID()
- Method in class com.peter.subject.
Subject
getID()
- Method in class com.peter.topic.
Topic
getID()
- Method in class com.peter.message.
Message
getID()
- Method in class com.peter.forum.
Forum
getID()
- Method in class com.peter.user.
User
getInterest()
- Method in class com.peter.user.
User
getLastMsgID()
- Method in class com.peter.forum.
Forum
getLocation()
- Method in class com.peter.user.
User
getMessage(HashMap)
- Static method in class com.peter.message.
Message
Converts a HashMap to a new Message
getMessageFromDBM(DBMatrix)
- Method in class com.peter.message.
DBMessage
Returns an array of fetched Message from the database.
getMessages()
- Method in class com.peter.message.
DBMessage
Fetch an array of Message from the database.
getMessages(Message)
- Method in class com.peter.message.
DBMessage
Fetch an array of Message from the database, with the same value as each variable in message has.
getModerator()
- Method in class com.peter.forum.
Forum
getMsg()
- Method in class com.peter.message.
Message
getNoOfColumns()
- Method in class com.peter.db.
DBMatrix
Returns the number of columns of the matrix
getNoOfRows()
- Method in class com.peter.db.
DBMatrix
Returns the number of rows
getOccupation()
- Method in class com.peter.user.
User
getPassword()
- Method in class com.peter.user.
User
getPool()
- Static method in class com.peter.db.
DBUtils
Returns a pool of connections.
getPosts()
- Method in class com.peter.forum.
Forum
getPosts()
- Method in class com.peter.user.
User
getReplies()
- Method in class com.peter.topic.
Topic
getRowAsHashMap(int)
- Method in class com.peter.db.
DBMatrix
Returns a HashMap that contains column names as key, and row data as values, given a row number.
getShowEmail()
- Method in class com.peter.user.
User
getSignature()
- Method in class com.peter.user.
User
getSubject()
- Method in class com.peter.subject.
Subject
getSubject(HashMap)
- Static method in class com.peter.subject.
Subject
Converts a HashMap to a new Subject
getSubjectFromDBM(DBMatrix)
- Method in class com.peter.subject.
DBSubject
Returns an array of fetched Subject from the database.
getSubjectID()
- Method in class com.peter.forum.
Forum
getSubjects()
- Method in class com.peter.subject.
DBSubject
Fetch an array of Subject from the database.
getSubjects(Subject)
- Method in class com.peter.subject.
DBSubject
Fetch an array of Subject from the database, with the same value as each variable in subject has.
getTopic()
- Method in class com.peter.topic.
Topic
getTopic(HashMap)
- Static method in class com.peter.topic.
Topic
Converts a HashMap to a new Topic
getTopicID()
- Method in class com.peter.message.
Message
getTopics()
- Method in class com.peter.topic.
DBTopic
Fetch an array of Topics from the database.
getTopics()
- Method in class com.peter.forum.
Forum
getTopics(Topic)
- Method in class com.peter.topic.
DBTopic
Fetch an array of Topics from the database, with the same value as each variable in Topics topic has.
getTopicsFromDBM(DBMatrix)
- Method in class com.peter.topic.
DBTopic
Returns an array of fetched Topics from the database.
getType()
- Method in class com.peter.forum.
Forum
getUName()
- Method in class com.peter.user.
User
getUser(HashMap)
- Static method in class com.peter.user.
User
Converts a HashMap to a new User
getUserFromDBM(DBMatrix)
- Method in class com.peter.user.
DBUser
Returns an array of fetched User from the database.
getUserID()
- Method in class com.peter.topic.
Topic
getUsers()
- Method in class com.peter.user.
DBUser
Fetch an array of User from the database.
getUsers(User)
- Method in class com.peter.user.
DBUser
Fetch an array of User from the database, with the same value as each variable in user has.
getValue(int, int)
- Method in class com.peter.db.
DBMatrix
Returns a single value from the structure given a row number and a column number.
getValue(int, String)
- Method in class com.peter.db.
DBMatrix
Returns a single value from the structure given a row number and a column name.
getWebSite()
- Method in class com.peter.user.
User
getViews()
- Method in class com.peter.topic.
Topic
I
init()
- Method in class
ViewForum
The init-method which is run when servlet is run for the first time.
init()
- Method in class
AddNewTopic
The init-method which is run when servlet is run for the first time.
init()
- Method in class
AddReplyToTopic
The init-method which is run when servlet is run for the first time.
init()
- Method in class
UserSession
The init-method which is run when servlet is run for the first time.
init()
- Method in class
ViewSubjects
The init-method which is run when servlet is run for the first time.
init()
- Method in class
ViewTopic
The init-method which is run when servlet is run for the first time.
init()
- Method in class
UserHandler
The init-method which is run when servlet is run for the first time.
init()
- Method in class
SuperServlet
The init-method which is run when servlet is run for the first time.
init()
- Method in class
Ass13
Reads the htmlFile.
isEmpty()
- Method in class com.peter.db.
DBMatrix
Checks if the matrix is empty or not.
M
Message
- class com.peter.message.
Message
.
This class contains all data for the Message.
Message()
- Constructor for class com.peter.message.
Message
Message(int)
- Constructor for class com.peter.message.
Message
Message(int, int)
- Constructor for class com.peter.message.
Message
Message(int, int, int, String, Date)
- Constructor for class com.peter.message.
Message
Message(String)
- Constructor for class com.peter.message.
Message
R
releaseHandler(DBConHandler)
- Method in class com.peter.db.
DBConPool
Releases a handler and returns it to the pool of free handlers
removeHtml(String)
- Method in class com.peter.subject.
Subject
Removes HTML from a string.
removeHtml(String)
- Method in class com.peter.topic.
Topic
Removes HTML from a string.
removeHtml(String)
- Method in class com.peter.message.
Message
Removes HTML from a string.
removeHtml(String)
- Method in class com.peter.forum.
Forum
Removes HTML from a string.
removeHtml(String)
- Method in class com.peter.user.
User
Removes HTML from a string.
replaceHandler(DBConHandler)
- Method in class com.peter.db.
DBConPool
Replaces a handler that was forced to be released.
S
setAuthorID(int)
- Method in class com.peter.message.
Message
setComment(String)
- Method in class com.peter.forum.
Forum
setCountry(String)
- Method in class com.peter.user.
User
setDate(Date)
- Method in class com.peter.topic.
Topic
setDate(Date)
- Method in class com.peter.message.
Message
setDate(Date)
- Method in class com.peter.user.
User
setEmail(String)
- Method in class com.peter.user.
User
setForum(String)
- Method in class com.peter.forum.
Forum
setForumID(int)
- Method in class com.peter.topic.
Topic
setICQ(String)
- Method in class com.peter.user.
User
setID(int)
- Method in class com.peter.topic.
Topic
setID(int)
- Method in class com.peter.message.
Message
setID(int)
- Method in class com.peter.forum.
Forum
setID(int)
- Method in class com.peter.user.
User
setInterest(String)
- Method in class com.peter.user.
User
setLastMsgID(int)
- Method in class com.peter.forum.
Forum
setLocation(String)
- Method in class com.peter.user.
User
setModerator(String)
- Method in class com.peter.forum.
Forum
setMsg(String)
- Method in class com.peter.message.
Message
setOccupation(String)
- Method in class com.peter.user.
User
setPassword(String)
- Method in class com.peter.user.
User
setPosts(int)
- Method in class com.peter.forum.
Forum
setPosts(int)
- Method in class com.peter.user.
User
setReleased()
- Method in class com.peter.db.
DBConHandler
Sets the released flag indicating that this handler is released
setReplies(int)
- Method in class com.peter.topic.
Topic
setShowEmail(String)
- Method in class com.peter.user.
User
setSignature(String)
- Method in class com.peter.user.
User
setSubject(String)
- Method in class com.peter.subject.
Subject
setSubjectID(int)
- Method in class com.peter.forum.
Forum
setTopic(String)
- Method in class com.peter.topic.
Topic
setTopicID(int)
- Method in class com.peter.message.
Message
setTopics(int)
- Method in class com.peter.forum.
Forum
setType(int)
- Method in class com.peter.forum.
Forum
setUName(String)
- Method in class com.peter.user.
User
setUser_id(int)
- Method in class com.peter.topic.
Topic
setUserID(int)
- Method in class com.peter.subject.
Subject
setWebSite(String)
- Method in class com.peter.user.
User
setViews(int)
- Method in class com.peter.topic.
Topic
showForm(HttpServletRequest, PrintWriter, String)
- Method in class
UserHandler
Shows the form for a new User.
showForum(HttpServletRequest, PrintWriter, String, int, String)
- Method in class
ViewForum
Fetches the content of one forum in the database and puts it on the Web.
showForum(HttpServletRequest, PrintWriter, String, int, String)
- Method in class
AddNewTopic
Fetches the content of one forum in the database and puts it on the Web.
showForum(HttpServletRequest, PrintWriter, String, int, String, int, String)
- Method in class
AddReplyToTopic
Fetches the content of one forum in the database and puts it on the Web.
showSubjects(HttpServletRequest, PrintWriter)
- Method in class
ViewSubjects
Fetches the content of the database and puts it on the Web.
showTopic(HttpServletRequest, PrintWriter, String, int, String, int, String)
- Method in class
ViewTopic
Fetches the content of one topic in the database and puts it on the Web.
showUserInfo(HttpServletRequest, PrintWriter, String)
- Method in class
UserHandler
Shows the User Info.
shutdownPool()
- Static method in class com.peter.db.
DBUtils
Shuts down the pool by requesting it to close all it's database connections.
Subject
- class com.peter.subject.
Subject
.
This class contains all data for the Subject.
Subject()
- Constructor for class com.peter.subject.
Subject
Subject(int)
- Constructor for class com.peter.subject.
Subject
Subject(int, String)
- Constructor for class com.peter.subject.
Subject
Subject(String)
- Constructor for class com.peter.subject.
Subject
SuperServlet
- class
SuperServlet
.
This class implements a servlet for viewing the forum.
SuperServlet()
- Constructor for class
SuperServlet
T
Topic
- class com.peter.topic.
Topic
.
This class contains all data for the Topics.
Topic()
- Constructor for class com.peter.topic.
Topic
Topic(int)
- Constructor for class com.peter.topic.
Topic
Topic(int, int)
- Constructor for class com.peter.topic.
Topic
Topic(int, int, String, int, int, int, Date)
- Constructor for class com.peter.topic.
Topic
Topic(String)
- Constructor for class com.peter.topic.
Topic
toString()
- Method in class com.peter.db.
DBMatrix
A textual representation of the matrix
U
updateForum(Forum)
- Method in class com.peter.forum.
DBForum
Update one object in the database.
updateTopic(Topic)
- Method in class com.peter.topic.
DBTopic
Updates one Topic to the database.
updateUser(User)
- Method in class com.peter.user.
DBUser
Update one object in the database.
User
- class com.peter.user.
User
.
This class contains all data for the User.
User()
- Constructor for class com.peter.user.
User
User(int)
- Constructor for class com.peter.user.
User
User(int, String)
- Constructor for class com.peter.user.
User
User(int, String, String)
- Constructor for class com.peter.user.
User
User(int, String, String, String, String, String, String, String, String, String, String, String, int, Date)
- Constructor for class com.peter.user.
User
UserHandler
- class
UserHandler
.
This class implements a servlet for adding a new user in the forum.
UserHandler()
- Constructor for class
UserHandler
UserSession
- class
UserSession
.
This class implements a servlet for logging in and loggin out a user into the forum.
UserSession()
- Constructor for class
UserSession
V
ViewForum
- class
ViewForum
.
This class implements a servlet for viewing the forums in the forum.
ViewForum()
- Constructor for class
ViewForum
ViewSubjects
- class
ViewSubjects
.
This class implements a servlet for viewing the subjects in the forum.
ViewSubjects()
- Constructor for class
ViewSubjects
ViewTopic
- class
ViewTopic
.
This class implements a servlet for viewing a topic in the forum.
ViewTopic()
- Constructor for class
ViewTopic
A
C
D
E
F
G
I
M
R
S
T
U
V
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES