Class HttpFields.MutableHttpFields

java.lang.Object
org.eclipse.jetty.http.HttpFields.MutableHttpFields
All Implemented Interfaces:
Iterable<HttpField>, Supplier<HttpFields>, HttpFields, HttpFields.Mutable
Direct Known Subclasses:
HttpTester.Message
Enclosing interface:
HttpFields

public static class HttpFields.MutableHttpFields extends Object implements HttpFields.Mutable
HTTP Fields. A collection of HTTP header and or Trailer fields.

This class is not synchronized as it is expected that modifications will only be performed by a single thread.

The cookie handling provided by this class is guided by the Servlet specification and RFC6265.

  • Constructor Details

    • MutableHttpFields

      protected MutableHttpFields()
      Initialize an empty HttpFields.
    • MutableHttpFields

      protected MutableHttpFields(int capacity)
      Initialize an empty HttpFields.
      Parameters:
      capacity - the capacity of the http fields
    • MutableHttpFields

      protected MutableHttpFields(HttpFields fields)
      Initialize HttpFields from another.
      Parameters:
      fields - the fields to copy data from
    • MutableHttpFields

      protected MutableHttpFields(HttpFields fields, HttpField replaceField)
      Initialize HttpFields from another and replace a field
      Parameters:
      fields - the fields to copy data from
      replaceField - the replacement field
    • MutableHttpFields

      protected MutableHttpFields(HttpFields fields, EnumSet<HttpHeader> removeFields)
      Initialize HttpFields from another and remove fields
      Parameters:
      fields - the fields to copy data from
      removeFields - the the fields to remove
  • Method Details