org.apache.cocoon.environment.commandline
Class CommandLineContext
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.environment.commandline.CommandLineContext
- All Implemented Interfaces:
- Context, LogEnabled
- public class CommandLineContext
- extends AbstractLogEnabled
- implements Context
Implements the Context
interface
- Version:
- CVS $Id: CommandLineContext.java 170436 2005-05-16 19:50:25Z danielf $
- Author:
- ?
Constructor Summary |
CommandLineContext(String contextDir)
Constructs a CommandlineContext object from a ServletContext object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandLineContext
public CommandLineContext(String contextDir)
- Constructs a CommandlineContext object from a ServletContext object
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttribute
in interface Context
setAttribute
public void setAttribute(String name,
Object value)
- Specified by:
setAttribute
in interface Context
removeAttribute
public void removeAttribute(String name)
- Specified by:
removeAttribute
in interface Context
getAttributeNames
public Enumeration getAttributeNames()
- Specified by:
getAttributeNames
in interface Context
getAttributes
public Map getAttributes()
- Description copied from interface:
Context
- Utility method for getting a
Map
view of the context attributes.
Returns a Map
with context attributes.
- Specified by:
getAttributes
in interface Context
- Returns:
- a
Map
containing the context attributes.
getResource
public URL getResource(String path)
throws MalformedURLException
- Specified by:
getResource
in interface Context
- Throws:
MalformedURLException
getRealPath
public String getRealPath(String path)
- Specified by:
getRealPath
in interface Context
getMimeType
public String getMimeType(String file)
- Specified by:
getMimeType
in interface Context
getInitParameter
public String getInitParameter(String name)
- Specified by:
getInitParameter
in interface Context
getResourceAsStream
public InputStream getResourceAsStream(String path)
- Specified by:
getResourceAsStream
in interface Context
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.