|
SAP J2EE Engine Version 6.40 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sap.engine.services.servlets_jsp.lib.multipart.MultipartPart
This class represents a sub-message of a multipart http message. Each sub-message has headers and body.
MultipartMessage| Field Summary | |
protected java.util.Hashtable |
headers
|
protected int |
size
|
| Constructor Summary | |
MultipartPart()
|
|
| Method Summary | |
void |
addHeader(java.lang.String headerName,
java.lang.String headerValue)
Adds a header with specified name and value in this multipart sub-message. |
java.util.Enumeration |
getAllHeaderNames()
Returns an enumeration of the names of all headers of this multipart sub-message. |
byte[] |
getBody()
Returns a byte array containing the body of this multipart sub-message. |
java.lang.String |
getCharacterEncoding()
Returns the value of the character encoding of this sub-message as specified by its Content-type header |
java.lang.String |
getContentID()
Returns the value of the Content-Id header of this sub-message |
java.lang.String |
getContentType()
Returns the content type of this multipart sub-message as specified by its Content-Type headers. |
java.lang.String |
getDisposition()
Returns the content-disposition of this multipart sub-message. |
java.lang.String |
getFileName()
Returns the file name of the file that this sub-message represents. |
java.lang.String |
getHeader(java.lang.String headerName)
Returns the value of a header with a specified name that is set for this multipart sub-message. |
java.lang.String[] |
getHeaderValues(java.lang.String headerName)
Returns the values of headers with specified name of this multipart sub-message. |
abstract java.io.InputStream |
getInputStream()
Returns an input stream for reading the body of this multipart sub-message. |
java.lang.String |
getName()
Returns the name of the body of this multipart sub-message. |
int |
getSize()
Returns the size of the body of this multipart sub-message. |
java.lang.String |
getTransferEncoding()
Returns the value of the Content-Transfer-Encoding header of this sub-message |
boolean |
isFormParameter()
Returns if this multipart sub-message represents a form-based request parameter as specified by RFC 1867. |
void |
removeHeader(java.lang.String headerName)
Removes a header with specified name from this multipart sub-message. |
void |
setHeader(java.lang.String headerName,
java.lang.String headerValue)
Sets a header with specified name and value in this multipart sub-message. |
abstract void |
setText(java.lang.String text)
Sets a body of this multipart sub-message. |
abstract void |
writeTo(java.io.OutputStream outputstream)
Writes this multipart sub-message to an output stream according to the multipart message's syntax. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int size
protected java.util.Hashtable headers
| Constructor Detail |
public MultipartPart()
| Method Detail |
public int getSize()
public java.lang.String getContentType()
public java.lang.String getDisposition()
public java.lang.String getName()
public boolean isFormParameter()
public java.lang.String getFileName()
public abstract java.io.InputStream getInputStream()
public byte[] getBody()
throws java.io.IOException
public abstract void setText(java.lang.String text)
text - A String representing the sub-message bodypublic abstract void writeTo(java.io.OutputStream outputstream)
outputstream - An output stream where the message will be written topublic java.lang.String getHeader(java.lang.String headerName)
headerName - The name of the header that is setpublic java.lang.String[] getHeaderValues(java.lang.String headerName)
headerName - The name of the header that is set
public void setHeader(java.lang.String headerName,
java.lang.String headerValue)
headerName - The name of the header that will be setheaderValue - The value of the header that will de set
public void addHeader(java.lang.String headerName,
java.lang.String headerValue)
headerName - The name of the header that will be addedheaderValue - The value of the header that will de addedpublic void removeHeader(java.lang.String headerName)
headerName - The name of the header that will be removedpublic java.util.Enumeration getAllHeaderNames()
public java.lang.String getCharacterEncoding()
public java.lang.String getTransferEncoding()
public java.lang.String getContentID()
|
SAP J2EE Engine Version 6.40 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||