org.opcfoundation.ua.application
Interface ServiceHandler

All Known Implementing Classes:
AbstractServiceHandler, ServiceHandlerComposition

public interface ServiceHandler

Service Handler reads ServiceRequest from client, processes it, and returns a ServiceResponse.

See Also:
ServiceHandlerComposition, AbstractServiceHandler

Method Summary
 void getSupportedServices(Collection<Class<? extends IEncodeable>> result)
          Get supported services.
 void serve(EndpointServiceRequest<?,?> request)
          Serve a service request.
 boolean supportsService(Class<? extends IEncodeable> requestMessageClass)
          Queries whether this handler supports a given request class.
 

Method Detail

serve

void serve(EndpointServiceRequest<?,?> request)
           throws ServiceResultException
Serve a service request.

The implementation is allowed to may submit the response later and from another thread.

Parameters:
request - the service request
Throws:
ServiceResultException - if error

supportsService

boolean supportsService(Class<? extends IEncodeable> requestMessageClass)
Queries whether this handler supports a given request class.

Parameters:
requestMessageClass - class
Returns:
true if this service handler can handle given class

getSupportedServices

void getSupportedServices(Collection<Class<? extends IEncodeable>> result)
Get supported services. Result will be filled with the request class of the supported services.

Parameters:
result - to be filled with request classes of supported services.


Copyright © 2018. All rights reserved.