public class StringRpcServer extends RpcServer
RpcServer.RpcConsumer| Modifier and Type | Field and Description |
|---|---|
static String |
STRING_ENCODING |
| Constructor and Description |
|---|
StringRpcServer(Channel channel) |
StringRpcServer(Channel channel,
String queueName) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
handleCall(byte[] requestBody,
AMQP.BasicProperties replyProperties)
Overridden to do UTF-8 processing, and delegate to
handleStringCall.
|
void |
handleCast(byte[] requestBody)
Overridden to do UTF-8 processing, and delegate to
handleStringCast.
|
String |
handleStringCall(String request)
Default implementation - override in subclasses.
|
String |
handleStringCall(String request,
AMQP.BasicProperties replyProperties)
Delegates to handleStringCall(String).
|
void |
handleStringCast(String requestBody)
Default implementation - override in subclasses.
|
close, getChannel, getQueueName, handleCall, handleCall, handleCast, handleCast, mainloop, postprocessReplyProperties, preprocessReplyProperties, processRequest, setupConsumer, terminateMainlooppublic static final String STRING_ENCODING
public StringRpcServer(Channel channel) throws IOException
IOExceptionpublic StringRpcServer(Channel channel, String queueName) throws IOException
IOExceptionpublic byte[] handleCall(byte[] requestBody,
AMQP.BasicProperties replyProperties)
handleCall in class RpcServerpublic String handleStringCall(String request, AMQP.BasicProperties replyProperties)
public String handleStringCall(String request)
public void handleCast(byte[] requestBody)
handleCast in class RpcServerpublic void handleStringCast(String requestBody)
Copyright © 2021 VMware, Inc. or its affiliates.. All rights reserved.