Package com.btmatthews.maven.plugins.ldap

Examples of com.btmatthews.maven.plugins.ldap.FormatHandler


        final LDAPConnection connection = connect();
        try {
            for (final Source source : sources) {
                try {
                    getLog().info("Processing input source: " + source);
                    final FormatHandler handler = getFormatHandler(source);
                    if (handler == null) {
                        getLog().warn("No handler for input source: " + source);
                    } else {
                        final InputStream inputStream = source.open();
                        if (inputStream == null) {
                            if (!this.continueOnError) {
                                throw new MojoExecutionException("Cannot open source for reading: " + source);
                            } else {
                                getLog().warn("Skipping source that could not be opened for reading: " + source);
                            }
                        } else {
                            try {
                                handler.load(connection, source.open(), continueOnError, this);
                            } finally {
                                inputStream.close();
                            }
                        }
                    }
View Full Code Here


            try {
                final OutputStream outputStream = new FileOutputStream(outputFile);
                try {
                    final LDAPConnection connection = connect();
                    try {
                        final FormatHandler handler = getFormatHandler();
                        handler.dump(connection, searchBase, searchFilter, outputStream, this);
                    } finally {
                        connection.close();
                    }
                } finally {
                    try {
View Full Code Here

TOP

Related Classes of com.btmatthews.maven.plugins.ldap.FormatHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.