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

Version:
$Revision: 3167 $
Author:
Ross Mason

Field Summary
 String DEFAULT_CONTENT_TYPE
           
protected  org.apache.commons.logging.Log logger
          logger used by this class
protected  org.codehaus.xfire.transport.Transport transport
           
protected  org.codehaus.xfire.XFire xfire
           
 
Constructor Summary
XFireServiceComponent()
           
 
Method Summary
 void dispose()
           
protected  void generateService(org.mule.providers.streaming.OutStreamMessageAdapter response, String serviceName)
           
protected  void generateServices(org.mule.providers.streaming.OutStreamMessageAdapter response)
           
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 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

DEFAULT_CONTENT_TYPE

public final String DEFAULT_CONTENT_TYPE
See Also:
Constant Field Values

logger

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


xfire

protected org.codehaus.xfire.XFire xfire

transport

protected org.codehaus.xfire.transport.Transport transport
Constructor Detail

XFireServiceComponent

public XFireServiceComponent()
Method Detail

setDescriptor

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

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()

generateService

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

generateServices

protected void generateServices(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)

getServiceRegistry

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


Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.