public final class OptionalNameCallback extends NameCallback implements ExtendedCallback
NameCallback
which is optional, for mechanisms that can accept a name from the server.Constructor and Description |
---|
OptionalNameCallback(String prompt)
Construct a new instance.
|
OptionalNameCallback(String prompt,
String defaultName)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
needsInformation()
Determine if this callback is requesting information.
|
getDefaultName, getName, getPrompt, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isOptional
public OptionalNameCallback(String prompt)
prompt
- the prompt to offer the userpublic boolean needsInformation()
ExtendedCallback
needsInformation
in interface ExtendedCallback
true
if the callback is requesting information, false
if it is only providing informationCopyright © 2020 JBoss by Red Hat. All rights reserved.