org.apache.camel.component.jetty
Class JettyHttpComponent

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultComponent
          extended by org.apache.camel.impl.HeaderFilterStrategyComponent
              extended by org.apache.camel.component.http.HttpComponent
                  extended by org.apache.camel.component.jetty.JettyHttpComponent
All Implemented Interfaces:
Component, Service, HeaderFilterStrategyAware

public class JettyHttpComponent
extends HttpComponent

An HttpComponent which starts an embedded Jetty for to handle consuming from the http endpoints.

Version:
$Revision: 792899 $

Field Summary
protected static HashMap<String,org.apache.camel.component.jetty.JettyHttpComponent.ConnectorRef> CONNECTORS
           
protected  String sslKeyPassword
           
protected  String sslKeystore
           
protected  String sslPassword
           
protected  org.mortbay.jetty.security.SslSocketConnector sslSocketConnector
           
 
Fields inherited from class org.apache.camel.component.http.HttpComponent
httpBinding, httpClientConfigurer, httpConnectionManager
 
Constructor Summary
JettyHttpComponent()
           
 
Method Summary
 void connect(HttpConsumer consumer)
          Connects the URL specified on the endpoint to the specified processor.
protected  Endpoint createEndpoint(String uri, String remaining, Map parameters)
           
protected  org.mortbay.jetty.Server createServer()
           
protected  CamelServlet createServletForConnector(org.mortbay.jetty.Server server, org.mortbay.jetty.Connector connector, List<org.mortbay.jetty.Handler> handlers)
           
 void disconnect(HttpConsumer consumer)
          Disconnects the URL specified on the endpoint from the specified processor.
 String getKeystore()
           
 String getSslKeyPassword()
           
 String getSslPassword()
           
 org.mortbay.jetty.security.SslSocketConnector getSslSocketConnector()
           
 void setKeystore(String sslKeystore)
           
 void setSslKeyPassword(String sslKeyPassword)
           
 void setSslPassword(String sslPassword)
           
 void setSslSocketConnector(org.mortbay.jetty.security.SslSocketConnector connector)
           
 
Methods inherited from class org.apache.camel.component.http.HttpComponent
configureParameters, getHttpBinding, getHttpClientConfigurer, getHttpConnectionManager, isMatchOnUriPrefix, setHttpBinding, setHttpClientConfigurer, setHttpConnectionManager, useIntrospectionOnEndpoint
 
Methods inherited from class org.apache.camel.impl.HeaderFilterStrategyComponent
getHeaderFilterStrategy, setEndpointHeaderFilterStrategy, setHeaderFilterStrategy
 
Methods inherited from class org.apache.camel.impl.DefaultComponent
convertTo, createEndpoint, createScheduledExecutorService, doStart, doStop, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getExecutorService, getScheduledExecutorService, ifStartsWithReturnRemainder, lookup, lookup, mandatoryConvertTo, mandatoryLookup, mandatoryLookup, newInstance, setCamelContext, setExecutorService, setProperties, validateParameters, validateURI
 
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, toString, wait, wait, wait
 

Field Detail

CONNECTORS

protected static final HashMap<String,org.apache.camel.component.jetty.JettyHttpComponent.ConnectorRef> CONNECTORS

sslKeyPassword

protected String sslKeyPassword

sslPassword

protected String sslPassword

sslKeystore

protected String sslKeystore

sslSocketConnector

protected org.mortbay.jetty.security.SslSocketConnector sslSocketConnector
Constructor Detail

JettyHttpComponent

public JettyHttpComponent()
Method Detail

createEndpoint

protected Endpoint createEndpoint(String uri,
                                  String remaining,
                                  Map parameters)
                           throws Exception
Overrides:
createEndpoint in class HttpComponent
Throws:
Exception

connect

public void connect(HttpConsumer consumer)
             throws Exception
Connects the URL specified on the endpoint to the specified processor.

Overrides:
connect in class HttpComponent
Throws:
Exception

disconnect

public void disconnect(HttpConsumer consumer)
                throws Exception
Disconnects the URL specified on the endpoint from the specified processor.

Overrides:
disconnect in class HttpComponent
Throws:
Exception

getSslKeyPassword

public String getSslKeyPassword()

setSslKeyPassword

public void setSslKeyPassword(String sslKeyPassword)

getSslPassword

public String getSslPassword()

setSslPassword

public void setSslPassword(String sslPassword)

setKeystore

public void setKeystore(String sslKeystore)

getKeystore

public String getKeystore()

getSslSocketConnector

public org.mortbay.jetty.security.SslSocketConnector getSslSocketConnector()

setSslSocketConnector

public void setSslSocketConnector(org.mortbay.jetty.security.SslSocketConnector connector)

createServletForConnector

protected CamelServlet createServletForConnector(org.mortbay.jetty.Server server,
                                                 org.mortbay.jetty.Connector connector,
                                                 List<org.mortbay.jetty.Handler> handlers)
                                          throws Exception
Throws:
Exception

createServer

protected org.mortbay.jetty.Server createServer()
                                         throws Exception
Throws:
Exception


Apache CAMEL