|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.platform.web.http.HttpContentItem
public class HttpContentItem
Field Summary |
---|
Fields inherited from interface org.pentaho.platform.api.repository.IContentItem |
---|
WRITEMODE_APPEND, WRITEMODE_KEEPVERSIONS, WRITEMODE_OVERWRITE |
Constructor Summary | |
---|---|
HttpContentItem(OutputStream outputStream,
HttpOutputHandler outputHandler)
|
Method Summary | |
---|---|
void |
closeOutputStream()
|
String |
getActionName()
|
org.pentaho.commons.connection.IPentahoStreamSource |
getDataSource()
Returns a reader from the content item. |
Date |
getFileDateTime()
|
String |
getFileId()
|
long |
getFileSize()
|
List |
getFileVersions()
|
String |
getId()
|
InputStream |
getInputStream()
Gets an input stream from the Content item. |
String |
getMimeType()
|
IMimeTypeListener |
getMimeTypeListener()
|
String |
getName()
|
OutputStream |
getOutputStream(String actionName)
The behavior of this method depends upon it's write mode (defined only at construction). |
String |
getPath()
|
Reader |
getReader()
|
String |
getTitle()
|
String |
getUrl()
|
void |
makeTransient()
Removes all versions of this item from the repository and removes this item from underlying persistence layer. |
void |
removeAllVersions()
Removes all the version from Hibernate |
void |
removeVersion(String fileId)
Removes the file with the id specified |
void |
setMimeType(String mimeType)
Sets the mime type |
void |
setMimeTypeListener(IMimeTypeListener mimeTypeListener)
|
void |
setName(String name)
|
void |
setOutputStream(OutputStream outputStream)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpContentItem(OutputStream outputStream, HttpOutputHandler outputHandler)
Method Detail |
---|
public void closeOutputStream()
closeOutputStream
in interface IContentItem
public String getId()
getId
in interface IContentItem
public String getPath()
getPath
in interface IContentItem
public String getName()
getName
in interface IContentItem
public String getTitle()
getTitle
in interface IContentItem
public String getMimeType()
getMimeType
in interface IContentItem
public void setMimeType(String mimeType)
IContentItem
setMimeType
in interface IMimeTypeListener
setMimeType
in interface IContentItem
mimeType
- The mime type to set.public void setName(String name)
setName
in interface IMimeTypeListener
public String getUrl()
getUrl
in interface IContentItem
public List getFileVersions()
getFileVersions
in interface IContentItem
public void removeAllVersions()
IContentItem
removeAllVersions
in interface IContentItem
public void removeVersion(String fileId)
IContentItem
removeVersion
in interface IContentItem
public InputStream getInputStream() throws ContentException
IContentItem
getInputStream
in interface IContentItem
ContentException
public org.pentaho.commons.connection.IPentahoStreamSource getDataSource()
IContentItem
getDataSource
in interface IContentItem
public Reader getReader() throws ContentException
getReader
in interface IContentItem
ContentException
public OutputStream getOutputStream(String actionName)
IContentItem
getOutputStream
in interface IContentItem
actionName
- The name of the action that is obtaining the output stream.
public void setOutputStream(OutputStream outputStream)
public String getActionName()
getActionName
in interface IContentItem
public String getFileId()
getFileId
in interface IContentItem
public long getFileSize()
getFileSize
in interface IContentItem
public Date getFileDateTime()
getFileDateTime
in interface IContentItem
public void makeTransient()
IContentItem
makeTransient
in interface IContentItem
public IMimeTypeListener getMimeTypeListener()
public void setMimeTypeListener(IMimeTypeListener mimeTypeListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |