public interface Response
Modifier and Type | Method and Description |
---|---|
void |
addHeaderField(String name,
String value)
Add an HTTP header to the response.
|
OutputStream |
getOutputStream()
Return outputstream response should be written to.
|
int |
getStatus()
Get the status code from this response.
|
void |
setStatus(int statusCode)
Set status code.
|
void |
setStatus(int statusCode,
String reason)
Set status code.
|
OutputStream getOutputStream()
void setStatus(int statusCode)
statusCode
- should be valid http status ie. 200, 404,void setStatus(int statusCode, String reason)
statusCode
- should be valid http status ie. 200, 404,reason
- text string explaining status ie. OK, not found,void addHeaderField(String name, String value)
name
- Name of the header, e.g. Last-Modified-Datevalue
- The value of the headerint getStatus()
Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.