public interface RunningHTTPResponse
| Modifier and Type | Method and Description |
|---|---|
void |
addHTTPHeader(java.lang.String key,
java.lang.String value)
Gets the value of a header, given its key.
|
java.lang.String |
getContentAsString()
Returns the content as a string.
|
java.util.Set<HTTPHeader> |
getHTTPHeaders()
Returns all of the headers.
|
java.lang.String |
getStatusLine()
Gets the status line for the response.
|
void |
removeHTTPHeader(java.lang.String key,
java.lang.String value)
Removes an HTTPHeader.
|
void |
setContent(byte[] bContent)
Sets the main body of content.
|
void |
setContentAsString(java.lang.String newContent)
Sets the main body of content.
|
void |
setStatusLine(java.lang.String statusLine)
Sets the status line for the response.
|
@Nullable java.lang.String getContentAsString()
void setContent(byte[] bContent)
bContent - An array of bytes containing the content.void setContentAsString(java.lang.String newContent)
newContent - The content to set, as a Stringvoid addHTTPHeader(java.lang.String key,
java.lang.String value)
key - The name of the headervalue - The value of the headervoid removeHTTPHeader(java.lang.String key,
java.lang.String value)
key - The name of the headervalue - The value of the headerjava.util.Set<HTTPHeader> getHTTPHeaders()
Hashtable containing the headers.@Nullable java.lang.String getStatusLine()
void setStatusLine(java.lang.String statusLine)
statusLine - The status line.