net.shibboleth.metadata
Class StatusMetadata

java.lang.Object
  extended by net.shibboleth.metadata.StatusMetadata
All Implemented Interfaces:
Serializable, ItemMetadata
Direct Known Subclasses:
ErrorStatus, InfoStatus, WarningStatus

public class StatusMetadata
extends Object
implements ItemMetadata

A ItemMetadata implementation that carries status information about an Item.

See Also:
Serialized Form

Field Summary
private  String component
          The component that generated this status information.
private  String message
          The message associated with this status.
private static long serialVersionUID
          Serial version UID.
 
Constructor Summary
StatusMetadata(String componentId, String statusMessage)
          Constructor.
 
Method Summary
 String getComponentId()
          Gets the ID of the component that generated the status message.
 String getStatusMessage()
          Gets the status message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial version UID.

See Also:
Constant Field Values

component

private String component
The component that generated this status information.


message

private String message
The message associated with this status.

Constructor Detail

StatusMetadata

public StatusMetadata(String componentId,
                      String statusMessage)
Constructor.

Parameters:
componentId - ID of the component creating the status message, never null or empty
statusMessage - the status message, never null or empty
Method Detail

getComponentId

public String getComponentId()
Gets the ID of the component that generated the status message.

Returns:
ID of the component that generated the status message, never null

getStatusMessage

public String getStatusMessage()
Gets the status message.

Returns:
the status message, never null


Copyright © 2009-2011. All Rights Reserved.