* from that result as well.
*/
protected Map<String,Closure> buildDefaultEncoderMap() {
Map<String,Closure> encoders = new HashMap<String,Closure>();
encoders.put( ContentType.BINARY.toString(), new MethodClosure(this,"encodeStream") );
encoders.put( ContentType.TEXT.toString(), new MethodClosure( this, "encodeText" ) );
encoders.put( ContentType.URLENC.toString(), new MethodClosure( this, "encodeForm" ) );
Closure encClosure = new MethodClosure(this,"encodeXML");
for ( String ct : ContentType.XML.getContentTypeStrings() )
encoders.put( ct, encClosure );
encoders.put( ContentType.HTML.toString(), encClosure );
encClosure = new MethodClosure(this,"encodeJSON");
for ( String ct : ContentType.JSON.getContentTypeStrings() )
encoders.put( ct, encClosure );
return encoders;
}