morphis logo morphis | wax   
morphis manual
manual
 

Processing
   Dispatching
   Requesting
   Translating

Installation
   Requirements
   Instructions
   Config Properties

Dispatching
   Configuration
   Pre/Post Filters

Requestors
   URL Requesting
   Servlet Chaining
   Run-time Instructs
   Custom Requestors

Translators
   Non-Translator
   Custom Translators

SAX Translators
   XSLT Translation
   Custom SAX Filters

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>

 

 

morphis SourceForge Logo