001 package org.shiftone.jrat.http; 002 003 /** 004 * This is basicly a lightweight Servlet. 005 * 006 * @author jeff@shiftone.org (Jeff Drost) 007 */ 008 public interface Handler { 009 010 public interface ContentType { 011 public static final String TEXT_HTML = "text/html"; 012 public static final String TEXT_XML = "text/xml"; 013 public static final String TEXT_PLAIN = "text/plain"; 014 public static final String OCTET_STREAM = "application/octet-stream"; 015 } 016 017 public void handle(Request request, Response response) throws Exception; 018 019 }