|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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()
|
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 IContentItempublic String getId()
getId in interface IContentItempublic String getPath()
getPath in interface IContentItempublic String getName()
getName in interface IContentItempublic String getTitle()
getTitle in interface IContentItempublic String getMimeType()
getMimeType in interface IContentItempublic void setMimeType(String mimeType)
IContentItem
setMimeType in interface IMimeTypeListenersetMimeType in interface IContentItemmimeType - The mime type to set.public void setName(String name)
setName in interface IMimeTypeListenerpublic String getUrl()
getUrl in interface IContentItempublic List getFileVersions()
getFileVersions in interface IContentItempublic void removeAllVersions()
IContentItem
removeAllVersions in interface IContentItempublic void removeVersion(String fileId)
IContentItem
removeVersion in interface IContentItem
public InputStream getInputStream()
throws ContentException
IContentItem
getInputStream in interface IContentItemContentExceptionpublic IPentahoStreamSource getDataSource()
IContentItem
getDataSource in interface IContentItem
public Reader getReader()
throws ContentException
getReader in interface IContentItemContentExceptionpublic OutputStream getOutputStream(String actionName)
IContentItem
getOutputStream in interface IContentItemactionName - The name of the action that is obtaining the output stream.
public void setOutputStream(OutputStream outputStream)
public String getActionName()
getActionName in interface IContentItempublic String getFileId()
getFileId in interface IContentItempublic long getFileSize()
getFileSize in interface IContentItempublic Date getFileDateTime()
getFileDateTime in interface IContentItempublic void makeTransient()
IContentItem
makeTransient in interface IContentItempublic IMimeTypeListener getMimeTypeListener()
public void setMimeTypeListener(IMimeTypeListener mimeTypeListener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||