Search in sources :

Example 1 with BaseUIComponent

use of org.pentaho.platform.uifoundation.component.BaseUIComponent in project pentaho-platform by pentaho.

the class HttpServletRequestHandler method handleUIRequest.

public void handleUIRequest(final IUIComponent component, final String contentType) throws IOException {
    IContentItem contentItem = getOutputHandler().getOutputContentItem(IOutputHandler.RESPONSE, IOutputHandler.CONTENT, getInstanceId(), null);
    OutputStream outputStream = contentItem.getOutputStream(this.getActionPath());
    ((BaseUIComponent) component).setUrlFactory(urlFactory);
    component.handleRequest(outputStream, this, contentType, getParameterProviders());
}
Also used : BaseUIComponent(org.pentaho.platform.uifoundation.component.BaseUIComponent) OutputStream(java.io.OutputStream) IContentItem(org.pentaho.platform.api.repository.IContentItem)

Aggregations

OutputStream (java.io.OutputStream)1 IContentItem (org.pentaho.platform.api.repository.IContentItem)1 BaseUIComponent (org.pentaho.platform.uifoundation.component.BaseUIComponent)1