001 package org.shiftone.jrat.core.spi; 002 003 import java.io.OutputStream; 004 005 /** 006 * @author jeff@shiftone.org (Jeff Drost) 007 */ 008 public interface Commandlet { 009 010 public interface ContentType { 011 public static final String HTML = "text/html"; 012 public static final String XML = "text/xml"; 013 public static final String PLAIN = "text/plain"; 014 } 015 016 public void execute(OutputStream output) throws Exception; 017 018 public String getContentType(); 019 020 public String getTitle(); 021 022 }