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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Get the stored value.voidset(RequestProcessingContext processingContext) Set a new value.
-
Constructor Details
-
RequestProcessingContextReference
public RequestProcessingContextReference()
-
-
Method Details
-
set
Description copied from interface:SettableSet a new value.- Specified by:
setin interfaceSettable<RequestProcessingContext>- Parameters:
processingContext- value to be set.
-
get
Description copied from interface:ValueGet the stored value.- Specified by:
getin interfaceSupplier<RequestProcessingContext>- Specified by:
getin interfaceValue<RequestProcessingContext>- Returns:
- stored value.
-