|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.craftforge.essential.context.basic.BasicResponseImpl
public class BasicResponseImpl
A basic implementation of a controller response.
| Constructor Summary | |
|---|---|
BasicResponseImpl(OutputStream outputStream)
Creates a basic response. |
|
| Method Summary | |
|---|---|
OutputStream |
getBodyOutputStream()
Gets the output stream for streaming the response body. |
Map<String,String[]> |
getHeaders()
Gets the HTTP headers of this response. |
HttpStatusCode |
getStatusCode()
Gets the HTTP status code of this response. |
void |
sendHeaders(HttpStatusCode httpStatusCode,
Map<String,String[]> headers)
Sends the response headers and sets the HTTP response status. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicResponseImpl(OutputStream outputStream)
outputStream - The HTTP response body output stream.| Method Detail |
|---|
public void sendHeaders(HttpStatusCode httpStatusCode,
Map<String,String[]> headers)
getBodyStream();
sendHeaders in interface ResponsehttpStatusCode - The response statusheaders - The response headerspublic HttpStatusCode getStatusCode()
getStatusCode in interface Responsepublic Map<String,String[]> getHeaders()
getHeaders in interface Responsepublic OutputStream getBodyOutputStream()
getBodyOutputStream in interface Response
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||