/** * Runs the tool with the provided set of command-line arguments. * * @param args The command-line arguments provided to this tool. */ public static void main(final String... args) { final ResultCode resultCode = main(System.out, System.err, args); if (resultCode != ResultCode.SUCCESS) { System.exit(resultCode.intValue()); } }
/** * Retrieves the result code for this LDAP response. * * @return The result code for this LDAP response. */ public int getResultCode() { return ldapResult.getResultCode().intValue(); }
/** * Runs this tool with the provided command-line arguments. It will use the * JVM-default streams for standard input, output, and error. * * @param args The command-line arguments to provide to this program. */ public static void main(final String... args) { final ResultCode resultCode = main(System.out, System.err, args); if (resultCode != ResultCode.SUCCESS) { System.exit(Math.min(resultCode.intValue(), 255)); } }
/** * Parse the provided command line arguments and make the appropriate set of * changes. * * @param args The command line arguments provided to this program. */ public static void main(final String[] args) { final ResultCode resultCode = main(args, System.out, System.err); if (resultCode != ResultCode.SUCCESS) { System.exit(resultCode.intValue()); } }
/** * Runs this tool with the provided command-line arguments. It will use the * JVM-default streams for standard input, output, and error. * * @param args The command-line arguments to provide to this program. */ public static void main(final String... args) { final ResultCode resultCode = main(System.in, System.out, System.err, args); if (resultCode != ResultCode.SUCCESS) { System.exit(Math.min(resultCode.intValue(), 255)); } }
/** * Parse the provided command line arguments and make the appropriate set of * changes. * * @param args The command line arguments provided to this program. */ public static void main(final String[] args) { final ResultCode resultCode = main(args, System.out, System.err); if (resultCode != ResultCode.SUCCESS) { System.exit(resultCode.intValue()); } }
/** * Parse the provided command line arguments and make the appropriate set of * changes. * * @param args The command line arguments provided to this program. */ public static void main(final String[] args) { final ResultCode resultCode = main(args, System.out, System.err); if (resultCode != ResultCode.SUCCESS) { System.exit(resultCode.intValue()); } }
/** * Parse the provided command line arguments and perform the appropriate * processing. * * @param args The command line arguments provided to this program. */ public static void main(final String[] args) { final ResultCode resultCode = main(args, System.out, System.err); if (resultCode != ResultCode.SUCCESS) { System.exit(resultCode.intValue()); } }
/** * Parse the provided command line arguments and perform the appropriate * processing. * * @param args The command line arguments provided to this program. */ public static void main(final String[] args) { final ResultCode resultCode = main(args, System.out, System.err); if (resultCode != ResultCode.SUCCESS) { System.exit(resultCode.intValue()); } }
/** * Invokes this tool with the provided set of arguments. * * @param args The command-line arguments provided to this program. */ public static void main(final String... args) { final ResultCode resultCode = main(System.out, System.err, args); if (resultCode != ResultCode.SUCCESS) { System.exit(resultCode.intValue()); } }
/** * Runs the tool with the provided set of arguments. * * @param args The command line arguments provided to this program. */ public static void main(final String... args) { final ResultCode resultCode = main(System.in, System.out, System.err, args); if (resultCode != ResultCode.SUCCESS) { System.exit(resultCode.intValue()); } }
/** * Creates a new LDAP exception from the provided * {@link com.unboundid.ldap.sdk.LDAPException} object. * * @param ldapException The {@code LDAPException} object to use to create * this LDAP exception. */ public LDAPException(final com.unboundid.ldap.sdk.LDAPException ldapException) { this(ldapException.getMessage(), ldapException.getResultCode().intValue(), ldapException.getMessage(), ldapException.getMatchedDN()); }
/** * Creates a new delete response protocol op from the provided LDAP result * object. * * @param result The LDAP result object to use to create this protocol op. */ public DeleteResponseProtocolOp(final LDAPResult result) { super(LDAPMessage.PROTOCOL_OP_TYPE_DELETE_RESPONSE, result.getResultCode().intValue(), result.getMatchedDN(), result.getDiagnosticMessage(), StaticUtils.toList(result.getReferralURLs())); }
/** * Creates a new add response protocol op from the provided LDAP result * object. * * @param result The LDAP result object to use to create this protocol op. */ public AddResponseProtocolOp(final LDAPResult result) { super(LDAPMessage.PROTOCOL_OP_TYPE_ADD_RESPONSE, result.getResultCode().intValue(), result.getMatchedDN(), result.getDiagnosticMessage(), StaticUtils.toList(result.getReferralURLs())); }
/** * Creates a new compare response protocol op from the provided LDAP result * object. * * @param result The LDAP result object to use to create this protocol op. */ public CompareResponseProtocolOp(final LDAPResult result) { super(LDAPMessage.PROTOCOL_OP_TYPE_COMPARE_RESPONSE, result.getResultCode().intValue(), result.getMatchedDN(), result.getDiagnosticMessage(), StaticUtils.toList(result.getReferralURLs())); }
/** * Creates a new modify response protocol op from the provided LDAP result * object. * * @param result The LDAP result object to use to create this protocol op. */ public ModifyResponseProtocolOp(final LDAPResult result) { super(LDAPMessage.PROTOCOL_OP_TYPE_MODIFY_RESPONSE, result.getResultCode().intValue(), result.getMatchedDN(), result.getDiagnosticMessage(), StaticUtils.toList(result.getReferralURLs())); }
/** * Creates a new modify response protocol op from the provided LDAP result * object. * * @param result The LDAP result object to use to create this protocol op. */ public ModifyResponseProtocolOp(final LDAPResult result) { super(LDAPMessage.PROTOCOL_OP_TYPE_MODIFY_RESPONSE, result.getResultCode().intValue(), result.getMatchedDN(), result.getDiagnosticMessage(), StaticUtils.toList(result.getReferralURLs())); }
/** * Creates a new search result done protocol op from the provided LDAP result * object. * * @param result The LDAP result object to use to create this protocol op. */ public SearchResultDoneProtocolOp(final LDAPResult result) { super(LDAPMessage.PROTOCOL_OP_TYPE_SEARCH_RESULT_DONE, result.getResultCode().intValue(), result.getMatchedDN(), result.getDiagnosticMessage(), StaticUtils.toList(result.getReferralURLs())); }
/** * Creates a new add response protocol op from the provided LDAP result * object. * * @param result The LDAP result object to use to create this protocol op. */ public AddResponseProtocolOp(final LDAPResult result) { super(LDAPMessage.PROTOCOL_OP_TYPE_ADD_RESPONSE, result.getResultCode().intValue(), result.getMatchedDN(), result.getDiagnosticMessage(), StaticUtils.toList(result.getReferralURLs())); }
/** * Creates a new compare response protocol op from the provided LDAP result * object. * * @param result The LDAP result object to use to create this protocol op. */ public CompareResponseProtocolOp(final LDAPResult result) { super(LDAPMessage.PROTOCOL_OP_TYPE_COMPARE_RESPONSE, result.getResultCode().intValue(), result.getMatchedDN(), result.getDiagnosticMessage(), StaticUtils.toList(result.getReferralURLs())); }