issrg.SAWS.callback
Class SAWSTextOutputCallback

java.lang.Object
  extended by issrg.SAWS.callback.SAWSTextOutputCallback
All Implemented Interfaces:
java.io.Serializable, javax.security.auth.callback.Callback

public class SAWSTextOutputCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback, java.io.Serializable

This class represents a Callback for displaying data to the user.

Version:
1.0, Feb. 2007
Author:
E. Silva
See Also:
Serialized Form

Field Summary
static int ERROR
          Represents error messages.
static int INFORMATION
          Represents information messages.
static int LONG_MESSAGE
          Represents long messages.
static int WARNING
          Represents warning messages.
 
Constructor Summary
SAWSTextOutputCallback(int messageType, java.lang.String message)
          Constructor of the class.
 
Method Summary
 java.lang.String getMessage()
          Method that returns the message to be displayed.
 int getMessageType()
          Method that returns the message type (INFORMATION, WARNING, ERROR or LONG_MESSAGE).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INFORMATION

public static final int INFORMATION
Represents information messages.

See Also:
Constant Field Values

WARNING

public static final int WARNING
Represents warning messages.

See Also:
Constant Field Values

ERROR

public static final int ERROR
Represents error messages.

See Also:
Constant Field Values

LONG_MESSAGE

public static final int LONG_MESSAGE
Represents long messages.

See Also:
Constant Field Values
Constructor Detail

SAWSTextOutputCallback

public SAWSTextOutputCallback(int messageType,
                              java.lang.String message)
Constructor of the class.

Parameters:
messageType - Type of the message.
message - Message to be dusplayed.
Method Detail

getMessageType

public int getMessageType()
Method that returns the message type (INFORMATION, WARNING, ERROR or LONG_MESSAGE).

Returns:
The message type.

getMessage

public java.lang.String getMessage()
Method that returns the message to be displayed.

Returns:
The message to be displayed.