org.objectweb.jac.aspects.gui.web
Class MultiMapJacRequest

java.lang.Object
  |
  +--org.objectweb.jac.aspects.gui.web.AbstractJacRequest
        |
        +--org.objectweb.jac.aspects.gui.web.MultiMapJacRequest
All Implemented Interfaces:
JacRequest

public class MultiMapJacRequest
extends AbstractJacRequest
implements JacRequest

This class represents a multi-part HttpRequest.


Field Summary
 
Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractJacRequest
DEFAULT_REQUEST_TIMEOUT, semaphore
 
Constructor Summary
MultiMapJacRequest(HttpServletRequest servletRequest)
          Parameters are copied from the HttpServletRequest.
MultiMapJacRequest(MultiMap map, HttpServletRequest servletRequest)
          Parameters are initialized from the given map.
MultiMapJacRequest(MultiMap map, HttpServletRequest servletRequest, JacRequest parent)
           
 
Method Summary
 boolean contains(String name)
          Tells wether there is a parameter with a given name
 Object getParameter(String name)
          Returns a parameter.
 Object[] getParameters(String name)
          Returns a parameter.
protected  void readParamsFromRequest(HttpServletRequest servletRequest)
           
 String toString()
           
 
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractJacRequest
getHeader, getUserAgent, isIEUserAgent, setParent, setResponse, userAgentMatch, waitForResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.objectweb.jac.aspects.gui.web.JacRequest
getHeader, getUserAgent, isIEUserAgent, setResponse, userAgentMatch, waitForResponse
 

Constructor Detail

MultiMapJacRequest

public MultiMapJacRequest(MultiMap map,
                          HttpServletRequest servletRequest)
Parameters are initialized from the given map.


MultiMapJacRequest

public MultiMapJacRequest(MultiMap map,
                          HttpServletRequest servletRequest,
                          JacRequest parent)

MultiMapJacRequest

public MultiMapJacRequest(HttpServletRequest servletRequest)
Parameters are copied from the HttpServletRequest.

Method Detail

readParamsFromRequest

protected void readParamsFromRequest(HttpServletRequest servletRequest)

contains

public boolean contains(String name)
Description copied from interface: JacRequest
Tells wether there is a parameter with a given name

Specified by:
contains in interface JacRequest
Parameters:
name - the parameter's name whose presence to test

getParameter

public Object getParameter(String name)
Description copied from interface: JacRequest
Returns a parameter. The result can be a String or a FileParameter object.

Specified by:
getParameter in interface JacRequest
Specified by:
getParameter in class AbstractJacRequest
Parameters:
name - the name of the parameter
Returns:
the value of the parameter (a String a or FileParameter) if the parameter exists in the request, null otherwise.

getParameters

public Object[] getParameters(String name)
Description copied from interface: JacRequest
Returns a parameter. The result can be a String or a FileParameter object.

Specified by:
getParameters in interface JacRequest
Parameters:
name - the name of the parameter
Returns:
the value of the parameter (a String a or FileParameter) if the parameter exists in the request, null otherwise.

toString

public String toString()
Overrides:
toString in class Object