Class FormFieldDirectives

    • Constructor Detail

      • FormFieldDirectives

        public FormFieldDirectives()
    • Method Detail

      • formField

        public Route formField​(java.lang.String name,
                               java.util.function.Function<java.lang.String,​Route> inner)
      • formField

        public <T> Route formField​(Unmarshaller<java.lang.String,​T> t,
                                   java.lang.String name,
                                   java.util.function.Function<T,​Route> inner)
      • formFieldList

        public Route formFieldList​(java.lang.String name,
                                   java.util.function.Function<java.util.List<java.lang.String>,​Route> inner)
      • formFieldList

        public <T> Route formFieldList​(Unmarshaller<java.lang.String,​T> t,
                                       java.lang.String name,
                                       java.util.function.Function<java.util.List<T>,​Route> inner)
      • formFieldList

        public Route formFieldList​(java.util.function.Function<java.util.List<java.util.Map.Entry<java.lang.String,​java.lang.String>>,​Route> inner)
        Extracts HTTP form fields from the request as a Map.Entry>.
        Parameters:
        inner - (undocumented)
        Returns:
        (undocumented)
      • formFieldMap

        public Route formFieldMap​(java.util.function.Function<java.util.Map<java.lang.String,​java.lang.String>,​Route> inner)
        Extracts HTTP form fields from the request as a Map.
        Parameters:
        inner - (undocumented)
        Returns:
        (undocumented)
      • formFieldMultiMap

        public Route formFieldMultiMap​(java.util.function.Function<java.util.Map<java.lang.String,​java.util.List<java.lang.String>>,​Route> inner)
        Extracts HTTP form fields from the request as a Map>.
        Parameters:
        inner - (undocumented)
        Returns:
        (undocumented)
      • formFieldOptional

        public Route formFieldOptional​(java.lang.String name,
                                       java.util.function.Function<java.util.Optional<java.lang.String>,​Route> inner)
      • formFieldOptional

        public <T> Route formFieldOptional​(Unmarshaller<java.lang.String,​T> t,
                                           java.lang.String name,
                                           java.util.function.Function<java.util.Optional<T>,​Route> inner)