org.mule.providers.soap.xfire
Class XFireServiceComponent

java.lang.Object
  extended byorg.mule.providers.soap.xfire.XFireServiceComponent
All Implemented Interfaces:
org.mule.umo.lifecycle.Callable, org.mule.umo.lifecycle.Disposable, org.mule.umo.lifecycle.Initialisable, org.mule.umo.lifecycle.Lifecycle, org.mule.umo.lifecycle.Startable, org.mule.umo.lifecycle.Stoppable, org.mule.impl.UMODescriptorAware, org.mule.umo.lifecycle.UMOEventListener

public class XFireServiceComponent
extends Object
implements org.mule.umo.lifecycle.Callable, org.mule.umo.lifecycle.Initialisable, org.mule.umo.lifecycle.Lifecycle, org.mule.impl.UMODescriptorAware

The Xfire service component receives requests for Xfire services it manages and marshalls requests and responses


Field Summary
protected  Log logger
          logger used by this class
protected  org.codehaus.xfire.transport.Transport transport
           
protected  String transportClass
           
protected  org.codehaus.xfire.transport.Transport universalTransport
           
protected  org.codehaus.xfire.XFire xfire
           
 
Constructor Summary
XFireServiceComponent()
           
 
Method Summary
 void dispose()
           
protected  void generateServicesX(org.mule.providers.streaming.OutStreamMessageAdapter response)
           
protected  void generateServiceX(org.mule.providers.streaming.OutStreamMessageAdapter response, String serviceName)
           
protected  InputStream getMessageStream(org.mule.umo.UMOEventContext context)
          Gets the stream representation of the current message.
protected  org.codehaus.xfire.service.Service getService(String name)
           
protected  String getServiceName(org.mule.umo.UMOEventContext context)
          Get the service that is mapped to the specified request.
 org.codehaus.xfire.service.ServiceRegistry getServiceRegistry()
           
protected  org.codehaus.xfire.transport.TransportManager getTransportManager()
           
 org.codehaus.xfire.XFire getXfire()
           
 void initialise()
           
 Object onCall(org.mule.umo.UMOEventContext eventContext)
           
 void setDescriptor(org.mule.umo.UMODescriptor descriptor)
           
 void setTransport(org.codehaus.xfire.transport.Transport transport)
           
 void setTransportClass(String clazz)
           
 void setXfire(org.codehaus.xfire.XFire xfire)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected transient Log logger
logger used by this class


xfire

protected org.codehaus.xfire.XFire xfire

transport

protected org.codehaus.xfire.transport.Transport transport

universalTransport

protected org.codehaus.xfire.transport.Transport universalTransport

transportClass

protected String transportClass
Constructor Detail

XFireServiceComponent

public XFireServiceComponent()
Method Detail

setDescriptor

public void setDescriptor(org.mule.umo.UMODescriptor descriptor)
                   throws org.mule.config.ConfigurationException
Specified by:
setDescriptor in interface org.mule.impl.UMODescriptorAware
Throws:
org.mule.config.ConfigurationException

onCall

public Object onCall(org.mule.umo.UMOEventContext eventContext)
              throws Exception
Specified by:
onCall in interface org.mule.umo.lifecycle.Callable
Throws:
Exception

start

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

stop

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

initialise

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

dispose

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

getTransportManager

protected org.codehaus.xfire.transport.TransportManager getTransportManager()

generateServiceX

protected void generateServiceX(org.mule.providers.streaming.OutStreamMessageAdapter response,
                                String serviceName)
                         throws IOException,
                                javax.xml.stream.XMLStreamException
Throws:
IOException
javax.xml.stream.XMLStreamException

generateServicesX

protected void generateServicesX(org.mule.providers.streaming.OutStreamMessageAdapter response)
                          throws IOException,
                                 javax.xml.stream.XMLStreamException
Parameters:
response -
Throws:
IOException
javax.xml.stream.XMLStreamException

getMessageStream

protected InputStream getMessageStream(org.mule.umo.UMOEventContext context)
                                throws org.mule.umo.UMOException
Gets the stream representation of the current message. If the message is set for streaming the input stream on the UMOStreamMEssageAdapter will be used, otherwise a byteArrayInputStream will be used to hold the byte[] representation of the current message.

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

getServiceName

protected String getServiceName(org.mule.umo.UMOEventContext context)
Get the service that is mapped to the specified request.

Parameters:
context - the context from which to find the service name
Returns:
the service that is mapped to the specified request.

getService

protected org.codehaus.xfire.service.Service getService(String name)

getXfire

public org.codehaus.xfire.XFire getXfire()

setXfire

public void setXfire(org.codehaus.xfire.XFire xfire)

setTransport

public void setTransport(org.codehaus.xfire.transport.Transport transport)

setTransportClass

public void setTransportClass(String clazz)

getServiceRegistry

public org.codehaus.xfire.service.ServiceRegistry getServiceRegistry()


Copyright © 2003-2007 MuleSource, Inc.. All Rights Reserved.