org.mule.module.cxf
Class CxfInboundMessageProcessor

java.lang.Object
  extended by org.mule.processor.AbstractInterceptingMessageProcessorBase
      extended by org.mule.processor.AbstractInterceptingMessageProcessor
          extended by org.mule.module.cxf.CxfInboundMessageProcessor
All Implemented Interfaces:
org.mule.api.AnnotatedObject, org.mule.api.context.MuleContextAware, org.mule.api.lifecycle.Disposable, org.mule.api.lifecycle.Initialisable, org.mule.api.lifecycle.Lifecycle, org.mule.api.lifecycle.Startable, org.mule.api.lifecycle.Stoppable, org.mule.api.processor.InterceptingMessageProcessor, org.mule.api.processor.MessageProcessor, org.mule.api.processor.MessageProcessorContainer, org.mule.api.source.MessageSource

public class CxfInboundMessageProcessor
extends org.mule.processor.AbstractInterceptingMessageProcessor
implements org.mule.api.lifecycle.Lifecycle

The CxfInboundMessageProcessor performs inbound CXF processing, sending an event through the CXF service, then on to the next MessageProcessor. This processor gets built by a MessageProcessorBuilder which is responsible for configuring it and the Server that it dispatches to.


Field Summary
protected  org.apache.cxf.Bus bus
           
static String JMS_TRANSPORT
           
protected  org.apache.commons.logging.Log logger
          logger used by this class
protected  org.apache.cxf.endpoint.Server server
           
protected  String transportClass
           
 
Fields inherited from class org.mule.processor.AbstractInterceptingMessageProcessorBase
muleContext, next, notificationHandler
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Fields inherited from interface org.mule.api.AnnotatedObject
PROPERTY_NAME
 
Constructor Summary
CxfInboundMessageProcessor()
           
 
Method Summary
 void dispose()
           
protected  org.mule.api.MuleEvent generateWSDLOrXSD(org.mule.api.MuleEvent event, String req)
           
 org.apache.cxf.Bus getBus()
           
protected  InputStream getMessageStream(org.mule.api.MuleEvent context)
          Gets the stream representation of the current message.
protected  org.mule.api.transport.OutputHandler getRessponseOutputHandler(org.apache.cxf.message.MessageImpl m)
           
 org.apache.cxf.endpoint.Server getServer()
           
protected  String getSoapAction(org.mule.api.MuleMessage message)
           
 void initialise()
           
 boolean isProxy()
           
 org.mule.api.MuleEvent process(org.mule.api.MuleEvent event)
           
 org.mule.api.MuleEvent processNext(org.mule.api.MuleEvent event)
           
protected  org.mule.api.MuleEvent sendToDestination(org.mule.api.MuleEvent event)
           
 void setBus(org.apache.cxf.Bus bus)
           
 void setProxy(boolean proxy)
           
 void setServer(org.apache.cxf.endpoint.Server server)
           
protected  boolean shouldSoapActionHeader()
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.mule.processor.AbstractInterceptingMessageProcessorBase
addMessageProcessorPathElements, getAnnotation, getAnnotations, getListener, getMuleContext, isEventValid, setAnnotations, setListener, setMuleContext, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mule.api.source.MessageSource
setListener
 

Field Detail

JMS_TRANSPORT

public static final String JMS_TRANSPORT
See Also:
Constant Field Values

logger

protected transient org.apache.commons.logging.Log logger
logger used by this class


bus

protected org.apache.cxf.Bus bus

transportClass

protected String transportClass

server

protected org.apache.cxf.endpoint.Server server
Constructor Detail

CxfInboundMessageProcessor

public CxfInboundMessageProcessor()
Method Detail

initialise

public void initialise()
                throws org.mule.api.lifecycle.InitialisationException
Specified by:
initialise in interface org.mule.api.lifecycle.Initialisable
Throws:
org.mule.api.lifecycle.InitialisationException

stop

public void stop()
          throws org.mule.api.MuleException
Specified by:
stop in interface org.mule.api.lifecycle.Stoppable
Throws:
org.mule.api.MuleException

start

public void start()
           throws org.mule.api.MuleException
Specified by:
start in interface org.mule.api.lifecycle.Startable
Throws:
org.mule.api.MuleException

dispose

public void dispose()
Specified by:
dispose in interface org.mule.api.lifecycle.Disposable

process

public org.mule.api.MuleEvent process(org.mule.api.MuleEvent event)
                               throws org.mule.api.MuleException
Specified by:
process in interface org.mule.api.processor.MessageProcessor
Throws:
org.mule.api.MuleException

generateWSDLOrXSD

protected org.mule.api.MuleEvent generateWSDLOrXSD(org.mule.api.MuleEvent event,
                                                   String req)
                                            throws org.mule.api.endpoint.EndpointNotFoundException,
                                                   IOException
Throws:
org.mule.api.endpoint.EndpointNotFoundException
IOException

sendToDestination

protected org.mule.api.MuleEvent sendToDestination(org.mule.api.MuleEvent event)
                                            throws org.mule.api.MuleException,
                                                   IOException
Throws:
org.mule.api.MuleException
IOException

shouldSoapActionHeader

protected boolean shouldSoapActionHeader()

processNext

public org.mule.api.MuleEvent processNext(org.mule.api.MuleEvent event)
                                   throws org.mule.api.MuleException
Overrides:
processNext in class org.mule.processor.AbstractInterceptingMessageProcessorBase
Throws:
org.mule.api.MuleException

getRessponseOutputHandler

protected org.mule.api.transport.OutputHandler getRessponseOutputHandler(org.apache.cxf.message.MessageImpl m)

getMessageStream

protected InputStream getMessageStream(org.mule.api.MuleEvent context)
                                throws org.mule.api.MuleException
Gets the stream representation of the current message.

Parameters:
context - the event context
Returns:
The inputstream for the current message
Throws:
org.mule.api.MuleException

getSoapAction

protected String getSoapAction(org.mule.api.MuleMessage message)

getBus

public org.apache.cxf.Bus getBus()

setBus

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

getServer

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

setServer

public void setServer(org.apache.cxf.endpoint.Server server)

setProxy

public void setProxy(boolean proxy)

isProxy

public boolean isProxy()


Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.