Examples of UrlConfig


Examples of org.apache.beehive.netui.util.config.bean.UrlConfig

            RequestInterceptorsConfig requestInterceptorsConfig = parseRequestInterceptorsConfig(document);

            JspTagConfig jspTagConfig = parseJspTagConfig(document);
            ExpressionLanguagesConfig elConfig = parseExpressionLanguageConfig(document);
            TypeConverterConfig[] typeConvertersConfig = parseTypeConvertersConfig(document);
            UrlConfig urlConfig = parseUrlConfig(document);
            IteratorFactoryConfig[] iteratorFactories = parseIteratorFactoryConfig(document);
            PrefixHandlerConfig[] prefixHandlers = parsePrefixHandlerConfig(document);

            netuiConfig = new NetUIConfig(
                pfActionInterceptorsConfig,
View Full Code Here

Examples of org.apache.beehive.netui.util.config.bean.UrlConfig

    }

    private static final UrlConfig parseUrlConfig(Document document) {
        Element elem = DomUtils.getChildElementByName(document.getDocumentElement(), "url-config");
        if(elem == null)
            return new UrlConfig();

        Boolean urlEncodeUrls = null;
        Boolean htmlAmpEntity = null;
        String templatedUrlFormatterClass = null;

        String tmp = null;

        tmp = DomUtils.getChildElementText(elem, "url-encode-urls");
        if(tmp != null)
            urlEncodeUrls = new Boolean(Boolean.parseBoolean(tmp));

        tmp = DomUtils.getChildElementText(elem, "html-amp-entity");
        if(tmp != null)
            htmlAmpEntity = new Boolean(Boolean.parseBoolean(tmp));

        templatedUrlFormatterClass = DomUtils.getChildElementText(elem, "templated-url-formatter-class");

        return new UrlConfig(urlEncodeUrls, htmlAmpEntity, templatedUrlFormatterClass);
    }
View Full Code Here

Examples of org.apache.beehive.netui.util.config.bean.UrlConfig

    private static TemplatedURLFormatter getTemplatedURLFormatter()
    {
        TemplatedURLFormatter formatter = null;

        // check for a default template formatter class name from the config file
        UrlConfig urlConfig = ConfigUtil.getConfig().getUrlConfig();
        if ( urlConfig != null )
        {
            String className = urlConfig.getTemplatedUrlFormatterClass();
            if ( className != null )
            {
                className = className.trim();

                // create an instance of the def template formatter class
View Full Code Here

Examples of org.apache.beehive.netui.util.config.bean.UrlConfig

                                                    HttpServletResponse response, String path, Map params,
                                                    String fragment, boolean forXML, URLType urlType )
            throws URISyntaxException
    {
        boolean encoded = false;
        UrlConfig urlConfig = ConfigUtil.getConfig().getUrlConfig();

        if (urlConfig != null) {
            encoded = !urlConfig.isUrlEncodeUrls();
        }

        FreezableMutableURI uri = new FreezableMutableURI();
        uri.setEncoding( response.getCharacterEncoding() );
        uri.setURI( path, encoded );
View Full Code Here

Examples of org.apache.beehive.netui.util.config.bean.UrlConfig

        HttpServletResponse response = (HttpServletResponse) pageContext.getResponse();
        ServletContext context = pageContext.getServletContext();

        try {
            boolean encoded = false;
            UrlConfig urlConfig = ConfigUtil.getConfig().getUrlConfig();
            if (urlConfig != null && urlConfig.isSetUrlEncodeUrls()) {
                encoded = !urlConfig.getUrlEncodeUrls();
            }

            FreezableMutableURI uri = new FreezableMutableURI();
            uri.setEncoding(response.getCharacterEncoding());
            uri.setURI(url, encoded);
View Full Code Here

Examples of org.apache.beehive.netui.util.config.bean.UrlConfig

                                                    HttpServletResponse response, String path, Map params,
                                                    String fragment, boolean forXML, URLType urlType )
            throws URISyntaxException
    {
        boolean encoded = false;
        UrlConfig urlConfig = ConfigUtil.getConfig().getUrlConfig();

        if (urlConfig != null && urlConfig.isSetUrlEncodeUrls()) {
            encoded = !urlConfig.getUrlEncodeUrls();
        }

        FreezableMutableURI uri = new FreezableMutableURI();
        uri.setEncoding( response.getCharacterEncoding() );
        uri.setURI( path, encoded );
View Full Code Here

Examples of org.apache.beehive.netui.util.config.bean.UrlConfig

     * @return the URIContext
     */
    public static final URIContext getInstance()
    {
        URIContext uriContext = MutableURI.getDefaultContext();
        UrlConfig urlConfig = ConfigUtil.getConfig().getUrlConfig();

        if ( urlConfig != null && urlConfig.isSetHtmlAmpEntity() )
        {
            uriContext.setUseAmpEntity( urlConfig.getHtmlAmpEntity() );
        }

        return uriContext;
    }
View Full Code Here

Examples of org.apache.beehive.netui.util.config.bean.UrlConfig

        HttpServletResponse response = (HttpServletResponse) pageContext.getResponse();
        ServletContext context = pageContext.getServletContext();

        try {
            boolean encoded = false;
            UrlConfig urlConfig = ConfigUtil.getConfig().getUrlConfig();
            if (urlConfig != null) {
                encoded = !urlConfig.isUrlEncodeUrls();
            }

            FreezableMutableURI uri = new FreezableMutableURI();
            uri.setEncoding(response.getCharacterEncoding());
            uri.setURI(url, encoded);
View Full Code Here

Examples of org.apache.beehive.netui.util.config.bean.UrlConfig

                                                    HttpServletResponse response, String path, Map params,
                                                    String fragment, boolean forXML, URLType urlType )
            throws URISyntaxException
    {
        boolean encoded = false;
        UrlConfig urlConfig = ConfigUtil.getConfig().getUrlConfig();

        if (urlConfig != null) {
            encoded = !urlConfig.isUrlEncodeUrls();
        }

        FreezableMutableURI uri = new FreezableMutableURI();
        uri.setEncoding( response.getCharacterEncoding() );
        uri.setURI( path, encoded );
View Full Code Here

Examples of org.apache.beehive.netui.util.config.bean.UrlConfig

            RequestInterceptorsConfig requestInterceptorsConfig = parseRequestInterceptorsConfig(document);

            JspTagConfig jspTagConfig = parseJspTagConfig(document);
            ExpressionLanguagesConfig elConfig = parseExpressionLanguageConfig(document);
            TypeConverterConfig[] typeConvertersConfig = parseTypeConvertersConfig(document);
            UrlConfig urlConfig = parseUrlConfig(document);
            IteratorFactoryConfig[] iteratorFactories = parseIteratorFactoryConfig(document);
            PrefixHandlerConfig[] prefixHandlers = parsePrefixHandlerConfig(document);

            netuiConfig = new NetUIConfig(
                pfActionInterceptorsConfig,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.