|
RESTEasy JAX-RS Implementation 2.3.6.Final-redhat-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.resteasy.core.FormInjector
org.jboss.resteasy.core.PrefixedFormInjector
org.jboss.resteasy.core.AbstractCollectionFormInjector<T>
T
- The type of collection that will be created.public abstract class AbstractCollectionFormInjector<T>
Abstract implementation of NestedFormInjector
that can inject collections.
Constructor Summary | |
---|---|
protected |
AbstractCollectionFormInjector(Class collectionType,
Class genericType,
String prefix,
Pattern pattern,
ResteasyProviderFactory factory)
Creates an injector to inject a collection. |
Method Summary | |
---|---|
protected abstract void |
addTo(T collection,
String key,
Object value)
Adds the item to the collection. |
protected abstract T |
createInstance(Class collectionType)
Creates an instance of the collection type. |
Object |
inject(HttpRequest request,
HttpResponse response)
Inject inside the context of an HTTP request. |
Methods inherited from class org.jboss.resteasy.core.PrefixedFormInjector |
---|
doInject, hasValue |
Methods inherited from class org.jboss.resteasy.core.FormInjector |
---|
inject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractCollectionFormInjector(Class collectionType, Class genericType, String prefix, Pattern pattern, ResteasyProviderFactory factory)
collectionType
- The type of collection to return.genericType
- The type of elements in the collection.pattern
- The pattern that a field name should follow to be a part of this collection. The first group in the pattern must be the index.Method Detail |
---|
public Object inject(HttpRequest request, HttpResponse response)
inject
in interface ValueInjector
inject
in class PrefixedFormInjector
protected abstract T createInstance(Class collectionType)
protected abstract void addTo(T collection, String key, Object value)
|
RESTEasy JAX-RS Implementation 2.3.6.Final-redhat-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |