A B C D E F G H I L M N O P R S T U V W

A

accessClient - Static variable in class ProxyMain
 
accesses - Variable in class AccessVerifier
A table of integer constants (ALLOW or DENY), specifying the access
accessServer - Static variable in class ProxyMain
 
AccessVerifier - class AccessVerifier.
Access verifier for hosts.
AccessVerifier(String) - Constructor for class AccessVerifier
Builds a new AccessVerifier following the directives written in the ASCII file passed as parameter.
activeThreads - Static variable in class ThreadManager
 
ALLOW - Static variable in class AccessVerifier
 
auth - Variable in class AuthorizationVerifier
 
auth - Variable in class HTTPRequestReader
The Basic authorization parameter
auth - Static variable in class ProxyMain
 
AuthorizationVerifier - class AuthorizationVerifier.
Verifier for Basic Authorization.
AuthorizationVerifier(String) - Constructor for class AuthorizationVerifier
Creates a new AuthorizationVerifier from the aut.cfg file passed as parameter.
authRequired(String) - Method in class AuthorizationVerifier
Verifies if an URL needs to be authorized for access.

B

BEGINS_ENDS_META - Static variable in class AccessVerifier
 
BEGINS_META - Static variable in class AccessVerifier
 
body - Variable in class HTTPMessageReader
The body of the message

C

CFG_CHECK_INTERVAL - Static variable in class ProxyMain
 
CFGFILE - Static variable in class ProxyMain
 
client - Variable in class LogfileManager
 
clientSideIn - Variable in class ProxyConnection
inputstream from the client
clientSideOut - Variable in class ProxyConnection
outputstream to the client
clientSideSocket - Variable in class ProxyConnection
the interface with the client
command - Variable in class HTTPRequestReader
Start line: The method, eg.
concatenateHeaderBody() - Method in class HTTPMessageReader
Concatenates the header and the body in a whole message.
Configuration - class Configuration.
Configuration of the proxy.
Configuration(String) - Constructor for class Configuration
Reads the configuration from file.
connection - Variable in class HTTPMessageReader
Header field: Connection
contentLength - Variable in class HTTPMessageReader
Header field: The length of message body
ControlPanel - class ControlPanel.
The control panel for the application.
CONTROLPANEL_UPDATE_DELAY - Static variable in class ProxyMain
 
ControlPanel() - Constructor for class ControlPanel
Creates the control panel.

D

date - Variable in class LogfileManager
 
DENY - Static variable in class AccessVerifier
 

E

ENABLE_LOGGING - Static variable in class ProxyMain
 
ENDS_META - Static variable in class AccessVerifier
 
eraseCommand(String, int) - Method in class HTTPMessageReader
Erases from the header the line containing a command.
existingThreads - Static variable in class ThreadManager
 

F

file - Variable in class HTTPRequestReader
Start line: The file (with full path) concerned in the request
filedate - Variable in class LogfileManager
 
filename - Variable in class LogfileManager
 

G

generateSortedLogs(String) - Method in class LogfileManager
Generates the sets of 4 sorted logs, one for every sort criteria.
getAccess(String) - Method in class AccessVerifier
Checks the access directive for a given host.

H

header - Variable in class HTTPMessageReader
The header of the message (blank line included)
host - Variable in class HTTPRequestReader
Start line: The host concerned in the request
hosts - Variable in class AccessVerifier
A table of Strings, specifying the host
HTTPMessageReader - class HTTPMessageReader.
Stream reader for HTTP messages (requests and responses).
HTTPMessageReader() - Constructor for class HTTPMessageReader
 
HTTPRequestReader - class HTTPRequestReader.
Stream reader for HTTP requests.
HTTPRequestReader(InputStream) - Constructor for class HTTPRequestReader
Retrieves a HTTP request message from the connection stream.
HTTPResponseReader - class HTTPResponseReader.
Stream reader for HTTP responses.
HTTPResponseReader(InputStream) - Constructor for class HTTPResponseReader
Retrieves a HTTP response message from the connection stream.

I

IllegalValuesException - exception IllegalValuesException.
Used when trying to set irregular values for the attributs.
IllegalValuesException(String) - Constructor for class IllegalValuesException
 
