net.sourceforge.fluxion.spring.wsclient
Class SOAPFluxionService

java.lang.Object
  extended by net.sourceforge.fluxion.spring.wsclient.SOAPFluxionService
All Implemented Interfaces:
FluxionService

public class SOAPFluxionService
extends java.lang.Object
implements FluxionService

Implementation of FluxionService that proxies through SOAP to a remote FluxionService web service endpoint. The protocol used is determined by an injected pair of endpoint URI and WebServiceTemplate which is in turn configured with the transport information.

Author:
Tom Oinn

Constructor Summary
SOAPFluxionService()
           
 
Method Summary
 java.util.Set<java.net.URI> getDataSources()
          Implements FluxionService, delegating to a web service at the configured endpoint
 java.net.URI getId()
          The ID of this service.
 java.net.URI getReasonerLevel(java.net.URI dataSourceURI)
          Implements FluxionService, delegating to a web service at the configured endpoint
 org.semanticweb.owl.model.OWLOntology getSchema(java.net.URI dataSourceURI)
          Implements FluxionService, delegating to a web service at the configured endpoint
 org.semanticweb.owl.model.OWLOntology query(java.net.URI dataSourceURI, java.net.URI queryClassURI, org.semanticweb.owl.model.OWLOntology queryOntology)
          Implements FluxionService, delegating to a web service at the configured endpoint
 void setServiceEndpoint(java.net.URI endpoint)
          Messages are sent to this endpoint
 void setWebServiceTemplate(org.springframework.ws.client.core.WebServiceTemplate wsTemplate)
          The SOAPFluxionService uses a WebServiceTemplate instance to actually send the messages to the remote service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPFluxionService

public SOAPFluxionService()
Method Detail

setServiceEndpoint

public void setServiceEndpoint(java.net.URI endpoint)
Messages are sent to this endpoint


setWebServiceTemplate

public void setWebServiceTemplate(org.springframework.ws.client.core.WebServiceTemplate wsTemplate)
The SOAPFluxionService uses a WebServiceTemplate instance to actually send the messages to the remote service.


getId

public java.net.URI getId()
The ID of this service. In this instance, just the endpoint URI.

Specified by:
getId in interface FluxionService
Returns:
a identifying this service.

getDataSources

public java.util.Set<java.net.URI> getDataSources()
                                           throws DataSourceException
Implements FluxionService, delegating to a web service at the configured endpoint

Specified by:
getDataSources in interface FluxionService
Returns:
a of s giving each known data source
Throws:
DataSourceException

getReasonerLevel

public java.net.URI getReasonerLevel(java.net.URI dataSourceURI)
                              throws DataSourceException
Implements FluxionService, delegating to a web service at the configured endpoint

Specified by:
getReasonerLevel in interface FluxionService
Parameters:
dataSourceURI - the being operated upon
Returns:
a giving the reasoner semantics in effect
Throws:
DataSourceException - if the data source is not known by this service or if there was an error connecting to the data source

getSchema

public org.semanticweb.owl.model.OWLOntology getSchema(java.net.URI dataSourceURI)
                                                throws DataSourceException
Implements FluxionService, delegating to a web service at the configured endpoint

Specified by:
getSchema in interface FluxionService
Parameters:
dataSourceURI - the being operated upon
Returns:
an describing the range of concepts this service may publish
Throws:
DataSourceException - if the data source is not known by this service or if there was an error connecting to the data source

query

public org.semanticweb.owl.model.OWLOntology query(java.net.URI dataSourceURI,
                                                   java.net.URI queryClassURI,
                                                   org.semanticweb.owl.model.OWLOntology queryOntology)
                                            throws DataSourceException
Implements FluxionService, delegating to a web service at the configured endpoint

Specified by:
query in interface FluxionService
Parameters:
dataSourceURI - the being operated upon
queryClassURI - the qualified name of the class from the specified ontology for which instances should be found
queryOntology - the ontology containing the specified query class
Returns:
the result of the query as an OWLOntology
Throws:
DataSourceException - if the data source is not known by this service or if there was an error connecting to the data source


Copyright © 2010. All Rights Reserved.