Class RequestProcessingContextReference
java.lang.Object
org.glassfish.jersey.server.internal.process.RequestProcessingContextReference
- All Implemented Interfaces:
Supplier<RequestProcessingContext>
,Ref<RequestProcessingContext>
,Settable<RequestProcessingContext>
,Value<RequestProcessingContext>
public class RequestProcessingContextReference
extends Object
implements Ref<RequestProcessingContext>
Wrapper that holds the reference of the
RequestProcessingContext
. This class helps to get the current request scoped
object without wrapping using the proxy. Outer wrapper can be proxied but inner reference object still remains the direct
reference.- Author:
- Petr Bouda
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget()
Get the stored value.void
set
(RequestProcessingContext processingContext) Set a new value.
-
Constructor Details
-
RequestProcessingContextReference
public RequestProcessingContextReference()
-
-
Method Details
-
set
Description copied from interface:Settable
Set a new value.- Specified by:
set
in interfaceSettable<RequestProcessingContext>
- Parameters:
processingContext
- value to be set.
-
get
Description copied from interface:Value
Get the stored value.- Specified by:
get
in interfaceSupplier<RequestProcessingContext>
- Specified by:
get
in interfaceValue<RequestProcessingContext>
- Returns:
- stored value.
-