|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.Context
public class Context
Contextual data and services provided to a Restlet. The context is the means by which a Restlet may access the software environment within the framework. It is typically provided by the immediate parent Restlet (Component and Application are the most common cases).
Constructor Summary | |
---|---|
Context()
Constructor. |
|
Context(Logger logger)
Constructor. |
|
Context(String loggerName)
Constructor. |
Method Summary | |
---|---|
Map<String,Object> |
getAttributes()
Returns a modifiable attributes map that can be used by developers to save information relative to the context. |
Uniform |
getDispatcher()
Returns a request dispatcher to available client connectors. |
Logger |
getLogger()
Returns the logger. |
Series<Parameter> |
getParameters()
Returns the modifiable series of parameters. |
void |
setLogger(Logger logger)
Sets the logger. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Context()
public Context(Logger logger)
logger
- The logger instance of use.public Context(String loggerName)
loggerName
- The name of the logger to use.Method Detail |
---|
public Map<String,Object> getAttributes()
Attribute name | Class name | Description |
---|---|---|
org.restlet.application | org.restlet.Application | The parent application providing this context, if any. |
public Uniform getDispatcher()
public Logger getLogger()
public Series<Parameter> getParameters()
public void setLogger(Logger logger)
logger
- The logger.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |