Class RequestProcessingContextReference
- java.lang.Object
-
- org.glassfish.jersey.server.internal.process.RequestProcessingContextReference
-
- All Implemented Interfaces:
Ref<RequestProcessingContext>
,Settable<RequestProcessingContext>
,Value<RequestProcessingContext>
public class RequestProcessingContextReference extends java.lang.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.
-
-
Field Summary
Fields Modifier and Type Field Description private RequestProcessingContext
processingContext
-
Constructor Summary
Constructors Constructor Description RequestProcessingContextReference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestProcessingContext
get()
Get the stored value.void
set(RequestProcessingContext processingContext)
Set a new value.
-
-
-
Field Detail
-
processingContext
private RequestProcessingContext processingContext
-
-
Method Detail
-
set
public void set(RequestProcessingContext processingContext)
Description copied from interface:Settable
Set a new value.- Specified by:
set
in interfaceSettable<RequestProcessingContext>
- Parameters:
processingContext
- value to be set.
-
get
public RequestProcessingContext get()
Description copied from interface:Value
Get the stored value.- Specified by:
get
in interfaceValue<RequestProcessingContext>
- Returns:
- stored value.
-
-