Package net.shibboleth.metadata
Class StatusMetadata
java.lang.Object
net.shibboleth.metadata.StatusMetadata
- All Implemented Interfaces:
ItemMetadata
- Direct Known Subclasses:
ErrorStatus,InfoStatus,WarningStatus
@Immutable
public abstract sealed class StatusMetadata
extends Object
implements ItemMetadata
permits ErrorStatus, WarningStatus, InfoStatus
A
ItemMetadata implementation that carries status information about an Item.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the ID of the component that generated the status message.Gets the status message.
-
Field Details
-
component
The component that generated this status information. -
message
The message associated with this status.
-
-
Constructor Details
-
StatusMetadata
Constructor.- Parameters:
componentId- ID of the component creating the status message, never null or emptystatusMessage- the status message, never null or empty
-
-
Method Details
-
getComponentId
Gets the ID of the component that generated the status message.- Returns:
- ID of the component that generated the status message, never null or empty
-
getStatusMessage
Gets the status message.- Returns:
- the status message, never null or empty
-