Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
K
L
M
N
O
P
R
S
T
U
V
W
A
A
- Static variable in class rabbit.html.
TagType
Acceptor
- Class in
rabbit.httpio
A standard acceptor.
Acceptor(ServerSocketChannel, SelectorRunner, Logger, AcceptorListener)
- Constructor for class rabbit.httpio.
Acceptor
AcceptorListener
- Interface in
rabbit.httpio
A listener for accepted connections.
AccessFilter
- Class in
rabbit.filter
This is a class that filters access based on ip adress.
AccessFilter()
- Constructor for class rabbit.filter.
AccessFilter
addArg(String, String)
- Method in class rabbit.html.
Tag
Add a new key/value Pair to this tag.
addArg(String, String, boolean)
- Method in class rabbit.html.
Tag
Add a new key/value Pair to this tag.
addBlockListener(BlockListener)
- Method in class rabbit.httpio.
ChunkHandler
addBlockListener(BlockListener)
- Method in class rabbit.httpio.
FileResourceSource
Generally we do not come into this method, but it can happen..
addBlockListener(BlockListener)
- Method in interface rabbit.httpio.
ResourceSource
Add a ByteBuffer listener.
addBlockListener(BlockListener)
- Method in class rabbit.httpio.
WebConnectionResourceSource
addBlockListener(BlockListener)
- Method in class rabbit.proxy.
RandomCacheResourceSource
addCache()
- Method in class rabbit.handler.
BaseHandler
Set up the cache stream if available.
addCache()
- Method in class rabbit.handler.
ImageHandler
addCurrentConnection(Connection)
- Method in class rabbit.proxy.
HttpProxy
Add a current connection
addEntry(CacheEntry<K, V>)
- Method in interface rabbit.cache.
Cache
Insert a CacheEntry into the cache.
addEntry(CacheEntry<K, V>)
- Method in class rabbit.cache.
NCache
Insert a CacheEntry into the cache.
addHeader(String, String)
- Method in class rabbit.http.
GeneralHeader
Add a new header.
addHeader(Header)
- Method in class rabbit.http.
GeneralHeader
Add a new header.
addPageInformation(StringBuilder)
- Method in class rabbit.meta.
BaseMetaHandler
Add the page information
addPageInformation(StringBuilder)
- Method in class rabbit.meta.
CacheStatus
addPageInformation(StringBuilder)
- Method in class rabbit.meta.
ClearCache
Add the page information
addPageInformation(StringBuilder)
- Method in class rabbit.meta.
Connections
Add the page information
addPageInformation(StringBuilder)
- Method in class rabbit.meta.
Kill
Add the page information
addPageInformation(StringBuilder)
- Method in class rabbit.meta.
LogRotator
Add the page information
addPageInformation(StringBuilder)
- Method in class rabbit.meta.
SelectorStatus
Add the page information
addPageInformation(StringBuilder)
- Method in class rabbit.meta.
StackTrace
Add the page information
addPageInformation(StringBuilder)
- Method in class rabbit.meta.
Status
Add the page information
Address
- Class in
rabbit.io
A class to handle the addresses of the connections.
Address(InetAddress, int)
- Constructor for class rabbit.io.
Address
Create a new Address with given InetAddress and port
addTo(TrafficLoggerHandler)
- Method in class rabbit.proxy.
TrafficLoggerHandler
addTo(TrafficLogger)
- Method in class rabbit.util.
SimpleTrafficLogger
addTo(TrafficLogger)
- Method in interface rabbit.util.
TrafficLogger
Add the current log into the other TrafficLogger.
addToken(Token)
- Method in class rabbit.html.
HtmlBlock
Add a Token to this block.
AdFilter
- Class in
rabbit.filter
This class switches advertising images into another image.
AdFilter()
- Constructor for class rabbit.filter.
AdFilter
AdFilter(Connection, HttpHeader, HttpHeader)
- Constructor for class rabbit.filter.
AdFilter
Create a new AdFilter for the given request, response pair.
ADREPLACER
- Static variable in class rabbit.filter.
AdFilter
the image we replace ads with
append(String)
- Method in class rabbit.http.
Header
Update the value by appending the given string to it.
APPLET
- Static variable in class rabbit.html.
TagType
AsyncListener
- Interface in
rabbit.httpio
A listener for asynchronous events.
B
B
- Static variable in class rabbit.html.
TagType
BackgroundFilter
- Class in
rabbit.filter
This class removes background images from html pages.
BackgroundFilter()
- Constructor for class rabbit.filter.
BackgroundFilter
BackgroundFilter(Connection, HttpHeader, HttpHeader)
- Constructor for class rabbit.filter.
BackgroundFilter
Create a new BackgroundFilter for the given request, response pair.
BaseHandler
- Class in
rabbit.handler
This class is an implementation of the Handler interface.
BaseHandler()
- Constructor for class rabbit.handler.
BaseHandler
For creating the factory.
BaseHandler(Connection, TrafficLoggerHandler, HttpHeader, BufferHandle, HttpHeader, ResourceSource, boolean, boolean, long)
- Constructor for class rabbit.handler.
BaseHandler
Create a new BaseHandler for the given request.
BaseHandler.MainBlockListener
- Class in
rabbit.handler
BaseHandler.MainBlockListener()
- Constructor for class rabbit.handler.
BaseHandler.MainBlockListener
BaseMetaHandler
- Class in
rabbit.meta
A base class for meta handlers.
BaseMetaHandler()
- Constructor for class rabbit.meta.
BaseMetaHandler
BaseMetaHandler.PageCompletion
- Enum in
rabbit.meta
BaseSocketHandler
- Class in
rabbit.httpio
A base class for socket handlers.
BaseSocketHandler(SocketChannel, BufferHandle, Selector, Logger)
- Constructor for class rabbit.httpio.
BaseSocketHandler
bh
- Variable in class rabbit.httpio.
BaseSocketHandler
The buffer handle.
BLINK
- Static variable in class rabbit.html.
TagType
BlinkFilter
- Class in
rabbit.filter
A filter that removes the blink and /blink tags.
BlinkFilter()
- Constructor for class rabbit.filter.
BlinkFilter
BlinkFilter(Connection, HttpHeader, HttpHeader)
- Constructor for class rabbit.filter.
BlinkFilter
Create a new BlinkFilter for the given request, response pair.
BlockFilter
- Class in
rabbit.filter
This is a class that blocks access to certain part of the www.
BlockFilter()
- Constructor for class rabbit.filter.
BlockFilter
Create a new Blockfilter
BlockListener
- Interface in
rabbit.httpio
A listener for resource data.
BlockSender
- Class in
rabbit.httpio
A handler that writes data blocks.
BlockSender(SocketChannel, Selector, Logger, TrafficLogger, BufferHandle, boolean, BlockSentListener)
- Constructor for class rabbit.httpio.
BlockSender
blockSent()
- Method in class rabbit.handler.
BaseHandler
blockSent()
- Method in class rabbit.handler.
FilterHandler
blockSent()
- Method in class rabbit.handler.
GZipHandler
blockSent()
- Method in interface rabbit.httpio.
BlockSentListener
The http header has been sent.
blockSent()
- Method in class rabbit.httpio.
HttpHeaderSender
blockSent()
- Method in class rabbit.meta.
BaseMetaHandler
BlockSentListener
- Interface in
rabbit.httpio
A listener for notification that a data block has been sent.
BODY
- Static variable in class rabbit.html.
TagType
BodyFilter
- Class in
rabbit.filter
A class that inserts some text and links at the top of a page.
BodyFilter()
- Constructor for class rabbit.filter.
BodyFilter
BodyFilter(Connection, HttpHeader, HttpHeader)
- Constructor for class rabbit.filter.
BodyFilter
Create a new BodyFilter for the given request, response pair.
BR
- Static variable in class rabbit.html.
TagType
BufferHandle
- Interface in
rabbit.io
A handle to a ByteBuffer
BufferHandler
- Interface in
rabbit.io
A ByteBuffer handler
bufferRead(BufferHandle)
- Method in class rabbit.client.
FileSaver
bufferRead(BufferHandle)
- Method in class rabbit.handler.
BaseHandler
bufferRead(BufferHandle)
- Method in class rabbit.handler.
GZipHandler
bufferRead(BufferHandle)
- Method in class rabbit.handler.
MultiPartHandler
bufferRead(BufferHandle)
- Method in interface rabbit.httpio.
BlockListener
A buffer has been read, the buffer has been flip:ed before this call is made so position and remaining are valid.
bufHandle
- Variable in class rabbit.httpio.
FileResourceSource
buildAndSendData()
- Method in class rabbit.meta.
BaseMetaHandler
C
Cache
<
K
,
V
> - Interface in
rabbit.cache
A cache, mostly works like a map in lookup, insert and delete.
CacheBufferHandle
- Class in
rabbit.io
A handle to a ByteBuffer that uses a buffer handler
CacheBufferHandle(BufferHandler)
- Constructor for class rabbit.io.
CacheBufferHandle
cacheChannel
- Variable in class rabbit.handler.
BaseHandler
The cache channel.
CacheEntry
<
K
,
V
> - Interface in
rabbit.cache
A cached object.
CacheResourceSource
- Class in
rabbit.proxy
A resource that comes from the cache.
CacheResourceSource(Cache<HttpHeader, HttpHeader>, CacheEntry<HttpHeader, HttpHeader>, TaskRunner, BufferHandler)
- Constructor for class rabbit.proxy.
CacheResourceSource
CacheStatus
- Class in
rabbit.meta
A cache inspector.
CacheStatus()
- Constructor for class rabbit.meta.
CacheStatus
CachingBufferHandler
- Class in
rabbit.io
A ByteBuffer handler that keeps re uses returned buffers.
CachingBufferHandler()
- Constructor for class rabbit.io.
CachingBufferHandler
changesContentSize()
- Method in class rabbit.handler.
BaseHandler
®return false this handler never modifies the content.
changesContentSize()
- Method in class rabbit.handler.
GZipHandler
®return true this handler modifies the content.
changesContentSize()
- Method in interface rabbit.handler.
Handler
Check if this handler will change the content size.
changesContentSize()
- Method in class rabbit.handler.
ImageHandler
®return true this handler modifies the content.
changesContentSize()
- Method in class rabbit.handler.
MultiPartHandler
We may remove trailers, so we may modify the content.
channel
- Variable in class rabbit.httpio.
BaseSocketHandler
The client channel.
checkAccess(SocketChannel)
- Method in class rabbit.proxy.
SocketAccessController
checkStrongEtag(String, String)
- Method in class rabbit.proxy.
Connection
checkWeakEtag(String, String)
- Method in class rabbit.proxy.
Connection
ChunkDataFeeder
- Interface in
rabbit.httpio
A feeder of chunked data
ChunkEnder
- Class in
rabbit.httpio
A class that sends the chunk ending (with an empty footer).
ChunkEnder()
- Constructor for class rabbit.httpio.
ChunkEnder
ChunkHandler
- Class in
rabbit.httpio
The chunk handler gets raw data buffers and
ChunkHandler(ChunkDataFeeder, boolean)
- Constructor for class rabbit.httpio.
ChunkHandler
cleanup()
- Method in class rabbit.meta.
BaseMetaHandler
clear()
- Method in interface rabbit.cache.
Cache
Clear the Cache from files.
clear()
- Method in class rabbit.cache.
NCache
Clear the Cache from files.
clear()
- Method in class rabbit.proxy.
TrafficLoggerHandler
clear()
- Method in class rabbit.util.
SimpleTrafficLogger
clear()
- Method in interface rabbit.util.
TrafficLogger
Clear the current log.
ClearCache
- Class in
rabbit.meta
Clears the cache completely
ClearCache()
- Constructor for class rabbit.meta.
ClearCache
ClientBase
- Class in
rabbit.client
A class for doing http requests.
ClientBase()
- Constructor for class rabbit.client.
ClientBase
Create a new ClientBase.
clientHandle
- Variable in class rabbit.handler.
BaseHandler
The client buffer.
ClientListener
- Interface in
rabbit.client
A client that handles the event generated by the ClientBase class.
ClientListenerAdapter
- Class in
rabbit.client
A basic ClientListener.
ClientListenerAdapter(Logger)
- Constructor for class rabbit.client.
ClientListenerAdapter
clientResourceAborted(HttpHeader)
- Method in interface rabbit.proxy.
ClientResourceTransferredListener
The transfer of the client resource has been aborted.
clientResourceAborted(HttpHeader)
- Method in class rabbit.proxy.
SWC
ClientResourceHandler
- Interface in
rabbit.proxy
A client resource handler
clientResourceTransferred()
- Method in interface rabbit.proxy.
ClientResourceTransferredListener
The client resource have been successfully transferred.
clientResourceTransferred()
- Method in class rabbit.proxy.
SWC
ClientResourceTransferredListener
- Interface in
rabbit.proxy
A listener for resource transfers.
close(Closeable, Logger)
- Static method in class rabbit.io.
Closer
close()
- Method in class rabbit.io.
WebConnection
close()
- Method in class rabbit.proxy.
ProxyLogger
Close down this logger.
closed()
- Method in interface rabbit.httpio.
HttpHeaderListener
The other end closed the connection.
closed()
- Method in class rabbit.httpio.
HttpResponseReader
closed()
- Method in class rabbit.proxy.
SWC
closeDown()
- Method in class rabbit.httpio.
BaseSocketHandler
Closer
- Class in
rabbit.io
A helper class that can close resources without throwing exceptions.
Closer()
- Constructor for class rabbit.io.
Closer
Coder
- Class in
rabbit.util
This class encodes/decodes stuff to/from the web.
COMMENT
- Static variable in class rabbit.html.
HtmlParser
A HTML comment "<!-- some text -->"
compress
- Variable in class rabbit.handler.
GZipHandler
con
- Variable in class rabbit.filter.
HtmlFilter
The Connection handling the request.
con
- Variable in class rabbit.handler.
BaseHandler
The Connection handling the request.
con
- Variable in class rabbit.meta.
BaseMetaHandler
Config
- Class in
rabbit.util
a class to handle configs for different things.
Config()
- Constructor for class rabbit.util.
Config
create an empty Config (has only section "" with no data in it)
Config(String)
- Constructor for class rabbit.util.
Config
Create a Config for the specified file
Config(File)
- Constructor for class rabbit.util.
Config
Create a Config for the specified file
Config(InputStream)
- Constructor for class rabbit.util.
Config
Create a Config by reading it from a stream.
Config(Reader)
- Constructor for class rabbit.util.
Config
Create a Config by reading it from a reader.
connect(Selector, WebConnectionListener)
- Method in class rabbit.io.
WebConnection
Connection
- Class in
rabbit.proxy
The base connection class for rabbit.
Connection(ConnectionId, SocketChannel, Selector, HttpProxy, BufferHandler)
- Constructor for class rabbit.proxy.
Connection
Connection
- Class in
rabbit.webserver
A connection to a web client.
Connection(SimpleWebServer, SocketChannel)
- Constructor for class rabbit.webserver.
Connection
Create a new Connection for the given web server and socket channel.
connectionAccepted(SocketChannel, Selector)
- Method in interface rabbit.httpio.
AcceptorListener
A conneciton has been accepted
connectionAccepted(SocketChannel, Selector)
- Method in class rabbit.proxy.
ProxyConnectionAcceptor
connectionEstablished(WebConnection)
- Method in interface rabbit.io.
WebConnectionListener
A connection has been made.
connectionEstablished(WebConnection)
- Method in class rabbit.proxy.
SWC
ConnectionHandler
- Class in
rabbit.io
A class to handle the connections to the net.
ConnectionHandler(Logger, Counter, Resolver, Selector)
- Constructor for class rabbit.io.
ConnectionHandler
ConnectionId
- Class in
rabbit.proxy
The id for a connection.
ConnectionId(int, long)
- Constructor for class rabbit.proxy.
ConnectionId
ConnectionLogger
- Interface in
rabbit.proxy
A logger interface.
Connections
- Class in
rabbit.meta
A page that shows the currently open web connections.
Connections()
- Constructor for class rabbit.meta.
Connections
content
- Variable in class rabbit.handler.
BaseHandler
The resource
ContentRangeParser
- Class in
rabbit.http
A class that parses content range headers.
ContentRangeParser(String, Logger)
- Constructor for class rabbit.http.
ContentRangeParser
Try to parse the given content range.
convertImage()
- Method in class rabbit.handler.
ImageHandler
Convert the image into a small low quality image (normally a jpeg).
copyHeader(GeneralHeader)
- Method in class rabbit.http.
GeneralHeader
Copy all headers in this header to the given header.
Counter
- Class in
rabbit.util
This class counts different messages
Counter()
- Constructor for class rabbit.util.
Counter
CountingClientBaseStopper
- Class in
rabbit.client
A helper class that shuts down the clientBase when all requests have finished.
CountingClientBaseStopper(ClientBase)
- Constructor for class rabbit.client.
CountingClientBaseStopper
CRLF
- Static variable in class rabbit.http.
Header
The String consisting of \r and \n
D
dataPacked()
- Method in interface rabbit.zip.
GZipPackListener
Called when all data has been packed.
DIV
- Static variable in class rabbit.html.
TagType
DNSHandler
- Interface in
rabbit.dns
A DNS handler.
DNSJavaHandler
- Class in
rabbit.dns
A DNS handler using the dnsjava packages
DNSJavaHandler()
- Constructor for class rabbit.dns.
DNSJavaHandler
DNSSunHandler
- Class in
rabbit.dns
A DNS handler using the standard java packages.
DNSSunHandler()
- Constructor for class rabbit.dns.
DNSSunHandler
DOCTYPE
- Static variable in class rabbit.html.
TagType
doHttpInFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
BlockFilter
test if a socket/header combination is valid or return a new HttpHeader.
doHttpInFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
DontCacheFilter
Test if a socket/header combination is valid or return a new HttpHeader.
doHttpInFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
DontFilterFilter
Test if a socket/header combination is valid or return a new HttpHeader.
doHttpInFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
HttpBaseFilter
doHttpInFiltering(SocketChannel, HttpHeader, Connection)
- Method in interface rabbit.filter.
HttpFilter
test if a socket/header combination is valid or return a new HttpHeader.
doHttpInFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
HttpSnoop
test if a socket/header combination is valid or return a new HttpHeader.
doHttpInFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
NoGZipEncoding
doHttpInFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
ProxyAuth
test if a socket/header combination is valid or return a new HttpHeader.
doHttpInFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
RevalidateFilter
doHttpInFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
ReverseProxy
test if a socket/header combination is valid or return a new HttpHeader.
doHttpInFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
SetHeaderFilter
doHttpInFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
SQLProxyAuth
test if a socket/header combination is valid or return a new HttpHeader.
doHttpOutFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
BlockFilter
test if a socket/header combination is valid or return a new HttpHeader.
doHttpOutFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
DontCacheFilter
Test if a socket/header combination is valid or return a new HttpHeader.
doHttpOutFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
DontFilterFilter
test if a socket/header combination is valid or return a new HttpHeader.
doHttpOutFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
HttpBaseFilter
doHttpOutFiltering(SocketChannel, HttpHeader, Connection)
- Method in interface rabbit.filter.
HttpFilter
test if a socket/header combination is valid or return a new HttpHeader.
doHttpOutFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
HttpSnoop
test if a socket/header combination is valid or return a new HttpHeader.
doHttpOutFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
NoGZipEncoding
doHttpOutFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
ProxyAuth
test if a socket/header combination is valid or return a new HttpHeader.
doHttpOutFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
RevalidateFilter
doHttpOutFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
ReverseProxy
test if a socket/header combination is valid or return a new HttpHeader.
doHttpOutFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
SetHeaderFilter
doHttpOutFiltering(SocketChannel, HttpHeader, Connection)
- Method in class rabbit.filter.
SQLProxyAuth
test if a socket/header combination is valid or return a new HttpHeader.
doIPFiltering(SocketChannel)
- Method in class rabbit.filter.
AccessFilter
Filter based on a socket.
doIPFiltering(SocketChannel)
- Method in interface rabbit.filter.
IPAccessFilter
Filter based on a socket.
DontCacheFilter
- Class in
rabbit.filter
This is a class that makes sure the proxy doesnt caches certain pages.
DontCacheFilter()
- Constructor for class rabbit.filter.
DontCacheFilter
Create a new DontCacheFilter.
DontFilterFilter
- Class in
rabbit.filter
This is a class that makes sure the proxy doesnt filter certain pages.
DontFilterFilter()
- Constructor for class rabbit.filter.
DontFilterFilter
Create a new Filter.
DOUBLEQUOTE
- Static variable in class rabbit.html.
HtmlParser
This is the character '"'
DQSTRING
- Static variable in class rabbit.html.
HtmlParser
This is a Double Quoted String a "string"
E
empty()
- Method in class rabbit.html.
Token
Empty this token, That is set its type to EMPTY and set the text and tag to null.
END
- Static variable in class rabbit.html.
HtmlParser
This indicates the end of a block.
endChunking()
- Method in class rabbit.meta.
BaseMetaHandler
entry
- Variable in class rabbit.handler.
BaseHandler
The cache entry if available.
entryChanged(CacheEntry<K, V>, K, V)
- Method in interface rabbit.cache.
Cache
Signal that a cache entry have changed.
entryChanged(CacheEntry<K, V>, K, V)
- Method in class rabbit.cache.
NCache
Signal that a cache entry have changed.
EQUALS
- Static variable in class rabbit.html.
HtmlParser
Equals '='
equals(Object)
- Method in class rabbit.http.
Header
equals(Object)
- Method in class rabbit.http.
HttpHeader
Is this Header equal to the other object?
equals(Object)
- Method in class rabbit.io.
Address
Compare this objcet agains another object.
establish()
- Method in class rabbit.proxy.
SCC
establish()
- Method in class rabbit.proxy.
SWC
F
failed(Exception)
- Method in class rabbit.client.
FileSaver
failed(Exception)
- Method in class rabbit.handler.
BaseHandler
failed(Exception)
- Method in interface rabbit.httpio.
AsyncListener
Reading failed
failed(Exception)
- Method in class rabbit.httpio.
HttpHeaderSender
failed(Exception)
- Method in class rabbit.httpio.
HttpResponseReader
failed(Exception)
- Method in interface rabbit.httpio.
TransferListener
Reading failed
failed(Exception)
- Method in interface rabbit.io.
WebConnectionListener
Creating the connection failed.
failed(Exception)
- Method in class rabbit.meta.
BaseMetaHandler
failed(Exception)
- Method in class rabbit.meta.
FileSender
failed(Exception)
- Method in class rabbit.proxy.
SWC
failed(Exception)
- Method in interface rabbit.zip.
GZipListener
Signal that an exception has occurred during handling of data.
fc
- Variable in class rabbit.httpio.
FileResourceSource
FileHandler
<
T
> - Interface in
rabbit.cache
An object that can read and write objects to file.
FileResourceSource
- Class in
rabbit.httpio
A resource that comes from a file.
FileResourceSource(String, TaskRunner, BufferHandler)
- Constructor for class rabbit.httpio.
FileResourceSource
FileResourceSource(File, TaskRunner, BufferHandler)
- Constructor for class rabbit.httpio.
FileResourceSource
FileSaver
- Class in
rabbit.client
A class to save a ResourceSource into a file.
FileSaver(HttpHeader, ClientBase, ClientListener, ResourceSource, File)
- Constructor for class rabbit.client.
FileSaver
FileSender
- Class in
rabbit.meta
A file resource handler.
FileSender()
- Constructor for class rabbit.meta.
FileSender
fillBuffer(StringBuilder)
- Method in class rabbit.http.
GeneralHeader
Fill the given StringBuilder with text from this header.
fillBuffer(StringBuilder)
- Method in class rabbit.http.
HttpHeader
FilterHandler
- Class in
rabbit.handler
This handler filters out unwanted html features.
FilterHandler()
- Constructor for class rabbit.handler.
FilterHandler
FilterHandler(Connection, TrafficLoggerHandler, HttpHeader, BufferHandle, HttpHeader, ResourceSource, boolean, boolean, long, boolean, boolean, List<HtmlFilterFactory>)
- Constructor for class rabbit.handler.
FilterHandler
Create a new FilterHandler for the given request.
filterHtml(HtmlBlock)
- Method in class rabbit.filter.
AdFilter
Removes advertising from the given block.
filterHtml(HtmlBlock)
- Method in class rabbit.filter.
BodyFilter
Insert some text at the top of the html page.
filterHtml(HtmlBlock)
- Method in class rabbit.filter.
HtmlFilter
Filter a block of html.
filterHtml(HtmlBlock)
- Method in class rabbit.filter.
SimpleTagFilter
Iterate over all tags and call handleTag on them.
finish(boolean)
- Method in class rabbit.handler.
BaseHandler
Close nesseccary channels and adjust the cached files.
finish(boolean)
- Method in class rabbit.handler.
ImageHandler
clear up the mess we made (remove intermediate files etc).
finish()
- Method in class rabbit.zip.
GZipPacker
Tell the packer that it has reached the end of data.
finishData()
- Method in class rabbit.handler.
BaseHandler
This method is used to finish the data for the resource being sent.
finishData()
- Method in class rabbit.handler.
FilterHandler
finishData()
- Method in class rabbit.handler.
GZipHandler
finished()
- Method in class rabbit.zip.
GZipPacker
Check if the packer is finished.
finished()
- Method in interface rabbit.zip.
GZipPackListener
Called when the output has been finished.
finished()
- Method in interface rabbit.zip.
GZipUnpackListener
Call when unpacking is really finished.
finishedRead()
- Method in class rabbit.client.
FileSaver
finishedRead()
- Method in class rabbit.handler.
BaseHandler
finishedRead()
- Method in interface rabbit.httpio.
BlockListener
The resource have been fully transferred
finishedRead()
- Method in interface rabbit.httpio.
ChunkDataFeeder
Chunk reading has been completed.
finishedRead()
- Method in class rabbit.httpio.
WebConnectionResourceSource
flush()
- Method in interface rabbit.cache.
Cache
Make sure that the cache is written to the disk.
flush()
- Method in class rabbit.cache.
NCache
Make sure that the cache is written to the disk.
followRedirects()
- Method in interface rabbit.client.
ClientListener
Check if this client request wants to automatically follow redirects
followRedirects()
- Method in class rabbit.client.
ClientListenerAdapter
This method returns true, override if you want different behaviour.
FONT
- Static variable in class rabbit.html.
TagType
FORM
- Static variable in class rabbit.html.
TagType
FRAMESET
- Static variable in class rabbit.html.
TagType
G
GeneralHeader
- Class in
rabbit.http
A class to handle general headers.
GeneralHeader()
- Constructor for class rabbit.http.
GeneralHeader
Create a new HTTPHeader from scratch
get(String[])
- Method in class rabbit.client.sample.
WGet
Add a set of urls to download.
get(String)
- Method in class rabbit.client.sample.
WGet
Add an url to the set of urls to be downloaded
get(String)
- Method in class rabbit.util.
Counter
Get the current count for an event.
get200()
- Method in interface rabbit.proxy.
HttpGenerator
Get a 200 Ok header
get206(String, HttpHeader)
- Method in interface rabbit.proxy.
HttpGenerator
Get a 206 Partial Content header.
get304(HttpHeader)
- Method in interface rabbit.proxy.
HttpGenerator
Get a 304 Not Modified header for the given old header
get400(Exception)
- Method in interface rabbit.proxy.
HttpGenerator
Get a 400 Bad Request header for the given exception.
get401(String, URL)
- Method in interface rabbit.proxy.
HttpGenerator
Get a 401 Authentication Required for the given realm and url.
get403()
- Method in interface rabbit.proxy.
HttpGenerator
Get a 403 Forbidden header.
get404(String)
- Method in interface rabbit.proxy.
HttpGenerator
Get a 404 File not found header.
get407(String, URL)
- Method in interface rabbit.proxy.
HttpGenerator
Get a 407 Proxy Authentication Required for the given realm and url.
get412()
- Method in interface rabbit.proxy.
HttpGenerator
Get a 412 Precondition Failed header.
get414()
- Method in interface rabbit.proxy.
HttpGenerator
Get a 414 Request-URI Too Long header.
get416(Throwable)
- Method in interface rabbit.proxy.
HttpGenerator
Get a Requested Range Not Satisfiable for the given exception.
get417(String)
- Method in interface rabbit.proxy.
HttpGenerator
Get a 417 Expectation Failed header.
get500(Throwable)
- Method in interface rabbit.proxy.
HttpGenerator
Get a 500 Internal Server Error header for the given exception.
get504(Throwable, String)
- Method in interface rabbit.proxy.
HttpGenerator
Get a 504 Gateway Timeout for the given exception.
getAccessFilters()
- Method in class rabbit.proxy.
SocketAccessController
getActiveConnections()
- Method in class rabbit.io.
ConnectionHandler
getAddress()
- Method in class rabbit.io.
WebConnection
getAllowList()
- Method in class rabbit.filter.
AccessFilter
Get the list of allowed ips
getAllowList()
- Method in interface rabbit.filter.
IPAccessFilter
Get the list of allowed ips
getAttribute(String)
- Method in class rabbit.html.
Tag
Get the value of the given key.
getBaseDir()
- Method in class rabbit.webserver.
SimpleWebServer
Get the directory files are served from.
getBlocks()
- Method in class rabbit.html.
HtmlBlock
getBuffer()
- Method in class rabbit.httpio.
BaseSocketHandler
getBuffer()
- Method in interface rabbit.io.
BufferHandle
Get a byte buffer of reasonable size, the buffer will have been cleared.
getBuffer()
- Method in interface rabbit.io.
BufferHandler
Get a byte buffer of reasonable size, the buffer will have been cleared.
getBuffer()
- Method in class rabbit.io.
CacheBufferHandle
getBuffer()
- Method in class rabbit.io.
CachingBufferHandler
getBuffer()
- Method in class rabbit.io.
SimpleBufferHandle
getBuffer()
- Method in interface rabbit.zip.
GZipListener
Get the data buffer the listener wants the handled data in.
getBufferHandler()
- Method in class rabbit.proxy.
Connection
getBufferHandler(Selector)
- Method in class rabbit.proxy.
HttpProxy
getBufferHandler()
- Method in class rabbit.webserver.
SimpleWebServer
Get the BufferHandler used by this web server.
getCache()
- Method in class rabbit.proxy.
HttpProxy
getCache()
- Method in class rabbit.proxy.
TrafficLoggerHandler
getCacheDir()
- Method in interface rabbit.cache.
Cache
Get the location where this cache stores its files.
getCacheDir()
- Method in class rabbit.cache.
NCache
getCachedString(String)
- Method in class rabbit.util.
StringCache
Get a cached string with the same contents as the given string.
getCacheTime()
- Method in interface rabbit.cache.
Cache
Get the number of miliseconds the cache stores things usually.
getCacheTime()
- Method in interface rabbit.cache.
CacheEntry
Get the date this object was cached.
getCacheTime()
- Method in class rabbit.cache.
NCache
Get the number of miliseconds the cache stores things usually.
getChanged()
- Method in class rabbit.html.
Token
Has this Token changed since it was created?
getChannel()
- Method in class rabbit.io.
WebConnection
getChannel()
- Method in class rabbit.proxy.
Connection
getChannel()
- Method in class rabbit.proxy.
PartialCacher
getChunking()
- Method in class rabbit.proxy.
Connection
Get the chunking option.
getCleanLoopTime()
- Method in class rabbit.cache.
NCache
Get how long time the cleaner sleeps between cleanups.
getClient()
- Method in class rabbit.proxy.
TrafficLoggerHandler
getConfig()
- Method in class rabbit.proxy.
HttpProxy
getConnection(HttpHeader, WebConnectionListener)
- Method in class rabbit.io.
ConnectionHandler
Get a WebConnection for the given header.
getConnectionHandler()
- Method in class rabbit.client.
ClientBase
getConnectionHandler()
- Method in class rabbit.proxy.
HttpProxy
Get the connection handler.
getConnectPort(int)
- Method in class rabbit.httpio.
SimpleResolver
getConnectPort(int)
- Method in interface rabbit.io.
Resolver
Get the port to use for connecting to a given port.
getConnectPort(int)
- Method in class rabbit.proxy.
HttpProxy
Get the port to connect to.
getContent()
- Method in class rabbit.http.
HttpHeader
Get the current content for this request/response.
getContentLength()
- Method in class rabbit.proxy.
Connection
getCounter()
- Method in class rabbit.proxy.
HttpProxy
getCurrentConnections()
- Method in class rabbit.proxy.
HttpProxy
Get all the current connections
getCurrentSize()
- Method in interface rabbit.cache.
Cache
Get the current size of the cache
getCurrentSize()
- Method in class rabbit.cache.
NCache
Get the current size of the cache
getDataHook(Cache<K, V>)
- Method in interface rabbit.cache.
CacheEntry
Get the hooked data.
getDate(String)
- Static method in class rabbit.http.
HttpDateParser
Try to get a date from the given string.
getDateString(Date)
- Static method in class rabbit.http.
HttpDateParser
Get a String from the date.
getDenyList()
- Method in class rabbit.filter.
AccessFilter
Get the list of denied ips
getDenyList()
- Method in interface rabbit.filter.
IPAccessFilter
Get the list of denied ips
getDescription()
- Method in class rabbit.httpio.
Acceptor
getDescription()
- Method in class rabbit.httpio.
BlockSender
getDescription()
- Method in class rabbit.httpio.
HttpHeaderReader
getDescription()
- Method in class rabbit.httpio.
WebConnectionResourceSource
getDescription()
- Method in interface rabbit.io.
HandlerRegistration
Get a text description
getDescription()
- Method in class rabbit.io.
MultiHandlerRegistration
getDescription()
- Method in class rabbit.io.
SimpleHandlerRegistration
getDescription()
- Method in interface rabbit.io.
SocketHandler
Get a string description.
getEnd()
- Method in class rabbit.http.
ContentRangeParser
Get the end index.
getEnd()
- Method in class rabbit.io.
Range
getEnd()
- Method in class rabbit.proxy.
PartialCacher
getEntries()
- Method in interface rabbit.cache.
Cache
Get the CacheEntries in the cache.
getEntries()
- Method in class rabbit.cache.
NCache
Get the CacheEntries in the cache.
getEntry(K)
- Method in interface rabbit.cache.
Cache
Get the CacheEntry assosiated with given object.
getEntry(K)
- Method in class rabbit.cache.
NCache
Get the CacheEntry assosiated with given object.
getEntryName(long, boolean, String)
- Method in interface rabbit.cache.
Cache
Get the file name for a cache entry.
getEntryName(long, boolean, String)
- Method in class rabbit.cache.
NCache
Get the file name for a cache entry.
getExpires()
- Method in interface rabbit.cache.
CacheEntry
Get the expiry-date of our file
getExtraInfo()
- Method in class rabbit.proxy.
Connection
getHandler(SelectionKey)
- Method in interface rabbit.io.
HandlerRegistration
Get the handler for the key.
getHandler(SelectionKey)
- Method in class rabbit.io.
MultiHandlerRegistration
getHandler(SelectionKey)
- Method in class rabbit.io.
SimpleHandlerRegistration
getHeader(String)
- Method in class rabbit.http.
GeneralHeader
get the value of header type
getHeader()
- Method in interface rabbit.proxy.
HttpGenerator
Get a new HttpHeader.
getHeader(String)
- Method in interface rabbit.proxy.
HttpGenerator
Get a new HttpHeader initialized with some data.
getHeaders(String)
- Method in class rabbit.http.
GeneralHeader
Get all headers of a specified type...
getHookFileHandler()
- Method in interface rabbit.cache.
Cache
Get the file handler for the values.
getHookFileHandler()
- Method in class rabbit.cache.
NCache
getHookSize()
- Method in interface rabbit.cache.
CacheEntry
Get the disc size of the hook, if any
getHost()
- Method in class rabbit.proxy.
HttpProxy
Get the local host.
getHttpGenerator()
- Method in class rabbit.proxy.
Connection
getHTTPVersion()
- Method in class rabbit.http.
HttpHeader
Get the HTTP Version of this request (only valid for requests).
getId()
- Method in interface rabbit.cache.
CacheEntry
Get the id of the entry.
getId()
- Method in class rabbit.proxy.
Connection
getInetAddress(URL)
- Method in interface rabbit.dns.
DNSHandler
Look up an internet address.
getInetAddress(String)
- Method in interface rabbit.dns.
DNSHandler
Look up an internet address.
getInetAddress(URL)
- Method in class rabbit.dns.
DNSJavaHandler
Look up an internet address.
getInetAddress(String)
- Method in class rabbit.dns.
DNSJavaHandler
getInetAddress(URL)
- Method in class rabbit.dns.
DNSSunHandler
Look up an internet address.
getInetAddress(String)
- Method in class rabbit.dns.
DNSSunHandler
getInetAddress(URL, InetAddressListener)
- Method in class rabbit.httpio.
SimpleResolver
getInetAddress()
- Method in class rabbit.io.
Address
Get the internet address
getInetAddress(URL, InetAddressListener)
- Method in interface rabbit.io.
Resolver
Get the InetAddress for a given url.
getInetAddress(URL, InetAddressListener)
- Method in class rabbit.proxy.
HttpProxy
Get the InetAddress for a given url.
getKeepalive()
- Method in class rabbit.io.
WebConnection
Get the keepalive value of this WebConnection.
getKeepaliveTime()
- Method in class rabbit.io.
ConnectionHandler
Get the current keep alive time.
getKey()
- Method in interface rabbit.cache.
CacheEntry
Get the key were holding data for
getKeyFileHandler()
- Method in interface rabbit.cache.
Cache
Get the file handler for the keys.
getKeyFileHandler()
- Method in class rabbit.cache.
NCache
getKeySize()
- Method in interface rabbit.cache.
CacheEntry
Get the disk size of the key, if any
getLength()
- Method in class rabbit.html.
Token
Get the length of this token.
getLogger()
- Method in class rabbit.client.
ClientBase
getLogger()
- Method in class rabbit.client.
ClientListenerAdapter
getLogger()
- Method in class rabbit.handler.
BaseHandler
getLogger()
- Method in class rabbit.httpio.
BaseSocketHandler
getLogger()
- Method in class rabbit.proxy.
Connection
getLogger()
- Method in class rabbit.proxy.
HttpProxy
getLogger()
- Method in class rabbit.webserver.
SimpleWebServer
Get the logger used by this web server.
getLowerCaseKey()
- Method in class rabbit.html.
Tag.Pair
getLowerCaseType()
- Method in class rabbit.html.
Tag
Get the lowercase type of this tag.
getMaxSize()
- Method in interface rabbit.cache.
Cache
Get the maximum size for this cache.
getMaxSize()
- Method in class rabbit.cache.
NCache
Get the maximum size for this cache.
getMayFilter()
- Method in class rabbit.proxy.
Connection
Get the state of the request.
getMeta()
- Method in class rabbit.proxy.
Connection
Get the state of this request.
getMethod()
- Method in class rabbit.http.
HttpHeader
Get the request method of this header (only valid for requests).
getMimeType(String)
- Static method in class rabbit.util.
MimeTypeMapper
getNetwork()
- Method in class rabbit.proxy.
TrafficLoggerHandler
getNewInstance(Connection, TrafficLoggerHandler, HttpHeader, BufferHandle, HttpHeader, ResourceSource, boolean, boolean, long)
- Method in class rabbit.handler.
BaseHandler
getNewInstance(Connection, TrafficLoggerHandler, HttpHeader, BufferHandle, HttpHeader, ResourceSource, boolean, boolean, long)
- Method in class rabbit.handler.
FilterHandler
getNewInstance(Connection, TrafficLoggerHandler, HttpHeader, BufferHandle, HttpHeader, ResourceSource, boolean, boolean, long)
- Method in class rabbit.handler.
GZipHandler
getNewInstance(Connection, TrafficLoggerHandler, HttpHeader, BufferHandle, HttpHeader, ResourceSource, boolean, boolean, long)
- Method in interface rabbit.handler.
HandlerFactory
Get a new Handler for the given request made.
getNewInstance(Connection, TrafficLoggerHandler, HttpHeader, BufferHandle, HttpHeader, ResourceSource, boolean, boolean, long)
- Method in class rabbit.handler.
ImageHandler
getNewInstance(Connection, TrafficLoggerHandler, HttpHeader, BufferHandle, HttpHeader, ResourceSource, boolean, boolean, long)
- Method in class rabbit.handler.
MultiPartHandler
getNumberOfEntries()
- Method in interface rabbit.cache.
Cache
Get the current number of entries in the cache.
getNumberOfEntries()
- Method in class rabbit.cache.
NCache
Get the current number of entries in the cache.
getOffset()
- Method in class rabbit.proxy.
HttpProxy
getOffset()
- Method in class rabbit.proxy.
ProxyLogger
Get the distance to GMT in millis
getPageHeader()
- Method in class rabbit.meta.
BaseMetaHandler
Get the page header name
getPageHeader()
- Method in class rabbit.meta.
CacheStatus
getPageHeader()
- Method in class rabbit.meta.
ClearCache
getPageHeader()
- Method in class rabbit.meta.
Connections
getPageHeader()
- Method in class rabbit.meta.
Kill
getPageHeader()
- Method in class rabbit.meta.
LogRotator
getPageHeader()
- Method in class rabbit.meta.
SelectorStatus
getPageHeader()
- Method in class rabbit.meta.
StackTrace
getPageHeader()
- Method in class rabbit.meta.
Status
getPageHeader()
- Static method in class rabbit.proxy.
HtmlPage
return a simple HTMLheader.
getPageHeader(Connection, String)
- Static method in class rabbit.proxy.
HtmlPage
return a HTMLheader.
getPassword()
- Method in class rabbit.proxy.
Connection
getPattern(SProperties, String, String, Logger)
- Method in class rabbit.util.
PatternHelper
Get a Pattern for a given property.
getPort()
- Method in class rabbit.io.
Address
Get the port number
getPort()
- Method in class rabbit.proxy.
HttpProxy
Get the port this proxy is using.
getProperties()
- Static method in class rabbit.proxy.
HtmlPage
return the properties this class uses
getProperties(String)
- Method in class rabbit.util.
Config
get the properties for a given section
getProperty(String, String)
- Method in class rabbit.util.
Config
get a property for given key in specified section
getProperty(String, String, String)
- Method in class rabbit.util.
Config
get a property for given key in specified section
getProperty(String)
- Method in class rabbit.util.
SProperties
getProperty(String, String)
- Method in class rabbit.util.
SProperties
getProxy()
- Method in class rabbit.proxy.
Connection
getProxy()
- Method in class rabbit.proxy.
TrafficLoggerHandler
getProxyAuthString()
- Method in class rabbit.httpio.
SimpleResolver
getProxyAuthString()
- Method in interface rabbit.io.
Resolver
Get the currently set proxy authentication.
getProxyAuthString()
- Method in class rabbit.proxy.
HttpProxy
Get the authenticationstring to use for proxy.
getReasonPhrase()
- Method in class rabbit.http.
HttpHeader
Get the Reason phrase of the response (only valid for responses).
getRedirectedURL(HttpHeader, String)
- Method in class rabbit.client.
ClientBase
Create the url that the response redirected the request to.
getReleasedAt()
- Method in class rabbit.io.
WebConnection
Get the time that this WebConnection was released.
getRequest(String, String)
- Method in class rabbit.client.
ClientBase
Submit a new request, using the given method to the given url.
getRequestLine()
- Method in class rabbit.http.
HttpHeader
Get the requestline of this header (only valid for requests).
getRequestLine()
- Method in class rabbit.proxy.
Connection
getRequestURI()
- Method in class rabbit.http.
HttpHeader
Get the requestURI of this request (only valid for requests).
getRequestURI()
- Method in class rabbit.proxy.
Connection
Get the current request uri.
getResponseHTTPVersion()
- Method in class rabbit.http.
HttpHeader
Get the HTTP version of the response (only valid for responses).
getRestBlock()
- Method in class rabbit.html.
HtmlBlock
Get the rest as a byte[]
getSections()
- Method in class rabbit.util.
Config
get the available sections
getSelector()
- Method in class rabbit.httpio.
SelectorRunner
Get the selector used for network operations.
getSelector()
- Method in class rabbit.proxy.
Connection
getSelectorRunner()
- Method in class rabbit.webserver.
SimpleWebServer
Get the SelectorRunner used by this web server.
getServerIdentity()
- Method in class rabbit.proxy.
HttpProxy
getSharedInstance()
- Static method in class rabbit.util.
StringCache
Get the shared instance of the string caches.
getSize()
- Method in interface rabbit.cache.
CacheEntry
Get the size of our file
getSocketOperations()
- Method in class rabbit.httpio.
BaseSocketHandler
getSocketOperations()
- Method in class rabbit.httpio.
BlockSender
getSocketOperations()
- Method in class rabbit.httpio.
HttpHeaderReader
getStart()
- Method in class rabbit.http.
ContentRangeParser
Get the start index
getStart()
- Method in class rabbit.io.
Range
getStart()
- Method in class rabbit.proxy.
PartialCacher
getStarted()
- Method in class rabbit.proxy.
Connection
Get the time this connection was started.
getStartIndex()
- Method in class rabbit.html.
Token
Get the start index of this Token.
getStartTime()
- Method in class rabbit.proxy.
HttpProxy
getStatus()
- Method in class rabbit.proxy.
Connection
getStatusCode()
- Method in class rabbit.http.
HttpHeader
Get the Status code of the response (only valid for responses).
getStatusLine()
- Method in class rabbit.http.
HttpHeader
Get the statusline of this header (only valid for responses).
getStrictHttp()
- Method in class rabbit.proxy.
HttpProxy
getTableHeader(int, int)
- Static method in class rabbit.proxy.
HtmlPage
return a table header with given width (int %) and given borderwidth.
getTableTopicRow()
- Static method in class rabbit.proxy.
HtmlPage
return a tabletopic row
getTag()
- Method in class rabbit.html.
Token
Get the tag of this token.
getTagType()
- Method in class rabbit.html.
Tag
Get the tagtype of this tag.
getTagType(String)
- Static method in class rabbit.html.
TagType
getTaskRunner()
- Method in class rabbit.client.
ClientBase
getTaskRunner()
- Method in class rabbit.handler.
BaseHandler
getTaskRunner()
- Method in class rabbit.proxy.
HttpProxy
getText()
- Method in class rabbit.html.
Token
Get the text of this token.
getToken()
- Method in class rabbit.html.
Tag
Get the parent token of this tag.
getTokens()
- Method in class rabbit.html.
HtmlBlock
Get a List of the Tokens.
getTotal()
- Method in class rabbit.http.
ContentRangeParser
Get the total size of the resource.
getTotal()
- Method in class rabbit.proxy.
PartialCacher
getTotalRead()
- Method in class rabbit.httpio.
ChunkHandler
getTrafficLogger()
- Method in class rabbit.webserver.
SimpleWebServer
Get the TrafficLogger used by this web server.
getTrafficLoggerHandler()
- Method in class rabbit.proxy.
HttpProxy
Get the currently transferred traffic statistics.
getType()
- Method in class rabbit.html.
Tag
Get the type of this tag.
getType()
- Method in class rabbit.html.
Token
Get the type of this token.
getType()
- Method in class rabbit.http.
Header
Get the type of this header.
getUserName()
- Method in class rabbit.proxy.
Connection
getUsers()
- Method in class rabbit.util.
SimpleUserHandler
Return the hash of users.
getValue()
- Method in class rabbit.http.
Header
Get the value of this header.
getVersion()
- Method in class rabbit.proxy.
HttpProxy
getWebConnection(HttpHeader, WebConnectionListener)
- Method in class rabbit.proxy.
HttpProxy
Get a WebConnection.
growBuffer()
- Method in class rabbit.httpio.
BaseSocketHandler
growBuffer()
- Method in interface rabbit.io.
BufferHandle
Grow the buffer.
growBuffer(ByteBuffer)
- Method in interface rabbit.io.
BufferHandler
Get a larger buffer with the same contents as buffer, this will also return buffer to the pool.
growBuffer()
- Method in class rabbit.io.
CacheBufferHandle
growBuffer(ByteBuffer)
- Method in class rabbit.io.
CachingBufferHandler
growBuffer()
- Method in class rabbit.io.
SimpleBufferHandle
GZipHandler
- Class in
rabbit.handler
This handler compresses the data passing through it.
GZipHandler()
- Constructor for class rabbit.handler.
GZipHandler
For creating the factory.
GZipHandler(Connection, TrafficLoggerHandler, HttpHeader, BufferHandle, HttpHeader, ResourceSource, boolean, boolean, long, boolean)
- Constructor for class rabbit.handler.
GZipHandler
Create a new GZipHandler for the given request.
GZipListener
- Interface in
rabbit.zip
A listener for gzip handling events.
GZipPacker
- Class in
rabbit.zip
A class that can pack gzip streams in chunked mode.
GZipPacker(GZipPackListener)
- Constructor for class rabbit.zip.
GZipPacker
Create a gzip packer that sends events to the given listener.
GZipPackListener
- Interface in
rabbit.zip
A listener for gzip pack data events.
GZipUnpacker
- Class in
rabbit.zip
A class that can unpack gzip streams in chunked mode.
GZipUnpacker(GZipUnpackListener, boolean)
- Constructor for class rabbit.zip.
GZipUnpacker
Create a new gzip or compress unpacker.
GZipUnpackListener
- Interface in
rabbit.zip
A listener for gzip unpack data events.
H
handle()
- Method in class rabbit.handler.
BaseHandler
Handle the request.
handle()
- Method in interface rabbit.handler.
Handler
handle a request.
handle()
- Method in class rabbit.handler.
ImageHandler
Try to convert the image before letting the superclass handle it.
handle(HttpHeader, SProperties, Connection, TrafficLogger, TrafficLogger)
- Method in class rabbit.meta.
BaseMetaHandler
handle(HttpHeader, SProperties, Connection, TrafficLogger, TrafficLogger)
- Method in class rabbit.meta.
FileSender
handle(HttpHeader, SProperties, Connection, TrafficLogger, TrafficLogger)
- Method in interface rabbit.meta.
MetaHandler
Handle a client request.
handleCurrentData()
- Method in class rabbit.zip.
GZipPacker
Handle the next block of the current data.
handleCurrentData()
- Method in class rabbit.zip.
GZipUnpacker
Handle the next block of the current data.
handleData(BufferHandle)
- Method in class rabbit.httpio.
ChunkHandler
handleFailure(HttpHeader, Exception)
- Method in interface rabbit.client.
ClientListener
Handle a failure of a given request.
handleFailure(HttpHeader, Exception)
- Method in class rabbit.client.
ClientListenerAdapter
Logs an error to the logger and calls requestDone().
Handler
- Interface in
rabbit.handler
This interface descsribes the methods neccessary to implement a handler.
handleResponse(HttpHeader, HttpHeader, WebConnectionResourceSource)
- Method in interface rabbit.client.
ClientListener
Handle a response for a request.
handleResponse(HttpHeader, HttpHeader, WebConnectionResourceSource)
- Method in class rabbit.client.
ClientListenerAdapter
This method does nothing.
HandlerFactory
- Interface in
rabbit.handler
The methods needed to create a new Handler.
HandlerRegistration
- Interface in
rabbit.io
A class to hold information about when an operation was attached to the selector.
handleTag(Tag, HtmlBlock, int)
- Method in class rabbit.filter.
BackgroundFilter
Remove background images from the given block.
handleTag(Tag, HtmlBlock, int)
- Method in class rabbit.filter.
BlinkFilter
Remove blink tags.
handleTag(Tag, HtmlBlock, int)
- Method in class rabbit.filter.
BodyFilter
handleTag(Tag, HtmlBlock, int)
- Method in class rabbit.filter.
LowresImageFilter
remove the lowres tags.
handleTag(Tag, HtmlBlock, int)
- Method in class rabbit.filter.
SimpleTagFilter
Handle a tag.
handleTimeout(HttpHeader)
- Method in interface rabbit.client.
ClientListener
Handle a timeout of a given request.
handleTimeout(HttpHeader)
- Method in class rabbit.client.
ClientListenerAdapter
Logs an error to the logger and calls requestDone().
hashCode()
- Method in class rabbit.http.
Header
hashCode()
- Method in class rabbit.http.
HttpHeader
Get the hashCode for this header.
hashCode()
- Method in class rabbit.io.
Address
Get the hash code for this object.
hasMoreTokens()
- Method in class rabbit.html.
HtmlBlock
Does this block have more tokens?
hasRests()
- Method in class rabbit.html.
HtmlBlock
Check if this block has any rest data, that is bytes that will not be used.
Head
- Class in
rabbit.client.sample
A class that performs a set HEAD request to the given urls.
Head(HeadResponseListener)
- Constructor for class rabbit.client.sample.
Head
Create a new HEAD requestor.
head(String[])
- Method in class rabbit.client.sample.
Head
Run HEAD requests to all the urls given.
head(String)
- Method in class rabbit.client.sample.
Head
Run HEAD requests to the given url
HEAD
- Static variable in class rabbit.html.
TagType
Header
- Class in
rabbit.http
This class holds a single header value, that is a "type: some text"
Header()
- Constructor for class rabbit.http.
Header
Used for externalization.
Header(String, String)
- Constructor for class rabbit.http.
Header
Create a new header
headers
- Variable in class rabbit.http.
GeneralHeader
The headers of this Header in order.
HeadResponseListener
- Interface in
rabbit.client.sample
A handler of http HEAD responses.
htab
- Variable in class rabbit.meta.
BaseMetaHandler
HTML
- Static variable in class rabbit.html.
TagType
HtmlBlock
- Class in
rabbit.html
This class is used to describe a piece of a HTML page.
HtmlBlock(char[], int, Charset, byte[])
- Constructor for class rabbit.html.
HtmlBlock
Create a HtmlBLock from the given byte array.
HtmlFilter
- Class in
rabbit.filter
This class describes the functions neccessary to filter a block of html.
HtmlFilter()
- Constructor for class rabbit.filter.
HtmlFilter
Create the factory.
HtmlFilter(Connection, HttpHeader, HttpHeader)
- Constructor for class rabbit.filter.
HtmlFilter
Create a new HtmlFilter for the given request, response pair.
HtmlFilterFactory
- Interface in
rabbit.filter
A factory that creates HTMLFilters.
HtmlPage
- Class in
rabbit.proxy
This class is intended to be used as a template for metapages.
HtmlParseException
- Exception in
rabbit.html
This exception indicates an error in the parsing of an HTML block.
HtmlParseException(String)
- Constructor for exception rabbit.html.
HtmlParseException
Create a new HtmlParseException with the given string.
HtmlParseException(Throwable)
- Constructor for exception rabbit.html.
HtmlParseException
Create a new HtmlParseException with the given Throwable.
HtmlParser
- Class in
rabbit.html
This is a class that is used to parse a block of HTML code into separate tokens.
HtmlParser(Charset)
- Constructor for class rabbit.html.
HtmlParser
Create a new HTMLParser
HttpBaseFilter
- Class in
rabbit.filter
This is a class that filter http headers to make them nice.
HttpBaseFilter()
- Constructor for class rabbit.filter.
HttpBaseFilter
HttpDateParser
- Class in
rabbit.http
A utility class that parses date in the http headers.
HttpDateParser()
- Constructor for class rabbit.http.
HttpDateParser
The default constructor.
HttpFilter
- Interface in
rabbit.filter
A filter for http headers.
HttpGenerator
- Interface in
rabbit.proxy
An interface describing the methods for http header generation.
HttpHeader
- Class in
rabbit.http
A class to handle http headers.
HttpHeader()
- Constructor for class rabbit.http.
HttpHeader
Create a new HTTPHeader from scratch
HttpHeaderFileHandler
- Class in
rabbit.proxy
A FileHandler for HttpHeader
HttpHeaderFileHandler()
- Constructor for class rabbit.proxy.
HttpHeaderFileHandler
HttpHeaderListener
- Interface in
rabbit.httpio
A listener for http headers.
httpHeaderRead(HttpHeader, BufferHandle, boolean, boolean, long)
- Method in interface rabbit.httpio.
HttpHeaderListener
one http header has been read
httpHeaderRead(HttpHeader, BufferHandle, boolean, boolean, long)
- Method in class rabbit.httpio.
HttpResponseReader
httpHeaderRead(HttpHeader, BufferHandle, boolean, boolean, long)
- Method in class rabbit.proxy.
SWC
HttpHeaderReader
- Class in
rabbit.httpio
A handler that reads http headers
HttpHeaderReader(SocketChannel, BufferHandle, Selector, Logger, TrafficLogger, boolean, boolean, HttpHeaderListener)
- Constructor for class rabbit.httpio.
HttpHeaderReader
HttpHeaderSender
- Class in
rabbit.httpio
A handler that writes http headers
HttpHeaderSender(SocketChannel, Selector, Logger, TrafficLogger, HttpHeader, boolean, HttpHeaderSentListener)
- Constructor for class rabbit.httpio.
HttpHeaderSender
httpHeaderSent()
- Method in class rabbit.handler.
BaseHandler
httpHeaderSent()
- Method in interface rabbit.httpio.
HttpHeaderSentListener
The http header has been sent.
httpHeaderSent()
- Method in class rabbit.httpio.
HttpResponseReader
httpHeaderSent()
- Method in class rabbit.meta.
FileSender
httpHeaderSent()
- Method in class rabbit.proxy.
SWC
HttpHeaderSentListener
- Interface in
rabbit.httpio
A listener for notification that a http header has been sent.
HttpProxy
- Class in
rabbit.proxy
A filtering and caching http proxy.
HttpProxy()
- Constructor for class rabbit.proxy.
HttpProxy
httpResponse(HttpHeader, BufferHandle, boolean, boolean, long)
- Method in interface rabbit.httpio.
HttpResponseListener
The http header has been sent.
HttpResponseListener
- Interface in
rabbit.httpio
A listener for http header sent + read.
HttpResponseReader
- Class in
rabbit.httpio
A handler that write one http header and reads a response
HttpResponseReader(SocketChannel, Selector, Logger, TrafficLogger, BufferHandler, HttpHeader, boolean, boolean, HttpResponseListener)
- Constructor for class rabbit.httpio.
HttpResponseReader
HttpSnoop
- Class in
rabbit.filter
This is a class that prints the Http headers on the standard out stream.
HttpSnoop()
- Constructor for class rabbit.filter.
HttpSnoop
I
ImageHandler
- Class in
rabbit.handler
This handler first downloads the image runs convert on it and then serves the smaller image.
ImageHandler()
- Constructor for class rabbit.handler.
ImageHandler
For creating the factory.
ImageHandler(Connection, TrafficLoggerHandler, HttpHeader, BufferHandle, HttpHeader, ResourceSource, boolean, boolean, long, SProperties, boolean, int)
- Constructor for class rabbit.handler.
ImageHandler
Create a new ImageHandler for the given request.
IMG
- Static variable in class rabbit.html.
TagType
inc(String)
- Method in class rabbit.util.
Counter
Increase a logentry.
InetAddressListener
- Interface in
rabbit.io
An interface for a listener of asyncronous dns lookups.
INPUT
- Static variable in class rabbit.html.
TagType
inrange(InetAddress)
- Method in class rabbit.util.
IPAccess
check if a given ip is in this accessrange
insertToken(Token, int)
- Method in class rabbit.html.
HtmlBlock
Insert a token at given position.
insertTokens(HtmlBlock, int)
- Method in class rabbit.filter.
BodyFilter
Insert the links in an ordered fashion.
internalConvertImage()
- Method in class rabbit.handler.
ImageHandler
IPAccess
- Class in
rabbit.util
A class to handle access to ip ranges.
IPAccess(InetAddress, InetAddress)
- Constructor for class rabbit.util.
IPAccess
Create a new IPAccess with given ip-range.
IPAccessFilter
- Interface in
rabbit.filter
This interface holds the method needed to do socket based access filtering.
isCacheable()
- Method in class rabbit.filter.
HtmlFilter
If the filter determines that the page is not cacheable it can negate this, and FilterHandler will not cache it.
isDot9Request()
- Method in class rabbit.http.
HttpHeader
Is this request a HTTP/0.9 type request?
isEmpty()
- Method in interface rabbit.io.
BufferHandle
Check if this handle is empty, that is if no buffer exists or the buffer is empty.
isEmpty()
- Method in class rabbit.io.
CacheBufferHandle
isEmpty()
- Method in class rabbit.io.
SimpleBufferHandle
isEvil(String)
- Method in class rabbit.filter.
AdFilter
Check if a string is evil (that is its probably advertising).
isExpired(long, long)
- Method in interface rabbit.io.
HandlerRegistration
Check if this registration is expired.
isExpired(long, long)
- Method in class rabbit.io.
MultiHandlerRegistration
isExpired(long, long)
- Method in class rabbit.io.
SimpleHandlerRegistration
isFinished()
- Method in class rabbit.proxy.
MultiPartPipe
isHeadOnlyRequest()
- Method in class rabbit.http.
HttpHeader
Is this request for the head only?
isProxyConnected()
- Method in class rabbit.httpio.
SimpleResolver
isProxyConnected()
- Method in interface rabbit.io.
Resolver
Check if the resolver is using a proxy or not.
isProxyConnected()
- Method in class rabbit.proxy.
HttpProxy
Is this proxy chained to another proxy?
isPublic(URL)
- Method in class rabbit.filter.
HttpBaseFilter
Check if a given url is a public URL of the Proxy.
isRequest()
- Method in class rabbit.http.
HttpHeader
Try to guess if this header is a request.
isResponse()
- Method in class rabbit.http.
HttpHeader
Try to guess if this header is a response.
isSecure()
- Method in class rabbit.http.
HttpHeader
Try to guess if this header is a secure thing.
isSelf(String, int)
- Method in class rabbit.proxy.
HttpProxy
Try hard to check if the given address matches the proxy.
isSSLRequest()
- Method in class rabbit.http.
HttpHeader
Check to see if this header is an SSL header.
isValid()
- Method in class rabbit.http.
ContentRangeParser
Check if the content range was valid.
isValidUser(String, String)
- Method in class rabbit.util.
SimpleUserHandler
Check if a user/password combination is valid.
isWeak(String)
- Method in class rabbit.proxy.
Connection
K
key
- Variable in class rabbit.html.
Tag.Pair
The key of this pair.
keys()
- Method in class rabbit.util.
Counter
Get all events
Kill
- Class in
rabbit.meta
Kills the proxy instance.
Kill()
- Constructor for class rabbit.meta.
Kill
L
LAYER
- Static variable in class rabbit.html.
TagType
lcKey
- Variable in class rabbit.html.
Tag.Pair
The lowercase key..
length()
- Method in class rabbit.httpio.
FileResourceSource
length()
- Method in interface rabbit.httpio.
Transferable
Get the length of the resource in bytes.
length()
- Method in class rabbit.httpio.
WebConnectionResourceSource
Level
- Enum in
rabbit.util
The logging levels.
LI
- Static variable in class rabbit.html.
TagType
LineListener
- Interface in
rabbit.httpio
An event handler for lines of text.
lineRead(String)
- Method in class rabbit.httpio.
HttpHeaderReader
Handle a newly read line.
lineRead(String)
- Method in interface rabbit.httpio.
LineListener
Event sent when a line of text have been read.
LineReader
- Class in
rabbit.httpio
A class that reads lines from a ByteBuffer.
LineReader(boolean)
- Constructor for class rabbit.httpio.
LineReader
Create a new LineReader.
loadAccess(Logger, Reader)
- Method in class rabbit.filter.
AccessFilter
Loads in the accessess allowed from the given Reader
loadAccess(Logger, Reader)
- Method in interface rabbit.filter.
IPAccessFilter
Loads in the accessess allowed from the given Reader
loadUsers(Reader)
- Method in class rabbit.util.
SimpleUserHandler
Load the users from the given Reader.
logAll(String)
- Method in class rabbit.proxy.
ProxyLogger
logAll(String)
- Method in interface rabbit.util.
Logger
Log some information Same as
logError (ALL, error);
logAll(String)
- Method in class rabbit.util.
SimpleLogger
logAndClose(RequestHandler)
- Method in class rabbit.proxy.
Connection
logAndRestart()
- Method in class rabbit.proxy.
Connection
logConnection(Connection)
- Method in interface rabbit.proxy.
ConnectionLogger
Log a finished connection.
logConnection(Connection)
- Method in class rabbit.proxy.
ProxyLogger
logDebug(String)
- Method in class rabbit.proxy.
ProxyLogger
logDebug(String)
- Method in interface rabbit.util.
Logger
Log a debug message.
logDebug(String)
- Method in class rabbit.util.
SimpleLogger
logError(String)
- Method in class rabbit.proxy.
ProxyLogger
logError(Level, String)
- Method in class rabbit.proxy.
ProxyLogger
logError(String)
- Method in interface rabbit.util.
Logger
Log an error.
logError(Level, String)
- Method in interface rabbit.util.
Logger
Log an error of given type and with given message.
logError(String)
- Method in class rabbit.util.
SimpleLogger
logError(Level, String)
- Method in class rabbit.util.
SimpleLogger
logFatal(String)
- Method in class rabbit.proxy.
ProxyLogger
logFatal(String)
- Method in interface rabbit.util.
Logger
Log an fatal error.
logFatal(String)
- Method in class rabbit.util.
SimpleLogger
logger
- Variable in class rabbit.httpio.
BaseSocketHandler
The logger to use.
Logger
- Interface in
rabbit.util
A logger interface.
LogHeadToSystemOut
- Class in
rabbit.client.sample
A http HEAD response handler that just lots the response to System.out.
LogHeadToSystemOut()
- Constructor for class rabbit.client.sample.
LogHeadToSystemOut
logInfo(String)
- Method in class rabbit.proxy.
ProxyLogger
logInfo(String)
- Method in interface rabbit.util.
Logger
Log some information.
logInfo(String)
- Method in class rabbit.util.
SimpleLogger
logMsg(String)
- Method in class rabbit.proxy.
ProxyLogger
logMsg(String)
- Method in interface rabbit.util.
Logger
Log a message.
logMsg(String)
- Method in class rabbit.util.
SimpleLogger
LogRotator
- Class in
rabbit.meta
An admin page that rotates the logs.
LogRotator()
- Constructor for class rabbit.meta.
LogRotator
logWarn(String)
- Method in class rabbit.proxy.
ProxyLogger
logWarn(String)
- Method in interface rabbit.util.
Logger
Log a warning.
logWarn(String)
- Method in class rabbit.util.
SimpleLogger
lookupDone(InetAddress)
- Method in interface rabbit.io.
InetAddressListener
An dns lookup has completed.
LowresImageFilter
- Class in
rabbit.filter
This filter removes the "
lowsrc=some_image.gif
" attributes from the <img> tags.
LowresImageFilter()
- Constructor for class rabbit.filter.
LowresImageFilter
LowresImageFilter(Connection, HttpHeader, HttpHeader)
- Constructor for class rabbit.filter.
LowresImageFilter
Create a new LowresImageFilter for the given request, response pair.
LT
- Static variable in class rabbit.html.
HtmlParser
Less Than '<'
M
main(String[])
- Static method in class rabbit.client.sample.
Head
Run a HEAD request for any url passed in args and then prints the results on System.out.
main(String[])
- Static method in class rabbit.client.sample.
WGet
Download all urls given in the args arrays.
main(String[])
- Static method in class rabbit.http.
HttpDateParser
Simple self test method.
main(String[])
- Static method in class rabbit.proxy.
ProxyStarter
main(String[])
- Static method in class rabbit.test.
TestHtmlParser
main(String[])
- Static method in class rabbit.tunnel.
MeteredTunnel
main(String[])
- Static method in class rabbit.webserver.
SimpleWebServer
Start a web server using the port and base dir given as arguments.
markForPipelining(WebConnection)
- Method in class rabbit.io.
ConnectionHandler
Mark a WebConnection ready for pipelining.
markForPipelining(WebConnection)
- Method in class rabbit.proxy.
HttpProxy
Mark a WebConnection for pipelining.
mayCache
- Variable in class rabbit.handler.
BaseHandler
May we cache this request.
mayCacheFromSize()
- Method in class rabbit.handler.
BaseHandler
Try to use the resource size to decide if we may cache or not.
mayCacheFromSize()
- Method in class rabbit.handler.
ImageHandler
Images needs to be cacheable to be compressed.
mayFilter
- Variable in class rabbit.handler.
BaseHandler
May we filter this request
mayPipeline()
- Method in class rabbit.io.
WebConnection
Check if this WebConnection may be used for pipelining.
mayRestrictCacheSize()
- Method in class rabbit.handler.
BaseHandler
Check if this handler may force the cached resource to be less than the cache max size.
mayRestrictCacheSize()
- Method in class rabbit.handler.
ImageHandler
Check if this handler may force the cached resource to be less than the cache max size.
mayTransfer()
- Method in class rabbit.handler.
BaseHandler
Check if this handler supports direct transfers.
mayTransfer()
- Method in class rabbit.handler.
GZipHandler
Check if this handler supports direct transfers.
merge(Config)
- Method in class rabbit.util.
Config
Merge this config with another one.
META
- Static variable in class rabbit.html.
TagType
MetaHandler
- Interface in
rabbit.meta
The specification for dynamic status information handlers in the proxy.
MeteredTunnel
- Class in
rabbit.tunnel
A tunnel to simulate a slow connection.
MeteredTunnel(int, int, int)
- Constructor for class rabbit.tunnel.
MeteredTunnel
MimeTypeMapper
- Class in
rabbit.util
A class that tries to guess mime types based on file extensions.
MimeTypeMapper()
- Constructor for class rabbit.util.
MimeTypeMapper
modifyBuffer(BufferHandle)
- Method in class rabbit.handler.
FilterHandler
modifyBuffer(BufferHandle)
- Method in class rabbit.handler.
GZipHandler
This method is used when we are not compressing data.
modifyRequest(HttpHeader)
- Method in interface rabbit.proxy.
ClientResourceHandler
Modify the request sent to the server, used to add "Expect: 100 Continue" and similar.
MT
- Static variable in class rabbit.html.
HtmlParser
More Than '>'
MultiHandlerRegistration
- Class in
rabbit.io
A multiplexing handler registration.
MultiHandlerRegistration(SocketHandler, long, SocketHandler, long)
- Constructor for class rabbit.io.
MultiHandlerRegistration
MultiPartHandler
- Class in
rabbit.handler
This class handles multipart responses, this handler does not filter the resource.
MultiPartHandler()
- Constructor for class rabbit.handler.
MultiPartHandler
MultiPartHandler(Connection, TrafficLoggerHandler, HttpHeader, BufferHandle, HttpHeader, ResourceSource)
- Constructor for class rabbit.handler.
MultiPartHandler
Create a new BaseHansler for the given request.
MultipartHeader
- Class in
rabbit.http
A header suitable for multi part handling.
MultipartHeader(String)
- Constructor for class rabbit.http.
MultipartHeader
MultiPartPipe
- Class in
rabbit.proxy
A class that reads multipart data from one channel and writes it to the other channel.
MultiPartPipe(String)
- Constructor for class rabbit.proxy.
MultiPartPipe
mustTunnel(RequestHandler)
- Method in class rabbit.proxy.
Connection
Check if we must tunnel a request.
N
NCache
<
K
,
V
> - Class in
rabbit.cache
The NCache is like a Map in lookup/insert/delete The NCache is persistent over sessions (saves itself to disk).
NCache(Logger, SProperties, FileHandler<K>, FileHandler<V>)
- Constructor for class rabbit.cache.
NCache
Create a cache that uses default values.
needsInput()
- Method in class rabbit.zip.
GZipPacker
Check if the unpacker currently needs more data
needsInput()
- Method in class rabbit.zip.
GZipUnpacker
Check if the unpacker currently needs more data
newEntry(K)
- Method in interface rabbit.cache.
Cache
Reserve space for a CacheEntry with key o.
newEntry(K)
- Method in class rabbit.cache.
NCache
Reserve space for a CacheEntry with key o.
newFilter(Connection, HttpHeader, HttpHeader)
- Method in class rabbit.filter.
AdFilter
newFilter(Connection, HttpHeader, HttpHeader)
- Method in class rabbit.filter.
BackgroundFilter
newFilter(Connection, HttpHeader, HttpHeader)
- Method in class rabbit.filter.
BlinkFilter
newFilter(Connection, HttpHeader, HttpHeader)
- Method in class rabbit.filter.
BodyFilter
newFilter(Connection, HttpHeader, HttpHeader)
- Method in interface rabbit.filter.
HtmlFilterFactory
Get a new HtmlFilter for the given request, response pair.
newFilter(Connection, HttpHeader, HttpHeader)
- Method in class rabbit.filter.
LowresImageFilter
nextToken()
- Method in class rabbit.html.
HtmlBlock
Get the next Token.
NoGZipEncoding
- Class in
rabbit.filter
This is a class that removes "Accept-Encoding: gzip"
NoGZipEncoding()
- Constructor for class rabbit.filter.
NoGZipEncoding
NOPROXY
- Static variable in class rabbit.filter.
HttpBaseFilter
O
OBJECT
- Static variable in class rabbit.html.
TagType
P
P
- Static variable in class rabbit.html.
TagType
packed(byte[], int, int)
- Method in interface rabbit.zip.
GZipPackListener
some data has been packed.
parse()
- Method in class rabbit.html.
HtmlParser
Get a HtmlBlock from the pagepart given.
parseBuffer(ByteBuffer)
- Method in class rabbit.proxy.
MultiPartPipe
Parse the buffer, will set the position and the limit.
PartialCacher
- Class in
rabbit.proxy
An updater that writes an updated range to a cache file.
PartialCacher(Logger, String, HttpHeader)
- Constructor for class rabbit.proxy.
PartialCacher
PatternHelper
- Class in
rabbit.util
Helper class for regular expresions.
PatternHelper()
- Constructor for class rabbit.util.
PatternHelper
possiblyFlush()
- Method in interface rabbit.io.
BufferHandle
release a buffer if possible.
possiblyFlush()
- Method in class rabbit.io.
CacheBufferHandle
possiblyFlush()
- Method in class rabbit.io.
SimpleBufferHandle
prepare()
- Method in class rabbit.handler.
BaseHandler
This method is used to prepare the data for the resource being sent.
prepare()
- Method in class rabbit.handler.
GZipHandler
prepareStream()
- Method in class rabbit.handler.
BaseHandler
This method is used to prepare the stream for the data being sent.
ProxyAuth
- Class in
rabbit.filter
This is a filter that requires users to use proxy-authentication.
ProxyAuth()
- Constructor for class rabbit.filter.
ProxyAuth
ProxyConnectionAcceptor
- Class in
rabbit.proxy
An acceptor handler that creates proxy client connection
ProxyConnectionAcceptor(int, HttpProxy)
- Constructor for class rabbit.proxy.
ProxyConnectionAcceptor
ProxyLogger
- Class in
rabbit.proxy
A class to handle proxy logging.
ProxyLogger()
- Constructor for class rabbit.proxy.
ProxyLogger
Create a new ProxyLogger.
proxySSL
- Variable in class rabbit.proxy.
HttpProxy
Are we allowed to proxy ssl?
ProxyStarter
- Class in
rabbit.proxy
A class that starts up proxies.
ProxyStarter()
- Constructor for class rabbit.proxy.
ProxyStarter
putBuffer(ByteBuffer)
- Method in interface rabbit.io.
BufferHandler
return a buffer.
putBuffer(ByteBuffer)
- Method in class rabbit.io.
CachingBufferHandler
R
rabbit.cache
- package rabbit.cache
A persistant storage suitable for http resources.
rabbit.client
- package rabbit.client
Classes that can be used to build http clients.
rabbit.client.sample
- package rabbit.client.sample
A few simple example clients based on the rabbit client classes.
rabbit.dns
- package rabbit.dns
DNS handling classes.
rabbit.filter
- package rabbit.filter
A set of filters for sockets, http and http resources.
rabbit.handler
- package rabbit.handler
The resource handlers used in the web proxy.
rabbit.html
- package rabbit.html
This package holds the classes that deal with HTML code.
rabbit.http
- package rabbit.http
The classes that represent the http entities.
rabbit.httpio
- package rabbit.httpio
General http io classes
rabbit.io
- package rabbit.io
Classes that deal with network and i/o.
rabbit.meta
- package rabbit.meta
The web interface to the web proxy.
rabbit.proxy
- package rabbit.proxy
The web proxy components.
rabbit.test
- package rabbit.test
A small set of programs that can be used to test different parts of rabbit.
rabbit.tunnel
- package rabbit.tunnel
Classes for tunneling data..
rabbit.util
- package rabbit.util
Utility classes used in the rabbit project.
rabbit.webserver
- package rabbit.webserver
A simple web server, build using the rabbit components.
rabbit.zip
- package rabbit.zip
This package holds the classes that handle gzip compression and unpacking..
RandomCacheResourceSource
- Class in
rabbit.proxy
A resource that gets ranges from the cache.
RandomCacheResourceSource(Cache<HttpHeader, HttpHeader>, RequestHandler, TaskRunner, BufferHandler, List<Range>, long)
- Constructor for class rabbit.proxy.
RandomCacheResourceSource
Range
- Class in
rabbit.io
A class to handle a range.
Range(long, long)
- Constructor for class rabbit.io.
Range
read(InputStream)
- Method in interface rabbit.cache.
FileHandler
Read a T from the given stream
read(DataInput)
- Method in class rabbit.http.
GeneralHeader
read(DataInput)
- Method in class rabbit.http.
Header
read(DataInput)
- Method in class rabbit.http.
HttpHeader
read(DataInput)
- Method in interface rabbit.io.
Storable
Fill in this object with data from the given input.
read(InputStream)
- Method in class rabbit.proxy.
HttpHeaderFileHandler
read(long)
- Method in class rabbit.util.
SimpleTrafficLogger
read()
- Method in class rabbit.util.
SimpleTrafficLogger
read(long)
- Method in interface rabbit.util.
TrafficLogger
Log a read
read()
- Method in interface rabbit.util.
TrafficLogger
Get the number of read bytes
readExternal(ObjectInput)
- Method in class rabbit.http.
MultipartHeader
readHeader(String)
- Method in class rabbit.httpio.
HttpHeaderReader
readImage()
- Method in class rabbit.handler.
ImageHandler
Read in the image
readLine(ByteBuffer, LineListener)
- Method in class rabbit.httpio.
LineReader
Try to read a line.
readMore()
- Method in interface rabbit.httpio.
ChunkDataFeeder
The chunk reader needs to read more data, compact buffer before registering.
readMore()
- Method in class rabbit.httpio.
WebConnectionResourceSource
readRequest()
- Method in class rabbit.proxy.
Connection
Read a request.
readRequest()
- Method in class rabbit.webserver.
Connection
Set up a http reader to listen for http request.
redirected(HttpHeader, String, ClientBase)
- Method in interface rabbit.client.
ClientListener
Handle a redirected request
redirected(HttpHeader, String, ClientBase)
- Method in class rabbit.client.
ClientListenerAdapter
Create the redirected url and calls redirectedTo() and requestDone().
redirectedTo(String)
- Method in class rabbit.client.
ClientListenerAdapter
This method does nothing, override to perform actual request.
register()
- Method in class rabbit.httpio.
Acceptor
Register OP_ACCEPT with the selector.
register()
- Method in class rabbit.httpio.
BaseSocketHandler
register()
- Method in interface rabbit.httpio.
ChunkDataFeeder
The chunk reader needs more data.
register()
- Method in class rabbit.httpio.
WebConnectionResourceSource
register(int, int, SelectionKey, SocketHandler, long)
- Method in interface rabbit.io.
HandlerRegistration
Registers a new handler to the given selection key.
register(int, int, SelectionKey, SocketHandler, long)
- Method in class rabbit.io.
MultiHandlerRegistration
register(Logger, SelectableChannel, Selector, int, SocketHandler)
- Static method in class rabbit.io.
SelectorRegistrator
register(Logger, SelectableChannel, Selector, int, SocketHandler, long)
- Static method in class rabbit.io.
SelectorRegistrator
register(int, int, SelectionKey, SocketHandler, long)
- Method in class rabbit.io.
SimpleHandlerRegistration
release()
- Method in class rabbit.httpio.
FileResourceSource
release()
- Method in interface rabbit.httpio.
ResourceSource
Release any held resources.
release()
- Method in class rabbit.httpio.
WebConnectionResourceSource
releaseBuffer()
- Method in class rabbit.httpio.
BaseSocketHandler
releaseConnection(WebConnection)
- Method in class rabbit.io.
ConnectionHandler
Return a WebConnection to the pool so that it may be reused.
releaseWebConnection(WebConnection)
- Method in class rabbit.proxy.
HttpProxy
Release a WebConnection so that it may be reused if possible.
remove(K)
- Method in interface rabbit.cache.
Cache
Remove the Entry with key o from the cache.
remove(K)
- Method in class rabbit.cache.
NCache
Remove the Entry with key k from the cache.
removeAttribute(String)
- Method in class rabbit.html.
Tag
Remove an attribute.
removeCache()
- Method in class rabbit.handler.
BaseHandler
removeCache()
- Method in class rabbit.handler.
ImageHandler
Remove the cachestream and the cache entry.
removeCurrentConnection(Connection)
- Method in class rabbit.proxy.
HttpProxy
Remove a current connection.
removeHeader(String)
- Method in class rabbit.http.
GeneralHeader
removes a headerline from this header
removeToken(int)
- Method in class rabbit.html.
HtmlBlock
Remove a Token at the given position.
removeValue(String)
- Method in class rabbit.http.
GeneralHeader
removes a header with the specified value
request
- Variable in class rabbit.filter.
HtmlFilter
The actual request made.
request
- Variable in class rabbit.handler.
BaseHandler
The actual request made.
request
- Variable in class rabbit.meta.
BaseMetaHandler
requestDone(HttpHeader)
- Method in interface rabbit.client.
ClientListener
A request has been fully handled.
requestDone(HttpHeader)
- Method in class rabbit.client.
ClientListenerAdapter
Handle any cleanup in this method.
requestDone()
- Method in class rabbit.client.
CountingClientBaseStopper
RequestLineTooLongException
- Exception in
rabbit.httpio
A class to handle the case where http header lines are too long.
RequestLineTooLongException()
- Constructor for exception rabbit.httpio.
RequestLineTooLongException
Resolver
- Interface in
rabbit.io
An interface to handle name lookups.
ResolvRunner
- Class in
rabbit.httpio
A dns lookup class that runs in the background.
ResolvRunner(TaskRunner, DNSHandler, URL, InetAddressListener)
- Constructor for class rabbit.httpio.
ResolvRunner
ResourceSource
- Interface in
rabbit.httpio
A resource source.
response(HttpHeader, HttpHeader)
- Method in interface rabbit.client.sample.
HeadResponseListener
Handle a http response.
response(HttpHeader, HttpHeader)
- Method in class rabbit.client.sample.
LogHeadToSystemOut
response
- Variable in class rabbit.filter.
HtmlFilter
The actual response.
response
- Variable in class rabbit.handler.
BaseHandler
The actual response.
RevalidateFilter
- Class in
rabbit.filter
This is a class that makes all requests (matching a few criterias) use revalidation even if there is a usable resource in the cache.
RevalidateFilter()
- Constructor for class rabbit.filter.
RevalidateFilter
ReverseProxy
- Class in
rabbit.filter
This is a filter that set up rabbit for reverse proxying.
ReverseProxy()
- Constructor for class rabbit.filter.
ReverseProxy
rotateLogs()
- Method in class rabbit.proxy.
ProxyLogger
rotateLogs()
- Method in interface rabbit.util.
Logger
Rotate the current logs.
rotateLogs()
- Method in class rabbit.util.
SimpleLogger
run()
- Method in class rabbit.cache.
NCache
Loop in a cleaning loop.
run()
- Method in class rabbit.handler.
BaseHandler.MainBlockListener
run()
- Method in class rabbit.httpio.
Acceptor
Accept a SocketChannel.
run()
- Method in class rabbit.httpio.
BlockSender
run()
- Method in class rabbit.httpio.
HttpHeaderReader
run()
- Method in class rabbit.httpio.
ResolvRunner
Run a dns lookup and then notifies the listener on the selector thread.
run()
- Method in class rabbit.httpio.
SelectorRunner
Run the selector operations.
run()
- Method in class rabbit.httpio.
TransferHandler
run()
- Method in class rabbit.httpio.
WebConnectionResourceSource
run()
- Method in class rabbit.tunnel.
MeteredTunnel
runMainTask(Runnable)
- Method in class rabbit.httpio.
SelectorRunner
Run a task on the selector.
runMainTask(Runnable)
- Method in interface rabbit.httpio.
TaskRunner
Run a task on the main thread.
runMainTask(Runnable)
- Method in class rabbit.proxy.
HttpProxy
running
- Variable in class rabbit.cache.
NCache
runThreadTask(Runnable)
- Method in class rabbit.httpio.
SelectorRunner
Run a task in the thread pool.
runThreadTask(Runnable)
- Method in interface rabbit.httpio.
TaskRunner
Run a task in another thread.
S
SA
- Static variable in class rabbit.html.
TagType
SAPPLET
- Static variable in class rabbit.html.
TagType
save(OutputStream)
- Method in class rabbit.util.
Config
save the config to a OutputStream
save(OutputStream, String)
- Method in class rabbit.util.
Config
save the config to a OutputStream
saveAccess(Logger, Reader)
- Method in class rabbit.filter.
AccessFilter
Saves the accesslist from the given Reader.
saveAccess(Logger, Reader)
- Method in interface rabbit.filter.
IPAccessFilter
Saves the accesslist from the given Reader.
saveUsers(Reader)
- Method in class rabbit.util.
SimpleUserHandler
Saves the users from the given Reader.
SB
- Static variable in class rabbit.html.
TagType
SBLINK
- Static variable in class rabbit.html.
TagType
SBODY
- Static variable in class rabbit.html.
TagType
SCC
- Class in
rabbit.proxy
A class that tries to setup a resource from the cache
SCC(Connection, HttpHeader, RequestHandler)
- Constructor for class rabbit.proxy.
SCC
SCRIPT
- Static variable in class rabbit.html.
HtmlParser
A HTML script
SCRIPT
- Static variable in class rabbit.html.
TagType
SDIV
- Static variable in class rabbit.html.
TagType
selector
- Variable in class rabbit.httpio.
BaseSocketHandler
The selector we are using.
SelectorRegistrator
- Class in
rabbit.io
A class to handle selector registrations.
SelectorRegistrator()
- Constructor for class rabbit.io.
SelectorRegistrator
SelectorRunner
- Class in
rabbit.httpio
A class that handles a selector.
SelectorRunner(ExecutorService, Logger)
- Constructor for class rabbit.httpio.
SelectorRunner
Create a SelectorRunner that uses the given thread pool to run background tasks.
SelectorStatus
- Class in
rabbit.meta
A status page for the proxy.
SelectorStatus()
- Constructor for class rabbit.meta.
SelectorStatus
send()
- Method in class rabbit.handler.
BaseHandler
send(BufferHandle)
- Method in class rabbit.handler.
GZipHandler
send()
- Method in class rabbit.handler.
MultiPartHandler
sendChunkEnding(SocketChannel, Selector, Logger, TrafficLogger, BlockSentListener)
- Method in class rabbit.httpio.
ChunkEnder
sendHeader()
- Method in class rabbit.handler.
BaseHandler
sendRequest(HttpHeader, ClientListener)
- Method in class rabbit.client.
ClientBase
Send a request and let the client be notified on response.
sendRequest(HttpHeader, ClientListener)
- Method in class rabbit.client.
CountingClientBaseStopper
setAttribute(String, String)
- Method in class rabbit.html.
Tag
Set the attribute given.
setCacheDir(String)
- Method in class rabbit.cache.
NCache
Sets the cachedir.
setCacheTime(long)
- Method in interface rabbit.cache.
Cache
Set the standard expiry-time for CacheEntries
setCacheTime(long)
- Method in interface rabbit.cache.
CacheEntry
Set the date this object was cached.
setCacheTime(long)
- Method in class rabbit.cache.
NCache
Set the standard expiry-time for CacheEntries
setChanged(boolean)
- Method in class rabbit.html.
Token
Set the change value of this Token.
setChunking(boolean)
- Method in class rabbit.proxy.
Connection
Set the chunking option.
setCleanLoopTime(int)
- Method in class rabbit.cache.
NCache
Set how long time the cleaner sleeps between cleanups.
setConfig(String)
- Method in class rabbit.proxy.
HttpProxy
Set the config file to use for this proxy.
setContent(String)
- Method in class rabbit.http.
HttpHeader
Set the Content for the request/response Mostly not used for responses.
setContentLength(String)
- Method in class rabbit.proxy.
Connection
Set the content length of the response.
setDataHook(V)
- Method in interface rabbit.cache.
CacheEntry
Sets the data hook for this cache object.
setExistingValue(String, String)
- Method in class rabbit.http.
GeneralHeader
Set a specified header
setExpires(long)
- Method in interface rabbit.cache.
CacheEntry
Sets the expirydate of our data
setExtraInfo(String)
- Method in class rabbit.proxy.
Connection
Set the extra info.
setFile(String, Logger)
- Method in class rabbit.util.
SimpleUserHandler
Set the file to use for users, will read the files.
setHeader(String, String)
- Method in class rabbit.http.
GeneralHeader
Set or replaces a value for given type.
SetHeaderFilter
- Class in
rabbit.filter
This is a class that sets headers in the request and/or response.
SetHeaderFilter()
- Constructor for class rabbit.filter.
SetHeaderFilter
setHTTPVersion(String)
- Method in class rabbit.http.
HttpHeader
Set the HTTP Version to use for request.
setInput(byte[], int, int)
- Method in class rabbit.zip.
GZipPacker
Add more compressed data to the unpacker.
setInput(byte[], int, int)
- Method in class rabbit.zip.
GZipUnpacker
Add more compressed data to the unpacker.
setKeepalive(boolean)
- Method in class rabbit.io.
WebConnection
Set the keepalive value for this WebConnection, Can only be turned off.
setKeepalive(boolean)
- Method in class rabbit.proxy.
Connection
Set keepalive to a new value.
setKeepaliveTime(long)
- Method in class rabbit.io.
ConnectionHandler
Set the keep alive time for this handler.
setLogLevel(Level)
- Method in class rabbit.util.
SimpleLogger
setMaxSize(long)
- Method in interface rabbit.cache.
Cache
Set the maximum size for this cache.
setMaxSize(long)
- Method in class rabbit.cache.
NCache
Set the maximum size for this cache.
setMayCache(boolean)
- Method in class rabbit.proxy.
Connection
Set the state of this request.
setMayFilter(boolean)
- Method in class rabbit.proxy.
Connection
Get the state of this request.
setMayPipeline(boolean)
- Method in class rabbit.io.
WebConnection
Mark this WebConnection for pipelining.
setMayUseCache(boolean)
- Method in class rabbit.proxy.
Connection
Set the state of this request.
setMehtod(String)
- Method in class rabbit.http.
HttpHeader
Sets the request method of this header
setMeta(boolean)
- Method in class rabbit.proxy.
Connection
Set the state of this request.
setMustRevalidate(boolean)
- Method in class rabbit.proxy.
Connection
setOffset(long)
- Static method in class rabbit.http.
HttpDateParser
Set the time offset relative GMT.
setPartialContent(long, long)
- Method in class rabbit.handler.
BaseHandler
Mark the current response as a partial response.
setPassword(String)
- Method in class rabbit.proxy.
Connection
setProperties(String, SProperties)
- Method in class rabbit.util.
Config
set the properties for a given section
setProperty(String, String, String)
- Method in class rabbit.util.
Config
set a property for given section.
setReasonPhrase(String)
- Method in class rabbit.http.
HttpHeader
Set the reason phrase for this reqponse.
setReleased()
- Method in class rabbit.io.
WebConnection
Mark this WebConnection as released at current time.
setRequestLine(String)
- Method in class rabbit.http.
HttpHeader
Set the requestline of this header
setRequestURI(String)
- Method in class rabbit.http.
HttpHeader
Sets the request URI of this header
setResponseHTTPVersion(String)
- Method in class rabbit.http.
HttpHeader
Set the HTTP version for this response.
setRest(int)
- Method in class rabbit.html.
HtmlBlock
Set the rest of the page to start at given position.
setSize(long)
- Method in interface rabbit.cache.
CacheEntry
Sets the size of our data file
setStartIndex(int)
- Method in class rabbit.html.
Token
Set the start index of this Token.
setState(GZipPackState)
- Method in class rabbit.zip.
GZipPacker
Change the internal gzip state to the given state.
setState(GZipUnpackState)
- Method in class rabbit.zip.
GZipUnpacker
Change the internal gzip state to the given state.
setStatusCode(String)
- Method in class rabbit.http.
HttpHeader
Set the Status code for this response.
setStatusCode(String)
- Method in class rabbit.proxy.
Connection
setStatusLine(String)
- Method in class rabbit.http.
HttpHeader
Set the statusline of this header.
setStrictHttp(boolean)
- Method in class rabbit.proxy.
HttpProxy
setTag(Tag)
- Method in class rabbit.html.
Token
Set the tag of this token, also set the type to TAG.
setText(byte[])
- Method in class rabbit.html.
HtmlParser
Set the data block to parse.
setText(byte[], int, int)
- Method in class rabbit.html.
HtmlParser
Set the data block to parse.
setText(String)
- Method in class rabbit.html.
Token
Set the text of this Token, also sets the type to TEXT.
setToken(Token)
- Method in class rabbit.html.
Tag
Set the parent token of this tag.
setType(String)
- Method in class rabbit.html.
Tag
Set the Type of this Tag.
setup(Logger, SProperties)
- Method in class rabbit.cache.
NCache
Configure the cache system from the given config.
setup(SProperties, Logger)
- Method in interface rabbit.dns.
DNSHandler
Do any neccessary setup.
setup(SProperties, Logger)
- Method in class rabbit.dns.
DNSJavaHandler
Do any neccessary setup.
setup(SProperties, Logger)
- Method in class rabbit.dns.
DNSSunHandler
Do any neccessary setup.
setup(Logger, SProperties)
- Method in class rabbit.filter.
AccessFilter
Setup this class.
setup(Logger, SProperties)
- Method in class rabbit.filter.
BlockFilter
Setup this class with the given properties.
setup(Logger, SProperties)
- Method in class rabbit.filter.
DontCacheFilter
Setup this class with the given properties.
setup(Logger, SProperties)
- Method in class rabbit.filter.
DontFilterFilter
Setup this class with the given properties.
setup(Logger, SProperties)
- Method in class rabbit.filter.
HttpBaseFilter
setup(Logger, SProperties)
- Method in interface rabbit.filter.
HttpFilter
Setup this filter.
setup(Logger, SProperties)
- Method in class rabbit.filter.
HttpSnoop
Setup this class with the given properties.
setup(Logger, SProperties)
- Method in interface rabbit.filter.
IPAccessFilter
Setup this filter.
setup(Logger, SProperties)
- Method in class rabbit.filter.
NoGZipEncoding
Setup this class with the given properties.
setup(Logger, SProperties)
- Method in class rabbit.filter.
ProxyAuth
Setup this class with the given properties.
setup(Logger, SProperties)
- Method in class rabbit.filter.
RevalidateFilter
setup(Logger, SProperties)
- Method in class rabbit.filter.
ReverseProxy
Setup this class with the given properties.
setup(Logger, SProperties)
- Method in class rabbit.filter.
SetHeaderFilter
setup(Logger, SProperties)
- Method in class rabbit.filter.
SQLProxyAuth
Setup this class with the given properties.
setup(Logger, SProperties)
- Method in class rabbit.handler.
BaseHandler
setup(Logger, SProperties)
- Method in class rabbit.handler.
FilterHandler
Setup this class.
setup(Logger, SProperties)
- Method in class rabbit.handler.
GZipHandler
setup(Logger, SProperties)
- Method in interface rabbit.handler.
HandlerFactory
setup the handler factory.
setup(Logger, SProperties)
- Method in class rabbit.handler.
ImageHandler
setup(Logger, SProperties)
- Method in class rabbit.io.
ConnectionHandler
setup()
- Static method in class rabbit.proxy.
HtmlPage
setup this class for usage
setup(SProperties)
- Static method in class rabbit.proxy.
HtmlPage
setup this class for usage
setup(SProperties)
- Method in class rabbit.proxy.
ProxyLogger
setupHandler()
- Method in class rabbit.handler.
FilterHandler
setupHandler()
- Method in class rabbit.handler.
GZipHandler
setUserName(String)
- Method in class rabbit.proxy.
Connection
setUsers(Map<String, String>)
- Method in class rabbit.util.
SimpleUserHandler
Return the hash of users.
setValue(String)
- Method in class rabbit.http.
Header
Set the value of this header to the new value given.
SFONT
- Static variable in class rabbit.html.
TagType
SFORM
- Static variable in class rabbit.html.
TagType
SFRAMESET
- Static variable in class rabbit.html.
TagType
SHEAD
- Static variable in class rabbit.html.
TagType
showsLevel(Level)
- Method in class rabbit.proxy.
ProxyLogger
showsLevel(Level)
- Method in interface rabbit.util.
Logger
Check if the logger currently handles logging on the given level.
showsLevel(Level)
- Method in class rabbit.util.
SimpleLogger
SHTML
- Static variable in class rabbit.html.
TagType
shutdown()
- Method in class rabbit.client.
ClientBase
Shutdown this client handler.
shutdown()
- Method in class rabbit.httpio.
SelectorRunner
Stop and close the selector and shutdown the thread pool.
shutdown()
- Method in interface rabbit.httpio.
TaskRunner
Shut down this task runner.
SIMG
- Static variable in class rabbit.html.
TagType
SimpleBufferHandle
- Class in
rabbit.io
A handle to a ByteBuffer.
SimpleBufferHandle(ByteBuffer)
- Constructor for class rabbit.io.
SimpleBufferHandle
SimpleHandlerRegistration
- Class in
rabbit.io
A class to hold information about when an operation was attached to the selector.
SimpleHandlerRegistration(SocketHandler, long)
- Constructor for class rabbit.io.
SimpleHandlerRegistration
SimpleLogger
- Class in
rabbit.util
A logger that logs to stdout/stderr.
SimpleLogger()
- Constructor for class rabbit.util.
SimpleLogger
SimpleResolver
- Class in
rabbit.httpio
A simple resolver that uses the dnsjava resolver.
SimpleResolver(Logger, TaskRunner)
- Constructor for class rabbit.httpio.
SimpleResolver
SimpleTagFilter
- Class in
rabbit.filter
A class that inserts some text and links at the top of a page.
SimpleTagFilter()
- Constructor for class rabbit.filter.
SimpleTagFilter
SimpleTagFilter(Connection, HttpHeader, HttpHeader)
- Constructor for class rabbit.filter.
SimpleTagFilter
Create a new SimpleTagFilter for the given request, response pair.
SimpleTrafficLogger
- Class in
rabbit.util
A class to track of data flows.
SimpleTrafficLogger()
- Constructor for class rabbit.util.
SimpleTrafficLogger
SimpleUserHandler
- Class in
rabbit.util
This is a class that handles users authentication using a simple text file.
SimpleUserHandler()
- Constructor for class rabbit.util.
SimpleUserHandler
SimpleWebServer
- Class in
rabbit.webserver
A simple web server that serves static resources.
SimpleWebServer(int, String)
- Constructor for class rabbit.webserver.
SimpleWebServer
Start a web server listening on the given port and serving files from the given path.
SINGELQUOTE
- Static variable in class rabbit.html.
HtmlParser
This is the character '''
size
- Variable in class rabbit.handler.
BaseHandler
The length of the data beeing handled or -1 if unknown.
size()
- Method in class rabbit.http.
GeneralHeader
Get the number of headers set in this header.
size()
- Method in class rabbit.io.
Range
sk
- Variable in class rabbit.httpio.
BaseSocketHandler
The selection key we are using.
SLAYER
- Static variable in class rabbit.html.
TagType
SLI
- Static variable in class rabbit.html.
TagType
SMETA
- Static variable in class rabbit.html.
TagType
SOBJECT
- Static variable in class rabbit.html.
TagType
SocketAccessController
- Class in
rabbit.proxy
An access controller based on socket channels.
SocketAccessController(String, Config, Logger)
- Constructor for class rabbit.proxy.
SocketAccessController
SocketHandler
- Interface in
rabbit.io
A handler for a socket channel.
SP
- Static variable in class rabbit.html.
TagType
SPAN
- Static variable in class rabbit.html.
TagType
SProperties
- Class in
rabbit.util
A simple string properties class.
SProperties()
- Constructor for class rabbit.util.
SProperties
SQLProxyAuth
- Class in
rabbit.filter
This is a filter that requires users to use proxy-authentication, using users in a sql table.
SQLProxyAuth()
- Constructor for class rabbit.filter.
SQLProxyAuth
SQSTRING
- Static variable in class rabbit.html.
HtmlParser
This is a Single Quoted String a 'string'
SSCRIPT
- Static variable in class rabbit.html.
TagType
sslports
- Variable in class rabbit.proxy.
HttpProxy
The List of acceptable ssl-ports.
SSPAN
- Static variable in class rabbit.html.
TagType
SSTYLE
- Static variable in class rabbit.html.
TagType
STABLE
- Static variable in class rabbit.html.
TagType
StackTrace
- Class in
rabbit.meta
Clears the cache completely
StackTrace()
- Constructor for class rabbit.meta.
StackTrace
START
- Static variable in class rabbit.html.
HtmlParser
This indicates the start of a block.
start()
- Method in class rabbit.httpio.
SelectorRunner
Start running the selector in a new thread.
start()
- Method in class rabbit.proxy.
HttpProxy
Run the proxy in a separate thread.
start()
- Method in class rabbit.webserver.
SimpleWebServer
Start serving requests.
startCleaner()
- Method in class rabbit.cache.
NCache
Status
- Class in
rabbit.meta
A status page for the proxy.
Status()
- Constructor for class rabbit.meta.
Status
STD
- Static variable in class rabbit.html.
TagType
STITLE
- Static variable in class rabbit.html.
TagType
stop()
- Method in interface rabbit.cache.
Cache
Stop this cache.
stop()
- Method in class rabbit.cache.
NCache
stop()
- Method in class rabbit.proxy.
HttpProxy
Run the proxy in a separate thread.
Storable
- Interface in
rabbit.io
An object that can be read to a DataOutput and read from a DataInput.
STR
- Static variable in class rabbit.html.
TagType
STRING
- Static variable in class rabbit.html.
HtmlParser
This indicate a String value was found.
StringCache
- Class in
rabbit.util
A cache for strings.
StringCache()
- Constructor for class rabbit.util.
StringCache
STT
- Static variable in class rabbit.html.
TagType
STYLE
- Static variable in class rabbit.html.
TagType
supportsTransfer()
- Method in class rabbit.httpio.
FileResourceSource
FileChannels can be used, will always return true.
supportsTransfer()
- Method in interface rabbit.httpio.
ResourceSource
Return true if FileChannel.transferTo can be used.
supportsTransfer()
- Method in class rabbit.httpio.
WebConnectionResourceSource
FileChannels can not be used, will always return false.
supportsTransfer()
- Method in class rabbit.proxy.
RandomCacheResourceSource
FileChannels can only be partially used so go with blocks.
SWC
- Class in
rabbit.proxy
A class that tries to establish a connection to the real server or the next proxy in the chain.
SWC(Connection, HttpHeader, TrafficLoggerHandler, ClientResourceHandler, RequestHandler)
- Constructor for class rabbit.proxy.
SWC
T
TABLE
- Static variable in class rabbit.html.
TagType
Tag
- Class in
rabbit.html
This class describes a HTML tag.
Tag()
- Constructor for class rabbit.html.
Tag
Tag(String)
- Constructor for class rabbit.html.
Tag
Create a new Tag with given type
Tag.Pair
- Class in
rabbit.html
This class is a key value pair.
Tag.Pair(String, String)
- Constructor for class rabbit.html.
Tag.Pair
Create a new pair with given key and value.
TagType
- Class in
rabbit.html
This is a class that holds common tagtypes.
TaskRunner
- Interface in
rabbit.httpio
A handler that can run task in off-main threads.
TD
- Static variable in class rabbit.html.
TagType
TestHtmlParser
- Class in
rabbit.test
This class tests the html parser
TestHtmlParser(String)
- Constructor for class rabbit.test.
TestHtmlParser
timeout()
- Method in class rabbit.client.
FileSaver
timeout()
- Method in class rabbit.handler.
BaseHandler
timeout()
- Method in class rabbit.httpio.
Acceptor
Handle timeout, since an acceptor should not get timeouts an exception will be thrown.
timeout()
- Method in interface rabbit.httpio.
AsyncListener
The operation timed out
timeout()
- Method in class rabbit.httpio.
BlockSender
timeout()
- Method in class rabbit.httpio.
HttpHeaderReader
timeout()
- Method in class rabbit.httpio.
HttpHeaderSender
timeout()
- Method in class rabbit.httpio.
HttpResponseReader
timeout()
- Method in class rabbit.httpio.
WebConnectionResourceSource
timeout()
- Method in interface rabbit.io.
HandlerRegistration
This handler has timed out.
timeout()
- Method in class rabbit.io.
MultiHandlerRegistration
timeout()
- Method in class rabbit.io.
SimpleHandlerRegistration
timeout()
- Method in interface rabbit.io.
SocketHandler
Signal that the select operation timed out.
timeout()
- Method in interface rabbit.io.
WebConnectionListener
Creating the connection timed out.
timeout()
- Method in class rabbit.meta.
BaseMetaHandler
timeout()
- Method in class rabbit.meta.
FileSender
timeout()
- Method in class rabbit.proxy.
SWC
TITLE
- Static variable in class rabbit.html.
TagType
tlClient
- Variable in class rabbit.meta.
BaseMetaHandler
tlh
- Variable in class rabbit.handler.
BaseHandler
The traffic logger handler.
tlProxy
- Variable in class rabbit.meta.
BaseMetaHandler
Token
- Class in
rabbit.html
This class is used to describe a small part of a html page.
Token(String)
- Constructor for class rabbit.html.
Token
Create a new Token of type TEXT with given text.
Token(Tag)
- Constructor for class rabbit.html.
Token
Create a new Token of type Tag with given Tag.
Token(Tag, boolean)
- Constructor for class rabbit.html.
Token
Create a new Token of type Tag with given Tag.
Token(String, TokenType, int)
- Constructor for class rabbit.html.
Token
Create a new Token with given arguments.
Token(char[], TokenType, int, int)
- Constructor for class rabbit.html.
Token
Create a new Token with given arguments.
Token(Tag, int)
- Constructor for class rabbit.html.
Token
Create a new Token with given arguments and of type TAG.
TokenType
- Enum in
rabbit.html
The different types of tokens.
toString()
- Method in class rabbit.html.
HtmlBlock
Get a String representation of this block.
toString()
- Method in class rabbit.html.
Tag.Pair
Get a String representation of this Pair.
toString()
- Method in class rabbit.html.
Tag
Get this Tag as a String.
toString()
- Method in class rabbit.html.
TagType
toString()
- Method in class rabbit.html.
Token
Get the String representation of this object.
toString()
- Method in class rabbit.http.
GeneralHeader
Get the text value of this header
toString()
- Method in class rabbit.http.
MultipartHeader
toString()
- Method in class rabbit.io.
Address
Get a String representation of this Address
toString()
- Method in class rabbit.io.
CacheBufferHandle
toString()
- Method in class rabbit.io.
MultiHandlerRegistration
toString()
- Method in class rabbit.io.
SimpleHandlerRegistration
toString()
- Method in class rabbit.io.
WebConnection
toString()
- Method in class rabbit.proxy.
ConnectionId
toString()
- Method in class rabbit.util.
Config
Get a string describing this Config
toString()
- Method in class rabbit.util.
IPAccess
get the string representation of this access.
totalRead
- Variable in class rabbit.handler.
BaseHandler
The total amount of data that we read.
TR
- Static variable in class rabbit.html.
TagType
TrafficLogger
- Interface in
rabbit.util
A traffic logger interface.
TrafficLoggerHandler
- Class in
rabbit.proxy
A class to track of multiple network flows.
TrafficLoggerHandler()
- Constructor for class rabbit.proxy.
TrafficLoggerHandler
transfer()
- Method in class rabbit.httpio.
TransferHandler
transfer(WebConnection, ClientResourceTransferredListener)
- Method in interface rabbit.proxy.
ClientResourceHandler
Transfer the resouce data
Transferable
- Interface in
rabbit.httpio
The methods needed for fast transferTo.
transferFrom(long)
- Method in class rabbit.util.
SimpleTrafficLogger
transferFrom()
- Method in class rabbit.util.
SimpleTrafficLogger
transferFrom(long)
- Method in interface rabbit.util.
TrafficLogger
Log a file transfer.
transferFrom()
- Method in interface rabbit.util.
TrafficLogger
Get the number of bytes transferred from this resource.
TransferHandler
- Class in
rabbit.httpio
A handler that transfers data from a Transferable to a socket channel.
TransferHandler(TaskRunner, Transferable, Selector, SocketChannel, TrafficLogger, TrafficLogger, TransferListener, Logger)
- Constructor for class rabbit.httpio.
TransferHandler
TransferListener
- Interface in
rabbit.httpio
A listener for transfers.
transferOk()
- Method in interface rabbit.httpio.
TransferListener
The transfer completed successfully.
transferTo(long, long, WritableByteChannel)
- Method in class rabbit.httpio.
FileResourceSource
transferTo(long, long, WritableByteChannel)
- Method in interface rabbit.httpio.
Transferable
Transfers bytes from this channel's file to the given writable byte channel.
transferTo(long, long, WritableByteChannel)
- Method in class rabbit.httpio.
WebConnectionResourceSource
transferTo(long)
- Method in class rabbit.util.
SimpleTrafficLogger
transferTo()
- Method in class rabbit.util.
SimpleTrafficLogger
transferTo(long)
- Method in interface rabbit.util.
TrafficLogger
Lot a file transfer.
transferTo()
- Method in interface rabbit.util.
TrafficLogger
Get the number of bytes transferred to this resourse.
tryconvert()
- Method in class rabbit.handler.
ImageHandler
Try to convert the image.
TT
- Static variable in class rabbit.html.
TagType
U
UNKNOWN
- Static variable in class rabbit.html.
HtmlParser
Unknown token.
unknownHost(Exception)
- Method in interface rabbit.io.
InetAddressListener
Lookup failed.
unpacked(byte[], int, int)
- Method in interface rabbit.zip.
GZipUnpackListener
Some data has been unpacked.
unregister()
- Method in class rabbit.httpio.
BaseSocketHandler
unregister(SelectionKey, SocketHandler, String)
- Method in interface rabbit.io.
HandlerRegistration
unregister the given handler.
unregister(SelectionKey, SocketHandler, String)
- Method in class rabbit.io.
MultiHandlerRegistration
unregister(Selector, SelectionKey, SocketHandler, String)
- Static method in class rabbit.io.
SelectorRegistrator
unregister(SelectionKey, SocketHandler, String)
- Method in class rabbit.io.
SimpleHandlerRegistration
updateTrafficLog(TrafficLoggerHandler)
- Method in class rabbit.proxy.
HttpProxy
Update the currently transferred traffic statistics.
URLdecode(String)
- Static method in class rabbit.util.
Coder
URLDecode a string.
URLEncode(String)
- Static method in class rabbit.util.
Coder
URLEncode a string.
useSeparateThread()
- Method in class rabbit.httpio.
Acceptor
Acceptor runs in the selector thread.
useSeparateThread()
- Method in class rabbit.httpio.
BaseSocketHandler
useSeparateThread()
- Method in class rabbit.httpio.
WebConnectionResourceSource
useSeparateThread()
- Method in interface rabbit.io.
SocketHandler
Check if this handler needs to run in a separate thread.
uudecode(String)
- Static method in class rabbit.util.
Coder
uudecode(base64) the given string.
uuencode(String)
- Static method in class rabbit.util.
Coder
uuencode(base64) the given String.
V
value
- Variable in class rabbit.html.
Tag.Pair
The value of this pair.
valueOf(String)
- Static method in enum rabbit.html.
TokenType
Returns the enum constant of this type with the specified name.
valueOf(String)
- Static method in enum rabbit.meta.
BaseMetaHandler.PageCompletion
Returns the enum constant of this type with the specified name.
valueOf(String)
- Static method in enum rabbit.util.
Level
Returns the enum constant of this type with the specified name.
values()
- Static method in enum rabbit.html.
TokenType
Returns an array containing the constants of this enum type, in the order they are declared.
values()
- Static method in enum rabbit.meta.
BaseMetaHandler.PageCompletion
Returns an array containing the constants of this enum type, in the order they are declared.
values()
- Static method in enum rabbit.util.
Level
Returns an array containing the constants of this enum type, in the order they are declared.
VERSION
- Static variable in class rabbit.proxy.
HttpProxy
Current version
W
waitForData()
- Method in class rabbit.handler.
GZipHandler
WebConnection
- Class in
rabbit.io
A class to handle a connection to the Internet.
WebConnection(Address, Counter, Logger)
- Constructor for class rabbit.io.
WebConnection
Create a new WebConnection to the given InetAddress and port.
WebConnectionListener
- Interface in
rabbit.io
A listener for waiting on web connections.
WebConnectionResourceSource
- Class in
rabbit.httpio
A resource source that gets the data from a WebConnection
WebConnectionResourceSource(ConnectionHandler, Selector, WebConnection, BufferHandle, Logger, TrafficLogger, boolean, long, boolean)
- Constructor for class rabbit.httpio.
WebConnectionResourceSource
WGet
- Class in
rabbit.client.sample
A class to download a set of resources.
WGet()
- Constructor for class rabbit.client.sample.
WGet
Create a new WGet that can be used to download resources.
willCompress(HttpHeader)
- Method in class rabbit.handler.
FilterHandler
willCompress(HttpHeader)
- Method in class rabbit.handler.
GZipHandler
write(OutputStream, T)
- Method in interface rabbit.cache.
FileHandler
Write a T to the given stream
write(DataOutput)
- Method in class rabbit.http.
GeneralHeader
write(DataOutput)
- Method in class rabbit.http.
Header
write(DataOutput)
- Method in class rabbit.http.
HttpHeader
write(DataOutput)
- Method in interface rabbit.io.
Storable
Write this object to the given output.
write(OutputStream, HttpHeader)
- Method in class rabbit.proxy.
HttpHeaderFileHandler
write(long)
- Method in class rabbit.util.
SimpleTrafficLogger
write()
- Method in class rabbit.util.
SimpleTrafficLogger
write(long)
- Method in interface rabbit.util.
TrafficLogger
Log a write
write()
- Method in interface rabbit.util.
TrafficLogger
Get the number of written bytes.
writeCache(ByteBuffer)
- Method in class rabbit.handler.
BaseHandler
writeDataToGZipper(byte[])
- Method in class rabbit.handler.
FilterHandler
writeDataToGZipper(byte[])
- Method in class rabbit.handler.
GZipHandler
Write the current block of data to the gzipper.
writeExternal(ObjectOutput)
- Method in class rabbit.http.
MultipartHeader
A
B
C
D
E
F
G
H
I
K
L
M
N
O
P
R
S
T
U
V
W
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes