|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMultipartDecoder
Defines how a multipart HTTP request can be broken into individual elements (including file uploads).
Multipart decoder implementations must be threadsafe.
Method Summary | |
---|---|
void |
cleanup(javax.servlet.http.HttpServletRequest request)
Invoked to release any resources needed by tghe decoder. |
void |
decode(javax.servlet.http.HttpServletRequest request)
Decodes the incoming request, identifying all the parts (values and uploaded files) contained within. |
String |
getString(javax.servlet.http.HttpServletRequest request,
String name)
Returns the single value (or first value) for the parameter with the specified name. |
String[] |
getStringParameterNames(javax.servlet.http.HttpServletRequest request)
Returns the names of all parameters whose type is string (not file upload). |
String[] |
getStrings(javax.servlet.http.HttpServletRequest request,
String name)
Returns an array of values (possibly a single element array). |
IUploadFile |
getUploadFile(javax.servlet.http.HttpServletRequest request,
String name)
Returns the uploaded file with the specified parameter name, or null if no such parameter was in the request. |
Method Detail |
---|
void decode(javax.servlet.http.HttpServletRequest request)
void cleanup(javax.servlet.http.HttpServletRequest request)
String getString(javax.servlet.http.HttpServletRequest request, String name)
String[] getStrings(javax.servlet.http.HttpServletRequest request, String name)
IUploadFile getUploadFile(javax.servlet.http.HttpServletRequest request, String name)
String[] getStringParameterNames(javax.servlet.http.HttpServletRequest request)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |