Search in sources :

Example 1 with HttpTransceiver

use of org.apache.avro.ipc.HttpTransceiver in project camel by apache.

the class AvroHttpConsumerTest method initializeTranceiver.

@Override
protected void initializeTranceiver() throws IOException {
    transceiver = new HttpTransceiver(new URL("http://localhost:" + avroPort));
    requestor = new SpecificRequestor(KeyValueProtocol.class, transceiver);
    transceiverMessageInRoute = new HttpTransceiver(new URL("http://localhost:" + avroPortMessageInRoute));
    requestorMessageInRoute = new SpecificRequestor(KeyValueProtocol.class, transceiverMessageInRoute);
    transceiverForWrongMessages = new HttpTransceiver(new URL("http://localhost:" + avroPortForWrongMessages));
    requestorForWrongMessages = new SpecificRequestor(KeyValueProtocol.class, transceiverForWrongMessages);
    reflectTransceiver = new HttpTransceiver(new URL("http://localhost:" + avroPortReflection));
    reflectRequestor = new ReflectRequestor(TestReflection.class, reflectTransceiver);
}
Also used : SpecificRequestor(org.apache.avro.ipc.specific.SpecificRequestor) HttpTransceiver(org.apache.avro.ipc.HttpTransceiver) ReflectRequestor(org.apache.avro.ipc.reflect.ReflectRequestor) TestReflection(org.apache.camel.avro.test.TestReflection) URL(java.net.URL) KeyValueProtocol(org.apache.camel.avro.generated.KeyValueProtocol)

Aggregations

URL (java.net.URL)1 HttpTransceiver (org.apache.avro.ipc.HttpTransceiver)1 ReflectRequestor (org.apache.avro.ipc.reflect.ReflectRequestor)1 SpecificRequestor (org.apache.avro.ipc.specific.SpecificRequestor)1 KeyValueProtocol (org.apache.camel.avro.generated.KeyValueProtocol)1 TestReflection (org.apache.camel.avro.test.TestReflection)1