- java.lang.Object
-
- io.helidon.webserver.DirectHandler.TransportResponse
-
- Enclosing interface:
- DirectHandler
public static class DirectHandler.TransportResponse extends Object
Response to correctly reply to the original client.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DirectHandler.TransportResponse.Builder
Fluent API builder forDirectHandler.TransportResponse
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DirectHandler.TransportResponse.Builder
builder()
A builder to set up a custom response.static DirectHandler.TransportResponse
create(String message)
Create a response withHttp.Status.BAD_REQUEST_400
status and provided message.
-
-
-
Method Detail
-
builder
public static DirectHandler.TransportResponse.Builder builder()
A builder to set up a custom response.- Returns:
- builder
-
create
public static DirectHandler.TransportResponse create(String message)
Create a response withHttp.Status.BAD_REQUEST_400
status and provided message.- Parameters:
message
- message to send as response entity- Returns:
- a new response
-
-