Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## rabbit.handler
Interface HandlerFactory

All Known Implementing Classes:
  BaseHandler, FilterHandler, GZIPHandler, ImageHandler, MultiPartHandler

    public interface HandlerFactory

The methods needed to create a new Handler.

Method Summary
`Handler` | `getNewInstance(Connection connection, HTTPHeader header, HTTPHeader webheader, HTTPInputStream contentStream, MultiOutputStream out, boolean maycache, boolean mayfilter, long size)` Get a new Handler for the given request made.
`void` | `setup(Logger logger, SProperties properties)` setup the handler factory.

Method Detail

### getNewInstance

    Handler getNewInstance(Connection connection,
                           HTTPHeader header,
                           HTTPHeader webheader,
                           HTTPInputStream contentStream,
                           MultiOutputStream out,
                           boolean maycache,
                           boolean mayfilter,
                           long size)

  Get a new Handler for the given request made.

  Parameters:
    `connection` - the Connection handling the request.
    `header` - the request.
    `webheader` - the response.
    `contentStream` - the data to read.
    `out` - the client (and possibly the cache).
    `maycache` - if the handler may cache the response.
    `mayfilter` - if the handler may filter the response.
    `size` - the Size of the data beeing handled (-1 = unknown length).

### setup

    void setup(Logger logger,
               SProperties properties)

  setup the handler factory.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD