org.mule.providers.soap.xfire
Class XFireServiceComponent
java.lang.Object
org.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
XFireServiceComponent
public XFireServiceComponent()
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.