|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.Context
com.noelios.restlet.ext.servlet.ServletContextAdapter
public class ServletContextAdapter
Exposes a Servlet context as a Restlet one. 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.
Constructor Summary | |
---|---|
ServletContextAdapter(Servlet servlet)
Deprecated. Use this constructor ServletContextAdapter(Servlet, Context) instead. |
|
ServletContextAdapter(Servlet servlet,
Context parentContext)
Constructor. |
Method Summary | |
---|---|
Uniform |
getClientDispatcher()
|
Uniform |
getServerDispatcher()
|
ServletContext |
getServletContext()
Returns the Servlet context. |
Methods inherited from class org.restlet.Context |
---|
createChildContext, getAttributes, getCurrent, getCurrentLogger, getDispatcher, getLogger, getParameters, setAttributes, setCurrent, setLogger, setLogger, setParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public ServletContextAdapter(Servlet servlet)
servlet
- The parent Servlet.public ServletContextAdapter(Servlet servlet, Context parentContext)
servlet
- The parent Servlet.parentContext
- The parent context.Method Detail |
---|
public Uniform getClientDispatcher()
getClientDispatcher
in class Context
public Uniform getServerDispatcher()
getServerDispatcher
in class Context
public ServletContext getServletContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |