| Constructor and Description |
|---|
StatusCodeResponse(int statusCode)
Constructor defining the status code to return.
|
| Modifier and Type | Method and Description |
|---|---|
static Response |
statusCode(int statusCode)
Factory for status code response.
|
void |
write(com.sun.net.httpserver.HttpExchange exchange)
Write a response to the given request.
|
public StatusCodeResponse(int statusCode)
statusCode - status codepublic void write(@Nonnull com.sun.net.httpserver.HttpExchange exchange) throws IOException
Responsewrite in interface Responseexchange - request to handleIOException - in case of an errorpublic static Response statusCode(int statusCode)
statusCode - status code to provide on requestCopyright © 2011-2013 CoreMedia AG. All Rights Reserved.