1 16 package org.apache.cocoon.environment; 17 18 import java.net.MalformedURLException ; 19 import java.net.URL ; 20 import java.util.Enumeration ; 21 import java.io.InputStream ; 22 23 30 31 public interface Context { 32 33 Object getAttribute(String name); 34 35 void setAttribute(String name, Object value); 36 37 void removeAttribute(String name); 38 39 Enumeration getAttributeNames(); 40 41 URL getResource(String path) throws MalformedURLException ; 42 43 String getRealPath(String path); 44 45 String getMimeType(String file); 46 47 String getInitParameter(String name); 48 49 InputStream getResourceAsStream(String path); 50 } 51 | Popular Tags |