initialize() - Method in class LogfileManager
Initializes all fields.
initialize(Class) - Method in class ThreadManager
Method that creates minThreads Threads

L

lastModifiedTime - Static variable in class Proxy
 
launch() - Method in class ProxyConnection
Asks the thread manager to create minThreads threads.
log - Static variable in class ProxyMain
 
LOGFILE - Static variable in class ProxyMain
 
LogfileManager - class LogfileManager.
Manager for the proxy logfile.
LogfileManager(String) - Constructor for class LogfileManager
 

M

main(String[]) - Static method in class ProxyMain
Main application.
makeHtml(String, int) - Method in class LogfileManager
Generates an HTML document presenting the sorted log.
man - Static variable in class ProxyConnection
manages the number of active and existing threads
MAX_SPARE_THREADS - Static variable in class ProxyMain
 
MAX_THREADS - Static variable in class ProxyMain
 
maxSpareThreads - Variable in class ThreadManager
 
maxThreads - Variable in class ThreadManager
 
message - Variable in class HTTPMessageReader
The whole message obtained from the stream
message - Variable in class IllegalValuesException
 
MIN_SPARE_THREADS - Static variable in class ProxyMain
 
MIN_THREADS - Static variable in class ProxyMain
 
minSpareThreads - Variable in class ThreadManager
 
minThreads - Variable in class ThreadManager
 
mustCloseConnection - Variable in class HTTPMessageReader
Flag that informs whether the connection must be closed or not
mustCloseConnection - Variable in class ProxyConnection
to verify if the connection must be closed
mustCreateThread() - Method in class ThreadManager
This method return true if a new Thread must be created
mustDestroyThread() - Method in class ThreadManager
This method return true if an existing Thread must be destroyed

N

newThread(Class) - Method in class ThreadManager
Method that creates a new Thread, starts it and update attributs of the ThreadManager.
nLines - Variable in class LogfileManager
 
NO_META - Static variable in class AccessVerifier
 
NOT_FOUND - Static variable in class AccessVerifier
 
NOW - Static variable in class ControlPanel
 
numValue(String) - Static method in class LogfileManager
Transforms an IP address in its numerical value, eg. giving 193.55.61.191 as parameter will return 193055061191.

O

offset - Variable in class HTTPMessageReader
Position of body in the message
oneLessActiveThread() - Method in class ThreadManager
This method decrements the number of activated Threads Attention!!
oneLessExistingThread() - Method in class ThreadManager
This method decrements the number of existing Threads Attention!!
oneMoreActiveThread() - Method in class ThreadManager
This method increments the number of activated Threads Attention!!

P

passwdVerify(String, String) - Method in class AuthorizationVerifier
Checks for a password.
pc - Static variable in class Proxy
 
printStatus() - Method in class ThreadManager
This method returns a String describing the number of existing and activated Threads.
Proxy - class Proxy.
The main functional proxy class.
PROXY_HOST - Static variable in class ProxyMain
 
PROXY_PORT - Static variable in class ProxyMain
 
PROXY_STARTTIME - Static variable in class ProxyMain
 
Proxy() - Constructor for class Proxy
 
ProxyConnection - class ProxyConnection.
Represents a connection between a client and a server; a static thread manager manages the number of active and existing threads, and a static ServerSocket waits for connections.
ProxyConnection() - Constructor for class ProxyConnection
Default constructor, used by the ThreadManager.
ProxyConnection(int) - Constructor for class ProxyConnection
Starts the proxy on the port passed as parameter, or, if already used, on a free port.
ProxyMain - class ProxyMain.
Main class.
ProxyMain() - Constructor for class ProxyMain
 

R

read() - Method in class LogfileManager
Reads a logfile in memory.
request - Variable in class LogfileManager
 
result - Variable in class LogfileManager
 
retrieveBody(DataInputStream) - Method in class HTTPMessageReader
Receives the body of the message (if exists) from the stream.
retrieveHeader(DataInputStream) - Method in class HTTPMessageReader
Reads inside the stream until the "\r\n" couple that separes header from body message.
run() - Method in class ProxyConnection
Waits for a connection and manages it until either the client or the server wants close it.

