org.codehaus.xfire
Class DefaultXFire

java.lang.Object
  extended by org.codehaus.xfire.AbstractXFireComponent
      extended by org.codehaus.xfire.DefaultXFire
All Implemented Interfaces:
XFire

public class DefaultXFire
extends AbstractXFireComponent
implements XFire

Since:
Feb 13, 2004
Author:
Dan Diephouse

Field Summary
 
Fields inherited from interface org.codehaus.xfire.XFire
ROLE
 
Constructor Summary
DefaultXFire()
           
DefaultXFire(ServiceRegistry registry, TransportManager transportManager)
           
 
Method Summary
protected  Service findService(java.lang.String serviceName)
           
 void generateWSDL(java.lang.String serviceName, java.io.OutputStream out)
          Generate WSDL for a service.
 ServiceRegistry getServiceRegistry()
          Get the ServiceRegistry.
 TransportManager getTransportManager()
          Get the TransportManager.
protected  void handleException(MessageContext context, Service service, Handler handler, java.lang.Exception e)
           
 void invoke(java.io.InputStream stream, MessageContext context)
          Processes a new SOAP Message request.
 void invoke(javax.xml.stream.XMLStreamReader reader, MessageContext context)
          Processes a new SOAP Message request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultXFire

public DefaultXFire()

DefaultXFire

public DefaultXFire(ServiceRegistry registry,
                    TransportManager transportManager)
Method Detail

invoke

public void invoke(javax.xml.stream.XMLStreamReader reader,
                   MessageContext context)
Description copied from interface: XFire
Processes a new SOAP Message request. If a fault or exception occurs, it is written to the OutputStream in the MessageContext. However, XFireRuntimeExceptions may still be thrown if something fatal goes wrong in the pipeline.

Specified by:
invoke in interface XFire
context - The MessageContext.

handleException

protected void handleException(MessageContext context,
                               Service service,
                               Handler handler,
                               java.lang.Exception e)
Parameters:
context -
service -
handler -
e -

findService

protected Service findService(java.lang.String serviceName)

invoke

public void invoke(java.io.InputStream stream,
                   MessageContext context)
Description copied from interface: XFire
Processes a new SOAP Message request. If a fault or exception occurs, it is written to the OutputStream in the MessageContext. However, XFireRuntimeExceptions may still be thrown if something fatal goes wrong in the pipeline.

Specified by:
invoke in interface XFire
Parameters:
stream - An InputStream to the SOAP document.
context - The MessageContext.

generateWSDL

public void generateWSDL(java.lang.String serviceName,
                         java.io.OutputStream out)
Description copied from interface: XFire
Generate WSDL for a service.

Specified by:
generateWSDL in interface XFire
Parameters:
serviceName - The name of the service.
out - The OutputStream to write the WSDL to.

getServiceRegistry

public ServiceRegistry getServiceRegistry()
Description copied from interface: XFire
Get the ServiceRegistry.

Specified by:
getServiceRegistry in interface XFire

getTransportManager

public TransportManager getTransportManager()
Description copied from interface: XFire
Get the TransportManager.

Specified by:
getTransportManager in interface XFire


Copyright © 2004-2005 Codehaus. All Rights Reserved.