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 class
MetaData.Request
Deprecated.static class
MetaData.Response
Deprecated.
-
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 long
getContentLength()
Deprecated.HttpFields
getFields()
Deprecated.HttpVersion
getHttpVersion()
Deprecated.Supplier<HttpFields>
getTrailerSupplier()
Deprecated.HttpVersion
getVersion()
Deprecated.usegetHttpVersion()
insteadboolean
isRequest()
Deprecated.boolean
isResponse()
Deprecated.Iterator<HttpField>
iterator()
Deprecated.void
setContentLength(long contentLength)
Deprecated.void
setHttpVersion(HttpVersion httpVersion)
Deprecated.void
setTrailerSupplier(Supplier<HttpFields> trailers)
Deprecated.String
toString()
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:
iterator
in interfaceIterable<HttpField>
- Returns:
- an iterator over the HTTP fields
- See Also:
getFields()
-
-