Package org.apache.myfaces.orchestra.frameworkAdapter

Examples of org.apache.myfaces.orchestra.frameworkAdapter.FrameworkAdapter


    {
    }

    public static RequestParameterProviderManager getInstance()
    {
        FrameworkAdapter fa = FrameworkAdapter.getCurrentInstance();
        if (fa == null)
        {
            Log log = LogFactory.getLog(RequestParameterProviderManager.class);
            log.error("No framework adapter currently selected");
            throw new OrchestraException("No framework adapter currently selected");
        }
        RequestParameterProviderManager manager =
            (RequestParameterProviderManager) fa.getSessionAttribute(PARAMETER_PROVIDER_MANAGER_KEY);

        if (manager == null)
        {
            // TODO: remove this factory code. Not IOC-friendly.
            manager = new RequestParameterProviderManager();
            fa.setSessionAttribute(PARAMETER_PROVIDER_MANAGER_KEY, manager);
        }

        return manager;
    }
View Full Code Here


        return sb.toString();
    }

    protected boolean isResponseIntercepted()
    {
        FrameworkAdapter fa = FrameworkAdapter.getCurrentInstance();

        return Boolean.TRUE.equals(
                fa.getRequestAttribute(RequestParameterServletFilter.REQUEST_PARAM_FILTER_CALLED))
            || Boolean.TRUE.equals(
                fa.getRequestAttribute(RequestParameterServletFilter.REQUEST_PARAM_RESPONSE_WRAPPED));
    }
View Full Code Here

                    .getExternalContext());

            if (RequestType.RENDER.equals(type))
            {
                String handlersKey = (String) fnextToken;
                FrameworkAdapter adapter = (FrameworkAdapter) getExternalContext()
                        .getApplicationMap().remove(
                                REQUEST_ADAPTER + handlersKey);
                if (FrameworkAdapter.getCurrentInstance() == null)
                {
                    FrameworkAdapter.setCurrentInstance(adapter);
View Full Code Here

            }
            else
            {
                //Pass the current FrameworkAdapter through application map,
                //to remove it later when rendering
                FrameworkAdapter adapter = FrameworkAdapter.getCurrentInstance();
                getExternalContext().getApplicationMap().put(
                        REQUEST_ADAPTER + _nextToken, adapter);
               
                //Orchestra suppose the same thread handles the current request, but
                //in portlets this is not necessary true. One thread could handle action
View Full Code Here

                    .getExternalContext());

            if (RequestType.RENDER.equals(type))
            {
                String handlersKey = (String) fnextToken;
                FrameworkAdapter adapter = (FrameworkAdapter) getExternalContext()
                        .getApplicationMap().remove(
                                REQUEST_ADAPTER + handlersKey);
                if (FrameworkAdapter.getCurrentInstance() == null)
                {
                    FrameworkAdapter.setCurrentInstance(adapter);
View Full Code Here

            }
            else
            {
                //Pass the current FrameworkAdapter through application map,
                //to remove it later when rendering
                FrameworkAdapter adapter = FrameworkAdapter.getCurrentInstance();
                getExternalContext().getApplicationMap().put(
                        REQUEST_ADAPTER + _nextToken, adapter);
               
                //Orchestra suppose the same thread handles the current request, but
                //in portlets this is not necessary true. One thread could handle action
View Full Code Here

TOP

Related Classes of org.apache.myfaces.orchestra.frameworkAdapter.FrameworkAdapter

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.