|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.application.ServiceHandlerComposition
public class ServiceHandlerComposition
Composition of ServiceHandlers.
| Constructor Summary | |
|---|---|
ServiceHandlerComposition()
Constructor for ServiceHandlerComposition. |
|
| Method Summary | ||
|---|---|---|
void |
add(Object o)
Add ServiceHandler or Service handling object. |
|
|
getServiceHandlerByService(Class<? extends ServiceRequest> requestClass)
Returns the service handler that handles given request. |
|
ServiceHandler[] |
getServiceHandlers()
getServiceHandlers. |
|
void |
getSupportedServices(Collection<Class<? extends IEncodeable>> result)
Get supported services. |
|
static ServiceHandler |
of(Object... handlers)
Create service handler composed of a set of service handlers. |
|
static void |
readWithReflection(Object serviceHandler,
ServiceHandlerComposition result)
Reads supported service handler methods with reflection. |
|
void |
serve(EndpointServiceRequest<?,?> request)
Serve a service request. |
|
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 |
| Constructor Detail |
|---|
public ServiceHandlerComposition()
Constructor for ServiceHandlerComposition.
| Method Detail |
|---|
public static final ServiceHandler of(Object... handlers)
ServiceHandler or
implement service request methods, e.g. methods in SessionServiceSetHandler.
handlers - service handlers.
public void add(Object o)
o - ServiceHandler or Service handling object.public ServiceHandler[] getServiceHandlers()
getServiceHandlers.
ServiceHandler objects.
public void serve(EndpointServiceRequest<?,?> request)
throws ServiceResultException
The implementation is allowed to may submit the response later and from another thread.
serve in interface ServiceHandlerrequest - the service request
ServiceResultException - if errorpublic boolean supportsService(Class<? extends IEncodeable> clazz)
supportsService in interface ServiceHandlerclazz - class
public void getSupportedServices(Collection<Class<? extends IEncodeable>> result)
getSupportedServices in interface ServiceHandlerresult - to be filled with request classes of supported services.public <T> T getServiceHandlerByService(Class<? extends ServiceRequest> requestClass)
T - service handler classrequestClass - request class
public static void readWithReflection(Object serviceHandler,
ServiceHandlerComposition result)
serviceHandler - service handlerresult - composition where reflection based handlers are added
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||