Java HTTP Proxy Library Project Page
SourceForge.net Logo
A B C D E F G H I L M P R S T U W

A

addDuration(double) - Method in class com.wpg.proxy.ProxyStatistics
add a duration measurement to the collection of statistics
addHandler(HttpMessageHandler) - Static method in class com.wpg.proxy.ProxyRegistry
Add a new handler to receive incomming http responses, as well as the request
addHeader(String, String) - Method in class com.wpg.proxy.HttpMessage
Add to a specific Header from a String
addRequestProcessor(HttpMessageProcessor) - Static method in class com.wpg.proxy.ProxyRegistry
Add a new request processor
addResponseProcessor(HttpMessageProcessor) - Static method in class com.wpg.proxy.ProxyRegistry
Add a new response processor
addToBody(byte[], int) - Method in class com.wpg.proxy.HttpMessage
Add byte[] to body content

B

body - Variable in class com.wpg.proxy.HttpMessage
 

C

close() - Method in class com.wpg.proxy.SSLByteChannel
Ends SSL operation and close the wrapped byte channel
com.wpg.proxy - package com.wpg.proxy
 

D

data - Variable in class com.wpg.proxy.HttpMessage
 
doContinue(HttpMessage) - Method in interface com.wpg.proxy.HttpMessageProcessor
Continue to run next processors?
doSend(HttpMessage) - Method in interface com.wpg.proxy.HttpMessageProcessor
Send this message?

E

enableStatusBrowser(boolean) - Static method in class com.wpg.proxy.ProxyRegistry
enable or dissable the status browser capability

F

failed(Exception) - Method in interface com.wpg.proxy.HttpMessageHandler
Failed to get a request
failedRequest(HttpMessageRequest, Exception) - Method in interface com.wpg.proxy.HttpMessageHandler
Failed to get a response for the given request
failedResponse(HttpMessageResponse, HttpMessageRequest, Exception) - Method in interface com.wpg.proxy.HttpMessageHandler
Failed to send the given response for the given request back to the user
FAILURE - Static variable in class com.wpg.proxy.ProxyStatistics
 
fromHost - Variable in class com.wpg.proxy.HttpMessage
 
fromPort - Variable in class com.wpg.proxy.HttpMessage
 

G

getBacklog() - Method in class com.wpg.proxy.Proxy
Get the backlog, or number of awaiting requests to queue
getBodyContent() - Method in class com.wpg.proxy.HttpMessage
Get raw content as an Array of Bytes
getBodyContentStream() - Method in class com.wpg.proxy.HttpMessage
Get the content as a Stream of Bytes
getContentLength() - Method in class com.wpg.proxy.HttpMessage
Get the size of the stated content length
getData() - Method in class com.wpg.proxy.HttpMessage
Get entire message as a ByteBuffer containing the header and body if any
getDurationAvg() - Method in class com.wpg.proxy.ProxyStatistics
 
getDurationCnt() - Method in class com.wpg.proxy.ProxyStatistics
 
getDurationMax() - Method in class com.wpg.proxy.ProxyStatistics
 
getDurationMin() - Method in class com.wpg.proxy.ProxyStatistics
 
