RESTEasy JAX-RS Implementation 2.3.6.Final-redhat-1

org.jboss.resteasy.core
Class MapFormInjector

java.lang.Object
  extended by org.jboss.resteasy.core.FormInjector
      extended by org.jboss.resteasy.core.PrefixedFormInjector
          extended by org.jboss.resteasy.core.AbstractCollectionFormInjector<Map>
              extended by org.jboss.resteasy.core.MapFormInjector
All Implemented Interfaces:
ValueInjector

public class MapFormInjector
extends AbstractCollectionFormInjector<Map>

Can inject maps.


Constructor Summary
MapFormInjector(Class collectionType, Class keyType, Class valueType, String prefix, ResteasyProviderFactory factory)
          Constructor.
 
Method Summary
protected  void addTo(Map collection, String key, Object value)
          Adds the item to the collection.
protected  Map createInstance(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapFormInjector

public MapFormInjector(Class collectionType,
                       Class keyType,
                       Class valueType,
                       String prefix,
                       ResteasyProviderFactory factory)
Constructor.

Method Detail

createInstance

protected Map createInstance(Class collectionType)
Creates an instance of the collection type.

Specified by:
createInstance in class AbstractCollectionFormInjector<Map>

addTo

protected void addTo(Map collection,
                     String key,
                     Object value)
Adds the item to the collection.

Specified by:
addTo in class AbstractCollectionFormInjector<Map>

RESTEasy JAX-RS Implementation 2.3.6.Final-redhat-1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.