public class AvroComponent
extends org.apache.camel.impl.UriEndpointComponent
Constructor and Description |
---|
AvroComponent() |
AvroComponent(org.apache.camel.CamelContext context) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters)
A factory method allowing derived components to create a new endpoint
from the given URI, remaining path and optional parameters
|
AvroConfiguration |
getConfiguration() |
void |
register(String uri,
String messageName,
AvroConsumer consumer)
Registers new responder with uri as key.
|
void |
setConfiguration(AvroConfiguration configuration)
To use a shared
AvroConfiguration to configure options once |
void |
unregister(String uri,
String messageName)
Calls unregister of consumer by appropriate message name.
|
createComponentConfiguration, createParameterConfigurationMap, getEndpointClass, getParameterConfigurationMap, populateParameterConfigurationMap, setEndpointClass
afterConfiguration, createConfiguration, createEndpoint, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
public AvroComponent()
public AvroComponent(org.apache.camel.CamelContext context)
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint
in class org.apache.camel.impl.DefaultComponent
uri
- the full URI of the endpointremaining
- the remaining part of the URI without the query
parameters or component prefixparameters
- the optional parameters passed inException
public void register(String uri, String messageName, AvroConsumer consumer) throws Exception
uri
- URI of the endpoint without message namemessageName
- message nameconsumer
- consumer that will be registered in providers` registryException
public void unregister(String uri, String messageName)
uri
- URI of the endpoint without message namemessageName
- message namepublic AvroConfiguration getConfiguration()
public void setConfiguration(AvroConfiguration configuration)
AvroConfiguration
to configure options onceApache Camel