## Uses of Class
org.restlet.Context

Packages that use Context
Package | Description
--- | ---
org.restlet | Core classes of the API.
org.restlet.engine | Implementation of Restlet API.
org.restlet.engine.application | Supports Restlet applications.
org.restlet.engine.component | Supports Restlet components.
org.restlet.engine.http | Supports HTTP connectors.
org.restlet.engine.http.adapter | Adapters between low-level HTTP calls and high-level Restlet Request and Response objects.
org.restlet.engine.http.connector | New advanced internal HTTP connector.
org.restlet.engine.log | Supports the log service.
org.restlet.resource | Client and server resource classes.
org.restlet.routing | Classes related to call routing.
org.restlet.security | Classes related to security.
org.restlet.service | Services used by applications and components.
org.restlet.util | Various utility classes.

### Uses of Context in org.restlet

Methods in org.restlet that return Context
Modifier and Type | Method and Description
--- | ---
`Context` | Context.`createChildContext()` Creates a protected child context.
`Context` | Restlet.`getContext()` Returns the context.
`static Context` | Context.`getCurrent()` Returns the context associated to the current Restlet.

Methods in org.restlet with parameters of type Context
Modifier and Type | Method and Description
--- | ---
`void` | Application.`setContext(Context context)`
`void` | Restlet.`setContext(Context context)` Sets the context.
`static void` | Context.`setCurrent(Context context)` Sets the context to associated with the current thread.

Constructors in org.restlet with parameters of type Context
Constructor and Description
`Application(Context context)` Constructor.
`Client(Context context, java.util.List<Protocol> protocols)` Constructor.
`Client(Context context, java.util.List<Protocol> protocols, java.lang.String helperClass)` Constructor.
`Client(Context context, Protocol protocol)` Constructor.
`Connector(Context context)` Constructor.
`Connector(Context context, java.util.List<Protocol> protocols)` Constructor.
`Restlet(Context context)` Constructor with the Restlet's context which can be the parent's application context, but shouldn't be the parent Component's context for security reasons.
`Server(Context context, java.util.List<Protocol> protocols, int port, Restlet next)` Constructor.
`Server(Context context, java.util.List<Protocol> protocols, java.lang.String address, int port, Restlet next)` Constructor.
`Server(Context context, java.util.List<Protocol> protocols, java.lang.String address, int port, Restlet next, java.lang.String helperClass)` Constructor.
`Server(Context context, Protocol protocol, java.lang.Class<?> nextClass)` Constructor.
`Server(Context context, Protocol protocol, int port)` Constructor.
`Server(Context context, Protocol protocol, int port, java.lang.Class<?> nextClass)` Constructor.
`Server(Context context, Protocol protocol, int port, Restlet next)` Constructor.
`Server(Context context, Protocol protocol, Restlet next)` Constructor using the protocol's default port.
`Server(Context context, Protocol protocol, java.lang.String address, int port, Restlet next)` Constructor.

### Uses of Context in org.restlet.engine

Methods in org.restlet.engine that return Context
Modifier and Type | Method and Description
--- | ---
`Context` | TemplateDispatcher.`getContext()` Returns the context.
`Context` | ConnectorHelper.`getContext()` Returns the helped Restlet context.
`Context` | RestletHelper.`getContext()` Returns the helped Restlet context.

Methods in org.restlet.engine with parameters of type Context
Modifier and Type | Method and Description
--- | ---
`void` | TemplateDispatcher.`setContext(Context context)` Sets the context.

Constructors in org.restlet.engine with parameters of type Context
Constructor and Description
`TemplateDispatcher(Context context)` Constructor.

### Uses of Context in org.restlet.engine.application

Constructors in org.restlet.engine.application with parameters of type Context
Constructor and Description
`Decoder(Context context)` Constructor to only decode request entities before handling.
`Decoder(Context context, boolean decodingRequest, boolean decodingResponse)` Constructor.
`Encoder(Context context)` Constructor using the default media types and with `Encoder.ENCODE_ALL_SIZES` setting.
`Encoder(Context context, boolean encodingInput, boolean encodingOutput, long minimumSize, java.util.List<MediaType> acceptedMediaTypes, java.util.List<MediaType> ignoredMediaTypes)` Constructor.
`RangeFilter(Context context)` Constructor.
`StatusFilter(Context context, boolean overwriting, java.lang.String email, Reference homeRef)` Constructor.
`StatusFilter(Context context, StatusService statusService)` Constructor from a status service.
`TunnelFilter(Context context)` Constructor.

