com.noelios.restlet.component
Class ComponentContext

java.lang.Object
  extended by org.restlet.Context
      extended by com.noelios.restlet.component.ComponentContext

public class ComponentContext
extends Context

Context allowing access to the component's connectors.

Author:
Jerome Louvel (contact@noelios.com)

Constructor Summary
ComponentContext(ComponentHelper componentHelper)
          Constructor.
ComponentContext(ComponentHelper componentHelper, Logger logger)
          Constructor.
 
Method Summary
protected  ComponentHelper getComponentHelper()
          Returns the component helper.
 Uniform getDispatcher()
          Returns a call dispatcher.
protected  void setComponentHelper(ComponentHelper componentHelper)
          Sets the component helper.
 
Methods inherited from class org.restlet.Context
getAttributes, getLogger, getParameters, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentContext

public ComponentContext(ComponentHelper componentHelper)
Constructor.

Parameters:
componentHelper - The component helper.

ComponentContext

public ComponentContext(ComponentHelper componentHelper,
                        Logger logger)
Constructor.

Parameters:
componentHelper - The component helper.
logger - The logger instance of use.
Method Detail

getDispatcher

public Uniform getDispatcher()
Returns a call dispatcher.

Overrides:
getDispatcher in class Context
Returns:
A call dispatcher.

getComponentHelper

protected ComponentHelper getComponentHelper()
Returns the component helper.

Returns:
The component helper.

setComponentHelper

protected void setComponentHelper(ComponentHelper componentHelper)
Sets the component helper.

Parameters:
componentHelper - The component helper.


Copyright © 2005-2007 Noelios Technologies.