com.buglabs.osgi.sewing.pub.util
Class RequestParameters

java.lang.Object
  extended by com.buglabs.osgi.sewing.pub.util.RequestParameters

public class RequestParameters
extends java.lang.Object

Wrapper for a map to enforce the types that go into it this gets filled with the request parameters sent in a get or post and past to the controller's methods


Field Summary
static java.lang.String REQUEST_BODY_PARAM_KEY
           
 
Constructor Summary
RequestParameters()
           
 
Method Summary
 void add(RequestParameters params)
          Puts all the request parameters into the current RequestParameters object.
 java.lang.String get(java.lang.String name)
           
 FormFile getFile()
           
 java.util.Map getInnerMap()
           
 java.lang.Object put(java.lang.String name, java.lang.String value)
           
 void setFile(FormFile file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUEST_BODY_PARAM_KEY

public static final java.lang.String REQUEST_BODY_PARAM_KEY
See Also:
Constant Field Values
Constructor Detail

RequestParameters

public RequestParameters()
Method Detail

put

public java.lang.Object put(java.lang.String name,
                            java.lang.String value)

get

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

getInnerMap

public java.util.Map getInnerMap()

getFile

public FormFile getFile()

setFile

public void setFile(FormFile file)

add

public void add(RequestParameters params)
Puts all the request parameters into the current RequestParameters object. If the a param has the same key, it comma separates the vals If the param is a file, it will overwrite the existing file

Parameters:
params -