de.fzj.unicore.wsrflite.xfire
Class XFireKernel

java.lang.Object
  extended by de.fzj.unicore.wsrflite.xfire.XFireKernel

public class XFireKernel
extends Object

Bridge to XFire

Author:
schuller, daivandy

Field Summary
static String BINDING_JAXB
           
static String BINDING_XMLBEANS
           
static String PERSISTENT
           
static String WSRFSERVICE
           
 
Constructor Summary
XFireKernel()
           
 
Method Summary
static void addUnderstoodHeaders(QName[] qn)
           
static org.codehaus.xfire.service.Service exposeAsService(String name, Class<?> spec, Class<?> impl)
           
static org.codehaus.xfire.service.Service exposeAsService(String name, Class<?> spec, Class<?> impl, boolean isWsrf)
           
static org.codehaus.xfire.service.Service exposeAsService(String name, Class<?> spec, Class<?> impl, boolean isWsrf, boolean isPersistent)
           
static org.codehaus.xfire.service.Service exposeAsService(String name, Class<?> spec, Class<?> impl, org.codehaus.xfire.service.ServiceFactory factory)
           
static org.codehaus.xfire.service.Service exposeAsService(String name, Class<?> spec, Class<?> impl, org.codehaus.xfire.service.ServiceFactory factory, boolean isWSRF)
           
static org.codehaus.xfire.service.Service exposeAsService(String name, Class<?> spec, Class<?> impl, org.codehaus.xfire.service.ServiceFactory factory, boolean isWSRF, boolean isPersistent)
           
protected static org.codehaus.xfire.service.ServiceFactory getFactoryFromAnnotation(Class<?> clazz)
          figure out the correct service factory to use on the given service impl class
static WSRFInvoker getInvoker()
           
static JettyServer getServer()
           
static org.codehaus.xfire.service.Service getService(String name)
           
static Collection<org.codehaus.xfire.service.Service> getServices()
           
static QName[] getUnderstoodHeaders()
          support the SOAP mustUnderstand feature.
static org.codehaus.xfire.XFire getXFire()
           
static void setServer(JettyServer server)
           
static void shutdown()
          stop the web server
static void start()
          starts the web server.
static boolean unregisterService(String serviceName)
          Removes the Service object from the XFireKernel service map

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WSRFSERVICE

public static final String WSRFSERVICE
See Also:
Constant Field Values

PERSISTENT

public static final String PERSISTENT
See Also:
Constant Field Values

BINDING_JAXB

public static final String BINDING_JAXB
See Also:
Constant Field Values

BINDING_XMLBEANS

public static final String BINDING_XMLBEANS
See Also:
Constant Field Values
Constructor Detail

XFireKernel

public XFireKernel()
Method Detail

exposeAsService

public static org.codehaus.xfire.service.Service exposeAsService(String name,
                                                                 Class<?> spec,
                                                                 Class<?> impl,
                                                                 org.codehaus.xfire.service.ServiceFactory factory,
                                                                 boolean isWSRF,
                                                                 boolean isPersistent)
                                                          throws Exception
Parameters:
name -
spec -
impl -
factory -
isWSRF -
isPersistent -
Returns:
Throws:
Exception

getXFire

public static org.codehaus.xfire.XFire getXFire()

exposeAsService

public static org.codehaus.xfire.service.Service exposeAsService(String name,
                                                                 Class<?> spec,
                                                                 Class<?> impl,
                                                                 org.codehaus.xfire.service.ServiceFactory factory,
                                                                 boolean isWSRF)
                                                          throws Exception
Throws:
Exception

exposeAsService

public static org.codehaus.xfire.service.Service exposeAsService(String name,
                                                                 Class<?> spec,
                                                                 Class<?> impl,
                                                                 org.codehaus.xfire.service.ServiceFactory factory)
                                                          throws Exception
Throws:
Exception

exposeAsService

public static org.codehaus.xfire.service.Service exposeAsService(String name,
                                                                 Class<?> spec,
                                                                 Class<?> impl)
                                                          throws Exception
Throws:
Exception

exposeAsService

public static org.codehaus.xfire.service.Service exposeAsService(String name,
                                                                 Class<?> spec,
                                                                 Class<?> impl,
                                                                 boolean isWsrf)
                                                          throws Exception
Throws:
Exception

exposeAsService

public static org.codehaus.xfire.service.Service exposeAsService(String name,
                                                                 Class<?> spec,
                                                                 Class<?> impl,
                                                                 boolean isWsrf,
                                                                 boolean isPersistent)
                                                          throws Exception
Throws:
Exception

unregisterService

public static boolean unregisterService(String serviceName)
Removes the Service object from the XFireKernel service map

Returns:
boolean status flag

getServices

public static Collection<org.codehaus.xfire.service.Service> getServices()

getService

public static org.codehaus.xfire.service.Service getService(String name)

getUnderstoodHeaders

public static QName[] getUnderstoodHeaders()
support the SOAP mustUnderstand feature. Returns all headers we understand, such as wsaddressing, security, etc


addUnderstoodHeaders

public static void addUnderstoodHeaders(QName[] qn)

getFactoryFromAnnotation

protected static org.codehaus.xfire.service.ServiceFactory getFactoryFromAnnotation(Class<?> clazz)
figure out the correct service factory to use on the given service impl class

Parameters:
clazz -
Returns:

shutdown

public static void shutdown()
                     throws Exception
stop the web server

Throws:
Exception

start

public static void start()
                  throws Exception
starts the web server. If not already set using setServer(JettyServer), a new instance of JettyServer is created and subsequently started.

Throws:
Exception

getServer

public static JettyServer getServer()

setServer

public static void setServer(JettyServer server)

getInvoker

public static WSRFInvoker getInvoker()


Copyright © 2010. All Rights Reserved.