Package org.jboss.resteasy.core
Class MessageBodyParameterInjector
- java.lang.Object
-
- org.jboss.resteasy.core.MessageBodyParameterInjector
-
- All Implemented Interfaces:
JaxrsInterceptorRegistryListener,ValueInjector
public class MessageBodyParameterInjector extends java.lang.Object implements ValueInjector, JaxrsInterceptorRegistryListener
- Version:
- $Revision: 1 $
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.annotation.Annotation[]annotationsprivate static ThreadLocalStack<java.lang.Object>bodyStackprivate java.lang.ClassdeclaringClassprivate ResteasyProviderFactoryfactoryprivate java.lang.reflect.TypegenericTypeprivate javax.ws.rs.ext.ReaderInterceptor[]interceptorsprivate booleanisMarshalledEntityprivate java.lang.reflect.AccessibleObjecttargetprivate java.lang.Classtype
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intbodyCount()static voidclearBodies()static java.lang.ObjectgetBody()java.lang.Objectinject()Inject outside the context of an HTTP request.java.lang.Objectinject(HttpRequest request, HttpResponse response)Inject inside the context of an HTTP request.booleanisFormData(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)static java.lang.ObjectpopBody()static voidpushBody(java.lang.Object o)voidregistryUpdated(JaxrsInterceptorRegistry registry)
-
-
-
Field Detail
-
bodyStack
private static ThreadLocalStack<java.lang.Object> bodyStack
-
type
private java.lang.Class type
-
genericType
private java.lang.reflect.Type genericType
-
annotations
private java.lang.annotation.Annotation[] annotations
-
factory
private ResteasyProviderFactory factory
-
declaringClass
private java.lang.Class declaringClass
-
target
private java.lang.reflect.AccessibleObject target
-
interceptors
private javax.ws.rs.ext.ReaderInterceptor[] interceptors
-
isMarshalledEntity
private boolean isMarshalledEntity
-
-
Constructor Detail
-
MessageBodyParameterInjector
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)
-
-
Method Detail
-
pushBody
public static void pushBody(java.lang.Object o)
-
getBody
public static java.lang.Object getBody()
-
popBody
public static java.lang.Object popBody()
-
bodyCount
public static int bodyCount()
-
clearBodies
public static void clearBodies()
-
registryUpdated
public void registryUpdated(JaxrsInterceptorRegistry registry)
- Specified by:
registryUpdatedin interfaceJaxrsInterceptorRegistryListener
-
isFormData
public boolean isFormData(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
-
inject
public java.lang.Object inject(HttpRequest request, HttpResponse response)
Description copied from interface:ValueInjectorInject inside the context of an HTTP request.- Specified by:
injectin interfaceValueInjector- Returns:
-
inject
public java.lang.Object inject()
Description copied from interface:ValueInjectorInject outside the context of an HTTP request. For instance, a singleton may have proxiable and injectable jax-rs objects like Request, UriInfo, or HttpHeaders.- Specified by:
injectin interfaceValueInjector- Returns:
-
-