|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rabbit.filter.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 java.lang.String |
NOPROXY
|
Method Summary | |
static HTTPHeader |
doHTTPInFiltering(java.net.Socket socket,
HTTPHeader header,
Connection con)
test if a socket/header combination is valid or return a new HTTPHeader. |
static HTTPHeader |
doHTTPOutFiltering(java.net.Socket socket,
HTTPHeader header,
Connection con)
test if a socket/header combination is valid or return a new HTTPHeader. |
static java.util.Hashtable |
getUsers()
Return the hash of users. |
static boolean |
isPublic(java.net.URL url)
Check if a given url is a public URL of the Proxy. |
static boolean |
isValidUser(java.lang.String username,
java.lang.String password)
Check if a user/password combination is valid. |
static java.util.Hashtable |
loadUsers(java.io.Reader r)
Load the users from the given Reader. |
static java.util.Hashtable |
loadUsers(java.io.Reader r,
boolean use)
Load the users from the given Reader. |
static void |
saveUsers(java.io.Reader r)
Saves the users from the given Reader. |
static void |
setup(java.util.Properties properties)
Setup this class with the given properties. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String NOPROXY
Method Detail |
public static HTTPHeader doHTTPInFiltering(java.net.Socket socket, HTTPHeader header, Connection con)
socket
- the Socket that made the request.header
- the actual request made.con
- the Connection handling the request.
public static HTTPHeader doHTTPOutFiltering(java.net.Socket socket, HTTPHeader header, Connection con)
socket
- the Socket that made the request.header
- the actual request made.con
- the Connection handling the request.
public static void setup(java.util.Properties properties)
properties
- the new configuration of this class.public static java.util.Hashtable loadUsers(java.io.Reader r) throws java.io.IOException
r
- the Reader with the users.
java.io.IOException
public static java.util.Hashtable loadUsers(java.io.Reader r, boolean use) throws java.io.IOException
r
- the Reader with the users.
java.io.IOException
public static void saveUsers(java.io.Reader r) throws java.io.IOException
r
- the Reader with the users.
java.io.IOException
public static java.util.Hashtable getUsers()
public static boolean isValidUser(java.lang.String username, java.lang.String password)
username
- the username.password
- the decrypted password.
public static boolean isPublic(java.net.URL url)
url
- the URL to check.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |