|
Dispatching: Overview
Morphis Dispatching describes how a translation process starts,
and how the process instructions are generated. Morphis includes two built-in
dispatchers that use the dispatch.xml file to describe the processing
instructions:
- DispatchServlet: This Servlet is the entrypoint for usage
patterns 1, 2 and 4 which have Morphis handling initial requests. This
Servlet will create a Requestor and Translator based on the rules in dispatch.xml,
commence processing, and direct the output of the Translator back to the requesting
client.
- DispatchChainServlet: This Servlet is the entrypoint for usage
pattern 3 where Morphis does not discern the Requestor from
dispatch.xml ,
since the document to be translated is coming from the previous Servlet in
a Servlet chain.
You can easily write your own dispatcher which creates processing
instructions using some other mechanism. Since the dispatcher bootstraps the
translation process, you are free to create Requestors and Translators in your
own way.
More about Dispatching:
Writing Custom Prechain and
Postchain Filters
|