Examples of URIContext


Examples of org.apache.beehive.netui.core.urls.URIContext

            // Params are allowed on the form action so see if this is for XHTML
            forXML = TagRenderingBase.Factory.isXHTML(request);
        }

        String key = PageFlowUtils.getURLTemplateKey(URLType.ACTION, needsToBeSecure);
        URIContext uriContext = URIContextFactory.getInstance(forXML);
        String rewrittenURI = URLRewriterService.getTemplatedURL(servletContext, request, uri, key, uriContext);
        return rewrittenURI;
    }
View Full Code Here

Examples of org.apache.beehive.netui.core.urls.URIContext

        if ( fragment != null ) uri.setFragment( uri.encode( fragment ) );

        boolean needsToBeSecure = needsToBeSecure( servletContext, request, uri.getPath(), true );
        URLRewriterService.rewriteURL( servletContext, request, response, uri, URLType.ACTION, needsToBeSecure );
        String key = getURLTemplateKey( URLType.ACTION, needsToBeSecure );
        URIContext uriContext = URIContextFactory.getInstance( forXML );

        return URLRewriterService.getTemplatedURL( servletContext, request, uri, key, uriContext );
    }
View Full Code Here

Examples of org.apache.beehive.netui.core.urls.URIContext

        if ( fragment != null )
        {
            uri.setFragment( uri.encode( fragment ) );
        }

        URIContext uriContext = URIContextFactory.getInstance( forXML );
        if ( uri.isAbsolute() )
        {
            return uri.getURIString( uriContext );
        }
View Full Code Here

Examples of org.apache.beehive.netui.core.urls.URIContext

            }

            URLRewriterService.rewriteURL(context, request, response, uri, URLType.ACTION, needsToBeSecure);
            String key = PageFlowUtils.getURLTemplateKey(URLType.ACTION, needsToBeSecure);
            boolean forXML = TagRenderingBase.Factory.isXHTML(request);
            URIContext uriContext = URIContextFactory.getInstance(forXML);
            String uriString = URLRewriterService.getTemplatedURL(request, uri, key, uriContext);
            write(response.encodeURL(uriString));
        }
        catch (URISyntaxException e) {
            // report the error...
View Full Code Here

Examples of org.apache.beehive.netui.core.urls.URIContext

            // Params are allowed on the form action so see if this is for XHTML
            forXML = TagRenderingBase.Factory.isXHTML(request);
        }

        String key = PageFlowUtils.getURLTemplateKey(URLType.ACTION, needsToBeSecure);
        URIContext uriContext = URIContextFactory.getInstance(forXML);
        String rewrittenURI = URLRewriterService.getTemplatedURL(request, uri, key, uriContext);
        return rewrittenURI;
    }
View Full Code Here

Examples of org.apache.beehive.netui.core.urls.URIContext

        if ( fragment != null ) uri.setFragment( uri.encode( fragment ) );

        boolean needsToBeSecure = needsToBeSecure( servletContext, request, uri.getPath(), true );
        URLRewriterService.rewriteURL( servletContext, request, response, uri, URLType.ACTION, needsToBeSecure );
        String key = getURLTemplateKey( URLType.ACTION, needsToBeSecure );
        URIContext uriContext = URIContextFactory.getInstance( forXML );

        return URLRewriterService.getTemplatedURL( request, uri, key, uriContext );
    }
View Full Code Here

Examples of org.apache.beehive.netui.core.urls.URIContext

        if ( fragment != null )
        {
            uri.setFragment( uri.encode( fragment ) );
        }

        URIContext uriContext = URIContextFactory.getInstance( forXML );
        if ( uri.isAbsolute() )
        {
            return uri.getURIString( uriContext );
        }
View Full Code Here

Examples of org.apache.beehive.netui.core.urls.URIContext

     *
     * @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.core.urls.URIContext

     * @param forXML flag indicating that the URI is for an XML doc type
     * @return the URIContext
     */
    public static final URIContext getInstance( boolean forXML )
    {
        URIContext uriContext = null;

        if ( forXML )
        {
            uriContext = new URIContext();
            uriContext.setUseAmpEntity( true );
        }
        else
        {
            uriContext = getInstance();
        }
View Full Code Here

Examples of org.apache.beehive.netui.core.urls.URIContext

            }

            URLRewriterService.rewriteURL(context, request, response, uri, URLType.ACTION, needsToBeSecure);
            String key = PageFlowUtils.getURLTemplateKey(URLType.ACTION, needsToBeSecure);
            boolean forXML = TagRenderingBase.Factory.isXHTML(request);
            URIContext uriContext = URIContextFactory.getInstance(forXML);
            String uriString = URLRewriterService.getTemplatedURL(context, request, uri, key, uriContext);
            write(response.encodeURL(uriString));
        }
        catch (URISyntaxException e) {
            // report the error...
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.