Package org.eclipse.jetty.http
Class MetaData.Response
java.lang.Object
org.eclipse.jetty.http.MetaData
org.eclipse.jetty.http.MetaData.Response
- Enclosing class:
- MetaData
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.http.MetaData
MetaData.ConnectRequest, MetaData.Request, MetaData.Response
-
Constructor Summary
ConstructorDescriptionResponse
(HttpVersion version, int status, String reason, HttpFields fields, long contentLength) Response
(HttpVersion version, int status, String reason, HttpFields fields, long contentLength, Supplier<HttpFields> trailers) Response
(HttpVersion version, int status, HttpFields fields) Response
(HttpVersion version, int status, HttpFields fields, long contentLength) -
Method Summary
Methods inherited from class org.eclipse.jetty.http.MetaData
getContentLength, getFields, getHttpVersion, getTrailerSupplier, isRequest, isTunnel, iterator
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Response
-
Response
-
Response
public Response(HttpVersion version, int status, String reason, HttpFields fields, long contentLength) -
Response
public Response(HttpVersion version, int status, String reason, HttpFields fields, long contentLength, Supplier<HttpFields> trailers)
-
-
Method Details
-
isResponse
public boolean isResponse()- Overrides:
isResponse
in classMetaData
-
getStatus
public int getStatus()- Returns:
- the HTTP status
-
getReason
- Returns:
- the HTTP reason
-
toString
-