org.apache.cocoon.portal.wsrp.consumer
Class RequestImpl

java.lang.Object
  extended byorg.apache.cocoon.portal.wsrp.consumer.RequestImpl
All Implemented Interfaces:
Request

public class RequestImpl
extends Object
implements Request

This class implements the Request interface and used by the swing consumer to store request related information.

Version:
$Id: RequestImpl.java 322475 2005-10-16 14:26:44Z cziegeler $

Field Summary
protected  Map formParameters
          Map to store all form params.
protected  String interactionState
          interaction state.
 
Constructor Summary
RequestImpl()
          Default constructor
 
Method Summary
 void addFormParameter(String name, String value)
          Add any parameters to the request.
 oasis.names.tc.wsrp.v1.types.NamedString[] getFormParameters()
          Get all form parameters from the request.
 String getInteractionState()
          Get the interaction state of the portlet.
 void setInteractionState(String state)
          Set the interaction state of a portlet which should be passed to the producer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

formParameters

protected Map formParameters
Map to store all form params.


interactionState

protected String interactionState
interaction state.

Constructor Detail

RequestImpl

public RequestImpl()
Default constructor

Method Detail

addFormParameter

public void addFormParameter(String name,
                             String value)
Add any parameters to the request. These parameters should be carried in the form parameters field of WSRP.

Specified by:
addFormParameter in interface Request
Parameters:
name - The key which identifies the parameter
value - The value of the parameter

getFormParameters

public oasis.names.tc.wsrp.v1.types.NamedString[] getFormParameters()
Get all form parameters from the request. The returned NamedString array contains all parameter key/value pairs and can directly be passed to the form parameter field in WSRP.

Specified by:
getFormParameters in interface Request
Returns:
Array with all set parameters

setInteractionState

public void setInteractionState(String state)
Set the interaction state of a portlet which should be passed to the producer.

Specified by:
setInteractionState in interface Request
Parameters:
state - the interaction state of a portlet

getInteractionState

public String getInteractionState()
Get the interaction state of the portlet.

Specified by:
getInteractionState in interface Request
Returns:
interaction state of a portlet carried in a request


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.