| | |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.requests.BindRequest; |
| | | |
| | | /** |
| | | * This class provides an abstract base class which can be used as the basis of a console-based application. |
| | |
| | | |
| | | private boolean isProgressSuite; |
| | | |
| | | private BindRequest bindRequest = null; |
| | | |
| | | /** |
| | | * Defines the different line styles for output. |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the bind request used by this application. |
| | | * |
| | | * @return The bind request used by this application. |
| | | */ |
| | | public BindRequest getBindRequest() { |
| | | return bindRequest; |
| | | } |
| | | |
| | | /** |
| | | * Returns the application error stream. |
| | | * |
| | | * @return The application error stream. |
| | |
| | | throw new ClientException(ReturnCode.ERROR_USER_DATA, ERR_TRIES_LIMIT_REACHED.get(maxTries)); |
| | | } |
| | | |
| | | void setBindRequest(final BindRequest bindRequest) { |
| | | this.bindRequest = bindRequest; |
| | | } |
| | | |
| | | /** |
| | | * Inserts line breaks into the provided buffer to wrap text at no more than the specified column width (80). |
| | | * |