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