|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.HttpPost
public class HttpPost
HttpPost handles all the PostInformation
| Field Summary | |
|---|---|
static String |
CONFIG_FILE
|
static int |
DEFAULT_MAX_IN_MEMORY_PARAMETER_SIZE
|
static int |
DEFAULT_MAX_PARAMETER_SIZE
|
static int |
DEFAULT_MAX_REQUEST_SIZE
|
static String |
MAX_IN_MEMORY_PARAMETER_SIZE_PROPERTY
|
static String |
MAX_PARAMETER_SIZE_PROPERTY
|
static String |
MAX_REQUEST_SIZE_PROPERTY
|
(package private) int |
maxLoop
|
static String |
UPLOAD_DIR_PROPERTY
|
| Constructor Summary | |
|---|---|
HttpPost(HttpServletRequest req)
Initialise WorkerPostHandler |
|
| Method Summary | |
|---|---|
boolean |
checkPostMultiParameter(String name)
This method checks if the parameter is a multivalued one (as returned by a multiple select form) it returns true if so and false if not. |
protected void |
finalize()
Destuctor removes the tmp-files |
Vector<Object> |
getPostMultiParameter(String name)
This method returns the value of the postparameter as a Vector. |
Vector<Object> |
getPostMultiParameter(String name,
String encoding)
This method returns the value of the postparameter as a Vector. |
String |
getPostParameter(String name)
This method returns the value of the postparameter as a String. |
byte[] |
getPostParameterBytes(String name)
This method returns the value of the postparameter as a String. |
String |
getPostParameterFile(String name)
This method returns the filename containing the postparametervalue If it is a parameter with multiple values it returns the first one. |
Hashtable<String,Object> |
getPostParameters()
This method returns the Hashtable containing the POST information. |
boolean |
isPostedToFile()
|
byte[] |
readContentLength(HttpServletRequest req)
read a block into a array of ContentLenght size from the users networksocket |
boolean |
readPostFormData(byte[] postbuffer,
Hashtable<String,Object> post_header,
String line)
read post info from buffer, must be defined in multipart/form-data format. |
boolean |
readPostFormData(String formFile,
Hashtable<String,Object> post_header,
String line)
read post info from buffer, must be defined in multipart/form-data format. |
void |
reset()
resets WorkerPosthandler |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONFIG_FILE
public static final String MAX_REQUEST_SIZE_PROPERTY
public static final String MAX_IN_MEMORY_PARAMETER_SIZE_PROPERTY
public static final String MAX_PARAMETER_SIZE_PROPERTY
public static final String UPLOAD_DIR_PROPERTY
public static final int DEFAULT_MAX_REQUEST_SIZE
public static final int DEFAULT_MAX_PARAMETER_SIZE
public static final int DEFAULT_MAX_IN_MEMORY_PARAMETER_SIZE
int maxLoop
| Constructor Detail |
|---|
public HttpPost(HttpServletRequest req)
| Method Detail |
|---|
protected void finalize()
finalize in class Objectpublic void reset()
public boolean checkPostMultiParameter(String name)
throws PostValueToLargeException
PostValueToLargeExceptiongetPostMultiParameter(java.lang.String),
getPostParameter(java.lang.String)
public Hashtable<String,Object> getPostParameters()
throws PostValueToLargeException
PostValueToLargeExceptiongetPostMultiParameter(java.lang.String),
getPostParameter(java.lang.String),
checkPostMultiParameter(java.lang.String)
public byte[] getPostParameterBytes(String name)
throws PostValueToLargeException
PostValueToLargeException - will be thrown when the postParameterValue
is saved on disk instead of memory.getPostMultiParameter(java.lang.String),
checkPostMultiParameter(java.lang.String)
public Vector<Object> getPostMultiParameter(String name)
throws PostValueToLargeException
PostValueToLargeExceptioncheckPostMultiParameter(java.lang.String)
public Vector<Object> getPostMultiParameter(String name,
String encoding)
throws PostValueToLargeException
PostValueToLargeExceptioncheckPostMultiParameter(java.lang.String)public boolean isPostedToFile()
public String getPostParameterFile(String name)
throws PostValueToLargeException
PostValueToLargeExceptiongetPostMultiParameter(java.lang.String),
checkPostMultiParameter(java.lang.String)
public String getPostParameter(String name)
throws PostValueToLargeException
PostValueToLargeExceptiongetPostMultiParameter(java.lang.String),
checkPostMultiParameter(java.lang.String)
public byte[] readContentLength(HttpServletRequest req)
throws PostValueToLargeException
PostValueToLargeException
public boolean readPostFormData(byte[] postbuffer,
Hashtable<String,Object> post_header,
String line)
postbuffer - buffer with the postbuffer informationpost_header - hashtable to put the postbuffer information in
public boolean readPostFormData(String formFile,
Hashtable<String,Object> post_header,
String line)
formFile - buffer with the postbuffer informationpost_header - hashtable to put the fromFile information in
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||