public class RouteResponse extends Object
| Constructor and Description |
|---|
RouteResponse(Type type)
Creates a new
RouteResponse. |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
description()
Get response description.
|
RouteResponse |
description(String description)
Set a description.
|
Map<Integer,String> |
status()
Get status codes.
|
Optional<String> |
status(int status)
Get a description for given status code.
|
RouteResponse |
status(Map<Integer,String> status)
Set status code map.
|
int |
statusCode()
Status code.
|
String |
toString() |
Type |
type()
Route return type.
|
RouteResponse |
type(Type type)
Set return type.
|
public RouteResponse(Type type)
RouteResponse.type - Return type.public Type type()
public RouteResponse type(Type type)
type - Type.public Optional<String> description()
public RouteResponse description(String description)
description - Description.public int statusCode()
public RouteResponse status(Map<Integer,String> status)
status - Status code map.public Optional<String> status(int status)
status - Status code.Copyright © 2021. All rights reserved.