org.apache.cocoon.environment
Interface Context

All Known Implementing Classes:
CommandLineContext, HttpContext, JXPathCocoonContexts.ContextProxy, PortletContext

public interface Context

Defines an interface to provide client context information .

Version:
CVS $Id: Context.java 433543 2006-08-22 06:22:54Z crossley $
Author:
Davanum Srinivas

Method Summary
 Object getAttribute(String name)
           
 Enumeration getAttributeNames()
           
 String getInitParameter(String name)
           
 String getMimeType(String file)
           
 String getRealPath(String path)
           
 URL getResource(String path)
           
 InputStream getResourceAsStream(String path)
           
 void removeAttribute(String name)
           
 void setAttribute(String name, Object value)
           
 

Method Detail

getAttribute

public Object getAttribute(String name)

setAttribute

public void setAttribute(String name,
                         Object value)

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-2006 The Apache Software Foundation. All Rights Reserved.