org.objectweb.joram.shared.client

Class SessDenyRequest

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(String targetName, Vector ids, boolean queueMode)
Constructs a SessDenyRequest instance.
SessDenyRequest(String targetName, Vector ids, boolean queueMode, boolean doNotAck)
Constructs a SessDenyRequest instance.

Method Summary

void
addId(String id)
boolean
getDoNotAck()
Returns true if the request must not be acked by the server.
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(Vector ids)
Sets the vector of identifiers.
void
setQueueMode(boolean queueMode)
Sets the target destination type.
Hashtable
soapCode()
static Object
soapDecode(Hashtable h)

Methods inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest

getKey, getRequestId, getTarget, setRequestId, setTarget, soapCode, soapDecode, toString

Constructor Details

SessDenyRequest

public SessDenyRequest()
Constructs a SessDenyRequest instance.


SessDenyRequest

public SessDenyRequest(String targetName,
                       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(String targetName,
                       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.

Method Details

addId

public void addId(String id)


getDoNotAck

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


getIds

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


getQueueMode

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


setDoNotAck

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


setIds

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


setQueueMode

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


soapCode

public Hashtable soapCode()
Overrides:
soapCode in interface AbstractJmsRequest


soapDecode

public static Object soapDecode(Hashtable h)
Overrides:
soapDecode in interface AbstractJmsRequest


Copyright B) 2004 Scalagent - All rights reserved