Package com.io7m.idstore.server.user_v1
Class IdUCB1Sends
java.lang.Object
com.io7m.idstore.server.user_v1.IdUCB1Sends
- All Implemented Interfaces:
IdServiceType
Convenient functions to send messages.
-
Constructor Summary
ConstructorsConstructorDescriptionIdUCB1Sends(IdUCB1Messages inMessages) Convenient functions to send messages. -
Method Summary
Modifier and TypeMethodDescriptionvoidsend(jakarta.servlet.http.HttpServletResponse response, int statusCode, IdUMessageType message) Send a message.voidsendError(jakarta.servlet.http.HttpServletResponse response, UUID requestId, int statusCode, IdErrorCode errorCode, String message) Send an error message.toString()
-
Constructor Details
-
IdUCB1Sends
Convenient functions to send messages.- Parameters:
inMessages- A message codec
-
-
Method Details
-
sendError
public void sendError(jakarta.servlet.http.HttpServletResponse response, UUID requestId, int statusCode, IdErrorCode errorCode, String message) throws IOException Send an error message.- Parameters:
response- The servlet responserequestId- The request IDstatusCode- The HTTP status codeerrorCode- The error codemessage- The message- Throws:
IOException- On errors
-
send
public void send(jakarta.servlet.http.HttpServletResponse response, int statusCode, IdUMessageType message) throws IOException Send a message.- Parameters:
response- The servlet responsestatusCode- The HTTP status codemessage- The message- Throws:
IOException- On errors
-
description
- Specified by:
descriptionin interfaceIdServiceType- Returns:
- The service description
-
toString
-