|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.providers.soap.xfire.XFireServiceComponent
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()
A lifecycle method where implementor should free up any resources. |
protected void |
generateServicesX(OutStreamMessageAdapter response)
|
protected void |
generateServiceX(OutStreamMessageAdapter response,
String serviceName)
|
protected InputStream |
getMessageStream(UMOEventContext context)
Gets the stream representation of the current message. |
protected org.codehaus.xfire.service.Service |
getService(String name)
|
protected String |
getServiceName(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()
Method used to perform any initialisation work. |
Object |
onCall(UMOEventContext eventContext)
Passes the event to the listener |
void |
setDescriptor(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 |
protected transient Log logger
protected org.codehaus.xfire.XFire xfire
protected org.codehaus.xfire.transport.Transport transport
protected org.codehaus.xfire.transport.Transport universalTransport
protected String transportClass
Constructor Detail |
public XFireServiceComponent()
Method Detail |
public void setDescriptor(UMODescriptor descriptor) throws ConfigurationException
setDescriptor
in interface UMODescriptorAware
ConfigurationException
public Object onCall(UMOEventContext eventContext) throws Exception
Callable
onCall
in interface Callable
eventContext
- the context of the current event being process
UMOLifecycleAdapter
for the component receives this
object it will first see if the Object is an UMOMessage
if not and the Object is not null a new message will be created using
the returned object as the payload. This new event will then get
published via the configured outbound router if-
setStopFurtherProcessing(true)
wasn't called
on the event context event.Exception
- if the event fails to process properly. If exceptions aren't
handled by the implementation they will be handled by the
exceptionListener associated with the componentpublic void start() throws UMOException
start
in interface Startable
UMOException
public void stop() throws UMOException
stop
in interface Stoppable
UMOException
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.
initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule
instance to shutdownpublic void dispose()
Disposable
dispose
in interface Disposable
protected org.codehaus.xfire.transport.TransportManager getTransportManager()
protected void generateServiceX(OutStreamMessageAdapter response, String serviceName) throws IOException, javax.xml.stream.XMLStreamException
IOException
javax.xml.stream.XMLStreamException
protected void generateServicesX(OutStreamMessageAdapter response) throws IOException, javax.xml.stream.XMLStreamException
response
-
IOException
javax.xml.stream.XMLStreamException
protected InputStream getMessageStream(UMOEventContext context) throws UMOException
context
- the event context
UMOException
protected String getServiceName(UMOEventContext context)
context
- the context from which to find the service name
protected org.codehaus.xfire.service.Service getService(String name)
public org.codehaus.xfire.XFire getXfire()
public void setXfire(org.codehaus.xfire.XFire xfire)
public void setTransport(org.codehaus.xfire.transport.Transport transport)
public void setTransportClass(String clazz)
public org.codehaus.xfire.service.ServiceRegistry getServiceRegistry()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |