abstract static class DefaultServerResponseBuilder.AbstractServerResponse extends java.lang.Object implements ServerResponse
ServerResponse.BodyBuilder, ServerResponse.Context, ServerResponse.HeadersBuilder<B extends ServerResponse.HeadersBuilder<B>>
Modifier and Type | Field and Description |
---|---|
private HttpHeaders |
headers |
private HttpStatus |
statusCode |
Modifier | Constructor and Description |
---|---|
protected |
AbstractServerResponse(HttpStatus statusCode,
HttpHeaders headers) |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
headers()
Return the headers of this response.
|
private static HttpHeaders |
readOnlyCopy(HttpHeaders headers) |
HttpStatus |
statusCode()
Return the status code of this response.
|
protected void |
writeStatusAndHeaders(ServerHttpResponse response) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accepted, badRequest, created, from, noContent, notFound, ok, permanentRedirect, seeOther, status, temporaryRedirect, unprocessableEntity, writeTo
private final HttpStatus statusCode
private final HttpHeaders headers
protected AbstractServerResponse(HttpStatus statusCode, HttpHeaders headers)
private static HttpHeaders readOnlyCopy(HttpHeaders headers)
public final HttpStatus statusCode()
ServerResponse
statusCode
in interface ServerResponse
public final HttpHeaders headers()
ServerResponse
headers
in interface ServerResponse
protected void writeStatusAndHeaders(ServerHttpResponse response)