Modifier and Type | Field and Description |
---|---|
InputStream |
data
Data of the response, may be null.
|
Properties |
header
Headers for the HTTP response.
|
String |
mimeType
MIME type of content, e.g.
|
String |
status
HTTP status code after processing, e.g.
|
Constructor and Description |
---|
Response()
Default constructor: response = HTTP_OK, data = mime = 'null'
|
Response(String status,
String mimeType,
InputStream data)
Basic constructor.
|
Response(String status,
String mimeType,
String txt)
Convenience method that makes an InputStream out of
given text.
|
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String name,
String value)
Adds given line to the header.
|
public String status
public String mimeType
public InputStream data
public Properties header
public Response()
public Response(String status, String mimeType, InputStream data)
Copyright © 2023. All rights reserved.