|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrabbit.filter.HttpBaseFilter
public class HttpBaseFilter
This is a class that filter http headers to make them nice. This filter sets up username and password if supplied and also sets up keepalive.
| Field Summary | |
|---|---|
static String |
NOPROXY
|
| Constructor Summary | |
|---|---|
HttpBaseFilter()
|
|
| 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. |
boolean |
isPublic(URL url)
Check if a given url is a public URL of the Proxy. |
void |
setup(SProperties properties)
Setup this filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NOPROXY
| Constructor Detail |
|---|
public HttpBaseFilter()
| Method Detail |
|---|
public HttpHeader doHttpInFiltering(SocketChannel socket,
HttpHeader header,
Connection con)
HttpFilter
doHttpInFiltering in interface HttpFiltersocket - the Socket that made the request.header - the actual request made.con - the Connection handling the request.
public HttpHeader doHttpOutFiltering(SocketChannel socket,
HttpHeader header,
Connection con)
HttpFilter
doHttpOutFiltering in interface HttpFiltersocket - the Socket that made the request.header - the actual request made.con - the Connection handling the request.
public void setup(SProperties properties)
HttpFilter
setup in interface HttpFilterproperties - the SProperties to get the settings from.public boolean isPublic(URL url)
url - the URL to check.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||