Package com.io7m.idstore.server.user_v1
Class IdUCB1Sends
java.lang.Object
com.io7m.idstore.server.user_v1.IdUCB1Sends
- All Implemented Interfaces:
com.io7m.repetoir.core.RPServiceType
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, Map<String, String> attributes, Optional<String> remediatingAction) 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, Map<String, String> attributes, Optional<String> remediatingAction) throws IOExceptionSend an error message.- Parameters:
response- The servlet responserequestId- The request IDstatusCode- The HTTP status codeerrorCode- The error codemessage- The messageremediatingAction- The remediating action, if anyattributes- The attributes- 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 interfacecom.io7m.repetoir.core.RPServiceType
-
toString
-