| Constructor and Description |
|---|
HttpStatusHandler()
Create a new
HttpStatusHandler instance that will respond with a HTTP OK 200
status. |
HttpStatusHandler(org.springframework.http.HttpStatus status)
Create a new
HttpStatusHandler instance that will respond with the specified
status. |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response)
Handle the request.
|
public HttpStatusHandler()
HttpStatusHandler instance that will respond with a HTTP OK 200
status.public HttpStatusHandler(org.springframework.http.HttpStatus status)
HttpStatusHandler instance that will respond with the specified
status.status - the statuspublic void handle(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response)
throws IOException
Handlerhandle in interface Handlerrequest - the requestresponse - the responseIOExceptionCopyright © 2015 Pivotal Software, Inc.. All rights reserved.