Class DefaultPromptTestConnectionRetVal
- java.lang.Object
-
- de.xima.fc.prompt.service.defaults.DefaultPromptTestConnectionRetVal
-
public final class DefaultPromptTestConnectionRetVal extends Object
Default POJO implementation ofIPromptTestConnectionRetVal.- Since:
- 8.5.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IPromptTestConnectionRetValofFailure(String... errors)Creates a new instance ofDefaultPromptTestConnectionRetValfor a failed connection test.static IPromptTestConnectionRetValofFailure(List<String> errors)Creates a new instance ofDefaultPromptTestConnectionRetValfor a failed connection test.static IPromptTestConnectionRetValofSuccess(String... messages)Creates a new instance ofDefaultPromptTestConnectionRetValfor a successful connection test.
-
-
-
Method Detail
-
ofFailure
public static IPromptTestConnectionRetVal ofFailure(List<String> errors)
Creates a new instance ofDefaultPromptTestConnectionRetValfor a failed connection test.- Parameters:
errors- The list of error messages that describe the failure.- Returns:
- A new POJO instance indicating a failed connection test.
-
ofFailure
public static IPromptTestConnectionRetVal ofFailure(String... errors)
Creates a new instance ofDefaultPromptTestConnectionRetValfor a failed connection test.- Parameters:
errors- An optional list of error messages that describe the failure.- Returns:
- A new POJO instance indicating a failed connection test.
-
ofSuccess
public static IPromptTestConnectionRetVal ofSuccess(String... messages)
Creates a new instance ofDefaultPromptTestConnectionRetValfor a successful connection test.- Parameters:
messages- An optional list of informational messages that describe the test outcome.- Returns:
- A new POJO instance indicating a successful connection test.
-
-