|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sssw.fw.util.EboParameterHolder
Form data decoder. This class takes an InputStream and decodes it in compliance to the application/x-www-form-urlencoded MIME type.
Field Summary | |
static int |
APPEND
When merging the contents of two EboParameterHolders this specifies to append the given EboParameterHolder |
static int |
PREPEND
When merging the contents of two EboParameterHolders this specifies to prepend the given EboParameterHolder |
Constructor Summary | |
EboParameterHolder(boolean override,
String encoding)
Alternate constructor allowing specification of an encoding to assume for URL-encoded data |
|
EboParameterHolder(String encoding)
Alternate constructor allowing specification of an encoding to assume for URL-encoded data. |
Method Summary | |
void |
addContentsOf(EboParameterHolder paramHolder,
int location)
Merge the contents of another EboParameterHolder into this one If override == false (see addString), any new values are added to the existing ones (and placed by the 'where' argument). |
byte[] |
getFileContent(String name)
returns the contents of the file specified by the file name |
String |
getFileContentType(String name)
Returns the mime-type of the content of the posted file with the given name |
String[] |
getMultipleValues(String name)
Get the values of the variable, as an array. |
String |
getValue(String name)
Get the value of a variable. |
Object |
getValueAsObject(String name)
Get the value of a variable as an object. |
static String |
getValueFromQueryString(String qStr,
String key)
get the value of one parameter from a query string |
Hashtable |
getValues()
Return a clone of the hashtable of all parsed values |
static Hashtable |
getValuesFromQueryString(String qStr)
get a Hashtable of all values from a query string override is true |
Enumeration |
keys()
Get an enumeration of the variable names. |
int |
numKeys()
Get an number of variable names found. |
void |
parseStream(com.sssw.fw.util.EboMimeType type,
InputStream in)
the major public method. |
void |
parseURLEncodedString(String s)
Parse an URLEncoded String application/x-www-form-urlencoded specification. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int PREPEND
EboParameterHolder.addContentsOf(EboParameterHolder,int)
public static final int APPEND
EboParameterHolder.addContentsOf(EboParameterHolder,int)
Constructor Detail |
public EboParameterHolder(String encoding)
public EboParameterHolder(boolean override, String encoding)
Method Detail |
public static String getValueFromQueryString(String qStr, String key) throws EboURLDecoderException
public static Hashtable getValuesFromQueryString(String qStr) throws EboURLDecoderException
public void parseStream(com.sssw.fw.util.EboMimeType type, InputStream in) throws com.sssw.fw.util.IOException, EboURLDecoderException
public void addContentsOf(EboParameterHolder paramHolder, int location) throws EboURLDecoderException
public Enumeration keys()
public int numKeys()
public Hashtable getValues()
public Object getValueAsObject(String name)
name
- The name of the variable whose value is to be fetched.public String getValue(String name)
name
- The name of the variable whose value is to be fetched.public String[] getMultipleValues(String name)
I use this in the PICS label bureau, and I pretty sure this is not a good reason to have it here.
name
- The name of the variable to look for.public String getFileContentType(String name)
name
- the name of the file contained in teh multipart form datapublic byte[] getFileContent(String name)
name
- the name of the file contained in teh multipart form datapublic void parseURLEncodedString(String s) throws EboURLDecoderException
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |