Interface MultivaluedParameterExtractor<T>

All Known Implementing Classes:
CollectionExtractor, CollectionExtractor.ListValueOf, CollectionExtractor.SetValueOf, CollectionExtractor.SortedSetValueOf, PrimitiveCharacterExtractor, PrimitiveValueOfExtractor, SingleStringValueExtractor, SingleValueExtractor, StringCollectionExtractor, StringCollectionExtractor.ListString, StringCollectionExtractor.SetString, StringCollectionExtractor.SortedSetString

public interface MultivaluedParameterExtractor<T>
Provider that converts the values of an entry of a given name from the supplied multivalued map into an object of a custom Java type.
  • Method Summary

    Modifier and Type
    Method
    Description
    extract(javax.ws.rs.core.MultivaluedMap<String,String> parameters)
    Extract the map entry identified by a name (and using the configured default value) from the supplied multivalued map.
    Default entry value (string) that will be used in case the entry is not present in the supplied multivalued map.
    Name of the parameter (map key) to be extracted from the supplied multivalued map.
  • Method Details

    • getName

      String getName()
      Name of the parameter (map key) to be extracted from the supplied multivalued map.
      Returns:
      name of the extracted parameter.
    • getDefaultValueString

      String getDefaultValueString()
      Default entry value (string) that will be used in case the entry is not present in the supplied multivalued map.
      Returns:
      default (back-up) map entry value.
    • extract

      T extract(javax.ws.rs.core.MultivaluedMap<String,String> parameters)
      Extract the map entry identified by a name (and using the configured default value) from the supplied multivalued map.
      Parameters:
      parameters - multivalued parameter map.
      Returns:
      custom Java type instance representing the extracted multivalued map entry.