1 16 package org.apache.cocoon.environment; 17 18 import java.io.IOException ; 19 import java.io.OutputStream ; 20 import java.util.Enumeration ; 21 import java.util.Map ; 22 23 31 public interface Environment 32 extends SourceResolver { 33 34 37 String getURI(); 38 39 42 String getURIPrefix(); 43 44 47 String getRootContext(); 48 49 52 String getContext(); 53 54 57 String getView(); 58 59 62 String getAction(); 63 64 68 void setContext(String prefix, String uri, String context); 69 70 73 void changeContext(String uriprefix, String context) throws Exception ; 74 75 78 void redirect(boolean sessionmode, String url) throws IOException ; 79 80 83 void setContentType(String mimeType); 84 85 88 String getContentType(); 89 90 93 void setContentLength(int length); 94 95 98 void setStatus(int statusCode); 99 100 104 OutputStream getOutputStream() throws IOException ; 105 106 113 OutputStream getOutputStream(int bufferSize) throws IOException ; 114 115 118 Map getObjectModel(); 119 120 128 boolean isResponseModified(long lastModified); 129 130 133 void setResponseIsNotModified(); 134 135 146 void setAttribute(String name, Object value); 147 148 155 Object getAttribute(String name); 156 157 164 void removeAttribute(String name); 165 166 172 Enumeration getAttributeNames(); 173 174 182 boolean tryResetResponse() throws IOException ; 183 184 185 188 void commitResponse() throws IOException ; 189 190 193 void startingProcessing(); 194 195 199 void finishingProcessing(); 200 201 208 boolean isExternal(); 209 210 215 boolean isInternalRedirect(); 216 } 217 218 | Popular Tags |