### Uses of Context in org.restlet.engine.component

Subclasses of Context in org.restlet.engine.component
Modifier and Type | Class and Description
--- | ---
`class` | `ChildContext` Context based on a parent component's context but dedicated to a child Restlet, typically to an application.
`class` | `ComponentContext` Context allowing access to the component's connectors.

Methods in org.restlet.engine.component that return Context
Modifier and Type | Method and Description
--- | ---
`Context` | ChildContext.`createChildContext()`
`Context` | ComponentContext.`createChildContext()`
`protected Context` | ChildContext.`getParentContext()` Returns the parent context.

Methods in org.restlet.engine.component with parameters of type Context
Modifier and Type | Method and Description
--- | ---
`static void` | ChildContext.`fireContextChanged(Restlet restlet, Context context)` Indicates that a Restlet's context has changed.

Constructors in org.restlet.engine.component with parameters of type Context
Constructor and Description
`ChildContext(Context parentContext)` Constructor.
`InternalRouter(Context context)` Constructor.

### Uses of Context in org.restlet.engine.http

Constructors in org.restlet.engine.http with parameters of type Context
Constructor and Description
`HttpRequest(Context context, ServerCall httpCall)` Constructor.

### Uses of Context in org.restlet.engine.http.adapter

Methods in org.restlet.engine.http.adapter that return Context
Modifier and Type | Method and Description
--- | ---
`Context` | Adapter.`getContext()` Returns the context.

Constructors in org.restlet.engine.http.adapter with parameters of type Context
Constructor and Description
`Adapter(Context context)` Constructor.
`ClientAdapter(Context context)` Constructor.
`ServerAdapter(Context context)` Constructor.

### Uses of Context in org.restlet.engine.http.connector

Methods in org.restlet.engine.http.connector with parameters of type Context
Modifier and Type | Method and Description
--- | ---
`protected ConnectedRequest` | ServerConnection.`createRequest(Context context, ServerConnection connection, java.lang.String methodName, java.lang.String resourceUri, java.lang.String version, Series<Parameter> headers, Representation entity, boolean confidential, java.security.Principal userPrincipal)` Creates a new request.

Constructors in org.restlet.engine.http.connector with parameters of type Context
Constructor and Description
`ConnectedRequest(Context context, ServerConnection connection, Method method, java.lang.String resourceUri, java.lang.String version, Series<Parameter> headers, Representation entity, boolean confidential, java.security.Principal userPrincipal)` Constructor.

### Uses of Context in org.restlet.engine.log

Constructors in org.restlet.engine.log with parameters of type Context
Constructor and Description
`LogFilter(Context context, LogService logService)` Constructor.

### Uses of Context in org.restlet.resource

Methods in org.restlet.resource that return Context
Modifier and Type | Method and Description
--- | ---
`Context` | Handler.`getContext()` Deprecated. Returns the context.
`Context` | UniformResource.`getContext()` Returns the current context.

Methods in org.restlet.resource with parameters of type Context
Modifier and Type | Method and Description
--- | ---
`static <T> T` | ClientResource.`create(Context context, Reference reference, java.lang.Class<? extends T> resourceInterface)` Creates a client resource that proxy calls to the given Java interface into Restlet method calls.
`static Finder` | Finder.`createFinder(java.lang.Class<?> targetClass, java.lang.Class<? extends Finder> finderClass, Context context, java.util.logging.Logger logger)` Creates a new finder instance based on the "targetClass" property.
`void` | Handler.`init(Context context, Request request, Response response)` Deprecated. Initialize the resource with its context.
`void` | Resource.`init(Context context, Request request, Response response)` Deprecated. Initialize the resource with its context.
`void` | UniformResource.`init(Context context, Request request, Response response)` Initialization method setting the environment of the current resource instance.
`void` | Handler.`setContext(Context context)` Deprecated. Sets the parent context.

