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 -
Constructor Summary
ConstructorsConstructorDescriptionMetaData(HttpVersion version, HttpFields fields) MetaData(HttpVersion version, HttpFields fields, long contentLength) -
Method Summary
Modifier and TypeMethodDescriptionlongDeprecated.booleanbooleaniterator()protected voidrecycle()voidsetContentLength(long contentLength) voidsetHttpVersion(HttpVersion httpVersion) voidsetTrailerSupplier(Supplier<HttpFields> trailers) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
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