net.ontopia.topicmaps.webed.impl.utils
Class Parameters

java.lang.Object
  extended by net.ontopia.topicmaps.webed.impl.utils.Parameters

public class Parameters
extends java.lang.Object

INTERNAL: This class is used to hide the API difference between FileUpload and ordinary servlets. Since ordinary servlets can't handle file upload we are forced to create our own class into which we can push request parameters. A Map would not do since we have to deal with both simple strings and string arrays, so this class is a convenience wrapper around a Map. Maybe Servlets 3.0 will fix this ridiculous self-created "problem".


Constructor Summary
Parameters()
           
 
Method Summary
 void addParameter(java.lang.String name, FileValueIF parameter)
           
 void addParameter(java.lang.String name, java.lang.String value)
           
 void addParameter(java.lang.String name, java.lang.String[] values)
           
 java.lang.String get(java.lang.String name)
           
 FileValueIF getFile(java.lang.String name)
           
 java.util.Map getMap()
           
 java.util.Set getNames()
           
 java.lang.String[] getValues(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameters

public Parameters()
Method Detail

addParameter

public void addParameter(java.lang.String name,
                         java.lang.String value)

addParameter

public void addParameter(java.lang.String name,
                         java.lang.String[] values)

addParameter

public void addParameter(java.lang.String name,
                         FileValueIF parameter)

getNames

public java.util.Set getNames()

get

public java.lang.String get(java.lang.String name)

getValues

public java.lang.String[] getValues(java.lang.String name)

getFile

public FileValueIF getFile(java.lang.String name)

getMap

public java.util.Map getMap()


Copyright © 2000-2012 Ontopia.