Package org.eclipse.jetty.http
Class MetaData
java.lang.Object
org.eclipse.jetty.http.MetaData
- Direct Known Subclasses:
MetaData.Request
,MetaData.Response
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Constructor Summary
ConstructorDescriptionMetaData
(HttpVersion version, HttpFields fields) MetaData
(HttpVersion version, HttpFields fields, long contentLength) MetaData
(HttpVersion version, HttpFields fields, long contentLength, Supplier<HttpFields> trailerSupplier) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
MetaData
-
MetaData
-
MetaData
public MetaData(HttpVersion version, HttpFields fields, long contentLength, Supplier<HttpFields> trailerSupplier)
-
-
Method Details
-
isTunnel
Returns whether the given HTTP request method and HTTP response status code identify a successful HTTP CONNECT tunnel.
- Parameters:
method
- the HTTP request methodstatus
- 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
- Returns:
- the HTTP version of this MetaData object
-
getFields
- Returns:
- the HTTP fields of this MetaData object
-
getTrailerSupplier
-
getContentLength
public long getContentLength() -
iterator
-
toString
-