public class TextOutputCallback extends Object implements Callback, Serializable
基本的安全服务,通过TextOutputCallback实例化的CallbackHandler的handle方法显示信息性消息、警告消息和错误信息。
CallbackHandler,
Serialized Form
| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR
错误消息。
|
static int |
INFORMATION
信息消息。
|
static int |
WARNING
警告消息。
|
| Constructor and Description |
|---|
TextOutputCallback(int messageType, String message)
构建一个消息类型和消息将显示一个textoutputcallback。
|
public static final int INFORMATION
public static final int WARNING
public static final int ERROR
public TextOutputCallback(int messageType,
String message)
messageType -消息类型(
INFORMATION,
WARNING或
ERROR)。
message -要显示的信息。
IllegalArgumentException -如果
messageType不是
INFORMATION,
WARNING或
ERROR,如果
message是无效的,或者如果
message长度为0。
public int getMessageType()
INFORMATION,
WARNING或
ERROR)。
public String getMessage()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.