/** * Constructor. * * @param uri URI. * @param domain Domain. * @param networkZone Network zone. * @param session Session type. * @param sessionName Session name. */ public AddressKey(final URI uri, final IdentifierList domain, final String networkZone, final SessionType session, final String sessionName) { this.uri = uri.getValue(); this.domain = domain; this.networkZone = networkZone; this.session = session.getOrdinal(); this.sessionName = sessionName; }
/** * Returns a hash code for this object. * @return a hash code value for this object. */ public int hashCode() { int hash = 7; hash = 83 * hash + (serviceProviderName != null ? serviceProviderName.hashCode() : 0); hash = 83 * hash + (domain != null ? domain.hashCode() : 0); hash = 83 * hash + (network != null ? network.hashCode() : 0); hash = 83 * hash + (sessionType != null ? sessionType.hashCode() : 0); hash = 83 * hash + (sessionName != null ? sessionName.hashCode() : 0); hash = 83 * hash + (serviceKey != null ? serviceKey.hashCode() : 0); hash = 83 * hash + (requiredCapabilities != null ? requiredCapabilities.hashCode() : 0); return hash; }
String exchangeName = providerExchangeName + ":" + msg.getHeader().getSession().toString() + ":" + msg.getHeader().getSessionName(); Topic dest = jtransport.getAdministrator().getTopic(lqs, exchangeName);
if (! sessionType.equals(other.sessionType))
header.setIsErrorMessage((((parts & 0x80) >> 7) == 0x1)); header.setQoSlevel(QoSLevel.fromOrdinal(((parts & 0x70) >> 4))); header.setSession(SessionType.fromOrdinal(parts & 0xF)); Long transactionId = ((TCPIPFixedBinaryDecoder) dec).decodeMALLong(); header.setTransactionId(transactionId);
String exchangeName = providerExchangeName + ":" + msg.getHeader().getSession().toString() + ":" + msg.getHeader().getSessionName(); String ldomain = StructureHelper.domainToString(msg.getHeader().getDomain()); String lnetwork = msg.getHeader().getNetworkZone().getValue();
if (! sessionType.equals(other.sessionType))
/** * Constructor. * @param hdr Source message. */ public BrokerKey(final MALMessageHeader hdr) { this.uri = hdr.getURITo().getValue(); this.session = hdr.getSession().getOrdinal(); this.sessionName = hdr.getSessionName().getValue(); }
/** * Returns a hash code for this object. * @return a hash code value for this object. */ public int hashCode() { int hash = 7; hash = 83 * hash + (providerName != null ? providerName.hashCode() : 0); hash = 83 * hash + (domain != null ? domain.hashCode() : 0); hash = 83 * hash + (sessionType != null ? sessionType.hashCode() : 0); hash = 83 * hash + (sourceSessionName != null ? sourceSessionName.hashCode() : 0); hash = 83 * hash + (network != null ? network.hashCode() : 0); hash = 83 * hash + (providerDetails != null ? providerDetails.hashCode() : 0); hash = 83 * hash + (serviceXML != null ? serviceXML.hashCode() : 0); return hash; }
/** * Constructor. * * @param hdr Source message. */ public AddressKey(final MALMessageHeader hdr) { this.uri = hdr.getURITo().getValue(); this.domain = hdr.getDomain(); this.networkZone = hdr.getNetworkZone().getValue(); this.session = hdr.getSession().getOrdinal(); this.sessionName = hdr.getSessionName().getValue(); }
| header.getSession().getOrdinal());