Joram ${version}

org.objectweb.joram.shared.client
Class ConsumerSubRequest

java.lang.Object
  extended byorg.objectweb.joram.shared.client.AbstractJmsRequest
      extended byorg.objectweb.joram.shared.client.ConsumerSubRequest
All Implemented Interfaces:
java.io.Serializable

public class ConsumerSubRequest
extends AbstractJmsRequest

A ConsumerSubRequest is sent by a constructing MessageConsumer destinated to consume messages on a topic.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest
target
 
Constructor Summary
ConsumerSubRequest()
          Constructs a ConsumerSubRequest.
ConsumerSubRequest(java.lang.String topic, java.lang.String subName, java.lang.String selector, boolean noLocal, boolean durable)
          Constructs a ConsumerSubRequest.
 
Method Summary
 boolean getDurable()
          Returns true for a durable subscription.
 boolean getNoLocal()
          Returns true for not consuming the local messages.
 java.lang.String getSelector()
          Returns the selector for filtering the messages.
 java.lang.String getSubName()
          Returns the name of the subscription.
 void setDurable(boolean durable)
          Sets the durable attribute.
 void setNoLocal(boolean noLocal)
          Sets the noLocal attribute.
 void setSelector(java.lang.String selector)
          Sets the selector.
 void setSubName(java.lang.String subName)
          Sets the subscription name.
 java.util.Hashtable soapCode()
           
static java.lang.Object soapDecode(java.util.Hashtable h)
           
 
Methods inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest
getKey, getRequestId, getTarget, setRequestId, setTarget, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConsumerSubRequest

public ConsumerSubRequest(java.lang.String topic,
                          java.lang.String subName,
                          java.lang.String selector,
                          boolean noLocal,
                          boolean durable)
Constructs a ConsumerSubRequest.

Parameters:
topic - The topic identifier the client wishes to subscribe to.
subName - The subscription's name.
selector - The selector for filtering messages, if any.
noLocal - true for not consuming the local messages.
durable - true for a durable subscription.

ConsumerSubRequest

public ConsumerSubRequest()
Constructs a ConsumerSubRequest.

Method Detail

setSubName

public void setSubName(java.lang.String subName)
Sets the subscription name.


setSelector

public void setSelector(java.lang.String selector)
Sets the selector.


setNoLocal

public void setNoLocal(boolean noLocal)
Sets the noLocal attribute.


setDurable

public void setDurable(boolean durable)
Sets the durable attribute.


getSubName

public java.lang.String getSubName()
Returns the name of the subscription.


getSelector

public java.lang.String getSelector()
Returns the selector for filtering the messages.


getNoLocal

public boolean getNoLocal()
Returns true for not consuming the local messages.


getDurable

public boolean getDurable()
Returns true for a durable subscription.


soapCode

public java.util.Hashtable soapCode()
Overrides:
soapCode in class AbstractJmsRequest

soapDecode

public static java.lang.Object soapDecode(java.util.Hashtable h)

Joram ${version}

Copyright © 2005 Scalagent - All rights reserved