org.apache.cocoon.components.blocks
Class BlockContext

java.lang.Object
  extended byorg.apache.cocoon.environment.impl.AbstractContext
      extended byorg.apache.cocoon.components.blocks.BlockContext
All Implemented Interfaces:
Context

public class BlockContext
extends AbstractContext

Version:
SVN $Id: BlockContext.java 327850 2005-10-23 20:10:10Z danielf $

Constructor Summary
BlockContext(BlockWiring wiring)
           
 
Method Summary
 Object getAttribute(String name)
           
 Enumeration getAttributeNames()
           
 Map getAttributes()
          Utility method for getting a Map view of the context attributes.
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockContext

public BlockContext(BlockWiring wiring)
Method Detail

getAttribute

public Object getAttribute(String name)

setAttribute

public void setAttribute(String name,
                         Object value)

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
Overrides:
getAttributes in class AbstractContext

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