S

serverSideIn - Variable in class ProxyConnection
inputstream from the server
serverSideOut - Variable in class ProxyConnection
outputstream to the server
serverSideSocket - Variable in class ProxyConnection
the interface with the server
serverSocket - Static variable in class ProxyConnection
all the connection are catched on this ServerSocket
setAttributs(int, int, int, int) - Method in class ProxyConnection
Changes the bounds for the number of threads.
setAttributs(int, int, int, int) - Method in class ThreadManager
This method changes the bounds for the number of Threads
setDefaults() - Static method in class Configuration
Sets defaults for proxy values.
shouldAcceptThisClient(String) - Method in class AccessVerifier
Checks whether a client is acceptable or not.
shouldAcceptThisServer(String) - Method in class AccessVerifier
Checks whether a server is acceptable or not.
showHelp() - Static method in class ProxyMain
Shows a screen of help about the program.
SORT_BY_CLIENT - Static variable in class LogfileManager
 
SORT_BY_DATE - Static variable in class LogfileManager
 
SORT_BY_REQUEST - Static variable in class LogfileManager
 
SORT_BY_RESULT - Static variable in class LogfileManager
 
sort(String, int) - Method in class LogfileManager
Creates a HTML sorted log.
startLine - Variable in class HTTPRequestReader
The whole start line
statusCode - Variable in class HTTPResponseReader
Status line: The status code, eg. 200, 404, etc.
stop - Static variable in class Proxy
 
swap(int, int) - Method in class LogfileManager
Swaps two elements in all the four ArrayLists.

T

ThreadManager - class ThreadManager.
Manager for the threads.
ThreadManager() - Constructor for class ThreadManager
Creates a new ThreadManager with default values as attributs. maxThreads = 50; minThreads = 5; maxSpareThreads = 5; minSpareThreads = 5; It doesn't create new Threads.
ThreadManager(int, int, int, int) - Constructor for class ThreadManager
It sets the bounds for the Threads, but it doesn't create new Threads.
TIMEOUT - Static variable in class ProxyMain
 
timer() - Static method in class Proxy
Checks at a constant intervals whether the user modified the values of the threads, or asked to stop the proxy.
toArray(ArrayList) - Static method in class HTTPMessageReader
Converts an ArrayList of Bytes into an array of bytes.
toString() - Method in class IllegalValuesException
 
TRACEON_CONFIGURATION - Static variable in class ProxyMain
 
TRACEON_CONNECTIONS - Static variable in class ProxyMain
 
TRACEON_FILTERS - Static variable in class ProxyMain
 
TRACEON_FULLMSGS - Static variable in class ProxyMain
 
TRACEON_LOG - Static variable in class ProxyMain
 
TRACEON_MSGS - Static variable in class ProxyMain
 
TRACEON_THREADS - Static variable in class ProxyMain
 

U

UnrecognizedCfglineException - exception UnrecognizedCfglineException.
Exception thrown when, in a configuration file, a line that does not correspond to any option is read.
UnrecognizedCfglineException(String, int, String) - Constructor for class UnrecognizedCfglineException
 

V

versionProtocol - Variable in class HTTPMessageReader
Start/Status line: The version of HTTP protocol, eg.

W

warnAuthRequired(OutputStream, String) - Static method in class AuthorizationVerifier
Sends to the OutputStream an HTTP message which informs that the authentication procedure has failed.
warnDeniedClient(OutputStream) - Static method in class AccessVerifier
Sends a message which informs that the proxy refuses connection from client.
warnDeniedServer(OutputStream, String) - Static method in class AccessVerifier
Sends a message which informs that the proxy denies access to a server.
warnForbidden(OutputStream) - Static method in class AuthorizationVerifier
Sends to the OutputStream an HTML page which informs that the authentication procedure has failed.
writeLine(String) - Method in class LogfileManager
Writes a line onto the logfile.
writeWarningMsg(OutputStream, String) - Static method in class AccessVerifier
Sends an HTML message into the connection stream.

A B C D E F G H I L M N O P R S T U V W