--- /dev/null
+package org.simantics.document.server.io;\r
+\r
+import java.io.File;\r
+import java.io.IOException;\r
+\r
+public interface IResponse {\r
+ void setStatus(int statusCode);\r
+ void setContentType(String contentType);\r
+ void setHeader(String name, String value);\r
+ void setCookie(String name, String value, int maxAge, String path);\r
+ void setCacheTime(long milliseconds); \r
+ void setContentLength(long length);\r
+ void writeBytes(byte[] bytes) throws IOException;\r
+ void writeString(String string) throws IOException;\r
+ long writeFile(File file) throws IOException;\r
+ void close() throws IOException;\r
+}\r