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.html 1304258 2012-03-23 10:09:27Z ilgrosso $
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

Object getAttribute(String name)

setAttribute

void setAttribute(String name,
                  Object value)

removeAttribute

void removeAttribute(String name)

getAttributeNames

Enumeration getAttributeNames()

getResource

URL getResource(String path)
                throws MalformedURLException
Throws:
MalformedURLException

getRealPath

String getRealPath(String path)

getMimeType

String getMimeType(String file)

getInitParameter

String getInitParameter(String name)

getResourceAsStream

InputStream getResourceAsStream(String path)


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.