rabbit.handler
Class ImageHandler
java.lang.Object
   rabbit.handler.BaseHandler
rabbit.handler.BaseHandler
       rabbit.handler.ImageHandler
rabbit.handler.ImageHandler
- All Implemented Interfaces: 
- Handler
- public class ImageHandler- extends BaseHandler
This class filters images to low quality jpegs.
 
| Method Summary | 
|  void | addCacheStream()Set up the cache stream if available.
 | 
| static void | setup(java.util.Properties prop)Setup this class.
 | 
 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ImageHandler
public ImageHandler(Connection con,
                    HTTPHeader request,
                    HTTPHeader response,
                    java.io.InputStream contentstream,
                    MultiOutputStream clientstream,
                    boolean maycache,
                    boolean mayfilter,
                    long size)
- Create a new ImageHansler for the given request.
 
- Parameters:
- con- the Connection handling the request.
- request- the actual request made.
- response- the actual response.
- contentstream- the stream to read data from.
- clientstream- the stream to write data to.
- maycache- May we cache this request?
- mayfilter- May we filter this request?
- size- the size of the data beeing handled.
addCacheStream
public void addCacheStream()
                    throws java.io.IOException
- Set up the cache stream if available.
 
- 
- Throws:
- java.io.IOException- if a cachestream couldnt be set up.
 
setup
public static void setup(java.util.Properties prop)
- Setup this class.
 
- 
- Parameters:
- prop- the properties of this class.