Class SpellCheckedMetadata

    • Constructor Detail

      • SpellCheckedMetadata

        public SpellCheckedMetadata()
    • Method Detail

      • getNormalizedName

        public static String getNormalizedName​(String name)
        Get the normalized name of metadata attribute name. This method tries to find a well-known metadata name (one of the metadata names defined in this class) that matches the specified name. The matching is error tolerant. For instance,
        • content-type gives Content-Type
        • CoNtEntType gives Content-Type
        • ConTnTtYpe gives Content-Type
        If no matching with a well-known metadata name is found, then the original name is returned.
        Parameters:
        name - HTTP header name to normalize
        Returns:
        normalized HTTP header name
      • remove

        public void remove​(String name)
        Description copied from class: Metadata
        Remove a metadata and all its associated values.
        Overrides:
        remove in class Metadata
        Parameters:
        name - metadata name to remove
      • add

        public void add​(String name,
                        String value)
        Description copied from class: Metadata
        Add a metadata name/value mapping. Add the specified value to the list of values associated to the specified metadata name.
        Overrides:
        add in class Metadata
        Parameters:
        name - the metadata name.
        value - the metadata value.
      • getValues

        public String[] getValues​(String name)
        Description copied from class: Metadata
        Get the values associated to a metadata name.
        Overrides:
        getValues in class Metadata
        Parameters:
        name - of the metadata.
        Returns:
        the values associated to a metadata name.
      • get

        public String get​(String name)
        Description copied from class: Metadata
        Get the value associated to a metadata name. If many values are associated to the specified name, then the first one is returned.
        Overrides:
        get in class Metadata
        Parameters:
        name - of the metadata.
        Returns:
        the value associated to the specified metadata name.
      • set

        public void set​(String name,
                        String value)
        Description copied from class: Metadata
        Set metadata name/value. Associate the specified value to the specified metadata name. If some previous values were associated to this name, they are removed.
        Overrides:
        set in class Metadata
        Parameters:
        name - the metadata name.
        value - the metadata value.