Class MetaData

java.lang.Object
org.eclipse.jetty.http.MetaData
All Implemented Interfaces:
Iterable<HttpField>
Direct Known Subclasses:
MetaData.Request, MetaData.Response

public class MetaData extends Object implements Iterable<HttpField>
  • Constructor Details

  • Method Details

    • isTunnel

      public static boolean isTunnel(String method, int status)

      Returns whether the given HTTP request method and HTTP response status code identify a successful HTTP CONNECT tunnel.

      Parameters:
      method - the HTTP request method
      status - the HTTP response status code
      Returns:
      whether method and status identify a successful HTTP CONNECT tunnel
    • isRequest

      public boolean isRequest()
    • isResponse

      public boolean isResponse()
    • getHttpVersion

      public HttpVersion getHttpVersion()
      Returns:
      the HTTP version of this MetaData object
    • getFields

      public HttpFields getFields()
      Returns:
      the HTTP fields of this MetaData object
    • getTrailerSupplier

      public Supplier<HttpFields> getTrailerSupplier()
    • getContentLength

      public long getContentLength()
    • iterator

      public Iterator<HttpField> iterator()
      Specified by:
      iterator in interface Iterable<HttpField>
    • toString

      public String toString()
      Overrides:
      toString in class Object