Package org.eclipse.jetty.http
Class MetaData
- java.lang.Object
-
- org.eclipse.jetty.http.MetaData
-
- All Implemented Interfaces:
java.lang.Iterable<HttpField>
- Direct Known Subclasses:
MetaData.Request,MetaData.Response
@Deprecated(since="2021-05-27") public class MetaData extends java.lang.Object implements java.lang.Iterable<HttpField>
Deprecated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetaData.RequestDeprecated.static classMetaData.ResponseDeprecated.
-
Constructor Summary
Constructors Constructor Description MetaData(HttpVersion version, HttpFields fields)Deprecated.MetaData(HttpVersion version, HttpFields fields, long contentLength)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longgetContentLength()Deprecated.HttpFieldsgetFields()Deprecated.HttpVersiongetHttpVersion()Deprecated.java.util.function.Supplier<HttpFields>getTrailerSupplier()Deprecated.HttpVersiongetVersion()Deprecated.usegetHttpVersion()insteadbooleanisRequest()Deprecated.booleanisResponse()Deprecated.java.util.Iterator<HttpField>iterator()Deprecated.voidsetContentLength(long contentLength)Deprecated.voidsetHttpVersion(HttpVersion httpVersion)Deprecated.voidsetTrailerSupplier(java.util.function.Supplier<HttpFields> trailers)Deprecated.java.lang.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
MetaData
public MetaData(HttpVersion version, HttpFields fields)
Deprecated.
-
MetaData
public MetaData(HttpVersion version, HttpFields fields, long contentLength)
Deprecated.
-
-
Method Detail
-
isRequest
public boolean isRequest()
Deprecated.
-
isResponse
public boolean isResponse()
Deprecated.
-
getVersion
@Deprecated public HttpVersion getVersion()
Deprecated.usegetHttpVersion()instead- Returns:
- the HTTP version of this MetaData object
-
getHttpVersion
public HttpVersion getHttpVersion()
Deprecated.- Returns:
- the HTTP version of this MetaData object
-
setHttpVersion
public void setHttpVersion(HttpVersion httpVersion)
Deprecated.- Parameters:
httpVersion- the HTTP version to set
-
getFields
public HttpFields getFields()
Deprecated.- Returns:
- the HTTP fields of this MetaData object
-
getTrailerSupplier
public java.util.function.Supplier<HttpFields> getTrailerSupplier()
Deprecated.
-
setTrailerSupplier
public void setTrailerSupplier(java.util.function.Supplier<HttpFields> trailers)
Deprecated.
-
getContentLength
public long getContentLength()
Deprecated.- Returns:
- the content length if available, otherwise
Long.MIN_VALUE
-
setContentLength
public void setContentLength(long contentLength)
Deprecated.
-
iterator
public java.util.Iterator<HttpField> iterator()
Deprecated.- Specified by:
iteratorin interfacejava.lang.Iterable<HttpField>- Returns:
- an iterator over the HTTP fields
- See Also:
getFields()
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-