public class AmqpSupport extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.qpid.proton.amqp.Symbol |
ANONYMOUS_RELAY |
static org.apache.qpid.proton.amqp.Symbol |
CONNECTION_OPEN_FAILED |
static org.apache.qpid.proton.amqp.Symbol |
CONTAINER_ID |
static org.apache.qpid.proton.amqp.Symbol |
COPY |
static org.apache.qpid.proton.amqp.Symbol |
DYNAMIC_NODE_LIFETIME_POLICY |
static org.apache.qpid.proton.amqp.Symbol |
INVALID_FIELD |
static org.apache.qpid.proton.amqp.Symbol |
JMS_NO_LOCAL_SYMBOL |
static org.apache.qpid.proton.amqp.Symbol |
JMS_SELECTOR_SYMBOL |
static org.apache.qpid.proton.amqp.messaging.Modified |
MODIFIED_FAILED |
static org.apache.qpid.proton.amqp.messaging.Modified |
MODIFIED_FAILED_UNDELIVERABLE |
static org.apache.qpid.proton.amqp.Symbol |
NETWORK_HOST |
static org.apache.qpid.proton.amqp.Symbol |
OPEN_HOSTNAME |
static org.apache.qpid.proton.amqp.Symbol |
PLATFORM |
static org.apache.qpid.proton.amqp.Symbol |
PORT |
static org.apache.qpid.proton.amqp.Symbol |
PRODUCT |
static org.apache.qpid.proton.amqp.Symbol |
QUEUE_PREFIX |
static org.apache.qpid.proton.amqp.messaging.Rejected |
REJECTED |
static org.apache.qpid.proton.amqp.Symbol |
SOLE_CONNECTION_CAPABILITY |
static String |
TEMP_QUEUE_CREATOR |
static String |
TEMP_TOPIC_CREATOR |
static org.apache.qpid.proton.amqp.Symbol |
TOPIC_PREFIX |
static org.apache.qpid.proton.amqp.Symbol |
VERSION |
Constructor and Description |
---|
AmqpSupport() |
Modifier and Type | Method and Description |
---|---|
static Exception |
convertToException(org.apache.qpid.proton.engine.Endpoint endpoint,
org.apache.qpid.proton.amqp.transport.ErrorCondition errorCondition)
Given an ErrorCondition instance create a new Exception that best matches
the error type.
|
static Exception |
convertToException(org.apache.qpid.proton.engine.Endpoint endpoint,
org.apache.qpid.proton.amqp.transport.ErrorCondition errorCondition,
Exception defaultException)
Given an ErrorCondition instance create a new Exception that best matches
the error type.
|
static Exception |
createRedirectException(org.apache.qpid.proton.amqp.Symbol error,
String message,
org.apache.qpid.proton.amqp.transport.ErrorCondition condition)
When a redirect type exception is received this method is called to create the
appropriate redirect exception type containing the error details needed.
|
static String |
extractErrorMessage(org.apache.qpid.proton.amqp.transport.ErrorCondition errorCondition)
Attempt to read and return the embedded error message in the given ErrorCondition
object.
|
public static final org.apache.qpid.proton.amqp.Symbol SOLE_CONNECTION_CAPABILITY
public static final org.apache.qpid.proton.amqp.Symbol ANONYMOUS_RELAY
public static final org.apache.qpid.proton.amqp.Symbol CONNECTION_OPEN_FAILED
public static final org.apache.qpid.proton.amqp.Symbol INVALID_FIELD
public static final org.apache.qpid.proton.amqp.Symbol CONTAINER_ID
public static final org.apache.qpid.proton.amqp.Symbol PORT
public static final org.apache.qpid.proton.amqp.Symbol NETWORK_HOST
public static final org.apache.qpid.proton.amqp.Symbol OPEN_HOSTNAME
public static final org.apache.qpid.proton.amqp.Symbol QUEUE_PREFIX
public static final org.apache.qpid.proton.amqp.Symbol TOPIC_PREFIX
public static final org.apache.qpid.proton.amqp.Symbol PRODUCT
public static final org.apache.qpid.proton.amqp.Symbol VERSION
public static final org.apache.qpid.proton.amqp.Symbol PLATFORM
public static final org.apache.qpid.proton.amqp.Symbol COPY
public static final org.apache.qpid.proton.amqp.Symbol JMS_NO_LOCAL_SYMBOL
public static final org.apache.qpid.proton.amqp.Symbol JMS_SELECTOR_SYMBOL
public static final org.apache.qpid.proton.amqp.messaging.Rejected REJECTED
public static final org.apache.qpid.proton.amqp.messaging.Modified MODIFIED_FAILED
public static final org.apache.qpid.proton.amqp.messaging.Modified MODIFIED_FAILED_UNDELIVERABLE
public static final org.apache.qpid.proton.amqp.Symbol DYNAMIC_NODE_LIFETIME_POLICY
public static final String TEMP_QUEUE_CREATOR
public static final String TEMP_TOPIC_CREATOR
public static Exception convertToException(org.apache.qpid.proton.engine.Endpoint endpoint, org.apache.qpid.proton.amqp.transport.ErrorCondition errorCondition)
endpoint
- The target of the error.errorCondition
- The ErrorCondition returned from the remote peer.public static Exception convertToException(org.apache.qpid.proton.engine.Endpoint endpoint, org.apache.qpid.proton.amqp.transport.ErrorCondition errorCondition, Exception defaultException)
endpoint
- The target of the error.errorCondition
- The ErrorCondition returned from the remote peer.defaultException
- The default exception to throw if no error information is provided from the remote.public static String extractErrorMessage(org.apache.qpid.proton.amqp.transport.ErrorCondition errorCondition)
errorCondition
- The ErrorCondition to extract the error message from.public static Exception createRedirectException(org.apache.qpid.proton.amqp.Symbol error, String message, org.apache.qpid.proton.amqp.transport.ErrorCondition condition)
error
- the Symbol that defines the redirection error type.message
- the basic error message that should used or amended for the returned exception.condition
- the ErrorCondition that describes the redirection.Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.