org.kuali.rice.ksb.messaging.serviceexporters
Class AbstractWebServiceExporter

java.lang.Object
  extended by org.kuali.rice.ksb.messaging.serviceexporters.AbstractWebServiceExporter
All Implemented Interfaces:
ServiceExporter
Direct Known Subclasses:
RESTServiceExporter, SOAPServiceExporter

public abstract class AbstractWebServiceExporter
extends Object
implements ServiceExporter

Abstract ServiceExporter for web services

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
AbstractWebServiceExporter(ServiceDefinition serviceDefinition, org.apache.cxf.Bus cxfBus)
           
 
Method Summary
 Object exportService(ServiceDefinition serviceDefinition)
           
protected  org.apache.cxf.Bus getCXFBus()
           
protected  org.apache.cxf.endpoint.ServerRegistry getCXFServerRegistry()
           
protected  String getServiceAddress(ServiceDefinition serviceDefinition)
           
protected  ServiceDefinition getServiceDefinition()
           
protected  boolean isServicePublished(String serviceAddress)
          This determines if the service has already been published on the CXF bus.
protected abstract  void publishService(ServiceDefinition serviceDefinition, Object serviceImpl, String address)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractWebServiceExporter

public AbstractWebServiceExporter(ServiceDefinition serviceDefinition,
                                  org.apache.cxf.Bus cxfBus)
Method Detail

publishService

protected abstract void publishService(ServiceDefinition serviceDefinition,
                                       Object serviceImpl,
                                       String address)
                                throws Exception
Throws:
Exception

exportService

public Object exportService(ServiceDefinition serviceDefinition)
Specified by:
exportService in interface ServiceExporter

getServiceAddress

protected String getServiceAddress(ServiceDefinition serviceDefinition)
Returns:
the address where the service is (or will be) published

isServicePublished

protected boolean isServicePublished(String serviceAddress)
This determines if the service has already been published on the CXF bus.

Returns:
true if cxf server exists for this service.

getServiceDefinition

protected ServiceDefinition getServiceDefinition()

getCXFBus

protected org.apache.cxf.Bus getCXFBus()

getCXFServerRegistry

protected org.apache.cxf.endpoint.ServerRegistry getCXFServerRegistry()


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.