public class

StringRpcServer

extends RpcServer
java.lang.Object
   ↳ com.rabbitmq.client.RpcServer
     ↳ com.rabbitmq.client.StringRpcServer
Known Direct Subclasses

Class Overview

Subclass of RpcServer which accepts UTF-8 string requests.

Summary

Public Constructors
StringRpcServer(Channel channel)
StringRpcServer(Channel channel, String queueName)
Public Methods
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.
[Expand]
Inherited Methods
From class com.rabbitmq.client.RpcServer
From class java.lang.Object

Public Constructors

public StringRpcServer (Channel channel)

Throws
IOException

public StringRpcServer (Channel channel, String queueName)

Throws
IOException

Public Methods

public byte[] handleCall (byte[] requestBody, AMQP.BasicProperties replyProperties)

Overridden to do UTF-8 processing, and delegate to handleStringCall. If UTF-8 is not understood by this JVM, falls back to the platform default.

public void handleCast (byte[] requestBody)

Overridden to do UTF-8 processing, and delegate to handleStringCast. If UTF-8 is not understood by this JVM, falls back to the platform default.

public String handleStringCall (String request)

Default implementation - override in subclasses. Returns the empty string.

public String handleStringCall (String request, AMQP.BasicProperties replyProperties)

Delegates to handleStringCall(String).

public void handleStringCast (String requestBody)

Default implementation - override in subclasses. Does nothing.