org.apache.camel.component.http
Class HttpEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint<HttpExchange>
      extended by org.apache.camel.component.http.HttpEndpoint
All Implemented Interfaces:
org.apache.camel.Endpoint<HttpExchange>

public class HttpEndpoint
extends org.apache.camel.impl.DefaultEndpoint<HttpExchange>

Represents a HTTP endpoint

Version:
$Revision: 563665 $

Constructor Summary
protected HttpEndpoint(String uri, HttpComponent component)
           
 
Method Summary
 void connect(HttpConsumer consumer)
           
 org.apache.camel.Consumer<HttpExchange> createConsumer(org.apache.camel.Processor processor)
           
 HttpExchange createExchange()
           
 HttpExchange createExchange(HttpServletRequest request, HttpServletResponse response)
           
 HttpProducer createProducer()
           
 void disconnect(HttpConsumer consumer)
           
 HttpBinding getBinding()
           
 String getPath()
           
 int getPort()
           
 String getProtocol()
           
 boolean isSingleton()
           
 void setBinding(HttpBinding binding)
           
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
convertTo, createExchange, createExecutorService, createPollingConsumer, equals, getComponent, getContext, getEndpointUri, getExchangeType, getExecutorService, hashCode, setExecutorService, toExchangeType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpEndpoint

protected HttpEndpoint(String uri,
                       HttpComponent component)
                throws URISyntaxException
Throws:
URISyntaxException
Method Detail

createProducer

public HttpProducer createProducer()
                            throws Exception
Throws:
Exception

createConsumer

public org.apache.camel.Consumer<HttpExchange> createConsumer(org.apache.camel.Processor processor)
                                                       throws Exception
Throws:
Exception

createExchange

public HttpExchange createExchange()

createExchange

public HttpExchange createExchange(HttpServletRequest request,
                                   HttpServletResponse response)

getBinding

public HttpBinding getBinding()

setBinding

public void setBinding(HttpBinding binding)

isSingleton

public boolean isSingleton()

connect

public void connect(HttpConsumer consumer)
             throws Exception
Throws:
Exception

disconnect

public void disconnect(HttpConsumer consumer)
                throws Exception
Throws:
Exception

getPath

public String getPath()

getPort

public int getPort()

getProtocol

public String getProtocol()


Copyright © 2007 Apache Software Foundation. All Rights Reserved.