Movatterモバイル変換


[0]ホーム

URL:


         


Class TextOutputCallback

java.lang.Object  |  +--javax.security.auth.callback.TextOutputCallback
All Implemented Interfaces:
Callback

public classTextOutputCallback
extends java.lang.Object
implementsCallback

Underlying security services instantiate and pass aTextOutputCallback to theinvokeCallback method of aCallbackHandler to display information messages, warning messages and error messages.

See Also:
CallbackHandler

ERROR
          Error message
INFORMATION
          Information message
WARNING
          Warning message
 
TextOutputCallback(int messageType, java.lang.String message)
          Construct a TextOutputCallback with a message type and message to be displayed.
 
getMessage()
          Get the message to be displayed.
getMessageType()
          Get the message type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

INFORMATION

public static final intINFORMATION
Information message

WARNING

public static final intWARNING
Warning message

ERROR

public static final intERROR
Error message

TextOutputCallback

publicTextOutputCallback(int messageType,                          java.lang.String message)
Construct a TextOutputCallback with a message type and message to be displayed.

Parameters:
messageType - the message type (INFORMATION,WARNING orERROR).

message - the message to be displayed.

Throws:
java.lang.IllegalArgumentException - ifmessageTypeis not eitherINFORMATION,WARNING orERROR,ifmessage is null,or ifmessage has a length of 0.

getMessageType

public intgetMessageType()
Get the message type.

Returns:
the message type (INFORMATION,WARNING orERROR).

getMessage

public java.lang.StringgetMessage()
Get the message to be displayed.

Returns:
the message to be displayed.

         


[8]ページ先頭

©2009-2025 Movatter.jp