public class ActiveMQ extends Object
| Constructor and Description |
|---|
ActiveMQ() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getEntity(org.apache.activemq.artemis.api.core.client.ClientMessage message,
Class<T> type)
Extract an object using a built-in RESTEasy JAX-RS MessageBodyReader
|
static <T> T |
getEntity(org.apache.activemq.artemis.api.core.client.ClientMessage message,
Class<T> type,
org.jboss.resteasy.spi.ResteasyProviderFactory factory)
Extract an object using a built-in RESTEasy JAX-RS MessageBodyReader
|
static <T> T |
getEntity(org.apache.activemq.artemis.api.core.client.ClientMessage msg,
Class<T> type,
Type genericType,
org.jboss.resteasy.spi.ResteasyProviderFactory factory) |
static <T> T |
getEntity(org.apache.activemq.artemis.api.core.client.ClientMessage message,
org.jboss.resteasy.util.GenericType<T> type,
org.jboss.resteasy.spi.ResteasyProviderFactory factory)
Extract an object using a built-in RESTEasy JAX-RS MessageBodyReader
|
static String |
getHttpHeader(org.apache.activemq.artemis.api.core.client.ClientMessage message,
String name)
Get an HTTP header value from a JMS Message
|
static boolean |
isHttpMessage(org.apache.activemq.artemis.api.core.client.ClientMessage msg)
Was this ActiveMQ Artemis message generated from a REST call?
|
static void |
setEntity(org.apache.activemq.artemis.api.core.client.ClientMessage message,
Serializable object)
Sets the message body to a serialized
byte array of the object.
|
static void |
setEntity(org.apache.activemq.artemis.api.core.client.ClientMessage message,
Serializable object,
String contentType)
Sets a message property to be the Content-Type passed in.
|
static void |
setHttpHeader(org.apache.activemq.artemis.api.core.client.ClientMessage message,
String name,
String value) |
public static void setEntity(org.apache.activemq.artemis.api.core.client.ClientMessage message,
Serializable object)
message - object - public static void setEntity(org.apache.activemq.artemis.api.core.client.ClientMessage message,
Serializable object,
String contentType)
message - object - contentType - HTTP Content-Type headerpublic static void setHttpHeader(org.apache.activemq.artemis.api.core.client.ClientMessage message,
String name,
String value)
public static String getHttpHeader(org.apache.activemq.artemis.api.core.client.ClientMessage message, String name)
message - name - public static <T> T getEntity(org.apache.activemq.artemis.api.core.client.ClientMessage message,
Class<T> type)
message - type - public static <T> T getEntity(org.apache.activemq.artemis.api.core.client.ClientMessage message,
Class<T> type,
org.jboss.resteasy.spi.ResteasyProviderFactory factory)
message - type - factory - public static <T> T getEntity(org.apache.activemq.artemis.api.core.client.ClientMessage message,
org.jboss.resteasy.util.GenericType<T> type,
org.jboss.resteasy.spi.ResteasyProviderFactory factory)
throws UnknownMediaType,
UnmarshalException
message - type - factory - UnknownMediaTypeUnmarshalExceptionpublic static <T> T getEntity(org.apache.activemq.artemis.api.core.client.ClientMessage msg,
Class<T> type,
Type genericType,
org.jboss.resteasy.spi.ResteasyProviderFactory factory)
public static boolean isHttpMessage(org.apache.activemq.artemis.api.core.client.ClientMessage msg)
msg - Copyright © 2023 The Apache Software Foundation. All Rights Reserved.