Package net.sourceforge.stripes.controller

Examples of net.sourceforge.stripes.controller.UrlBindingParameter


            }
            else if (component instanceof UrlBindingParameter) {
                boolean ok = false;

                // get the value for the parameter, falling back to default value if present
                UrlBindingParameter parameter = (UrlBindingParameter) component;
                Parameter assigned = map.get(parameter.getName());
                Object value;
                if (assigned != null && (assigned.value != null || assigned.isEvent()))
                    value = assigned.value;
                else
                    value = parameter.getDefaultValue();

                if (value != null) {
                    // format (and maybe encrypt) the value as a string
                    String formatted = format(value);
                    ValidationMetadata validation = validations.get(parameter.getName());
                    if (validation != null && validation.encrypted())
                        formatted = CryptoUtil.encrypt(formatted);

                    // if after formatting we still have a value then embed it in the URI
                    if (formatted != null && formatted.length() > 0) {
View Full Code Here


            }
            else if (component instanceof UrlBindingParameter) {
                boolean ok = false;

                // get the value for the parameter, falling back to default value if present
                UrlBindingParameter parameter = (UrlBindingParameter) component;
                Parameter assigned = map.get(parameter.getName());
                Object value;
                if (assigned != null && (assigned.value != null || assigned.isEvent()))
                    value = assigned.value;
                else
                    value = parameter.getDefaultValue();

                if (value != null) {
                    // format (and maybe encrypt) the value as a string
                    String formatted = format(value);
                    ValidationMetadata validation = validations.get(parameter.getName());
                    if (validation != null && validation.encrypted())
                        formatted = CryptoUtil.encrypt(formatted);

                    // if after formatting we still have a value then embed it in the URI
                    if (formatted != null && formatted.length() > 0) {
View Full Code Here

            }
            else if (component instanceof UrlBindingParameter) {
                boolean ok = false;

                // get the value for the parameter, falling back to default value if present
                UrlBindingParameter parameter = (UrlBindingParameter) component;
                Parameter assigned = map.get(parameter.getName());
                Object value;
                if (assigned != null && (assigned.value != null || assigned.isEvent()))
                    value = assigned.value;
                else
                    value = parameter.getDefaultValue();

                if (value != null) {
                    // format (and maybe encrypt) the value as a string
                    String formatted = format(value);
                    ValidationMetadata validation = validations.get(parameter.getName());
                    if (validation != null && validation.encrypted())
                        formatted = CryptoUtil.encrypt(formatted);

                    // if after formatting we still have a value then embed it in the URI
                    if (formatted != null && formatted.length() > 0) {
View Full Code Here

TOP

Related Classes of net.sourceforge.stripes.controller.UrlBindingParameter

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.