getDurationStdDev() - Method in class com.wpg.proxy.ProxyStatistics
Calculate Standard Deviation as the SQRT of variance based on the formula from:
WIKI Variance Calculation Page: Algorithm II
getFailureTransactions() - Method in class com.wpg.proxy.ProxyStatistics
get failed transaction count
getFromHost() - Method in class com.wpg.proxy.HttpMessage
Get From Host, or the host initiating this request
getFromPort() - Method in class com.wpg.proxy.HttpMessage
Get From Port, or the port on the host initiating this request
getHandlers() - Static method in class com.wpg.proxy.ProxyRegistry
Get the list of request handlers
getHeaders() - Method in class com.wpg.proxy.HttpMessage
Get All Headers as a Map
getHeadersAsString() - Method in class com.wpg.proxy.HttpMessage
Return a String with the headers printed in their RFC compliant final version
getHeaderValues(String) - Method in class com.wpg.proxy.HttpMessage
Get a specific Header as a List
getHTMLPage() - Method in class com.wpg.proxy.ProxyStatistics
Get the html page for this request
getInetAddress() - Method in class com.wpg.proxy.Proxy
Get the address to listen for new requests on
getKeystoreFilename() - Static method in class com.wpg.proxy.ProxyRegistry
Get Keystore File Name
getKeystoreKeysPassword() - Static method in class com.wpg.proxy.ProxyRegistry
Get Keystore keys password
getKeystorePassword() - Static method in class com.wpg.proxy.ProxyRegistry
Get Keystore password
getMethod() - Method in class com.wpg.proxy.HttpMessageRequest
Get the HTTP Method of this request
getPort() - Method in class com.wpg.proxy.Proxy
Get the port to listen for new requests on
getProtocol() - Method in class com.wpg.proxy.HttpMessage
Get the protocol of this request as a string
getProxy() - Method in class com.wpg.proxy.ProxyStatistics
Get Proxy for this statistic collector
getReasonPhrase() - Method in class com.wpg.proxy.HttpMessageResponse
Get the HTTP Reason Phrase of this request
getRequestProcessors() - Static method in class com.wpg.proxy.ProxyRegistry
Get the list of request processors
getResponseProcessors() - Static method in class com.wpg.proxy.ProxyRegistry
Get the list of response processors
getSingleton() - Static method in class com.wpg.proxy.ProxyStatistics
 
getStartLine() - Method in class com.wpg.proxy.HttpMessage
Get the Start Line of the Message
getStartLine() - Method in class com.wpg.proxy.HttpMessageRequest
Get the Request Start Line
getStatusCode() - Method in class com.wpg.proxy.HttpMessageResponse
Get the HTTP Status Code of this request
getStoppedTransactions() - Method in class com.wpg.proxy.ProxyStatistics
get stopped transaction count, this is a stop due to one of the HttpMessageProcessor rules denying the continuation of the exchange
getSuccessTransactions() - Method in class com.wpg.proxy.ProxyStatistics
get successful transaction count
getTitle() - Method in class com.wpg.proxy.ProxyStatistics
get title of web pages returned
getToHost() - Method in class com.wpg.proxy.HttpMessage
Get To Host, or the host which is the target of this request
getToPort() - Method in class com.wpg.proxy.HttpMessage
Get To Port, or the port on the host which is the target of this request
getTransactionCount() - Method in class com.wpg.proxy.ProxyStatistics
get transaction count
getUri() - Method in class com.wpg.proxy.HttpMessageRequest
Get the URI of this request
getVersion() - Method in class com.wpg.proxy.HttpMessage
Get the protocol version of this request as a string

H

HEADER_ACCEPT - Static variable in class com.wpg.proxy.HttpMessage
 
HEADER_ACCEPT_CHARSET - Static variable in class com.wpg.proxy.HttpMessage
 
HEADER_ACCEPT_ENCODING - Static variable in class com.wpg.proxy.HttpMessage
 
HEADER_ACCEPT_LANGUAGE - Static variable in class com.wpg.proxy.HttpMessage
 
HEADER_CONNECTION - Static variable in class com.wpg.proxy.HttpMessage
 
HEADER_CONTENT_LENGTH - Static variable in class com.wpg.proxy.HttpMessage
 
HEADER_CONTENT_TYPE - Static variable in class com.wpg.proxy.HttpMessage
 
HEADER_COOKIE - Static variable in class com.wpg.proxy.HttpMessage
 
HEADER_DATE - Static variable in class com.wpg.proxy.HttpMessage
 
HEADER_KEEP_ALIVE - Static variable in class com.wpg.proxy.HttpMessage
 
HEADER_PROXY_CONNECTION - Static variable in class com.wpg.proxy.HttpMessage
 
HEADER_REFERER - Static variable in class com.wpg.proxy.HttpMessage
 
HEADER_SERVER - Static variable in class com.wpg.proxy.HttpMessage
 
HEADER_SET_COOKIE - Static variable in class com.wpg.proxy.HttpMessage
 
HEADER_TRANSFER_ENCODING - Static variable in class com.wpg.proxy.HttpMessage
 
HEADER_USER_AGENT - Static variable in class com.wpg.proxy.HttpMessage
 
