Class ModeledCustomHeaderFactory<H extends ModeledCustomHeader>

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      H create​(java.lang.String value)
      Creates a new ModeledCustomHeader from the value checking that the format is correct.
      java.util.Optional<H> from​(HttpHeader header)
      Transforms an HttpHeader to this ModeledCustomHeader if the name and value are correct.
      java.lang.String lowercaseName()  
      abstract java.lang.String name()  
      protected abstract H parse​(java.lang.String value)
      Parses the value checking that the format is correct.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ModeledCustomHeaderFactory

        public ModeledCustomHeaderFactory()
    • Method Detail

      • name

        public abstract java.lang.String name()
      • lowercaseName

        public java.lang.String lowercaseName()
      • parse

        protected abstract H parse​(java.lang.String value)
        Parses the value checking that the format is correct. It may throw if value is not correct
      • create

        public H create​(java.lang.String value)
        Creates a new ModeledCustomHeader from the value checking that the format is correct. It may throw if value is not correct
      • from

        public java.util.Optional<H> from​(HttpHeader header)
        Transforms an HttpHeader to this ModeledCustomHeader if the name and value are correct. It may throw in case of malformed headers