public class ReflectResponder extends SpecificResponder
Responder for existing interfaces.rpcMetaPlugins| Constructor and Description |
|---|
ReflectResponder(Class iface,
Object impl) |
ReflectResponder(Protocol protocol,
Object impl) |
| Modifier and Type | Method and Description |
|---|---|
protected DatumReader<Object> |
getDatumReader(Schema actual,
Schema expected) |
protected DatumWriter<Object> |
getDatumWriter(Schema schema) |
void |
writeError(Schema schema,
Object error,
Encoder out)
Writes an error message.
|
respondreadRequest, writeResponseprotected DatumWriter<Object> getDatumWriter(Schema schema)
getDatumWriter in class SpecificResponderprotected DatumReader<Object> getDatumReader(Schema actual, Schema expected)
getDatumReader in class SpecificResponderpublic void writeError(Schema schema, Object error, Encoder out) throws IOException
ResponderwriteError in class SpecificResponderIOExceptionCopyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.