headerOrder - Variable in class com.wpg.proxy.HttpMessage
 
headers - Variable in class com.wpg.proxy.HttpMessage
 
HttpMessage - Class in com.wpg.proxy
Class to manage the HTTP message headers and body content, which could be anything at this point This class should be extended by HttpMessageRequest and HttpMessageResponse classes and never used directly
HttpMessage() - Constructor for class com.wpg.proxy.HttpMessage
 
HttpMessageHandler - Interface in com.wpg.proxy
Interface for a user defined HTTP Message Handler
HttpMessageProcessor - Interface in com.wpg.proxy
Process requests before they are sent or responses once they are received
HttpMessageRequest - Class in com.wpg.proxy
HTTP Request Message Class, this is the message received from the client for processing
HttpMessageRequest() - Constructor for class com.wpg.proxy.HttpMessageRequest
 
HttpMessageResponse - Class in com.wpg.proxy
HTTP Response Message Class, this is the message received from the remote host in response to a request
HttpMessageResponse() - Constructor for class com.wpg.proxy.HttpMessageResponse
 

I

incrementTransactionCount(int) - Method in class com.wpg.proxy.ProxyStatistics
increment transaction count
isContentLengthSet() - Method in class com.wpg.proxy.HttpMessage
Return true|false if the content length header is set
isOpen() - Method in class com.wpg.proxy.SSLByteChannel
Is the channel open ?
isRunning() - Method in class com.wpg.proxy.Proxy
is the server running?
isSecure - Variable in class com.wpg.proxy.HttpMessage
 
isStatusBrowserEnabled() - Static method in class com.wpg.proxy.ProxyRegistry
is the status browser capability enabled?

L

logger - Static variable in class com.wpg.proxy.HttpMessage
 

M

main(String[]) - Static method in class com.wpg.proxy.Proxy
 

P

process(HttpMessage) - Method in interface com.wpg.proxy.HttpMessageProcessor
Process this given message, returns the message after modification
protocol - Variable in class com.wpg.proxy.HttpMessage
 
protocolVersion - Variable in class com.wpg.proxy.HttpMessage
 
Proxy - Class in com.wpg.proxy
Main Proxy class which has a test main method and is the base class for all proxy handling
Proxy(InetAddress, int, int, String, char[], char[]) - Constructor for class com.wpg.proxy.Proxy
Creates a new Proxy with ssl support
Proxy(InetAddress, int, int) - Constructor for class com.wpg.proxy.Proxy
Creates a new Proxy without ssl support
ProxyProcessor - Class in com.wpg.proxy
 
ProxyProcessor(boolean, InetAddress, SelectionKey) - Constructor for class com.wpg.proxy.ProxyProcessor
Creates a new instance of ProxyProcessor
ProxyRegistry - Class in com.wpg.proxy
A static data container that keeps references to every HttpMessageHandler/Processor that must be called by the Proxy for each message.
ProxyStatistics - Class in com.wpg.proxy
ProxyStatistics object is used to track statistics collected during the proxy execution to report to the user via an HTTP request directed to the proxy itself, rather than meant for a remote host or port

R

read(ByteBuffer) - Method in class com.wpg.proxy.SSLByteChannel
Fill the given buffer with some bytes and return the number of bytes added in the buffer.
This method may return immediately with nothing added in the buffer.
receivedRequest(HttpMessageRequest) - Method in interface com.wpg.proxy.HttpMessageHandler
Just received a request, this is called before the request is sent out but after the request processors are executed
receivedResponse(HttpMessageResponse, HttpMessageRequest) - Method in interface com.wpg.proxy.HttpMessageHandler
Just received a response for the given request, but have not yet returned it to the user
removeHandler(HttpMessageHandler) - Static method in class com.wpg.proxy.ProxyRegistry
Removes a response handler
removeRequestProcessor(HttpMessageProcessor) - Static method in class com.wpg.proxy.ProxyRegistry
Removes a response processor
removeResponseProcessor(HttpMessageProcessor) - Static method in class com.wpg.proxy.ProxyRegistry
Removes a response processor
reset() - Method in class com.wpg.proxy.ProxyStatistics
reset all counters to init values
run() - Method in class com.wpg.proxy.Proxy
 

S

setBacklog(int) - Method in class com.wpg.proxy.Proxy
Set the backlog, or number of awaiting requests to queue
setBodyContent(byte[]) - Method in class com.wpg.proxy.HttpMessage
Set body content to input byte[]
setFromHost(String) - Method in class com.wpg.proxy.HttpMessage
Set From Host, or the host initiating this request
setFromPort(int) - Method in class com.wpg.proxy.HttpMessage
Set From Port, or the port on the host initiating this request
setHeader(String, Vector<String>) - Method in class com.wpg.proxy.HttpMessage
Set a specific Header from a List
setHeaders(Map<String, List<String>>) - Method in class com.wpg.proxy.HttpMessage
Set All Headers from a Map
setHeaders(Vector) - Method in class com.wpg.proxy.HttpMessage
Add Headers from a Vector of raw lines
setInetAddress(InetAddress) - Method in class com.wpg.proxy.Proxy
Set the address to listen for new requests on
setKeystoreFilename(String) - Static method in class com.wpg.proxy.ProxyRegistry
Set Keystore File Name
setKeystoreKeysPassword(char[]) - Static method in class com.wpg.proxy.ProxyRegistry
Set Keystore keys password
setKeystorePassword(char[]) - Static method in class com.wpg.proxy.ProxyRegistry
Set Keystore password
setMethod(String) - Method in class com.wpg.proxy.HttpMessageRequest
Set the HTTP Method of this request, with a String
setPort(int) - Method in class com.wpg.proxy.Proxy
Set the port to listen for new requests on
setProtocol(String) - Method in class com.wpg.proxy.HttpMessage
Set the protocol of this request
setProxy(Proxy) - Method in class com.wpg.proxy.ProxyStatistics
Set Proxy object to query
setReasonPhrase(String) - Method in class com.wpg.proxy.HttpMessageResponse
Set the HTTP Reason Phrase of this request
setStartLine(String) - Method in class com.wpg.proxy.HttpMessage
Set the Start Line of the Message
setStartLine(String) - Method in class com.wpg.proxy.HttpMessageRequest
Set the Start Line of the Message
setStartLine(String) - Method in class com.wpg.proxy.HttpMessageResponse
Set the Start Line of the Message
setStatusCode(int) - Method in class com.wpg.proxy.HttpMessageResponse
Set the HTTP Status Code of this request
setTitle(String) - Method in class com.wpg.proxy.ProxyStatistics
set title of web pages returned
setToHost(String) - Method in class com.wpg.proxy.HttpMessage
Set To Host, or the host which is the target of this request
setToPort(int) - Method in class com.wpg.proxy.HttpMessage
Set To Port, or the port on the host which is the target of this request
setUri(URI) - Method in class com.wpg.proxy.HttpMessageRequest
Set the URI of this request
setUri(String) - Method in class com.wpg.proxy.HttpMessageRequest
Set the URI of this request, from a String
setVersion(String) - Method in class com.wpg.proxy.HttpMessage
Set the protocol version of this request
shutdown() - Method in class com.wpg.proxy.Proxy
stop the proxy server
SSLByteChannel - Class in com.wpg.proxy
Upgrade a ByteChannel for SSL.
SSLByteChannel(ByteChannel, SSLEngine) - Constructor for class com.wpg.proxy.SSLByteChannel
Creates a new instance of SSLByteChannel
startLine - Variable in class com.wpg.proxy.HttpMessage
 
STOPPED - Static variable in class com.wpg.proxy.ProxyStatistics
 
SUCCESS - Static variable in class com.wpg.proxy.ProxyStatistics
 

T

toHost - Variable in class com.wpg.proxy.HttpMessage
 
toPort - Variable in class com.wpg.proxy.HttpMessage
 

U

updateContentLength() - Method in class com.wpg.proxy.HttpMessage
Update the content length header to the size of the new body

W

write(ByteBuffer) - Method in class com.wpg.proxy.SSLByteChannel
Write remaining bytes of the given byte buffer.

A B C D E F G H I L M P R S T U W
Java HTTP Proxy Library Project Page
SourceForge.net Logo