Package org.eclipse.jetty.http
Class MetaData
- java.lang.Object
-
- org.eclipse.jetty.http.MetaData
-
- Direct Known Subclasses:
MetaData.Request,MetaData.Response
@Deprecated(since="2021-05-27") public class MetaData extends Object implements 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.Supplier<HttpFields>getTrailerSupplier()Deprecated.HttpVersiongetVersion()Deprecated.usegetHttpVersion()insteadbooleanisRequest()Deprecated.booleanisResponse()Deprecated.Iterator<HttpField>iterator()Deprecated.voidsetContentLength(long contentLength)Deprecated.voidsetHttpVersion(HttpVersion httpVersion)Deprecated.voidsetTrailerSupplier(Supplier<HttpFields> trailers)Deprecated.StringtoString()Deprecated.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
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 Supplier<HttpFields> getTrailerSupplier()
Deprecated.
-
setTrailerSupplier
public void setTrailerSupplier(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 Iterator<HttpField> iterator()
Deprecated.- Specified by:
iteratorin interfaceIterable<HttpField>- Returns:
- an iterator over the HTTP fields
- See Also:
getFields()
-
-