org.universAAL.kinect.adapter.serviceBus
Class QueryService

Package class diagram package QueryService
java.lang.Object
  extended by org.universAAL.kinect.adapter.serviceBus.AbstractService
      extended by org.universAAL.kinect.adapter.serviceBus.QueryService

public abstract class QueryService
extends AbstractService

This class represents a service call where there could be return value, so ServiceResponse processing is needed after a ServiceCall


Field Summary
protected  String IDforResult
          For every return value, an ID is needed which is given at the ServiceServer side when the ServieceResponse is created.
 
Fields inherited from class org.universAAL.kinect.adapter.serviceBus.AbstractService
servicerequest
 
Constructor Summary
QueryService()
           
 
Method Summary
 Collection<?> handleResponse(ServiceResponse response)
          This method tries to get a return value from the response, and returns null if there is none.
abstract  void setServiceRequest(Collection<?> args)
          This method converts a collection of arguments into a ServiceRequest.
 
Methods inherited from class org.universAAL.kinect.adapter.serviceBus.AbstractService
getServiceRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDforResult

protected String IDforResult
For every return value, an ID is needed which is given at the ServiceServer side when the ServieceResponse is created.

Constructor Detail

QueryService

public QueryService()
Method Detail

handleResponse

public final Collection<?> handleResponse(ServiceResponse response)
This method tries to get a return value from the response, and returns null if there is none.

Specified by:
handleResponse in class AbstractService
Parameters:
response - A ServiceResponse to process
Returns:
The collection of objects extracted from the given response

setServiceRequest

public abstract void setServiceRequest(Collection<?> args)
Description copied from class: AbstractService
This method converts a collection of arguments into a ServiceRequest.

Specified by:
setServiceRequest in class AbstractService
Parameters:
args - Arguments used for creating the ServiceRequest


Copyright © 2014 universAAL Consortium. All Rights Reserved.