01: /* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
02: * This code is licensed under the GPL 2.0 license, availible at the root
03: * application directory.
04: */
05: package org.vfny.geoserver.wcs.responses;
06:
07: import org.geotools.coverage.grid.GridCoverage2D;
08: import org.vfny.geoserver.ServiceException;
09: import org.vfny.geoserver.global.GeoServer;
10: import java.io.IOException;
11: import java.io.OutputStream;
12:
13: /**
14: * DOCUMENT ME!
15: *
16: * @author $Author: Alessio Fabiani (alessio.fabiani@gmail.com) $ (last modification)
17: * @author $Author: Simone Giannecchini (simboss1@gmail.com) $ (last modification)
18: */
19: public interface CoverageResponseDelegate {
20: boolean canProduce(String outputFormat);
21:
22: void prepare(String outputFormat, GridCoverage2D coverage)
23: throws IOException;
24:
25: String getContentType(GeoServer gs);
26:
27: /**
28: *
29: * @uml.property name="contentEncoding" multiplicity="(0 1)"
30: */
31: String getContentEncoding();
32:
33: /**
34: *
35: * @uml.property name="contentDisposition" multiplicity="(0 1)"
36: */
37: String getContentDisposition();
38:
39: void encode(OutputStream output) throws ServiceException,
40: IOException;
41: }
|