-package org.simantics.document.server.io;\r
-\r
-import java.io.File;\r
-import java.io.IOException;\r
-import java.util.List;\r
-\r
-public interface IRequest {\r
- public String getParameter(String name);\r
- public String getHeader(String name);\r
- public List<String> getHeaders(String name);\r
- public String getCookie(String name);\r
- public String getMethod();\r
- public String getPathInfo();\r
- public String getContextPath();\r
- public String getRemoteAddress();\r
- public String getRemoteHost();\r
- public int getRemotePort();\r
- public String getContentType();\r
- public long getContentLength();\r
- public String getCharacterEncoding();\r
- public long readToFile(File file) throws IOException;\r
- // TODO: input reading\r
- //public InputStream getInputStream();\r
- boolean isSecure();\r
- String getMultiPartBodyAsString(String name) throws IOException;\r
- File getMultiPartBodyAsTempFile(String name) throws IOException;\r
- void close();\r
-}\r
+package org.simantics.document.server.io;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.List;
+
+public interface IRequest {
+ public String getParameter(String name);
+ public String getHeader(String name);
+ public List<String> getHeaders(String name);
+ public String getCookie(String name);
+ public String getMethod();
+ public String getPathInfo();
+ public String getContextPath();
+ public String getRemoteAddress();
+ public String getRemoteHost();
+ public int getRemotePort();
+ public String getContentType();
+ public long getContentLength();
+ public String getCharacterEncoding();
+ public long readToFile(File file) throws IOException;
+ // TODO: input reading
+ //public InputStream getInputStream();
+ boolean isSecure();
+ String getMultiPartBodyAsString(String name) throws IOException;
+ File getMultiPartBodyAsTempFile(String name) throws IOException;
+ void close();
+}