FileDocCategorySizeDatePackage
Subscription.javaAPI DocApache Axis 1.42594Sat Apr 22 18:57:28 BST 2006org.apache.axis.transport.jms

Subscription

public class Subscription extends Object

Fields Summary
javax.jms.MessageListener
m_listener
JMSEndpoint
m_endpoint
String
m_messageSelector
int
m_ackMode
Constructors Summary
Subscription(javax.jms.MessageListener listener, JMSEndpoint endpoint, HashMap properties)

        m_listener = listener;
        m_endpoint = endpoint;
        m_messageSelector = MapUtils.removeStringProperty(
                                            properties,
                                            JMSConstants.MESSAGE_SELECTOR,
                                            null);
        m_ackMode = MapUtils.removeIntProperty(properties,
                                               JMSConstants.ACKNOWLEDGE_MODE,
                                               JMSConstants.DEFAULT_ACKNOWLEDGE_MODE);
    
Methods Summary
public booleanequals(java.lang.Object obj)

        if(obj == null || !(obj instanceof Subscription))
            return false;
        Subscription other = (Subscription)obj;
        if(m_messageSelector == null)
        {
            if(other.m_messageSelector != null)
                return false;
        }
        else
        {
            if(other.m_messageSelector == null ||
               !other.m_messageSelector.equals(m_messageSelector))
                return false;
        }
        return m_ackMode == other.m_ackMode &&
               m_endpoint.equals(other.m_endpoint) &&
               other.m_listener.equals(m_listener);
    
public inthashCode()

        return toString().hashCode();
    
public java.lang.StringtoString()

        return m_listener.toString();