public class MessageBodyParameterInjector extends java.lang.Object implements ValueInjector, JaxrsInterceptorRegistryListener
Modifier and Type | Field and Description |
---|---|
private java.lang.annotation.Annotation[] |
annotations |
private static ThreadLocalStack<java.lang.Object> |
bodyStack |
private java.lang.Class |
declaringClass |
private ResteasyProviderFactory |
factory |
private java.lang.reflect.Type |
genericType |
private javax.ws.rs.ext.ReaderInterceptor[] |
interceptors |
private boolean |
isMarshalledEntity |
private java.lang.reflect.AccessibleObject |
target |
private java.lang.Class |
type |
Constructor and Description |
---|
MessageBodyParameterInjector(java.lang.Class declaringClass,
java.lang.reflect.AccessibleObject target,
java.lang.Class type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
ResteasyProviderFactory factory) |
Modifier and Type | Method and Description |
---|---|
static int |
bodyCount() |
static void |
clearBodies() |
static java.lang.Object |
getBody() |
java.lang.Object |
inject()
Inject outside the context of an HTTP request.
|
java.lang.Object |
inject(HttpRequest request,
HttpResponse response)
Inject inside the context of an HTTP request.
|
boolean |
isFormData(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
static java.lang.Object |
popBody() |
static void |
pushBody(java.lang.Object o) |
void |
registryUpdated(JaxrsInterceptorRegistry registry) |
private static ThreadLocalStack<java.lang.Object> bodyStack
private java.lang.Class type
private java.lang.reflect.Type genericType
private java.lang.annotation.Annotation[] annotations
private ResteasyProviderFactory factory
private java.lang.Class declaringClass
private java.lang.reflect.AccessibleObject target
private javax.ws.rs.ext.ReaderInterceptor[] interceptors
private boolean isMarshalledEntity
public MessageBodyParameterInjector(java.lang.Class declaringClass, java.lang.reflect.AccessibleObject target, java.lang.Class type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, ResteasyProviderFactory factory)
public static void pushBody(java.lang.Object o)
public static java.lang.Object getBody()
public static java.lang.Object popBody()
public static int bodyCount()
public static void clearBodies()
public void registryUpdated(JaxrsInterceptorRegistry registry)
registryUpdated
in interface JaxrsInterceptorRegistryListener
public boolean isFormData(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
public java.lang.Object inject(HttpRequest request, HttpResponse response)
ValueInjector
inject
in interface ValueInjector
public java.lang.Object inject()
ValueInjector
inject
in interface ValueInjector