A B C D E F G H I K O P R S T U W

A

addEntry(Object) - Method in class History
Adds an entry to the history.
append(String) - Method in class Chatlet
Used to append a String to the textfield in the chat.

B

beep() - Method in class Chatlet
Used to sound the system bell.
bold - Static variable in class Chatlet
Bold delimiter.
broadcast(String) - Method in class ChatServlet
Used to broadcast a message to all connected users.

C

Chatlet - class Chatlet.
This is the Chatlet applet.
Chatlet() - Constructor for class Chatlet
 
ChatServlet - class ChatServlet.
This servlet will take care of incoming users connecting through the Chatlet and open a connection to an IRC server, thereafter relaying information between them.
ChatServlet() - Constructor for class ChatServlet
 
clear() - Method in class History
Used to clear the history.
close() - Method in class IdentDaemon
Used to stop the service.
close() - Method in class UserConnection
Used to close the connections to the IRC server and to the user.
closeConnection(UserConnection) - Method in class ChatServlet
Used to close a connection and log out a user from IRC and from the servlet.
color - Static variable in class Chatlet
Color delimiter.
colorName(int) - Method in class Chatlet
Gets the name of a color with a certain index.
connect() - Method in class ServletConnection
Used to connect to the servlet with the option of handshaking.
connect(String, int) - Method in class UserConnection
Used to connect to the given IRC server.
ConnectionHandler - interface ConnectionHandler.
This interface specifies the behaviour of the ConnectionHandler.
connectUser(String, ObjectOutputStream, String, String) - Method in class ChatServlet
Used in the login sequence to create a user object.
createIdent(String) - Static method in class User
Creates an ident String from the given ip.

D

destroy() - Method in class ChatServlet
Invoked when the servlet is being shut down by the servlet engine or web server.
disconnect() - Method in class ServletConnection
Used to disconnect from the servlet.

E

entryAt(int) - Method in class History
Fetches a specific history entry.
equals(Object) - Method in class User
Used to compare this User with another object.
execute(String) - Method in class Chatlet
Used to execute a command sent to the client from the servlet.
execute(String) - Method in class UserConnection
Used to parse and execute a command from the Chatlet.
execute(String, String) - Method in class UserConnection
Used to execute specific commands sent by the Chatlet user.

F

findConnection(int, String) - Method in class ChatServlet
Used to find a connection associated with a user.

G

getCode() - Method in class User
Used to get the unique id of the user.
getConnectionData() - Method in class Chatlet
Used when handshaking to get the connection data.
getConnectionData() - Method in interface ConnectionHandler
Used when handshaking to get the connection data.
getDate() - Method in class User
Used to get the date the user logged on.
getDebug() - Method in class ChatServlet
Used to get the current debug level mask.
getHost() - Method in class User
Used to get the host from which the user is connecting.
getIdent() - Method in class User
Used to get the ident String for this user.
getIP() - Method in class User
Used to get the ip from which the user is connecting.
getLag() - Method in class User
Used to get the lag of the user (in seconds).
getLocalPort() - Method in class UserConnection
Used to get the local port after a connection has been established.
getName() - Method in class User
Used to get the nickname of the user.
getPort() - Method in class UserConnection
Used to get the port of the IRC server the user is connected to.
getRealName() - Method in class User
Used to get the real name of the user.
getServer() - Method in class UserConnection
Used to get the IRC server the user is connected to.
getServletInfo() - Method in class ChatServlet
Used to retrieve information from the servlet.
getUser() - Method in class UserConnection
Used to get the user associated with this connection.
getVersion() - Method in class ChatServlet
Used to retrieve version information.

H

handleData(Object) - Method in class Chatlet
Used to handle data recieved by the ServletConnection.
handleData(Object) - Method in interface ConnectionHandler
Used to handle data recieved by the ServletConnection.
hashCode() - Method in class User
Used internally when searching for User objects.
hexColor(String) - Method in class Chatlet
Used to convert a color string (fe84c2) to a Color object.
History - class History.
This class can be used to keep a history of objects.
History(int) - Constructor for class History
Creates a history with the given capacity.

I

IdentDaemon - class IdentDaemon.
This class is used to answer ident requests from the irc server according to the Identification Protocol.
IdentDaemon(Hashtable) - Constructor for class IdentDaemon
Creates and starts the ident service on port 113.
init() - Method in class Chatlet
The initalization of the Chatlet is done here.
init() - Method in class ChatServlet
Invoked when the servlet is created.
isConnected() - Method in class Chatlet
Used to retrieve the current connection status.
isConnected() - Method in interface ConnectionHandler
Used to retrieve the current connection status.
isConnected() - Method in class UserConnection
Used to check if this connection has been established.
isHostBanned(String) - Method in class ChatServlet
Used to check whether a connecting host is banned or not.

K

keepAlive(long) - Method in class UserConnection
Used to keep a connection alive (fake keep-alive).

O

oop - Static variable in class UserConnection
Out of protocol delimiter.

P

parse(String) - Method in class Chatlet
Used to parse color and bold controls in the incoming message.
parse(String) - Method in class UserConnection
Used to parse a String from the IRC server.

R

replaceEntry(int, Object) - Method in class History
Replaces a specific entry in the history with another.
reverse - Static variable in class Chatlet
Reverse delimiter.
run() - Method in class ServletConnection
In the threaded part, the fake keep-alive will constantly query the servlet for new data objects.
run() - Method in class IdentDaemon
Accepts incoming requests and creates handlers for them
run() - Method in class UserConnection
Here we relay everything from the IRC server to the user after it has been parsed.

S

sendToIRC(String) - Method in class UserConnection
Used to send a String to the IRC server.
sendToUser(String) - Method in class UserConnection
Used to send a String to the user.
service(ServletRequest, ServletResponse) - Method in class ChatServlet
Takes care of incoming messages and commands from users.
ServletConnection - class ServletConnection.
This class connects and maintains the connection with the servlet using the HTTP protocol over port 80 and a fake keep-alive.
ServletConnection(ConnectionHandler, String) - Constructor for class ServletConnection
This creates a ServletConnection instance with the given parameters.
setConnected(boolean) - Method in class Chatlet
Used to set the connection status.
setConnected(boolean) - Method in interface ConnectionHandler
Used to set the connection status.
setConnectionResponse(Object) - Method in class Chatlet
The response given in a handshake procedure.
setConnectionResponse(Object) - Method in interface ConnectionHandler
The response given in a handshake procedure.
setLag(int) - Method in class User
Used to set the lag of user (in seconds).
setName(String) - Method in class User
Used to set the nickname of the user.
size() - Method in class History
Used to get the current size of the history.
split(String, String) - Static method in class UserConnection
Used to split a string into parts according to a given pattern;
start() - Method in class Chatlet
Reinitialize some things when started/restarted.
stop() - Method in class Chatlet
When the applet is stopped a disconnection is forced.

T

toString() - Method in class UserConnection
Used to retrieve a String containing connection information.
toString() - Method in class User
Used to get a String representation of this User object.

U

underline - Static variable in class Chatlet
Underline delimiter.
User - class User.
The user class holds some information about a user in a channel.
User(int, String) - Constructor for class User
Creates a new user.
User(String, String, String, String) - Constructor for class User
Creates a new user.
UserConnection - class UserConnection.
This class manages a users connections.
UserConnection(ChatServlet, User, ObjectOutputStream) - Constructor for class UserConnection
Creates the connection object.

W

writeObject(Object) - Method in class ServletConnection
Used to write a data object to the servlet.

A B C D E F G H I K O P R S T U W