|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kom.tools.web.HTTPResponse | +--kom.tools.web.POSTResponse
Response to a POST request
Field Summary | |
(package private) static java.lang.String |
CDFDN
|
(package private) static java.lang.String |
CTCOLSP
|
private java.lang.String |
delimiter
|
private java.lang.String |
DLMS
|
(package private) static java.lang.String |
FILENAME_KEY
|
protected UniqueId |
id
Unique id generator |
private java.io.ByteArrayOutputStream |
line
|
private boolean |
lynx
|
(package private) static java.lang.String |
MULTIPART_FORM_DATA
|
private ReadFile |
rf
|
private long |
sleep
|
protected java.lang.String |
tmpDir
Temporary directory for uploading |
Fields inherited from class kom.tools.web.HTTPResponse |
APPLICATION_URLENCODED,
boundary,
BOUNDARY,
broke,
close,
config,
contentType,
cursor,
fileToDelete,
gateway,
header,
in,
len,
method,
newSession,
out,
pairs,
protocol,
reasonPhrase,
request,
response,
sendBytes,
servletBase,
session,
sessionId,
statusCode,
tmpFile,
upload,
uri |
Constructor Summary | |
POSTResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
HTTPConfig config,
Gateway gateway,
UniqueId id)
Class constructor |
Method Summary | |
void |
addvalue(java.lang.String key,
java.lang.String value)
Puts a String into the pairs table, possibly as a new element in the old value. |
void |
finalize()
Removes the temporary request file |
java.io.InputStream |
getResponseData()
Creates InputStream for result of POST request. |
void |
parse()
Parses the request |
protected void |
parseBody()
Parses the body of the HTTP request |
private void |
parseMultipart()
Parses multipart data |
private void |
parseURLEncoded()
Parses URL-encoded data |
void |
processPart()
Processes a part of a multipart request |
void |
uploadFileData(java.lang.String mime,
java.lang.String name,
java.lang.String filename)
Uploads the contents of a file from the request. |
Methods inherited from class kom.tools.web.HTTPResponse |
addHeader,
get,
getHttpSession,
getValues,
names,
parseURI,
processRequest,
put,
put,
readRequest,
setCookie,
setPhrase,
setStatus |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected java.lang.String tmpDir
protected UniqueId id
private long sleep
private java.lang.String delimiter
private java.io.ByteArrayOutputStream line
private ReadFile rf
static final java.lang.String MULTIPART_FORM_DATA
static final java.lang.String FILENAME_KEY
static final java.lang.String CDFDN
static final java.lang.String CTCOLSP
private boolean lynx
private final java.lang.String DLMS
Constructor Detail |
public POSTResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, HTTPConfig config, Gateway gateway, UniqueId id) throws javax.servlet.ServletException, java.io.IOException
request
- HTTP requestresponse
- HTTP responseconfig
- Server configuration datagateway
- Client supervisorid
- Unique id initial valueMethod Detail |
public void finalize()
public void addvalue(java.lang.String key, java.lang.String value)
key
- Key to valuevalue
- String valuepublic void parse()
protected void parseBody()
private void parseURLEncoded()
private void parseMultipart()
public void processPart()
public void uploadFileData(java.lang.String mime, java.lang.String name, java.lang.String filename)
mime
- MIME type for file dataname
- "name" of filefilename
- File name from originalpublic java.io.InputStream getResponseData()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |