org.opcfoundation.ua.application
Class AbstractServiceHandler

java.lang.Object
  extended by org.opcfoundation.ua.application.AbstractServiceHandler
All Implemented Interfaces:
ServiceHandler

public abstract class AbstractServiceHandler
extends Object
implements ServiceHandler

Abstract implementation for a service handler that can server only one type of service request;


Constructor Summary
AbstractServiceHandler(Class<? extends IEncodeable> clazz)
          Constructor for AbstractServiceHandler.
 
Method Summary
 void getSupportedServices(Collection<Class<? extends IEncodeable>> result)
          Get supported services.
 boolean supportsService(Class<? extends IEncodeable> clazz)
          Queries whether this handler supports a given request class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opcfoundation.ua.application.ServiceHandler
serve
 

Constructor Detail

AbstractServiceHandler

public AbstractServiceHandler(Class<? extends IEncodeable> clazz)

Constructor for AbstractServiceHandler.

Parameters:
clazz - a Class object.
Method Detail

supportsService

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

Specified by:
supportsService in interface ServiceHandler
Parameters:
clazz - class
Returns:
true if this service handler can handle given class

getSupportedServices

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

Specified by:
getSupportedServices in interface ServiceHandler
Parameters:
result - to be filled with request classes of supported services.


Copyright © 2018. All rights reserved.