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;
}
Aggregations