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
Handler
handle
in interface Handler
request
- the requestresponse
- the responseIOException
- in case of I/O errorsCopyright © 2018 Pivotal Software, Inc.. All rights reserved.