public class Request extends Object
| Constructor and Description |
|---|
Request(ApplicationContext applicationContext,
Message message,
Map<String,Object> metrics,
String requestId,
String requesterClientId) |
| Modifier and Type | Method and Description |
|---|---|
ApplicationContext |
getApplicationContext() |
Message |
getMessage() |
Map<String,Object> |
getMetrics() |
String |
getRequesterClientId() |
String |
getRequestId() |
Sender |
notification(String resource)
Get a notification sender
|
static Request |
parse(ApplicationContext context,
Message message) |
String |
renderTopic(int index) |
String |
renderTopic(int fromIndex,
int toIndex) |
Sender |
reply(int responseCode)
Get a reply sender
|
Sender |
replyError()
Get a error reply sender
|
void |
replyError(Throwable error)
Send an error reply
|
void |
replyNotFound()
Send a
not foundreply |
Sender |
replySuccess()
Get a success reply sender
|
String |
toString() |
public ApplicationContext getApplicationContext()
public Message getMessage()
public String getRequesterClientId()
public String getRequestId()
public String renderTopic(int index)
public String renderTopic(int fromIndex, int toIndex)
public static Request parse(ApplicationContext context, Message message) throws Exception
Exceptionpublic Sender replySuccess()
Note: A reply will only be send when one of the
send methods of the result was invoked.
nullpublic Sender replyError()
Note: A reply will only be send when one of the
send methods of the result was invoked.
nullpublic Sender reply(int responseCode)
Note: A reply will only be send when one of the
send methods of the result was invoked.
nullpublic Sender notification(String resource)
Note: A reply will only be send when one of the
send methods of the result was invoked.
nullpublic void replyError(Throwable error)
public void replyNotFound()
not foundreply
Copyright © 2017. All rights reserved.