Class ErrorMessageSanitizer
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.ErrorMessageSanitizer
-
public class ErrorMessageSanitizer extends Object
This class can be used to replace some paths in error messages with another string. This class is not thread safe.
-
-
Constructor Summary
Constructors Constructor Description ErrorMessageSanitizer(String path, String replacement)
Creates sanitizer with path to sanitize.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSanitizedPath(String path, String replacement)
Registers new path to sanitize.String
sanitize(String message)
Collection<String>
sanitize(Collection<String> messages)
-
-
-
Method Detail
-
addSanitizedPath
public void addSanitizedPath(@NotNull String path, @NotNull String replacement)
Registers new path to sanitize.- Parameters:
path
- path to remove from messagesreplacement
- replacement for removed path
-
sanitize
@NotNull public Collection<String> sanitize(@NotNull Collection<String> messages)
-
-