org.apache.cocoon.environment
Interface Context
- All Known Implementing Classes:
- AbstractContext, CommandLineContext
- public interface Context
Defines an interface to provide context information.
- Version:
- CVS $Id: Context.java 170542 2005-05-17 08:10:19Z danielf $
- Author:
- Davanum Srinivas
getAttribute
public Object getAttribute(String name)
setAttribute
public void setAttribute(String name,
Object value)
getAttributes
public Map getAttributes()
- Utility method for getting a
Map
view of the context attributes.
Returns a Map
with context attributes.
- Returns:
- a
Map
containing the context attributes. - Since:
- 2.2
removeAttribute
public void removeAttribute(String name)
getAttributeNames
public Enumeration getAttributeNames()
getResource
public URL getResource(String path)
throws MalformedURLException
- Throws:
MalformedURLException
getRealPath
public String getRealPath(String path)
getMimeType
public String getMimeType(String file)
getInitParameter
public String getInitParameter(String name)
getResourceAsStream
public InputStream getResourceAsStream(String path)
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.