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 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.java.util.function.Supplier<HttpFields>
getTrailerSupplier()
Deprecated.HttpVersion
getVersion()
Deprecated.usegetHttpVersion()
insteadboolean
isRequest()
Deprecated.boolean
isResponse()
Deprecated.java.util.Iterator<HttpField>
iterator()
Deprecated.void
setContentLength(long contentLength)
Deprecated.void
setHttpVersion(HttpVersion httpVersion)
Deprecated.void
setTrailerSupplier(java.util.function.Supplier<HttpFields> trailers)
Deprecated.java.lang.String
toString()
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:
iterator
in interfacejava.lang.Iterable<HttpField>
- Returns:
- an iterator over the HTTP fields
- See Also:
getFields()
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-