Package church.i18n.processing.message
Class ProcessingMessageAbstractBuilder<T extends ProcessingMessageBuilderMethods<T>>
java.lang.Object
church.i18n.processing.message.ProcessingMessageAbstractBuilder<T>
- Type Parameters:
T- Type of implemented builder for a more specific implementation.
- All Implemented Interfaces:
ProcessingMessageBuilderMethods<T>
- Direct Known Subclasses:
ProcessingExceptionOptionalBuilder,ProcessingMessageDefaultBuilder,ProcessingMessageOptionalBuilder
public class ProcessingMessageAbstractBuilder<T extends ProcessingMessageBuilderMethods<T>>
extends Object
implements ProcessingMessageBuilderMethods<T>
Generic builder content for Processing message.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @NotNull List<ContextInfo> protected @Nullable URIprotected final @NotNull I18nMessageprotected @NotNull MessageTypeprotected @Nullable SecurityLevel -
Constructor Summary
ConstructorsConstructorDescriptionProcessingMessageAbstractBuilder(@NotNull I18nMessage message) ProcessingMessageAbstractBuilder(@NotNull ProcessingMessage processingMessage) ProcessingMessageAbstractBuilder(@NotNull String code, @Nullable Object... params) -
Method Summary
Modifier and TypeMethodDescriptionaddContextInfo(@Nullable ContextInfo... contextInfo) Add contextual information to the message.addContextInfo(@Nullable List<ContextInfo> contextInfo) Add additional contextual information bounded to message.booleaninthashCode()@NotNull StringtoString()withHelpUri(@NotNull String helpUri) Help URI associated with this message that may help receiver to find more information about the problem, better understand it and resolve it quickly.withHelpUri(@Nullable URI helpUri) Help URI associated with this message that may help receiver to find more information about the problem, better understand it and resolve it quickly.withMessageType(@NotNull MessageType messageType) Type of message, such as severity or message status.withSecurityLevel(@Nullable SecurityLevel securityLevel) Specify security level of information in message.
-
Field Details
-
message
-
contextInfo
-
helpUri
-
messageType
-
securityLevel
-
-
Constructor Details
-
ProcessingMessageAbstractBuilder
-
ProcessingMessageAbstractBuilder
-
ProcessingMessageAbstractBuilder
-
-
Method Details
-
addContextInfo
Description copied from interface:ProcessingMessageBuilderMethodsAdd additional contextual information bounded to message. It appends this contextual information to all previously added contextual information.- Specified by:
addContextInfoin interfaceProcessingMessageBuilderMethods<T extends ProcessingMessageBuilderMethods<T>>- Parameters:
contextInfo- Contextual information you want to provide together with the message.- Returns:
- An instance of an
ProcessingMessageBuilderMethodswith appended contextual information.
-
addContextInfo
Description copied from interface:ProcessingMessageBuilderMethodsAdd contextual information to the message.- Specified by:
addContextInfoin interfaceProcessingMessageBuilderMethods<T extends ProcessingMessageBuilderMethods<T>>- Parameters:
contextInfo- Additional contextual information appended to message.- Returns:
- An instance of an
ProcessingMessageBuilderMethodswith appended contextual information.
-
withHelpUri
Description copied from interface:ProcessingMessageBuilderMethodsHelp URI associated with this message that may help receiver to find more information about the problem, better understand it and resolve it quickly. It can be reference to the documentation, KB or other article describing problem.- Specified by:
withHelpUriin interfaceProcessingMessageBuilderMethods<T extends ProcessingMessageBuilderMethods<T>>- Parameters:
helpUri- Resource identifier.- Returns:
- An instance of an
ProcessingMessageBuilderMethodswith appended contextual information.
-
withHelpUri
Description copied from interface:ProcessingMessageBuilderMethodsHelp URI associated with this message that may help receiver to find more information about the problem, better understand it and resolve it quickly. It can be reference to the documentation, KB or other article describing problem.- Specified by:
withHelpUriin interfaceProcessingMessageBuilderMethods<T extends ProcessingMessageBuilderMethods<T>>- Parameters:
helpUri- Resource identifier.- Returns:
- An instance of an
ProcessingMessageBuilderMethodswith appended contextual information.
-
withSecurityLevel
Description copied from interface:ProcessingMessageBuilderMethodsSpecify security level of information in message.- Specified by:
withSecurityLevelin interfaceProcessingMessageBuilderMethods<T extends ProcessingMessageBuilderMethods<T>>- Parameters:
securityLevel- Security level of information in message.- Returns:
- An instance of an
ProcessingMessageBuilderMethodswith appended contextual information.
-
withMessageType
Description copied from interface:ProcessingMessageBuilderMethodsType of message, such as severity or message status. For more information seeMessageStatusorMessageSeverity.- Specified by:
withMessageTypein interfaceProcessingMessageBuilderMethods<T extends ProcessingMessageBuilderMethods<T>>- Parameters:
messageType- The type of this message.- Returns:
- An instance of an
ProcessingMessageBuilderMethodswith appended contextual information.
-
hashCode
public int hashCode() -
equals
-
toString
-