public class MessageFactory extends Object
Constructor and Description |
---|
MessageFactory() |
Modifier and Type | Method and Description |
---|---|
static List<Message> |
createCommandMessage(QueueSession session,
EJValue value) |
static List<Message> |
createCommandMessage(QueueSession session,
javax.servlet.http.HttpServletRequest request) |
static Message |
createCommandMessage(QueueSession session,
javax.servlet.http.HttpServletRequest request,
String json)
Creates the command message from the given JSON string and session.
|
static List<Message> |
createCommandMessage(QueueSession session,
InputStream inputStream) |
static Message |
createCommandMessage(QueueSession session,
String json) |
static Map<String,Object> |
decodeToMap(String in)
Decodes a JSON string to a map (string name -> object)
|
public static Map<String,Object> decodeToMap(String in)
in
- - JSON stringpublic static Message createCommandMessage(QueueSession session, javax.servlet.http.HttpServletRequest request, String json)
session
- - the queue session in which the message existsrequest
- -json
- - the string representing the parts of the messagepublic static Message createCommandMessage(QueueSession session, String json)
public static List<Message> createCommandMessage(QueueSession session, javax.servlet.http.HttpServletRequest request) throws IOException
IOException
public static List<Message> createCommandMessage(QueueSession session, InputStream inputStream) throws IOException
IOException
public static List<Message> createCommandMessage(QueueSession session, EJValue value)
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.