1 package org.jmage.dispatcher; 2 3 import org.jmage.Configurable; 4 import org.jmage.ImageRequest; 5 import org.jmage.JmageException; 6 7 /*** 8 * Dispatch image requests 9 */ 10 public interface RequestDispatcher extends Configurable { 11 12 /*** 13 * Dispatch an ImageRequest 14 * 15 * @param request the ImageRequest 16 */ 17 public void dispatch(ImageRequest request) throws JmageException; 18 19 /*** 20 * Dispatch cache interceptable 21 * 22 * @return the dispatched ImageRequest 23 */ 24 byte[] createFrom(ImageRequest imageRequest) throws JmageException; 25 }