Package org.jboss.resteasy.core
Class PrefixedFormInjector
- java.lang.Object
 - 
- org.jboss.resteasy.core.FormInjector
 - 
- org.jboss.resteasy.core.PrefixedFormInjector
 
 
 
- 
- All Implemented Interfaces:
 ValueInjector
- Direct Known Subclasses:
 AbstractCollectionFormInjector
public class PrefixedFormInjector extends FormInjector
Extension ofFormInjectorthat handles prefixes for associated classes. 
- 
- 
Constructor Summary
Constructors Constructor Description PrefixedFormInjector(Class type, String prefix, ResteasyProviderFactory factory)Constructor setting the prefix. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectdoInject(String prefix, HttpRequest request, HttpResponse response, boolean unwrapAsync)Calls the superinject(org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.HttpResponse, boolean)method.protected booleanhasValue(List<String> list)Checks that the list has an non empty value.Objectinject(HttpRequest request, HttpResponse response, boolean unwrapAsync)Inject inside the context of an HTTP request.- 
Methods inherited from class org.jboss.resteasy.core.FormInjector
inject 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
PrefixedFormInjector
public PrefixedFormInjector(Class type, String prefix, ResteasyProviderFactory factory)
Constructor setting the prefix.- Parameters:
 type- type classprefix- prefixfactory- provider factory
 
 - 
 
- 
Method Detail
- 
inject
public Object inject(HttpRequest request, HttpResponse response, boolean unwrapAsync)
Inject inside the context of an HTTP request. Wraps the request in a- Specified by:
 injectin interfaceValueInjector- Overrides:
 injectin classFormInjector- Parameters:
 request- http requestresponse- http responseunwrapAsync- unwrap async- Returns:
 - object
 
 
- 
doInject
protected Object doInject(String prefix, HttpRequest request, HttpResponse response, boolean unwrapAsync)
Calls the superinject(org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.HttpResponse, boolean)method.- Parameters:
 prefix- prefixrequest- http requestresponse- http responseunwrapAsync- unwrap async- Returns:
 - injector instance
 
 
 - 
 
 -