| Method from org.apache.cocoon.environment.commandline.CommandlineContext Detail: |
public Object getAttribute(String name) {
if (getLogger().isDebugEnabled()) {
getLogger().debug("CommandlineContext: getAttribute=" + name);
}
return this.attributes.get(name);
}
|
public Enumeration getAttributeNames() {
if (getLogger().isDebugEnabled()) {
getLogger().debug("CommandlineContext: getAttributeNames");
}
return new IteratorEnumeration(this.attributes.keySet().iterator());
}
|
public String getInitParameter(String name) {
getLogger().debug("CommandlineContext: getInitParameter=" + name);
return null;
}
|
public String getMimeType(String file) {
if (getLogger().isDebugEnabled()) {
getLogger().debug("CommandlineContext: getMimeType=" + file);
}
//return servletContext.getMimeType(file);
return null;
}
|
public String getRealPath(String path) {
if (getLogger().isDebugEnabled()) {
getLogger().debug("CommandlineContext: getRealPath=" + path);
}
// rely on File to build correct File and URL
File f = new File( this.contextDir, path );
return f.getAbsolutePath();
}
|
public URL getResource(String path) throws MalformedURLException {
if (getLogger().isDebugEnabled()) {
getLogger().debug("CommandlineContext: getResource=" + path);
}
// rely on File to build correct File and URL
File f = new File( contextDir, path );
return f.toURL();
}
|
public InputStream getResourceAsStream(String path) {
getLogger().debug("CommandlineContext: getResourceAsStream "+path);
return null;
}
|
public void removeAttribute(String name) {
if (getLogger().isDebugEnabled()) {
getLogger().debug("CommandlineContext: removeAttribute=" + name);
}
this.attributes.remove(name);
}
|
public void setAttribute(String name,
Object value) {
if (getLogger().isDebugEnabled()) {
getLogger().debug("CommandlineContext: setAttribute=" + name);
}
this.attributes.put(name, value);
}
|