Class ErrorBundle
java.lang.Object
org.bouncycastle.pkix.util.LocalizedMessage
org.bouncycastle.pkix.util.TextBundle
org.bouncycastle.pkix.util.MessageBundle
org.bouncycastle.pkix.util.ErrorBundle
-
Nested Class Summary
Nested classes/interfaces inherited from class LocalizedMessage
LocalizedMessage.FilteredArguments -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdetail entry keystatic final Stringsummary entry keyFields inherited from class MessageBundle
TITLE_ENTRYFields inherited from class TextBundle
TEXT_ENTRYFields inherited from class LocalizedMessage
arguments, DEFAULT_ENCODING, encoding, extraArgs, filter, id, loader, resource -
Constructor Summary
ConstructorsConstructorDescriptionErrorBundle(String resource, String id) Constructs a new ErrorBundle usingresourceas the base name for the RessourceBundle andidas the message bundle id the resource file.ErrorBundle(String resource, String id, Object[] arguments) Constructs a new ErrorBundle usingresourceas the base name for the RessourceBundle andidas the message bundle id the resource file.ErrorBundle(String resource, String id, String encoding) Constructs a new ErrorBundle usingresourceas the base name for the RessourceBundle andidas the message bundle id the resource file.ErrorBundle(String resource, String id, String encoding, Object[] arguments) Constructs a new ErrorBundle usingresourceas the base name for the RessourceBundle andidas the message bundle id the resource file. -
Method Summary
Modifier and TypeMethodDescriptionReturns the detail message in the given locale and the default timezone.Returns the detail message in the given locale and timezone.getSummary(Locale loc) Returns the summary message in the given locale and the default timezone.getSummary(Locale loc, TimeZone timezone) Returns the summary message in the given locale and timezone.Methods inherited from class MessageBundle
getTitle, getTitleMethods inherited from class TextBundle
getText, getTextMethods inherited from class LocalizedMessage
addExtraArgs, formatWithTimeZone, getArguments, getClassLoader, getEntry, getExtraArgs, getFilter, getId, getResource, setClassLoader, setExtraArgument, setExtraArguments, setFilter, toString
-
Field Details
-
SUMMARY_ENTRY
-
DETAIL_ENTRY
-
-
Constructor Details
-
ErrorBundle
Constructs a new ErrorBundle usingresourceas the base name for the RessourceBundle andidas the message bundle id the resource file.- Parameters:
resource- base name of the resource fileid- the id of the corresponding bundle in the resource file- Throws:
NullPointerException- ifresourceoridisnull
-
ErrorBundle
public ErrorBundle(String resource, String id, String encoding) throws NullPointerException, UnsupportedEncodingException Constructs a new ErrorBundle usingresourceas the base name for the RessourceBundle andidas the message bundle id the resource file.- Parameters:
resource- base name of the resource fileid- the id of the corresponding bundle in the resource fileencoding- the encoding of the resource file- Throws:
NullPointerException- ifresourceoridisnullUnsupportedEncodingException- if the encoding is not supported
-
ErrorBundle
Constructs a new ErrorBundle usingresourceas the base name for the RessourceBundle andidas the message bundle id the resource file.- Parameters:
resource- base name of the resource fileid- the id of the corresponding bundle in the resource filearguments- an array containing the arguments for the message- Throws:
NullPointerException- ifresourceoridisnull
-
ErrorBundle
public ErrorBundle(String resource, String id, String encoding, Object[] arguments) throws NullPointerException, UnsupportedEncodingException Constructs a new ErrorBundle usingresourceas the base name for the RessourceBundle andidas the message bundle id the resource file.- Parameters:
resource- base name of the resource fileid- the id of the corresponding bundle in the resource fileencoding- the encoding of the resource filearguments- an array containing the arguments for the message- Throws:
NullPointerException- ifresourceoridisnullUnsupportedEncodingException- if the encoding is not supported
-
-
Method Details
-
getSummary
Returns the summary message in the given locale and timezone.- Parameters:
loc- theLocaletimezone- theTimeZone- Returns:
- the summary message.
- Throws:
MissingEntryException- if the message is not available
-
getSummary
Returns the summary message in the given locale and the default timezone.- Parameters:
loc- theLocale- Returns:
- the summary message.
- Throws:
MissingEntryException- if the message is not available
-
getDetail
Returns the detail message in the given locale and timezone.- Parameters:
loc- theLocaletimezone- theTimeZone- Returns:
- the detail message.
- Throws:
MissingEntryException- if the message is not available
-
getDetail
Returns the detail message in the given locale and the default timezone.- Parameters:
loc- theLocale- Returns:
- the detail message.
- Throws:
MissingEntryException- if the message is not available
-