public class HttpRequestParser.MultipartToken extends Object
Constructor and Description |
---|
MultipartToken()
Empty constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addHeader(String headerName,
String content)
Add header (name and data) to Hashtable.
|
byte[] |
getData()
Get data byte array.
|
String |
getDataString(String preferedCharset)
Get data as string using specified codepage but only if own charset is null.
|
String |
getHeader(String headerName)
Get header data from header name.
|
String |
getName()
Get field name (or null if none).
|
boolean |
parseHeaders()
Parse headers for type, name and charset.
|
void |
setData(byte[] data)
Set part data byte array.
|
public boolean addHeader(String headerName, String content)
public boolean parseHeaders()
public String getName()
public void setData(byte[] data)
public byte[] getData()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.