Search in sources :

Example 1 with DependencyTrackingHeaderResponse

use of com.liferay.faces.bridge.tck.tests.chapter_5.section_5_2.DependencyTrackingHeaderResponse in project liferay-faces-bridge-impl by liferay.

the class BridgePortletResponseFactoryTCKMainImpl method getHeaderResponse.

@Override
public HeaderResponse getHeaderResponse(HeaderRequest headerRequest, HeaderResponse headerResponse, PortletConfig portletConfig, BridgeConfig bridgeConfig) {
    HeaderResponse returnHeaderResponse = wrappedBridgePortletResponseFactory.getHeaderResponse(headerRequest, headerResponse, portletConfig, bridgeConfig);
    String testName = (String) headerRequest.getAttribute(Constants.TEST_NAME);
    if (RESOURCES_RENDERED_IN_HEAD_TEST.equals(testName)) {
        returnHeaderResponse = new DependencyTrackingHeaderResponse(returnHeaderResponse);
    } else {
        returnHeaderResponse = new HeaderResponseTCKMainImpl(returnHeaderResponse);
    }
    return returnHeaderResponse;
}
Also used : DependencyTrackingHeaderResponse(com.liferay.faces.bridge.tck.tests.chapter_5.section_5_2.DependencyTrackingHeaderResponse) HeaderResponse(javax.portlet.HeaderResponse) DependencyTrackingHeaderResponse(com.liferay.faces.bridge.tck.tests.chapter_5.section_5_2.DependencyTrackingHeaderResponse)

Aggregations

DependencyTrackingHeaderResponse (com.liferay.faces.bridge.tck.tests.chapter_5.section_5_2.DependencyTrackingHeaderResponse)1 HeaderResponse (javax.portlet.HeaderResponse)1