|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--lindhorst.servlet.http.ReadableMultipartBlock
A class representing one block in a Multipart Request. If instantiated given the raw byte data, it will be decoded and can then be used to access the information contained in it.
| Constructor Summary | |
ReadableMultipartBlock(byte[] rawData)
converts the raw data beginning with a boundary to information accessible by this object's getXXX methods |
|
| Method Summary | |
java.lang.String |
getBlockAsString()
|
byte[] |
getContentData()
|
java.lang.String |
getContentName()
|
java.lang.String |
getContentType()
|
java.lang.String |
getParameterName()
returns the name of the parameter contained in this block |
java.lang.String |
getParameterValue()
returns the value of this block if it holds a text-based parameter |
byte[] |
getRawData()
|
boolean |
isNormalParameter()
determines if this block holds a normal text-based parameter |
boolean |
isUploadedContent()
determines whether this block holds content |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReadableMultipartBlock(byte[] rawData)
throws java.io.IOException
rawData - the byte array holding this block's raw data| Method Detail |
public boolean isUploadedContent()
public boolean isNormalParameter()
public java.lang.String getParameterName()
public java.lang.String getParameterValue()
throws java.lang.IllegalAccessException
java.lang.IllegalAccessException - if this block holds a content parameter
public java.lang.String getContentType()
throws java.lang.IllegalAccessException
java.lang.IllegalAccessException - if this block holds text-based information
public java.lang.String getContentName()
throws java.lang.IllegalAccessException
java.lang.IllegalAccessException - if this block holds text-based information
public byte[] getContentData()
throws java.lang.IllegalAccessException
java.lang.IllegalAccessException - if this block holds text-based informationpublic java.lang.String getBlockAsString()
public byte[] getRawData()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||