public class MessageBodyParameterInjector extends Object implements ValueInjector, JaxrsInterceptorRegistryListener
Constructor and Description |
---|
MessageBodyParameterInjector(Class declaringClass,
AccessibleObject target,
Class type,
Type genericType,
Annotation[] annotations,
ResteasyProviderFactory factory) |
Modifier and Type | Method and Description |
---|---|
static int |
bodyCount() |
static void |
clearBodies() |
static Object |
getBody() |
Object |
inject()
Inject outside the context of an HTTP request.
|
Object |
inject(HttpRequest request,
HttpResponse response)
Inject inside the context of an HTTP request.
|
boolean |
isFormData(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
static Object |
popBody() |
static void |
pushBody(Object o) |
void |
registryUpdated(JaxrsInterceptorRegistry registry) |
public MessageBodyParameterInjector(Class declaringClass, AccessibleObject target, Class type, Type genericType, Annotation[] annotations, ResteasyProviderFactory factory)
public static void pushBody(Object o)
public static Object getBody()
public static Object popBody()
public static int bodyCount()
public static void clearBodies()
public void registryUpdated(JaxrsInterceptorRegistry registry)
registryUpdated
in interface JaxrsInterceptorRegistryListener
public boolean isFormData(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
public Object inject(HttpRequest request, HttpResponse response)
ValueInjector
inject
in interface ValueInjector
request
- http requestresponse
- http responsepublic Object inject()
ValueInjector
inject
in interface ValueInjector
Copyright © 2020 JBoss by Red Hat. All rights reserved.