org.figure8.join.control.form
Class ConsumerForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by org.figure8.join.control.JoinForm
          extended by org.figure8.join.control.form.ConsumerForm
All Implemented Interfaces:
java.io.Serializable

public class ConsumerForm
extends JoinForm

Form object used for managing and manipulating event consumers.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.figure8.join.control.JoinForm
errors
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
ConsumerForm()
          Creates a new instance of ConsumerForm.
 
Method Summary
 void addParameter(JMSConsumerBeanParameterInfo parameter)
           
 void doValidate(java.lang.String operation, org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Validation of the form attributes.
 java.lang.String getActiveStr()
           
 java.lang.String getConsumerBeanClass()
           
 java.lang.String getDestination()
           
 java.lang.Object getMappedParameter(java.lang.String key)
           
 java.lang.String getName()
           
 java.util.Map getParameters()
           
 java.lang.String getSelector()
           
 java.lang.String getThreadSafeStr()
           
 boolean isActive()
           
 boolean isThreadSafe()
           
 void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Reset form attributes.
 void setActive(boolean active)
           
 void setActiveStr(java.lang.String activeStr)
           
 void setConsumerBeanClass(java.lang.String consumerBeanClass)
           
 void setDestination(java.lang.String destination)
           
 void setMappedParameter(java.lang.String key, java.lang.Object value)
           
 void setName(java.lang.String name)
           
 void setSelector(java.lang.String selector)
           
 void setThreadSafe(boolean threadSafe)
           
 void setThreadSafeStr(java.lang.String threadSafeStr)
           
 
Methods inherited from class org.figure8.join.control.JoinForm
addActionError, addActionError, addActionError, getGuiMessageResources, getId, getIdStr, getMessageResources, setId, setIdStr, validate, validateEntityObjectId
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsumerForm

public ConsumerForm()
Creates a new instance of ConsumerForm.

Method Detail

getName

public java.lang.String getName()
Returns:
The name corresponding to the consumer

setName

public void setName(java.lang.String name)
Parameters:
name - The name corresponding to the consumer

getSelector

public java.lang.String getSelector()
Returns:
The message selector expression to apply on consumer

setSelector

public void setSelector(java.lang.String selector)
Parameters:
selector - The message selector expression to apply on consumer

getDestination

public java.lang.String getDestination()
Returns:
The reference of destination this consumer get messages from

setDestination

public void setDestination(java.lang.String destination)
Parameters:
destination - The reference of destination this consumer get messages from

getConsumerBeanClass

public java.lang.String getConsumerBeanClass()
Returns:
The Java class used for instanciating a JMS consumer

setConsumerBeanClass

public void setConsumerBeanClass(java.lang.String consumerBeanClass)
Parameters:
consumerBeanClass - The Java class used for instanciating a JMS consumer

isActive

public boolean isActive()
Returns:
Whether the described consumer is active or not

setActive

public void setActive(boolean active)
Parameters:
active - Whether the described consumer is active or not

isThreadSafe

public boolean isThreadSafe()
Returns:
Whether the described consumer bean is thread safe or not

setThreadSafe

public void setThreadSafe(boolean threadSafe)
Parameters:
threadSafe - Whether the described consumer bean is thread safe or not

getActiveStr

public java.lang.String getActiveStr()
Returns:
Flag telling if consumer is active (should be a boolean)

setActiveStr

public void setActiveStr(java.lang.String activeStr)
Parameters:
activeStr - Flag telling if consumer is active (must be a boolean)

getThreadSafeStr

public java.lang.String getThreadSafeStr()
Returns:
Flag telling is consumer is thread safe (should be a boolean)

setThreadSafeStr

public void setThreadSafeStr(java.lang.String threadSafeStr)
Parameters:
threadSafeStr - Flag telling is consumer is thread safe (must be a boolean)

getParameters

public java.util.Map getParameters()
Returns:
Map of parameters associated to consumer.

getMappedParameter

public java.lang.Object getMappedParameter(java.lang.String key)
Parameters:
key - Name of parameter to get value for
Returns:
string representing parameter value, null if unknown

setMappedParameter

public void setMappedParameter(java.lang.String key,
                               java.lang.Object value)
Parameters:
key - Name of parameter to set value for
value - Value of parameters (String representation)

addParameter

public void addParameter(JMSConsumerBeanParameterInfo parameter)
Parameters:
parameter - Existing consumer parameter to add to map ones.

doValidate

public void doValidate(java.lang.String operation,
                       org.apache.struts.action.ActionMapping mapping,
                       javax.servlet.http.HttpServletRequest request)
Validation of the form attributes.

Specified by:
doValidate in class JoinForm
Parameters:
operation - String representing the operation to invoke on Action
mapping - Mapping between forwards name and path for this action
request - The servlet container request wrapper

reset

public void reset(org.apache.struts.action.ActionMapping mapping,
                  javax.servlet.http.HttpServletRequest request)
Reset form attributes.

Overrides:
reset in class JoinForm
Parameters:
mapping - Mapping between forwards name and path for this action
request - The servlet container request wrapper


Copyright © 2005-2008 Join. All Rights Reserved.