com.noelios.restlet.application
Class ApplicationContext

java.lang.Object
  extended by org.restlet.Context
      extended by com.noelios.restlet.application.ApplicationContext

public class ApplicationContext
extends Context

Context based on a parent component's context but dedicated to an application. This is important to allow contextual access to application's resources.

Author:
Jerome Louvel (contact@noelios.com)

Constructor Summary
ApplicationContext(Application application, Context parentContext, Logger logger)
          Constructor.
 
Method Summary
protected  Application getApplication()
          Returns the application.
 Uniform getDispatcher()
          Returns a call dispatcher.
protected  Context getParentContext()
          Returns the parent context.
protected  Client getWarClient()
          Returns the WAR client.
protected  void setWarClient(Client warClient)
          Sets the WAR client.
 
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

ApplicationContext

public ApplicationContext(Application application,
                          Context parentContext,
                          Logger logger)
Constructor.

Parameters:
application - The application.
parentContext - The parent context.
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.

getApplication

protected Application getApplication()
Returns the application.

Returns:
the application.

getWarClient

protected Client getWarClient()
Returns the WAR client.

Returns:
the WAR client.

setWarClient

protected void setWarClient(Client warClient)
Sets the WAR client.

Parameters:
warClient - the WAR client.

getParentContext

protected Context getParentContext()
Returns the parent context.

Returns:
The parent context.


Copyright © 2005-2007 Noelios Technologies.