|
Oracle Application Server HTTPClient API Reference 10g Release 2 (10.1.2) B14020-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Codecs.mpFormDataDecode
and Codecs.mpFormDataEncode
may be handed an instance of a class which implements this interface in order to control names of the decoded files or the names sent in the encoded data.
Method Summary | |
java.lang.String |
mangleFilename(java.lang.String filename, java.lang.String fieldname) This is invoked by Codecs.mpFormDataDecode for each file found in the data, just before the file is created and written. |
Method Detail |
public java.lang.String mangleFilename(java.lang.String filename, java.lang.String fieldname)
Codecs.mpFormDataDecode
for each file found in the data, just before the file is created and written. If null is returned then the file is not created or written. This allows you to control which files are written and the names of the resulting files.
For Codecs.mpFormDataEncode
this is also invoked on each filename, allowing you to control the actual name used in the filename attribute of the Content-Disposition header. This does not change the name of the file actually read. If null is returned then the file is ignored.
filename
- the original filename in the Content-Disposition headerfieldname
- the name of the this field, i.e. the value of the name attribute in Content-Disposition header
|
Oracle Application Server HTTPClient API Reference 10g Release 2 (10.1.2) B14020-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |