Table of Contents
The basic usage is identical to all JBoss Netty codecs. You have different Handlers available
for message encoding, decoding. In addition to that we also provide handlers that allow the user
to abstract from protocol details like the chunked transfer of all message bodies. We recommend to
read up on JBoss Netty
in order to successfully use this codec.
You have a set of Handlers available that will encode and decode ICAP messages. These are the basic handlers
which are required in order to use the ICAP codec. Since ICAP encapsulated HTTP bodies are always chunked you
can use the aggregation and separation handlers to abstract from this protocol overhead.
alongside the source code are examples that suggest how to use the provided handlers. The examples can be found in the package:
ch.mimo.netty.example.icap.*
All examples show how to create a server and client handler pipeline. It is
recommended to construct client and server pipelines according to these examples.
The simple example shows how to best use the provided handlers. It implicitly uses the aggregation and separation handlers which take care of all message body transfer details. The below depicted pipelines are client and server pipelines:
Note that at the end of each Pipeline is either a Server or Client handler that represents the so called Hub of the pipeline. This handler is responsible to receive messages process them and send the response back into the pipeline.