com.sapportals.portal.prt.util.http
Class FilePart
java.lang.Object
|
+--com.sapportals.portal.prt.util.http.Part
|
+--com.sapportals.portal.prt.util.http.FilePart
- public class FilePart
- extends Part
|
Field Summary |
protected java.lang.String |
m_contentType
The content type of the file part |
protected java.lang.String |
m_fileName
The name of the file |
| Fields inherited from class com.sapportals.portal.prt.util.http.Part |
m_name |
|
Constructor Summary |
FilePart(java.lang.String name,
java.lang.String filename,
java.lang.String contentType,
java.io.InputStream is)
|
|
Method Summary |
java.lang.String |
getContentType()
Gets the value of m_contentType. |
java.lang.String |
getFileName()
Gets the value of m_fileName. |
java.io.InputStream |
getInputStream()
Gets the value of mm_buf as inputstream. |
void |
setContentType(java.lang.String v)
Sets the value of m_contentType. |
void |
setFileName(java.lang.String v)
Sets the value of m_fileName. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_fileName
protected java.lang.String m_fileName
- The name of the file
m_contentType
protected java.lang.String m_contentType
- The content type of the file part
FilePart
public FilePart(java.lang.String name,
java.lang.String filename,
java.lang.String contentType,
java.io.InputStream is)
- Parameters:
name - filename - contentType - is -
getFileName
public java.lang.String getFileName()
- Gets the value of m_fileName.
- Returns:
- Value of m_fileName.
setFileName
public void setFileName(java.lang.String v)
- Sets the value of m_fileName.
- Parameters:
v - Value to assign to m_fileName.
getContentType
public java.lang.String getContentType()
- Gets the value of m_contentType.
- Returns:
- Value of m_contentType.
setContentType
public void setContentType(java.lang.String v)
- Sets the value of m_contentType.
- Parameters:
v - Value to assign to m_contentType.
getInputStream
public java.io.InputStream getInputStream()
- Gets the value of mm_buf as inputstream.
- Returns:
- Value of m_inputStream.