Package org.pentaho.platform.web.http
Class HttpContentItem
- java.lang.Object
-
- org.pentaho.platform.web.http.HttpContentItem
-
- All Implemented Interfaces:
org.pentaho.platform.api.engine.IMimeTypeListener
,org.pentaho.platform.api.repository.IContentItem
public class HttpContentItem extends Object implements org.pentaho.platform.api.repository.IContentItem
-
-
Constructor Summary
Constructors Constructor Description HttpContentItem(OutputStream outputStream, HttpOutputHandler outputHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeOutputStream()
org.pentaho.commons.connection.IPentahoStreamSource
getDataSource()
InputStream
getInputStream()
String
getMimeType()
org.pentaho.platform.api.engine.IMimeTypeListener
getMimeTypeListener()
OutputStream
getOutputStream(String actionName)
String
getPath()
void
setMimeType(String mimeType)
void
setMimeTypeListener(org.pentaho.platform.api.engine.IMimeTypeListener mimeTypeListener)
void
setName(String name)
void
setOutputStream(OutputStream outputStream)
-
-
-
Constructor Detail
-
HttpContentItem
public HttpContentItem(OutputStream outputStream, HttpOutputHandler outputHandler)
-
-
Method Detail
-
closeOutputStream
public void closeOutputStream()
- Specified by:
closeOutputStream
in interfaceorg.pentaho.platform.api.repository.IContentItem
-
getPath
public String getPath()
- Specified by:
getPath
in interfaceorg.pentaho.platform.api.repository.IContentItem
-
getMimeType
public String getMimeType()
- Specified by:
getMimeType
in interfaceorg.pentaho.platform.api.repository.IContentItem
-
setMimeType
public void setMimeType(String mimeType)
- Specified by:
setMimeType
in interfaceorg.pentaho.platform.api.repository.IContentItem
- Specified by:
setMimeType
in interfaceorg.pentaho.platform.api.engine.IMimeTypeListener
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceorg.pentaho.platform.api.engine.IMimeTypeListener
-
getInputStream
public InputStream getInputStream() throws org.pentaho.platform.api.repository.ContentException
- Specified by:
getInputStream
in interfaceorg.pentaho.platform.api.repository.IContentItem
- Throws:
org.pentaho.platform.api.repository.ContentException
-
getDataSource
public org.pentaho.commons.connection.IPentahoStreamSource getDataSource()
- Specified by:
getDataSource
in interfaceorg.pentaho.platform.api.repository.IContentItem
-
getOutputStream
public OutputStream getOutputStream(String actionName)
- Specified by:
getOutputStream
in interfaceorg.pentaho.platform.api.repository.IContentItem
-
setOutputStream
public void setOutputStream(OutputStream outputStream)
-
getMimeTypeListener
public org.pentaho.platform.api.engine.IMimeTypeListener getMimeTypeListener()
-
setMimeTypeListener
public void setMimeTypeListener(org.pentaho.platform.api.engine.IMimeTypeListener mimeTypeListener)
-
-