public class TextOutputCallback extends Object implements Callback, Serializable
基础安全服务实例,并通过一个TextOutputCallback到handle一个的方法CallbackHandler ,以显示信息消息,警告消息和错误消息。
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.