Package church.i18n.processing.message
Class ProcessingMessage
java.lang.Object
church.i18n.processing.message.ProcessingMessage
- All Implemented Interfaces:
Serializable
A generic definition of a processing message that carries information processing. A typical usage
is during a processing error; however it's not bounded only to this type.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionProcessingMessage(@NotNull I18nMessage message) The constructor with the message.ProcessingMessage(@NotNull I18nMessage message, @Nullable URI helpUri, @NotNull MessageType messageType, @NotNull List<ContextInfo> contextInfo, @Nullable SecurityLevel securityLevel) ProcessingMessage(@NotNull String code, @Nullable Object... params) Constructor of a processing message -
Method Summary
Modifier and TypeMethodDescriptionboolean@NotNull List<ContextInfo> @Nullable URI@NotNull I18nMessage@NotNull MessageType@Nullable SecurityLevelinthashCode()@NotNull StringtoString()static @NotNull ProcessingMessageBuilder<ProcessingMessage> withMessage(@NotNull I18nMessage message) Create a builder ofProcessingMessagewith specifiedI18nMessagemessage.static @NotNull ProcessingMessageBuilder<ProcessingMessage> withMessage(@NotNull ProcessingMessage message) Copy constructor for theProcessingMessageobject.static @NotNull ProcessingMessageBuilder<ProcessingMessage> withMessage(@NotNull String code, @Nullable Object... params) Create a builder ofProcessingMessagewith specified message code and parameters.
-
Constructor Details
-
ProcessingMessage
Constructor of a processing message- Parameters:
code- The code reference in the localization property file.params- Parameters that needs to be provided to properly format the message with all. parameters.
-
ProcessingMessage
The constructor with the message. The message is required. As aMessageTypethe value ofDefaultMessageType.DEFAULTis used.- Parameters:
message- Raw response message that is not formatted yet.
-
ProcessingMessage
public ProcessingMessage(@NotNull @NotNull I18nMessage message, @Nullable @Nullable URI helpUri, @NotNull @NotNull MessageType messageType, @NotNull @NotNull List<ContextInfo> contextInfo, @Nullable @Nullable SecurityLevel securityLevel)
-
-
Method Details
-
withMessage
@NotNull public static @NotNull ProcessingMessageBuilder<ProcessingMessage> withMessage(@NotNull @NotNull String code, @Nullable @Nullable Object... params) Create a builder ofProcessingMessagewith specified message code and parameters.- Parameters:
code- The code reference in the localization property file.params- Parameters that needs to be provided to properly format the message with all.- Returns:
- Builder of the
ProcessingMessageobject.
-
withMessage
@NotNull public static @NotNull ProcessingMessageBuilder<ProcessingMessage> withMessage(@NotNull @NotNull I18nMessage message) Create a builder ofProcessingMessagewith specifiedI18nMessagemessage.- Parameters:
message- Raw response message that is not formatted yet.- Returns:
- Builder of the
ProcessingMessageobject.
-
withMessage
@NotNull public static @NotNull ProcessingMessageBuilder<ProcessingMessage> withMessage(@NotNull @NotNull ProcessingMessage message) Copy constructor for theProcessingMessageobject.- Parameters:
message- Response message you would like to make a copy of.- Returns:
- Builder of the
ProcessingMessageobject.
-
getContextInfo
-
getHelpUri
-
getMessage
-
getMessageType
-
getSecurityLevel
-
hashCode
public int hashCode() -
equals
-
toString
-