Interface HttpHeaderManager

  • All Known Implementing Classes:
    DefaultHttpHeaderManager

    public interface HttpHeaderManager
    The HttpHeaderManager API.
    Author:
    Manfred Riem (mriem@manorrock.com)
    • Method Detail

      • addHeader

        void addHeader​(String name,
                       String value)
        Add the header.
        Parameters:
        name - the name.
        value - the value.
      • containsHeader

        boolean containsHeader​(String name)
        Contains the given header.
        Parameters:
        name - the header name.
        Returns:
        true if there, false otherwise.
      • getHeader

        String getHeader​(String name)
        Get the header.
        Parameters:
        name - the header name.
        Returns:
        the header value.
      • getHeaderNames

        Enumeration<String> getHeaderNames()
        Get the header names.
        Returns:
        the header names.
      • getHeaders

        Enumeration<String> getHeaders​(String name)
        Get the headers.
        Parameters:
        name - the header name.
        Returns:
        the header values.
      • setHeader

        void setHeader​(String name,
                       String value)
        Set the header.
        Parameters:
        name - the name.
        value - the value (string).