org.apache.cocoon.environment.commandline
Class CommandlineContext
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.cocoon.environment.commandline.CommandlineContext
- All Implemented Interfaces:
- Context, org.apache.avalon.framework.logger.Loggable
- public class CommandlineContext
- extends org.apache.avalon.framework.logger.AbstractLoggable
- implements Context
Implements the Context
interface
- Version:
- CVS $Id: CommandlineContext.java,v 1.6 2002/02/22 07:03:50 cziegeler Exp $
- Author:
- ?
Constructor Summary |
CommandlineContext(java.lang.String contextDir)
Constructs a CommandlineContext object from a ServletContext object |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandlineContext
public CommandlineContext(java.lang.String contextDir)
- Constructs a CommandlineContext object from a ServletContext object
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
- Specified by:
getAttribute
in interface Context
setAttribute
public void setAttribute(java.lang.String name,
java.lang.Object value)
- Specified by:
setAttribute
in interface Context
removeAttribute
public void removeAttribute(java.lang.String name)
- Specified by:
removeAttribute
in interface Context
getAttributeNames
public java.util.Enumeration getAttributeNames()
- Specified by:
getAttributeNames
in interface Context
getResource
public java.net.URL getResource(java.lang.String path)
throws java.net.MalformedURLException
- Specified by:
getResource
in interface Context
getRealPath
public java.lang.String getRealPath(java.lang.String path)
- Specified by:
getRealPath
in interface Context
getMimeType
public java.lang.String getMimeType(java.lang.String file)
- Specified by:
getMimeType
in interface Context
getInitParameter
public java.lang.String getInitParameter(java.lang.String name)
- Specified by:
getInitParameter
in interface Context
getResourceAsStream
public java.io.InputStream getResourceAsStream(java.lang.String path)
- Specified by:
getResourceAsStream
in interface Context
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.