public class GeoCoderProducer extends DefaultProducer
log
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
GeoCoderProducer(GeoCoderEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart()
Implementations override this method to support customized start/stop.
|
protected void |
extractGeoResult(com.google.code.geocoder.model.GeocodeResponse res,
Exchange exchange) |
void |
process(Exchange exchange)
Processes the message exchange
|
protected void |
processCurrentLocation(Exchange exchange) |
createExchange, createExchange, createExchange, doStop, getEndpoint, isSingleton, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
public GeoCoderProducer(GeoCoderEndpoint endpoint)
public void process(Exchange exchange) throws Exception
Processor
exchange
- the message exchangeException
- if an internal processing error has occurred.protected void processCurrentLocation(Exchange exchange) throws Exception
Exception
protected void extractGeoResult(com.google.code.geocoder.model.GeocodeResponse res, Exchange exchange)
protected void doStart() throws Exception
ServiceSupport
ServiceSupport.doStop()
for more details.doStart
in class DefaultProducer
Exception
ServiceSupport.doStop()
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.