|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.kmr.scam.client.http.helper.FileContentSupport
se.kmr.scam.client.http.helper.FileContentBean
Wrapper/helper for file contents.
Field Summary | |
static String |
NAME
Identifier for the UploadBean |
Constructor Summary | |
FileContentBean(org.apache.commons.fileupload.FileItem fileItem)
Constructor for the FileContentBean object that wrapps a FileItem as content provider. |
|
FileContentBean(String manifestId,
String uri,
long size,
String contentType,
String shortName)
|
|
FileContentBean(String internalIdentifier,
String contentName,
String contentType)
Constructor for the FileContentBean object that wrapps internal file content. |
Method Summary | |
long |
getContentSize()
Gets size of the content. |
String |
getContentType()
Gets the contenttype. |
InputStream |
getInputStream()
Gets a inputstream to the content |
String |
getManifestId()
|
String |
getRepositoryPath()
Gets the repositoryPath attribute of the FileContentBean object |
String |
getRepositoryUri()
Gets the associated uri |
String |
getShortFileName()
Gets the short file name, the original file name. |
String |
getUri()
|
void |
remove()
Description of the Method |
void |
write()
Writes content to repository. |
void |
write(OutputStream out)
write content to a stream |
Methods inherited from class se.kmr.scam.client.http.helper.FileContentSupport |
getRepositoryDir, getTempDir, getUriPrefix, setRepositoryDir, setTempDir, setUriPrefix |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String NAME
Constructor Detail |
public FileContentBean(org.apache.commons.fileupload.FileItem fileItem) throws ServletException
fileItem
- use this object as content provider
ServletException
- thrown in case ilegal argument.public FileContentBean(String manifestId, String uri, long size, String contentType, String shortName)
public FileContentBean(String internalIdentifier, String contentName, String contentType)
internalIdentifier
- Identifies the internal filecontentName
- Original name of the filecontentType
- The content typeMethod Detail |
public String getRepositoryUri()
public String getShortFileName()
public String getRepositoryPath()
public String getContentType()
public long getContentSize()
public String getManifestId()
public String getUri()
public InputStream getInputStream() throws Exception
Exception
public void write() throws Exception
Exception
- thrown in case of exception writing to repositorypublic void write(OutputStream out) throws Exception
out
- write to this stream
Exception
- thrown in case of exception while writing the content.public void remove()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |