import java.util.Properties; import org.tonjac.mini.*; import org.tonjac.mini.test.*; /* mini * * This program is distributed under the GNU General Public License, version 2. * A copy of this license is included with this source. * * Copyright 2004-2006, Toni Thomsson */ public class testjava implements RenderService { public RenderServiceReply execute( Session session, Properties params ) throws Exception { RenderServiceReply result = new RenderServiceReply( "Content-Type: text/html; charset=UTF-8\n\n" ); if( params.getProperty( "svc" ).equals("Test") ) { result.append( new TestRender( session, params ).render() ); result.setReturnCode(0); } else throw new Exception( "Not a valid service" ); return result; } }