Package org.apache.myfaces.commons.resourcehandler.webapp.config

Examples of org.apache.myfaces.commons.resourcehandler.webapp.config.WebRegistration


            {
                // Scan the current configuration if there is a FacesServlet and if that so,
                // retrieve the first prefix mapping and use it.
                getWebConfigProvider().update(context);
               
                WebRegistration webRegistration = getWebConfigProvider().getWebRegistration(context);
               
                String prefix = getFacesServletPrefixMapping(context, webRegistration);
               
                if (prefix != null)
                {
View Full Code Here


    {
    }

    public WebRegistration getWebRegistration(FacesContext context)
    {
        WebRegistration webConfig = (WebRegistration)context.getExternalContext().getApplicationMap().get(WEB_REGISTRATION_KEY);
        if (webConfig == null)
        {
            init(context);
            webConfig = (WebRegistration)context.getExternalContext().getApplicationMap().get(WEB_REGISTRATION_KEY);
        }
View Full Code Here

        try
        {
            URL url = facesContext.getExternalContext().getResource(WEB_XML_PATH);
            if (url != null)
            {
                WebRegistration mrc = parseFile(facesContext, url);
                return mrc;
            }
            else
            {
                return null;
View Full Code Here

            {
                // Scan the current configuration if there is a FacesServlet and if that so,
                // retrieve the first prefix mapping and use it.
                getWebConfigProvider().update(context);
               
                WebRegistration webRegistration = getWebConfigProvider().getWebRegistration(context);
               
                String prefix = getFacesServletPrefixMapping(context, webRegistration);
               
                if (prefix != null)
                {
View Full Code Here

    {
    }

    public WebRegistration getWebRegistration(FacesContext context)
    {
        WebRegistration webConfig
                = (WebRegistration)context.getExternalContext().getApplicationMap().get(WEB_REGISTRATION_KEY);
        if (webConfig == null)
        {
            init(context);
            webConfig = (WebRegistration)context.getExternalContext().getApplicationMap().get(WEB_REGISTRATION_KEY);
View Full Code Here

        try
        {
            URL url = facesContext.getExternalContext().getResource(WEB_XML_PATH);
            if (url != null)
            {
                WebRegistration mrc = parseFile(facesContext, url);
                return mrc;
            }
            else
            {
                return null;
View Full Code Here

TOP

Related Classes of org.apache.myfaces.commons.resourcehandler.webapp.config.WebRegistration

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.