TextOutputCallback


TextOutputCallback javax.security.auth.callback

Java 1.4 serializable

A Callback of this type represents a request to display text to the user . A callback handler should call getMessage( ) and display the returned string to the user. It should also call getMessageType( ) and use the returned value (which is one of the constants defined by the class) to indicate the type or severity of the information.

Figure 19-12. javax.security.auth.callback.TextOutputCallback

 public class  TextOutputCallback  implements Callback, Serializable {  // Public Constructors  public  TextOutputCallback  (int  messageType  , String  message  );  // Public Constants  public static final int  ERROR  ;  =2  public static final int  INFORMATION  ;  =0  public static final int  WARNING  ;  =1   // Public Instance Methods  public String  getMessage  ( );        public int  getMessageType  ( );   } 



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net