public int size() { return _errorCondition.getInfo() != null ? 3 : _errorCondition.getDescription() != null ? 2 : 1; }
public int size() { return _errorCondition.getInfo() != null ? 3 : _errorCondition.getDescription() != null ? 2 : 1; }
public int size() { return _errorCondition.getInfo() != null ? 3 : _errorCondition.getDescription() != null ? 2 : 1; }
public int size() { return _errorCondition.getInfo() != null ? 3 : _errorCondition.getDescription() != null ? 2 : 1; }
public Object get(final int index) { switch(index) { case 0: return _errorCondition.getCondition(); case 1: return _errorCondition.getDescription(); case 2: return _errorCondition.getInfo(); } throw new IllegalStateException("Unknown index " + index); }
public Object get(final int index) { switch(index) { case 0: return _errorCondition.getCondition(); case 1: return _errorCondition.getDescription(); case 2: return _errorCondition.getInfo(); } throw new IllegalStateException("Unknown index " + index); }
public Object get(final int index) { switch(index) { case 0: return _errorCondition.getCondition(); case 1: return _errorCondition.getDescription(); case 2: return _errorCondition.getInfo(); } throw new IllegalStateException("Unknown index " + index); }
public Object get(final int index) { switch(index) { case 0: return _errorCondition.getCondition(); case 1: return _errorCondition.getDescription(); case 2: return _errorCondition.getInfo(); } throw new IllegalStateException("Unknown index " + index); }
Map<?, ?> info = condition.getInfo();
this.errorCondition = errorCond.getCondition(); this.errorDescription = errorCond.getDescription(); this.errorInfo = errorCond.getInfo(); this.amqpResponseVerifier();
Map<?, ?> info = condition.getInfo();
Map<?, ?> info = condition.getInfo();
remoteError = createRedirectException(error, message, errorCondition); } else if (error.equals(AmqpError.INVALID_FIELD)) { Map<?, ?> info = errorCondition.getInfo(); if (info != null && CONTAINER_ID.equals(info.get(INVALID_FIELD))) { remoteError = new InvalidClientIDException(message);
remoteError = createRedirectException(provider, error, message, errorCondition); } else if (error.equals(AmqpError.INVALID_FIELD)) { Map<?, ?> info = errorCondition.getInfo(); if (info != null && CONTAINER_ID.equals(info.get(INVALID_FIELD))) { remoteError = new InvalidClientIDException(message);
remoteError = createRedirectException(provider, error, message, errorCondition); } else if (error.equals(AmqpError.INVALID_FIELD)) { Map<?, ?> info = errorCondition.getInfo(); if (info != null && CONTAINER_ID.equals(info.get(INVALID_FIELD))) { remoteError = new InvalidClientIDException(message);
String relocated = (String) receiver.getRemoteCondition().getInfo().get("address"); log.info("Receiver link redirected to '" + relocated + "'"); Source newSource = linkOptions.getSource();
@Override public void inspectClosedResource(Connection connection) { ErrorCondition remoteError = connection.getRemoteCondition(); if (remoteError == null || remoteError.getCondition() == null) { markAsInvalid("Broker did not add error condition for duplicate client ID"); } else { if (!remoteError.getCondition().equals(AmqpError.INVALID_FIELD)) { markAsInvalid("Broker did not set condition to " + AmqpError.INVALID_FIELD); } if (!remoteError.getCondition().equals(AmqpError.INVALID_FIELD)) { markAsInvalid("Broker did not set condition to " + AmqpError.INVALID_FIELD); } } // Validate the info map contains a hint that the container/client id was the // problem Map<?, ?> infoMap = remoteError.getInfo(); if (infoMap == null) { markAsInvalid("Broker did not set an info map on condition"); } else if (!infoMap.containsKey(INVALID_FIELD)) { markAsInvalid("Info map does not contain expected key"); } else { Object value = infoMap.get(INVALID_FIELD); if (!CONTAINER_ID.equals(value)) { markAsInvalid("Info map does not contain expected value: " + value); } } } });