Package org.restlet.engine.component
Class ComponentContext
java.lang.Object
org.restlet.Context
org.restlet.engine.component.ComponentContext
Context allowing access to the component's connectors.
- Author:
- Jerome Louvel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a protected child context.protected ComponentHelperReturns the component helper.protected voidsetComponentHelper(ComponentHelper componentHelper) Sets the component helper.Methods inherited from class org.restlet.Context
getAttributes, getClientDispatcher, getCurrent, getCurrentLogger, getDefaultEnroler, getDefaultVerifier, getExecutorService, getLogger, getParameters, getServerDispatcher, setAttributes, setClientDispatcher, setCurrent, setDefaultEnroler, setDefaultVerifier, setExecutorService, setLogger, setLogger, setParameters, setServerDispatcher
-
Constructor Details
-
ComponentContext
Constructor.- Parameters:
componentHelper- The component helper.
-
-
Method Details
-
createChildContext
Description copied from class:ContextCreates a protected child context. This is especially useful for new application attached to their parent component, to ensure their isolation from the other applications. By default it creates a new context instance with empty or null properties, except the client and server dispatchers that are wrapped for isolation purpose.- Overrides:
createChildContextin classContext- Returns:
- The child context.
-
getComponentHelper
Returns the component helper.- Returns:
- The component helper.
-
setComponentHelper
Sets the component helper.- Parameters:
componentHelper- The component helper.
-