org.mule.module.cxf.builder
Class AbstractInboundMessageProcessorBuilder

java.lang.Object
  extended by org.mule.module.cxf.builder.AbstractInboundMessageProcessorBuilder
All Implemented Interfaces:
MuleContextAware, MessageProcessorBuilder
Direct Known Subclasses:
ProxyServiceMessageProcessorBuilder, WebServiceMessageProcessorBuilder

public abstract class AbstractInboundMessageProcessorBuilder
extends java.lang.Object
implements MuleContextAware, MessageProcessorBuilder

An abstract builder for CXF services. It handles all common operations such as interceptor configuration, mule header enabling, etc. Subclasses can extend this and control how the Server is created and how the CxfInboundMessageProcessor is configured.


Field Summary
protected  MuleContext muleContext
           
 
Constructor Summary
AbstractInboundMessageProcessorBuilder()
           
 
Method Summary
 void addIgnoredMethods(org.apache.cxf.service.factory.ReflectionServiceFactoryBean svcFac, java.lang.String className)
           
 CxfInboundMessageProcessor build()
           
protected  void configureMessageProcessor(org.apache.cxf.frontend.ServerFactoryBean sfb, CxfInboundMessageProcessor processor)
           
protected  void configureServer(org.apache.cxf.endpoint.Server server2)
           
protected  org.apache.cxf.service.invoker.Invoker createInvoker(CxfInboundMessageProcessor processor)
           
protected abstract  org.apache.cxf.frontend.ServerFactoryBean createServerFactory()
           
protected  java.lang.String getAddress()
           
 java.lang.String getBindingId()
           
 CxfConfiguration getConfiguration()
           
 java.util.List<org.apache.cxf.feature.AbstractFeature> getFeatures()
           
 java.util.List<org.apache.cxf.interceptor.Interceptor> getInFaultInterceptors()
           
 java.util.List<org.apache.cxf.interceptor.Interceptor> getInInterceptors()
           
 java.lang.String getMtomEnabled()
           
 java.lang.String getNamespace()
           
 java.util.List<org.apache.cxf.interceptor.Interceptor> getOutFaultInterceptors()
           
 java.util.List<org.apache.cxf.interceptor.Interceptor> getOutInterceptors()
           
 java.lang.String getPort()
           
 java.util.Map<java.lang.String,java.lang.Object> getProperties()
           
 org.apache.cxf.endpoint.Server getServer()
           
 java.lang.String getService()
           
protected abstract  java.lang.Class<?> getServiceClass()
           
 java.lang.String getWsdlLocation()
           
 boolean isEnableMuleSoapHeaders()
           
abstract  boolean isProxy()
           
 void setBindingId(java.lang.String bindingId)
           
 void setConfiguration(CxfConfiguration configuration)
           
 void setEnableMuleSoapHeaders(boolean enableMuleSoapHeaders)
           
 void setFeatures(java.util.List<org.apache.cxf.feature.AbstractFeature> features)
           
 void setInFaultInterceptors(java.util.List<org.apache.cxf.interceptor.Interceptor> inFaultInterceptors)
           
 void setInInterceptors(java.util.List<org.apache.cxf.interceptor.Interceptor> inInterceptors)
           
 void setMtomEnabled(java.lang.String mtomEnabled)
           
 void setMuleContext(MuleContext muleContext)
           
 void setNamespace(java.lang.String namespace)
           
 void setOutFaultInterceptors(java.util.List<org.apache.cxf.interceptor.Interceptor> outFaultInterceptors)
           
 void setOutInterceptors(java.util.List<org.apache.cxf.interceptor.Interceptor> outInterceptors)
           
 void setPort(java.lang.String endpoint)
           
 void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
           
 void setService(java.lang.String name)
           
 void setWsdlLocation(java.lang.String wsdlUrl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

muleContext

protected MuleContext muleContext
Constructor Detail

AbstractInboundMessageProcessorBuilder

public AbstractInboundMessageProcessorBuilder()
Method Detail

build

public CxfInboundMessageProcessor build()
                                 throws MuleException
Specified by:
build in interface MessageProcessorBuilder
Throws:
MuleException

createInvoker

protected org.apache.cxf.service.invoker.Invoker createInvoker(CxfInboundMessageProcessor processor)

configureServer

protected void configureServer(org.apache.cxf.endpoint.Server server2)

getServiceClass

protected abstract java.lang.Class<?> getServiceClass()

configureMessageProcessor

protected void configureMessageProcessor(org.apache.cxf.frontend.ServerFactoryBean sfb,
                                         CxfInboundMessageProcessor processor)

createServerFactory

protected abstract org.apache.cxf.frontend.ServerFactoryBean createServerFactory()
                                                                          throws java.lang.Exception
Throws:
java.lang.Exception

getAddress

protected java.lang.String getAddress()

addIgnoredMethods

public void addIgnoredMethods(org.apache.cxf.service.factory.ReflectionServiceFactoryBean svcFac,
                              java.lang.String className)

getServer

public org.apache.cxf.endpoint.Server getServer()

isProxy

public abstract boolean isProxy()

getConfiguration

public CxfConfiguration getConfiguration()

setConfiguration

public void setConfiguration(CxfConfiguration configuration)

isEnableMuleSoapHeaders

public boolean isEnableMuleSoapHeaders()

setEnableMuleSoapHeaders

public void setEnableMuleSoapHeaders(boolean enableMuleSoapHeaders)

getWsdlLocation

public java.lang.String getWsdlLocation()

setWsdlLocation

public void setWsdlLocation(java.lang.String wsdlUrl)

getBindingId

public java.lang.String getBindingId()

setBindingId

public void setBindingId(java.lang.String bindingId)

getMtomEnabled

public java.lang.String getMtomEnabled()

setMtomEnabled

public void setMtomEnabled(java.lang.String mtomEnabled)

getService

public java.lang.String getService()

setService

public void setService(java.lang.String name)

getNamespace

public java.lang.String getNamespace()

setNamespace

public void setNamespace(java.lang.String namespace)

getFeatures

public java.util.List<org.apache.cxf.feature.AbstractFeature> getFeatures()

setFeatures

public void setFeatures(java.util.List<org.apache.cxf.feature.AbstractFeature> features)

getInInterceptors

public java.util.List<org.apache.cxf.interceptor.Interceptor> getInInterceptors()

setInInterceptors

public void setInInterceptors(java.util.List<org.apache.cxf.interceptor.Interceptor> inInterceptors)

getInFaultInterceptors

public java.util.List<org.apache.cxf.interceptor.Interceptor> getInFaultInterceptors()

setInFaultInterceptors

public void setInFaultInterceptors(java.util.List<org.apache.cxf.interceptor.Interceptor> inFaultInterceptors)

getOutInterceptors

public java.util.List<org.apache.cxf.interceptor.Interceptor> getOutInterceptors()

setOutInterceptors

public void setOutInterceptors(java.util.List<org.apache.cxf.interceptor.Interceptor> outInterceptors)

getOutFaultInterceptors

public java.util.List<org.apache.cxf.interceptor.Interceptor> getOutFaultInterceptors()

setOutFaultInterceptors

public void setOutFaultInterceptors(java.util.List<org.apache.cxf.interceptor.Interceptor> outFaultInterceptors)

setMuleContext

public void setMuleContext(MuleContext muleContext)
Specified by:
setMuleContext in interface MuleContextAware

getPort

public java.lang.String getPort()

setPort

public void setPort(java.lang.String endpoint)

getProperties

public java.util.Map<java.lang.String,java.lang.Object> getProperties()

setProperties

public void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.