org.apache.wsrp4j.consumer.app.driver
Class RequestImpl

java.lang.Object
  extended byorg.apache.wsrp4j.consumer.app.driver.RequestImpl
All Implemented Interfaces:
Request

public class RequestImpl
extends java.lang.Object
implements Request

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

Version:
$Id: RequestImpl.java,v 1.4 2005/08/11 13:02:02 cziegeler Exp $
Author:
Stephan Laertz

Field Summary
private  java.util.Hashtable formParameters
           
private  java.lang.String interactionState
           
 
Constructor Summary
RequestImpl()
          Default constructor
 
Method Summary
 void addFormParameter(java.lang.String name, java.lang.String value)
          Add any parameters to the request.
 oasis.names.tc.wsrp.v1.types.NamedString[] getFormParameters()
          Get all form parameters from the request.
 java.lang.String getInteractionState()
          Get the interaction state of the portlet.
 void setInteractionState(java.lang.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

private java.util.Hashtable formParameters

interactionState

private java.lang.String interactionState
Constructor Detail

RequestImpl

public RequestImpl()
Default constructor

Method Detail

addFormParameter

public void addFormParameter(java.lang.String name,
                             java.lang.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(java.lang.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 java.lang.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


--