|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rabbitmq.client.RpcServer com.rabbitmq.client.StringRpcServer
public class StringRpcServer
Subclass of RpcServer which accepts UTF-8 string requests.
Field Summary | |
---|---|
static java.lang.String |
STRING_ENCODING
|
Constructor Summary | |
---|---|
StringRpcServer(Channel channel)
|
|
StringRpcServer(Channel channel,
java.lang.String queueName)
|
Method Summary | |
---|---|
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. |
java.lang.String |
handleStringCall(java.lang.String request)
Default implementation - override in subclasses. |
java.lang.String |
handleStringCall(java.lang.String request,
AMQP.BasicProperties replyProperties)
Delegates to handleStringCall(String). |
void |
handleStringCast(java.lang.String requestBody)
Default implementation - override in subclasses. |
Methods inherited from class com.rabbitmq.client.RpcServer |
---|
close, getChannel, getQueueName, handleCall, handleCall, handleCast, handleCast, mainloop, processRequest, setupConsumer, terminateMainloop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String STRING_ENCODING
Constructor Detail |
---|
public StringRpcServer(Channel channel) throws java.io.IOException
java.io.IOException
public StringRpcServer(Channel channel, java.lang.String queueName) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public byte[] handleCall(byte[] requestBody, AMQP.BasicProperties replyProperties)
handleCall
in class RpcServer
public java.lang.String handleStringCall(java.lang.String request, AMQP.BasicProperties replyProperties)
public java.lang.String handleStringCall(java.lang.String request)
public void handleCast(byte[] requestBody)
handleCast
in class RpcServer
public void handleStringCast(java.lang.String requestBody)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |