org.apache.camel.component.jetty
Class JettyHttpProducer

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultProducer
          extended by org.apache.camel.component.jetty.JettyHttpProducer
All Implemented Interfaces:
AsyncProcessor, IsSingleton, Processor, Producer, Service

public class JettyHttpProducer
extends DefaultProducer
implements AsyncProcessor

Version:
$Revision: 885380 $

Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultProducer
log
 
Constructor Summary
JettyHttpProducer(Endpoint endpoint, org.mortbay.jetty.client.HttpClient client)
           
 
Method Summary
protected  JettyContentExchange createHttpExchange(Exchange exchange)
           
protected static void doSendExchange(org.mortbay.jetty.client.HttpClient client, JettyContentExchange httpExchange)
           
protected  void doStart()
           
protected  void doStop()
           
 JettyHttpBinding getBinding()
           
 JettyHttpEndpoint getEndpoint()
           
 void process(Exchange exchange)
           
 void process(Exchange exchange, AsyncCallback callback)
           
protected  void sendAsynchronous(Exchange exchange, org.mortbay.jetty.client.HttpClient client, JettyContentExchange httpExchange, AsyncCallback callback)
           
protected  void sendSynchronous(Exchange exchange, org.mortbay.jetty.client.HttpClient client, JettyContentExchange httpExchange)
           
 void setBinding(JettyHttpBinding binding)
           
 
Methods inherited from class org.apache.camel.impl.DefaultProducer
createExchange, createExchange, createExchange, isSingleton, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, 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

JettyHttpProducer

public JettyHttpProducer(Endpoint endpoint,
                         org.mortbay.jetty.client.HttpClient client)
Method Detail

getEndpoint

public JettyHttpEndpoint getEndpoint()
Specified by:
getEndpoint in interface Producer
Overrides:
getEndpoint in class DefaultProducer

process

public void process(Exchange exchange)
             throws Exception
Specified by:
process in interface Processor
Throws:
Exception

process

public void process(Exchange exchange,
                    AsyncCallback callback)
             throws Exception
Specified by:
process in interface AsyncProcessor
Throws:
Exception

sendAsynchronous

protected void sendAsynchronous(Exchange exchange,
                                org.mortbay.jetty.client.HttpClient client,
                                JettyContentExchange httpExchange,
                                AsyncCallback callback)
                         throws IOException
Throws:
IOException

sendSynchronous

protected void sendSynchronous(Exchange exchange,
                               org.mortbay.jetty.client.HttpClient client,
                               JettyContentExchange httpExchange)
                        throws Exception
Throws:
Exception

createHttpExchange

protected JettyContentExchange createHttpExchange(Exchange exchange)
                                           throws Exception
Throws:
Exception

doSendExchange

protected static void doSendExchange(org.mortbay.jetty.client.HttpClient client,
                                     JettyContentExchange httpExchange)
                              throws IOException
Throws:
IOException

getBinding

public JettyHttpBinding getBinding()

setBinding

public void setBinding(JettyHttpBinding binding)

doStart

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

doStop

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


Copyright © 2007-2009 The Apache Software Foundation. All Rights Reserved.