Constructors in org.restlet.resource with parameters of type Context
Constructor and Description
`ClientResource(Context context, Method method, Reference reference)` Constructor.
`ClientResource(Context context, Method method, java.lang.String uri)` Constructor.
`ClientResource(Context context, Method method, java.net.URI uri)` Constructor.
`ClientResource(Context context, Reference reference)` Constructor.
`ClientResource(Context context, Request request, Response response)` Constructor.
`ClientResource(Context context, java.lang.String uri)` Constructor.
`ClientResource(Context context, java.net.URI uri)` Constructor.
`Directory(Context context, Reference rootLocalReference)` Constructor.
`Directory(Context context, java.lang.String rootUri)` Constructor.
`Finder(Context context)` Constructor.
`Finder(Context context, java.lang.Class<?> targetClass)` Constructor.
`Handler(Context context, Request request, Response response)` Deprecated. Normal constructor.
`Resource(Context context, Request request, Response response)` Deprecated. Normal constructor.

### Uses of Context in org.restlet.routing

Constructors in org.restlet.routing with parameters of type Context
Constructor and Description
`Extractor(Context context)` Constructor.
`Extractor(Context context, Restlet next)` Constructor.
`Filter(Context context)` Constructor.
`Filter(Context context, Restlet next)` Constructor.
`Redirector(Context context, java.lang.String targetTemplate)` Constructor for the client dispatcher mode.
`Redirector(Context context, java.lang.String targetPattern, int mode)` Constructor.
`Router(Context context)` Constructor.
`Validator(Context context)` Constructor.
`Validator(Context context, Restlet next)` Constructor.
`VirtualHost(Context parentContext)` Constructor.
`VirtualHost(Context parentContext, java.lang.String hostDomain, java.lang.String hostPort, java.lang.String hostScheme, java.lang.String resourceDomain, java.lang.String resourcePort, java.lang.String resourceScheme, java.lang.String serverAddress, java.lang.String serverPort)` Constructor.

### Uses of Context in org.restlet.security

Constructors in org.restlet.security with parameters of type Context
Constructor and Description
`Authenticator(Context context)` Constructor setting the mode to "required".
`Authenticator(Context context, boolean optional)` Constructor using the context's default enroler.
`Authenticator(Context context, boolean optional, Enroler enroler)` Constructor.
`ChallengeAuthenticator(Context context, boolean optional, ChallengeScheme challengeScheme, java.lang.String realm)` Constructor using the context's default verifier.
`ChallengeAuthenticator(Context context, boolean optional, ChallengeScheme challengeScheme, java.lang.String realm, Verifier verifier)` Constructor.
`ChallengeAuthenticator(Context context, ChallengeScheme challengeScheme, java.lang.String realm)` Constructor setting the optional property to false.
`Guard(Context context, ChallengeScheme scheme, java.lang.String realm)` Deprecated. Constructor.
`Guard(Context context, java.lang.String realm, java.util.Collection<java.lang.String> baseUris, java.lang.String serverKey)` Deprecated. Alternate Constructor for HTTP DIGEST authentication scheme.

### Uses of Context in org.restlet.service

Methods in org.restlet.service that return Context
Modifier and Type | Method and Description
--- | ---
`Context` | Service.`getContext()` Returns the context.

Methods in org.restlet.service with parameters of type Context
Modifier and Type | Method and Description
--- | ---
`Filter` | DecoderService.`createInboundFilter(Context context)`
`Filter` | StatusService.`createInboundFilter(Context context)`
`Filter` | RangeService.`createInboundFilter(Context context)`
`Filter` | LogService.`createInboundFilter(Context context)`
`Filter` | TunnelService.`createInboundFilter(Context context)`
`Filter` | Service.`createInboundFilter(Context context)` Create the filter that should be invoked for incoming calls.
`Filter` | Service.`createOutboundFilter(Context context)` Create the filter that should be invoked for outgoing calls.
`void` | Service.`setContext(Context context)` Sets the context.

### Uses of Context in org.restlet.util

Methods in org.restlet.util that return Context
Modifier and Type | Method and Description
--- | ---
`Context` | WrapperRestlet.`getContext()`
`Context` | ClientList.`getContext()` Returns the context.
`Context` | ServerList.`getContext()` Returns the context.
`Context` | ServiceList.`getContext()` Returns the context.

Methods in org.restlet.util with parameters of type Context
Modifier and Type | Method and Description
--- | ---
`void` | WrapperRestlet.`setContext(Context context)`
`void` | ClientList.`setContext(Context context)` Sets the context.
`void` | ServerList.`setContext(Context context)` Sets the context.
`void` | ServiceList.`setContext(Context context)` Sets the context.

Constructors in org.restlet.util with parameters of type Context
Constructor and Description
`ClientList(Context context)` Constructor.
`ServerList(Context context, Restlet next)` Constructor.
`ServiceList(Context context)` Constructor.