Initial import.
[clinton/mirror/jspi/.git] / jspi / src / main / java / de / lohndirekt / print / IppConnection.java
diff --git a/jspi/src/main/java/de/lohndirekt/print/IppConnection.java b/jspi/src/main/java/de/lohndirekt/print/IppConnection.java
new file mode 100644 (file)
index 0000000..44081c8
--- /dev/null
@@ -0,0 +1,50 @@
+/**\r
+ * Copyright (C) 2003 <a href="http://www.lohndirekt.de/">lohndirekt.de</a>\r
+ *\r
+ * This library is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU Lesser General Public\r
+ * License as published by the Free Software Foundation; either\r
+ * version 2.1 of the License, or (at your option) any later version.\r
+ * \r
+ * This library is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
+ * Lesser General Public License for more details.\r
+ * \r
+ * You should have received a copy of the GNU Lesser General Public\r
+ * License along with this library; if not, write to the Free Software\r
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
+ *  \r
+ */\r
+package de.lohndirekt.print;\r
+\r
+import java.io.IOException;\r
+import java.io.InputStream;\r
+\r
+import org.apache.commons.httpclient.HttpException;\r
+\r
+/**\r
+ *  \r
+ * @author sefftinge\r
+ * \r
+ */\r
+interface IppConnection {\r
+    /**\r
+     * @return content of the response\r
+     * @throws IOException\r
+     */\r
+    public abstract InputStream getIppResponse() throws IOException;\r
+\r
+    /**\r
+     * @return the statuscode of last request\r
+     * @throws IOException\r
+     */\r
+    public abstract int getStatusCode() throws IOException;\r
+\r
+    /**\r
+     * @param stream\r
+     */\r
+    public abstract void setIppRequest(InputStream stream);\r
+\r
+    public abstract boolean execute() throws HttpException, IOException;\r
+}
\ No newline at end of file