org.apache.camel.component.cxf
Class CxfEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint
      extended by org.apache.camel.component.cxf.CxfEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton, Service, HeaderFilterStrategyAware
Direct Known Subclasses:
CxfSpringEndpoint

public class CxfEndpoint
extends DefaultEndpoint
implements HeaderFilterStrategyAware, Service

Defines the CXF Endpoint. It contains a list of properties for CXF endpoint including DataFormat, CxfBinding, and HeaderFilterStrategy. The default DataFormat mode is DataFormat.POJO.

Version:
$Revision: 20459 $

Constructor Summary
CxfEndpoint(String remaining, CamelContext context)
           
CxfEndpoint(String remaining, CxfComponent cxfComponent)
           
 
Method Summary
protected  org.apache.cxf.frontend.ClientFactoryBean createClientFactoryBean()
          Create a client factory bean object without serviceClass interface.
protected  org.apache.cxf.frontend.ClientProxyFactoryBean createClientFactoryBean(Class<?> cls)
          Create a client factory bean object.
 Consumer createConsumer(Processor processor)
           
 Producer createProducer()
           
protected  org.apache.cxf.Bus doGetBus()
           
 org.apache.cxf.Bus getBus()
           
 CxfBinding getCxfBinding()
           
 DataFormat getDataFormat()
           
 String getDefaultOperationName()
           
 String getDefaultOperationNamespace()
           
 HeaderFilterStrategy getHeaderFilterStrategy()
           
 String getPortName()
           
 String getServiceClass()
           
 String getServiceName()
           
 Boolean getWrappedStyle()
           
 String getWsdlURL()
           
 boolean isInOut()
           
 boolean isLoggingFeatureEnabled()
           
 boolean isSetDefaultBus()
           
 boolean isSingleton()
           
 boolean isWrapped()
           
 void setBus(org.apache.cxf.Bus bus)
           
 void setCxfBinding(CxfBinding cxfBinding)
           
 void setDataFormat(DataFormat format)
           
 void setDefaultOperationName(String name)
           
 void setDefaultOperationNamespace(String namespace)
           
 void setHeaderFilterStrategy(HeaderFilterStrategy headerFilterStrategy)
           
 void setInOut(boolean inOut)
           
 void setLoggingFeatureEnabled(boolean loggingFeatureEnabled)
           
 void setPortName(String port)
           
 void setServiceClass(Object instance)
           
 void setServiceClass(String className)
           
 void setServiceName(String service)
           
 void setSetDefaultBus(boolean isSetDefaultBus)
           
protected  void setupClientFactoryBean(org.apache.cxf.frontend.ClientFactoryBean factoryBean)
           
protected  void setupClientFactoryBean(org.apache.cxf.frontend.ClientProxyFactoryBean factoryBean, Class<?> cls)
          Populate a client factory bean
protected  void setupServerFactoryBean(org.apache.cxf.frontend.ServerFactoryBean sfb, Class<?> cls)
          Populate server factory bean
 void setWrapped(boolean wrapped)
           
 void setWrappedStyle(Boolean wrapped)
           
 void setWsdlURL(String url)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureProperties, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, hashCode, isLenientProperties, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CxfEndpoint

public CxfEndpoint(String remaining,
                   CxfComponent cxfComponent)

CxfEndpoint

public CxfEndpoint(String remaining,
                   CamelContext context)
Method Detail

createProducer

public Producer createProducer()
                        throws Exception
Specified by:
createProducer in interface Endpoint
Throws:
Exception

createConsumer

public Consumer createConsumer(Processor processor)
                        throws Exception
Specified by:
createConsumer in interface Endpoint
Throws:
Exception

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface IsSingleton

setupServerFactoryBean

protected void setupServerFactoryBean(org.apache.cxf.frontend.ServerFactoryBean sfb,
                                      Class<?> cls)
Populate server factory bean


createClientFactoryBean

protected org.apache.cxf.frontend.ClientProxyFactoryBean createClientFactoryBean(Class<?> cls)
                                                                          throws CamelException
Create a client factory bean object. Notice that the serviceClass must be an interface.

Throws:
CamelException

createClientFactoryBean

protected org.apache.cxf.frontend.ClientFactoryBean createClientFactoryBean()
Create a client factory bean object without serviceClass interface.


doGetBus

protected org.apache.cxf.Bus doGetBus()

setupClientFactoryBean

protected void setupClientFactoryBean(org.apache.cxf.frontend.ClientProxyFactoryBean factoryBean,
                                      Class<?> cls)
Populate a client factory bean


setupClientFactoryBean

protected void setupClientFactoryBean(org.apache.cxf.frontend.ClientFactoryBean factoryBean)

getDataFormat

public DataFormat getDataFormat()

setDataFormat

public void setDataFormat(DataFormat format)

getWsdlURL

public String getWsdlURL()

setWsdlURL

public void setWsdlURL(String url)

getServiceClass

public String getServiceClass()

setServiceClass

public void setServiceClass(String className)

setServiceClass

public void setServiceClass(Object instance)

setServiceName

public void setServiceName(String service)

getServiceName

public String getServiceName()

getPortName

public String getPortName()

setPortName

public void setPortName(String port)

getDefaultOperationName

public String getDefaultOperationName()

setDefaultOperationName

public void setDefaultOperationName(String name)

getDefaultOperationNamespace

public String getDefaultOperationNamespace()

setDefaultOperationNamespace

public void setDefaultOperationNamespace(String namespace)

isInOut

public boolean isInOut()

setInOut

public void setInOut(boolean inOut)

isWrapped

public boolean isWrapped()

setWrapped

public void setWrapped(boolean wrapped)

getWrappedStyle

public Boolean getWrappedStyle()

setWrappedStyle

public void setWrappedStyle(Boolean wrapped)

setCxfBinding

public void setCxfBinding(CxfBinding cxfBinding)

getCxfBinding

public CxfBinding getCxfBinding()

setHeaderFilterStrategy

public void setHeaderFilterStrategy(HeaderFilterStrategy headerFilterStrategy)
Specified by:
setHeaderFilterStrategy in interface HeaderFilterStrategyAware

getHeaderFilterStrategy

public HeaderFilterStrategy getHeaderFilterStrategy()
Specified by:
getHeaderFilterStrategy in interface HeaderFilterStrategyAware

setBus

public void setBus(org.apache.cxf.Bus bus)

getBus

public org.apache.cxf.Bus getBus()

setSetDefaultBus

public void setSetDefaultBus(boolean isSetDefaultBus)

isSetDefaultBus

public boolean isSetDefaultBus()

setLoggingFeatureEnabled

public void setLoggingFeatureEnabled(boolean loggingFeatureEnabled)

isLoggingFeatureEnabled

public boolean isLoggingFeatureEnabled()

start

public void start()
           throws Exception
Specified by:
start in interface Service
Throws:
Exception

stop

public void stop()
          throws Exception
Specified by:
stop in interface Service
Throws:
Exception


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.