Joram ${version}

org.objectweb.joram.shared.client
Class SessDenyRequest

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

public class SessDenyRequest
extends AbstractJmsRequest

A SessDenyRequest instance is used by a Session for denying the messages it consumed.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest
target
 
Constructor Summary
SessDenyRequest()
          Constructs a SessDenyRequest instance.
SessDenyRequest(java.lang.String targetName, java.util.Vector ids, boolean queueMode)
          Constructs a SessDenyRequest instance.
SessDenyRequest(java.lang.String targetName, java.util.Vector ids, boolean queueMode, boolean doNotAck)
          Constructs a SessDenyRequest instance.
 
Method Summary
 void addId(java.lang.String id)
           
 boolean getDoNotAck()
          Returns true if the request must not be acked by the server.
 java.util.Vector getIds()
          Returns the vector of denyed messages identifiers.
 boolean getQueueMode()
          Returns true if the request is destinated to a queue.
 void setDoNotAck(boolean doNotAck)
          Sets the server ack policy.
 void setIds(java.util.Vector ids)
          Sets the vector of identifiers.
 void setQueueMode(boolean queueMode)
          Sets the target destination type.
 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

SessDenyRequest

public SessDenyRequest(java.lang.String targetName,
                       java.util.Vector ids,
                       boolean queueMode)
Constructs a SessDenyRequest instance.

Parameters:
targetName - Name of the target queue or subscription.
ids - Vector of denied message identifiers.
queueMode - true if this request is destinated to a queue.

SessDenyRequest

public SessDenyRequest(java.lang.String targetName,
                       java.util.Vector ids,
                       boolean queueMode,
                       boolean doNotAck)
Constructs a SessDenyRequest instance.

Parameters:
targetName - Name of the target queue or subscription.
ids - Vector of denied message identifiers.
queueMode - true if this request is destinated to a queue.
doNotAck - true if this request must not be acked by the server.

SessDenyRequest

public SessDenyRequest()
Constructs a SessDenyRequest instance.

Method Detail

setIds

public void setIds(java.util.Vector ids)
Sets the vector of identifiers.


addId

public void addId(java.lang.String id)

setQueueMode

public void setQueueMode(boolean queueMode)
Sets the target destination type.


setDoNotAck

public void setDoNotAck(boolean doNotAck)
Sets the server ack policy.


getIds

public java.util.Vector getIds()
Returns the vector of denyed messages identifiers.


getQueueMode

public boolean getQueueMode()
Returns true if the request is destinated to a queue.


getDoNotAck

public boolean getDoNotAck()
Returns true if the request must not be acked by the server.


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