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