Package com.oxxo.gallery.exception

Examples of com.oxxo.gallery.exception.MissingParamException


     * Set the necessary parameters for the application that are passed as
     * params in the html source
     */
    private void initParameters() throws MissingParamException {
        if ((localFile = getParameter("localFile")) == null) {
            throw new MissingParamException("Missing the localFile param");
        }

        if ((remoteFile = getParameter("remoteFile")) == null) {
            throw new MissingParamException("Missing the remoteFile param");
        }

        if ((ftpDir = getParameter("ftpDir")) == null) {
            throw new MissingParamException("Missing ftpDir param");
        }

        if ((ftpAddress = getParameter("ftpAddress")) == null) {
            throw new MissingParamException("Missing ftpAddress param");
        }

        if ((ftpUsername = getParameter("ftpUsername")) == null) {
            throw new MissingParamException("Missing ftpUsername param");
        }

        if ((ftpPassword = getParameter("ftpPassword")) == null) {
            throw new MissingParamException("Missing ftpPassword param");
        }

        if ((redirectUrl = getParameter("redirectUrl")) == null) {
            // This param is optional
        }
View Full Code Here

TOP

Related Classes of com.oxxo.gallery.exception.MissingParamException

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.