com.sapportals.portal.prt.util.http

Class FilePart

java.lang.Object
  extended by com.sapportals.portal.prt.util.http.Part
      extended by com.sapportals.portal.prt.util.http.FilePart

public class FilePart
extends Part


Field Summary
protected  String m_contentType
          The content type of the file part
protected  String m_fileName
          The name of the file
 
Fields inherited from class com.sapportals.portal.prt.util.http.Part
m_name
 
Constructor Summary
FilePart(String name, String filename, String contentType, InputStream is)
           
 
Method Summary
 String getContentType()
          Gets the value of m_contentType.
 String getFileName()
          Gets the value of m_fileName.
 InputStream getInputStream()
          Gets the value of mm_buf as inputstream.
 void setContentType(String v)
          Sets the value of m_contentType.
 void setFileName(String v)
          Sets the value of m_fileName.
 
Methods inherited from class com.sapportals.portal.prt.util.http.Part
getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_fileName

protected String m_fileName
The name of the file


m_contentType

protected String m_contentType
The content type of the file part

Constructor Detail

FilePart

public FilePart(String name,
                String filename,
                String contentType,
                InputStream is)
Parameters:
name -
filename -
contentType -
is -
Method Detail

getFileName

public String getFileName()
Gets the value of m_fileName.

Returns:
Value of m_fileName.

setFileName

public void setFileName(String v)
Sets the value of m_fileName.

Parameters:
v - Value to assign to m_fileName.

getContentType

public String getContentType()
Gets the value of m_contentType.

Returns:
Value of m_contentType.

setContentType

public void setContentType(String v)
Sets the value of m_contentType.

Parameters:
v - Value to assign to m_contentType.

getInputStream

public InputStream getInputStream()
Gets the value of mm_buf as inputstream.

Returns:
Value of m_inputStream.
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/api api EP-PIN
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/lib/api api EP-PIN
[sap.com] EP-BASIS-API [sap.com] epbc.prtapi._apideprecated default EP-PIN-PRT


Copyright 2011 SAP AG Complete Copyright Notice