|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rabbit.filter.DontCacheFilter
public class DontCacheFilter
This is a class that makes sure the proxy doesnt caches certain pages. It features two types of filtering: either on the URL or the mime type.
URL based matching.
It uses the config option dontCacheURLmatching with a default
value of the empty string. This value is a regex.
This method should be used on requests, that is append this class to
httpinfilters in rabbit.conf to use URL matching.
Mime type based matching.
It uses the config option dontCacheMimematching with a
default value of the empty string. This value is a regexp.
This method should be used on responses, that is append this class to
httpoutfilters in rabbit.conf to use mime type matching.
Constructor Summary | |
---|---|
DontCacheFilter()
Create a new DontCacheFilter. |
Method Summary | |
---|---|
HttpHeader |
doHttpInFiltering(SocketChannel socket,
HttpHeader header,
Connection con)
Test if a socket/header combination is valid or return a new HttpHeader. |
HttpHeader |
doHttpOutFiltering(SocketChannel socket,
HttpHeader header,
Connection con)
Test if a socket/header combination is valid or return a new HttpHeader. |
void |
setup(SProperties properties)
Setup this class with the given properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DontCacheFilter()
Method Detail |
---|
public HttpHeader doHttpInFiltering(SocketChannel socket, HttpHeader header, Connection con)
doHttpInFiltering
in interface HttpFilter
socket
- the SocketChannel that made the request.header
- the actual request made.con
- the Connection handling the request.
public HttpHeader doHttpOutFiltering(SocketChannel socket, HttpHeader header, Connection con)
doHttpOutFiltering
in interface HttpFilter
socket
- the SocketChannel that made the request.header
- the actual request made.con
- the Connection handling the request.
public void setup(SProperties properties)
setup
in interface HttpFilter
properties
- the new configuration of this class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |