org.apache.camel.component.http
Class HttpConsumer

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultConsumer
          extended by org.apache.camel.component.http.HttpConsumer
All Implemented Interfaces:
Consumer, Service, ShutdownableService, SuspendableService

public class HttpConsumer
extends DefaultConsumer
implements SuspendableService

Version:

Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultConsumer
log
 
Constructor Summary
HttpConsumer(HttpEndpoint endpoint, Processor processor)
           
 
Method Summary
protected  void doStart()
           
protected  void doStop()
           
 HttpBinding getBinding()
           
 HttpEndpoint getEndpoint()
          Gets the endpoint this Consumer consumes from.
 String getPath()
           
 boolean isSuspended()
          Tests whether the service is suspended or not.
 void resume()
          Resumes the service.
 void suspend()
          Suspends the service.
 
Methods inherited from class org.apache.camel.impl.DefaultConsumer
getAsyncProcessor, getExceptionHandler, getProcessor, handleException, setExceptionHandler, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending, removeChildService, shutdown, start, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

HttpConsumer

public HttpConsumer(HttpEndpoint endpoint,
                    Processor processor)
Method Detail

getEndpoint

public HttpEndpoint getEndpoint()
Description copied from interface: Consumer
Gets the endpoint this Consumer consumes from.

Specified by:
getEndpoint in interface Consumer
Overrides:
getEndpoint in class DefaultConsumer
Returns:
the endpoint

getBinding

public HttpBinding getBinding()

getPath

public String getPath()

doStart

protected void doStart()
                throws Exception
Overrides:
doStart in class DefaultConsumer
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Overrides:
doStop in class DefaultConsumer
Throws:
Exception

suspend

public void suspend()
Description copied from interface: SuspendableService
Suspends the service.

Specified by:
suspend in interface SuspendableService
Overrides:
suspend in class ServiceSupport

resume

public void resume()
Description copied from interface: SuspendableService
Resumes the service.

Specified by:
resume in interface SuspendableService
Overrides:
resume in class ServiceSupport

isSuspended

public boolean isSuspended()
Description copied from interface: SuspendableService
Tests whether the service is suspended or not.

Specified by:
isSuspended in interface SuspendableService
Overrides:
isSuspended in class ServiceSupport
Returns:
true if this service is suspended


Apache CAMEL