com.noelios.restlet.ext.servlet
Class ServletContextAdapter

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

public class ServletContextAdapter
extends ApplicationContext

Context allowing access to the component's connectors, reusing the Servlet's logging mechanism and adding the Servlet's initialization parameters to the context's parameters.

Author:
Jerome Louvel (contact@noelios.com)

Constructor Summary
ServletContextAdapter(Servlet servlet, Application application, Context parentContext)
          Constructor.
 
Method Summary
 ServletContext getServletContext()
          Returns the Servlet context.
 
Methods inherited from class com.noelios.restlet.application.ApplicationContext
getApplication, getDispatcher, getParentContext, getWarClient, setWarClient
 
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

ServletContextAdapter

public ServletContextAdapter(Servlet servlet,
                             Application application,
                             Context parentContext)
Constructor.

Parameters:
servlet - The parent Servlet.
parentContext - The parent context.
application - The parent application.
Method Detail

getServletContext

public ServletContext getServletContext()
Returns the Servlet context.

Returns:
The Servlet context.


Copyright © 2005-2007 Noelios Technologies.