Class StatusOnlyResponse
java.lang.Object
io.github.grumpystuff.grumpyrest.response.standard.StatusOnlyResponse
- All Implemented Interfaces:
Response
Sends an empty response with a configurable HTTP status code.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidtransmit(ResponseTransmitter responseTransmitter) Transmits this response using the specified response transmitter.
-
Constructor Details
-
StatusOnlyResponse
public StatusOnlyResponse(int status) Constructor.- Parameters:
status- the HTTP status code
-
-
Method Details
-
transmit
Description copied from interface:ResponseTransmits this response using the specified response transmitter.Note: This method only takes the response transmitter. If the implementation has to access other things from the
RequestCycleto transmit itself, e.g. access request parameters on-the-fly, then these things have to be passed to the implementation by another mechanism. This interface tries to keep the dependency between the two minimal.
-