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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
private final HttpFields
private HttpVersion
private Supplier
<HttpFields> -
Constructor Summary
ConstructorsConstructorDescriptionMetaData
(HttpVersion version, HttpFields fields) MetaData
(HttpVersion version, HttpFields fields, long contentLength) -
Method Summary
Modifier and TypeMethodDescriptionlong
Deprecated.boolean
boolean
iterator()
protected void
recycle()
void
setContentLength
(long contentLength) void
setHttpVersion
(HttpVersion httpVersion) void
setTrailerSupplier
(Supplier<HttpFields> trailers) toString()
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
-
Field Details
-
_httpVersion
-
_fields
-
_contentLength
private long _contentLength -
_trailers
-
-
Constructor Details
-
MetaData
-
MetaData
-
-
Method Details
-
recycle
protected void recycle() -
isRequest
public boolean isRequest() -
isResponse
public boolean isResponse() -
getVersion
Deprecated.usegetHttpVersion()
instead- Returns:
- the HTTP version of this MetaData object
-
getHttpVersion
- Returns:
- the HTTP version of this MetaData object
-
setHttpVersion
- Parameters:
httpVersion
- the HTTP version to set
-
getFields
- Returns:
- the HTTP fields of this MetaData object
-
getTrailerSupplier
-
setTrailerSupplier
-
getContentLength
public long getContentLength()- Returns:
- the content length if available, otherwise
Long.MIN_VALUE
-
setContentLength
public void setContentLength(long contentLength) -
iterator
-
toString
-
getHttpVersion()
instead