org.mule.providers.soap.xfire
Class XFireServiceComponent
java.lang.Object
org.mule.providers.soap.xfire.XFireServiceComponent
- All Implemented Interfaces:
- Callable, Disposable, Initialisable, Lifecycle, Startable, Stoppable, UMODescriptorAware, UMOEventListener
- public class XFireServiceComponent
- extends Object
- implements Callable, Initialisable, Lifecycle, UMODescriptorAware
The Xfire service component receives requests for Xfire services it manages and
marshalls requests and responses
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
XFireServiceComponent
public XFireServiceComponent()
setDescriptor
public void setDescriptor(UMODescriptor descriptor)
throws ConfigurationException
- Specified by:
setDescriptor in interface UMODescriptorAware
- Throws:
ConfigurationException
onCall
public Object onCall(UMOEventContext eventContext)
throws Exception
- Specified by:
onCall in interface Callable
- Throws:
Exception
start
public void start()
throws UMOException
- Specified by:
start in interface Startable
- Throws:
UMOException
stop
public void stop()
throws UMOException
- Specified by:
stop in interface Stoppable
- Throws:
UMOException
initialise
public void initialise()
throws InitialisationException
- Specified by:
initialise in interface Initialisable
- Throws:
InitialisationException
dispose
public void dispose()
- Specified by:
dispose in interface Disposable
getTransportManager
protected org.codehaus.xfire.transport.TransportManager getTransportManager()
generateServiceX
protected void generateServiceX(OutStreamMessageAdapter response,
String serviceName)
throws IOException,
javax.xml.stream.XMLStreamException
- Throws:
IOException
javax.xml.stream.XMLStreamException
generateServicesX
protected void generateServicesX(OutStreamMessageAdapter response)
throws IOException,
javax.xml.stream.XMLStreamException
- Parameters:
response -
- Throws:
IOException
javax.xml.stream.XMLStreamException
getMessageStream
protected InputStream getMessageStream(UMOEventContext context)
throws 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:
UMOException
getServiceName
protected String getServiceName(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-2008 MuleSource, Inc.. All Rights Reserved.