Translators: Non Translator
The Non Translator is a simple Translator which takes data
from a Requestor, and spits it directly out to the client. This is useful when
using Morphis as a simple pass-through proxy, or as a model for building your
own Translator.
Use the class org.morphis.translator.NonTranslator
to tell the context to use the Non Translator. The following example obtains
data from the site http://remote.server.com/the/file and returns
it verbatim to the client.
<context match="/foo/bar"
matchtype="exact"
requestor="org.morphis.URLRequestor"
href="http://remote.server.com/the/file">
<translator class="org.morphis.translator.NonTranslator"/>
</context>
|
|