Package org.apache.myfaces.commons.resourcehandler.application

Examples of org.apache.myfaces.commons.resourcehandler.application.FacesServletMapping


    {       
        ExternalContext externalContext = facesContext.getExternalContext();     
        String resourceBasePath = null;
       
        //Calculate the mapping from the current request information
        FacesServletMapping mapping = calculateFacesServletMapping(
                externalContext.getRequestServletPath(),
                externalContext.getRequestPathInfo());
        //FacesServletMapping mapping = getFacesServletMapping(facesContext);
       
        if (mapping != null)
        {
            if (mapping.isExtensionMapping())
            {
                // Mapping using a suffix. In this case we have to strip
                // the suffix. If we have a url like:
                // http://localhost:8080/testjsf20/javax.faces.resource/imagen.jpg.jsf?ln=dojo
                //
View Full Code Here


    protected FacesServletMapping getFacesServletMapping(FacesContext context)
    {
        Map<Object, Object> attributes = context.getAttributes();

        // Has the mapping already been determined during this request?
        FacesServletMapping mapping = (FacesServletMapping) attributes.get(CACHED_SERVLET_MAPPING);
        if (mapping == null)
        {
            ExternalContext externalContext = context.getExternalContext();
           
            FacesServletMapping calculatedMapping = calculateFacesServletMapping(
                    externalContext.getRequestServletPath(),
                    externalContext.getRequestPathInfo());
           
            if (!calculatedMapping.isPrefixMapping())
            {
                // Scan the current configuration if there is a FacesServlet and if that so,
                // retrieve the first prefix mapping and use it.
                getWebConfigProvider().update(context);
               
View Full Code Here

TOP

Related Classes of org.apache.myfaces.commons.resourcehandler.application.FacesServletMapping

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.