Package org.jboss.resteasy.core
Class MapFormInjector
- java.lang.Object
-
- org.jboss.resteasy.core.FormInjector
-
- org.jboss.resteasy.core.PrefixedFormInjector
-
- org.jboss.resteasy.core.AbstractCollectionFormInjector<java.util.Map>
-
- org.jboss.resteasy.core.MapFormInjector
-
- All Implemented Interfaces:
ValueInjector
public class MapFormInjector extends AbstractCollectionFormInjector<java.util.Map>
Can inject maps.
-
-
Field Summary
Fields Modifier and Type Field Description private StringParameterInjector
keyInjector
-
Constructor Summary
Constructors Constructor Description MapFormInjector(java.lang.Class collectionType, java.lang.Class keyType, java.lang.Class valueType, java.lang.String prefix, ResteasyProviderFactory factory)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addTo(java.util.Map collection, java.lang.String key, java.lang.Object value)
Adds the item to the collection.protected java.util.Map
createInstance(java.lang.Class collectionType)
Creates an instance of the collection type.-
Methods inherited from class org.jboss.resteasy.core.AbstractCollectionFormInjector
inject
-
Methods inherited from class org.jboss.resteasy.core.PrefixedFormInjector
doInject, hasValue
-
Methods inherited from class org.jboss.resteasy.core.FormInjector
inject
-
-
-
-
Field Detail
-
keyInjector
private final StringParameterInjector keyInjector
-
-
Constructor Detail
-
MapFormInjector
public MapFormInjector(java.lang.Class collectionType, java.lang.Class keyType, java.lang.Class valueType, java.lang.String prefix, ResteasyProviderFactory factory)
Constructor.
-
-
Method Detail
-
createInstance
protected java.util.Map createInstance(java.lang.Class collectionType)
Creates an instance of the collection type.- Specified by:
createInstance
in classAbstractCollectionFormInjector<java.util.Map>
-
addTo
protected void addTo(java.util.Map collection, java.lang.String key, java.lang.Object value)
Adds the item to the collection.- Specified by:
addTo
in classAbstractCollectionFormInjector<java.util.Map>
-
-