You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by st...@locus.apache.org on 2000/08/31 17:56:35 UTC
cvs commit: xml-cocoon/src/org/apache/cocoon/environment Environment.java
stefano 00/08/31 08:56:35
Modified: src/org/apache/cocoon/environment Tag: xml-cocoon2
Environment.java
Log:
cleaned it up a little
Revision Changes Path
No revision
No revision
1.1.2.9 +49 -22 xml-cocoon/src/org/apache/cocoon/environment/Attic/Environment.java
Index: Environment.java
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/environment/Attic/Environment.java,v
retrieving revision 1.1.2.8
retrieving revision 1.1.2.9
diff -u -r1.1.2.8 -r1.1.2.9
--- Environment.java 2000/08/31 14:56:34 1.1.2.8
+++ Environment.java 2000/08/31 15:56:34 1.1.2.9
@@ -5,38 +5,65 @@
* version 1.1, a copy of which has been included with this distribution in *
* the LICENSE file. *
*****************************************************************************/
+
package org.apache.cocoon.environment;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.net.MalformedURLException;
-import java.util.Dictionary;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.net.MalformedURLException;
+import java.util.Dictionary;
-import org.xml.sax.EntityResolver;
-import org.xml.sax.SAXException;
+import org.xml.sax.EntityResolver;
+import org.xml.sax.SAXException;
/**
- * Base interface for an environment abstraction
+ * Base interface for an environment abstraction
*
* @author <a href="mailto:Giacomo.Pati@pwr.ch">Giacomo Pati</a>
- * @version CVS $Revision: 1.1.2.8 $ $Date: 2000/08/31 14:56:34 $
+ * @version CVS $Revision: 1.1.2.9 $ $Date: 2000/08/31 15:56:34 $
*/
public interface Environment extends EntityResolver {
- // Sitemap methods
- public String getUri ();
- public void changeContext (String uriprefix, String context)
- throws MalformedURLException;
- public void redirect (String url) throws IOException;
-
- // Request methods
- public String getView ();
- // Response methods
- public void setContentType (String mimeType);
+ /**
+ * Get the URI to process
+ */
+ public String getUri();
+
+ /**
+ * Get the view to process
+ */
+ public String getView();
+
+ /**
+ * Change the context from uriprefix to context
+ */
+ public void changeContext(String uriprefix, String context) throws MalformedURLException;
+
+ /**
+ * Redirect to the given URL
+ */
+ public void redirect(String url) throws IOException;
+
+ /**
+ * Set the content type of the generated resource
+ */
+ public void setContentType(String mimeType);
+
+ /**
+ * Set the response status code
+ */
public void setStatus (int statusCode);
- public OutputStream getOutputStream() throws IOException;
+
+ /**
+ * Get the output stream where to write the generated resource.
+ */
+ public OutputStream getOutputStream() throws IOException;
+
+ /**
+ * Get the underlying object model
+ */
+ public Dictionary getObjectModel();
+
+}
- // Object model
- public Dictionary getObjectModel();
- }