1 package org.simantics.document.server.io;
4 import java.io.IOException;
6 public interface IResponse {
7 void setStatus(int statusCode);
8 void setContentType(String contentType);
9 void setHeader(String name, String value);
10 void setCookie(String name, String value, int maxAge, String path);
11 void setCacheTime(long milliseconds);
12 void setContentLength(long length);
13 void writeBytes(byte[] bytes) throws IOException;
14 void writeString(String string) throws IOException;
15 long writeFile(File file) throws IOException;
16 void close() throws IOException;