Package org.eclipse.jetty.http
Class MetaData.Response
- java.lang.Object
-
- org.eclipse.jetty.http.MetaData
-
- org.eclipse.jetty.http.MetaData.Response
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.http.MetaData
MetaData.Request, MetaData.Response
-
-
Constructor Summary
Constructors Constructor Description Response()
Response(HttpVersion version, int status, java.lang.String reason, HttpFields fields, long contentLength)
Response(HttpVersion version, int status, HttpFields fields)
Response(HttpVersion version, int status, HttpFields fields, long contentLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getReason()
int
getStatus()
boolean
isResponse()
void
setReason(java.lang.String reason)
void
setStatus(int status)
java.lang.String
toString()
-
Methods inherited from class org.eclipse.jetty.http.MetaData
getContentLength, getFields, getHttpVersion, getTrailerSupplier, getVersion, isRequest, iterator, recycle, setContentLength, setHttpVersion, setTrailerSupplier
-
-
-
-
Constructor Detail
-
Response
public Response()
-
Response
public Response(HttpVersion version, int status, HttpFields fields)
-
Response
public Response(HttpVersion version, int status, HttpFields fields, long contentLength)
-
Response
public Response(HttpVersion version, int status, java.lang.String reason, HttpFields fields, long contentLength)
-
-
Method Detail
-
isResponse
public boolean isResponse()
- Overrides:
isResponse
in classMetaData
-
getStatus
public int getStatus()
- Returns:
- the HTTP status
-
getReason
public java.lang.String getReason()
- Returns:
- the HTTP reason
-
setStatus
public void setStatus(int status)
- Parameters:
status
- the HTTP status to set
-
setReason
public void setReason(java.lang.String reason)
- Parameters:
reason
- the HTTP reason to set
-
-