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() |
CompletionStage<Object> |
inject(boolean unwrapAsync)
Inject outside the context of an HTTP request.
|
CompletionStage<Object> |
inject(HttpRequest request,
HttpResponse response,
boolean unwrapAsync)
Inject inside the context of an HTTP request.
|
boolean |
isFormData(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
static Object |
popBody() |
static void |
pushBody(Object o) |
void |
registryUpdated(JaxrsInterceptorRegistry registry,
JaxrsInterceptorRegistry.InterceptorFactory factory) |
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, JaxrsInterceptorRegistry.InterceptorFactory factory)
registryUpdated
in interface JaxrsInterceptorRegistryListener
public boolean isFormData(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
public CompletionStage<Object> inject(HttpRequest request, HttpResponse response, boolean unwrapAsync)
ValueInjector
inject
in interface ValueInjector
request
- http requestresponse
- http responseunwrapAsync
- unwrap asyncpublic CompletionStage<Object> inject(boolean unwrapAsync)
ValueInjector
inject
in interface ValueInjector
unwrapAsync
- unwrap asyncCopyright © 2019 JBoss by Red Hat. All rights reserved.