| | |
| | | * @param argParser used to parse user arguments |
| | | * @param initializeServer indicates whether or not to initialize the |
| | | * directory server in the case of a local action |
| | | * @param out stream to write messages |
| | | * @param err stream to write messages |
| | | * @param out stream to write messages; may be null |
| | | * @param err stream to write messages; may be null |
| | | * @return int indicating the result of this action |
| | | */ |
| | | protected int process(LDAPConnectionArgumentParser argParser, |
| | |
| | | ret = tc.schedule(this, out, err); |
| | | } catch (LDAPConnectionException e) { |
| | | Message message = ERR_LDAP_CONN_CANNOT_CONNECT.get(e.getMessage()); |
| | | err.println(wrapText(message, MAX_LINE_WIDTH)); |
| | | if (err != null) err.println(wrapText(message, MAX_LINE_WIDTH)); |
| | | ret = LDAPResultCode.CLIENT_SIDE_CONNECT_ERROR; |
| | | } catch (ArgumentException e) { |
| | | Message message = e.getMessageObject(); |
| | | err.println(wrapText(message, MAX_LINE_WIDTH)); |
| | | if (err != null) err.println(wrapText(message, MAX_LINE_WIDTH)); |
| | | ret = LDAPResultCode.CLIENT_SIDE_PARAM_ERROR; |
| | | } |
| | | } |
| | |
| | | * |
| | | * @param initializeServer indicates whether or not to initialize the |
| | | * directory server in the case of a local action |
| | | * @param out stream to write messages |
| | | * @param err stream to write messages |
| | | * @param out stream to write messages; may be null |
| | | * @param err stream to write messages; may be null |
| | | * @return int indicating the result of this action |
| | | */ |
| | | abstract protected int processLocal(boolean initializeServer, |