|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.web.LyFileAttachmentHandler
public class LyFileAttachmentHandler
This class handles file attachments in doPost method. Main services are :
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LyFileAttachmentHandler()
Constructor. |
Method Summary | |
---|---|
LyFilePartWriter |
filePartWriterFactory()
Factory to create File attachment handler instance. |
void |
free()
Clean up everything. |
java.lang.String |
getAttachmentDirectory()
Gets the attachment directory from meta-model. |
java.lang.String |
getEncodingType()
Gets the supported encoding type. |
LyFilePartWriter |
getFilePartWriter()
Gets the LyFilePartWriter instance to manage file attachments. |
javax.servlet.http.HttpServletRequest |
getParameterPartRequest()
Gets the parameter part of the request. |
void |
parseContent()
Parses the content of the request. |
void |
setAttachmentDirectory(java.lang.String attachmentDirectory)
Sets the attachment directory. |
void |
setEnvironment(LyEnvironment environment)
Gets the environment. |
void |
setRequest(javax.servlet.http.HttpServletRequest request)
Gets the request. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyFileAttachmentHandler()
Method Detail |
---|
public void setEnvironment(LyEnvironment environment)
environment
- Current environmentpublic void setRequest(javax.servlet.http.HttpServletRequest request)
request
- current user Http requestpublic void parseContent() throws java.io.IOException, org.apache.commons.fileupload.FileUploadException
java.io.IOException
org.apache.commons.fileupload.FileUploadException
public javax.servlet.http.HttpServletRequest getParameterPartRequest() throws java.io.IOException
java.io.IOException
public LyFilePartWriter filePartWriterFactory() throws java.io.IOException
java.io.IOException
public LyFilePartWriter getFilePartWriter()
public java.lang.String getEncodingType()
public java.lang.String getAttachmentDirectory()
setAttachmentDirectory(String)
public void setAttachmentDirectory(java.lang.String attachmentDirectory)
attachmentDirectory
- the new attachment directorygetAttachmentDirectory()
public void free()
free
in interface LyFreeInterface
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |