com.prosysopc.ua.client
Interface UaClientListener


public interface UaClientListener

Listener for enabling certain callback and such for UaClient. Please note that this interface may change in the future.


Method Summary
 void onAfterCreateSessionChannel(UaClient client, org.opcfoundation.ua.application.Session session)
          Called during UaClient.connect, after the session has been created, but before it is activated.
 void onBeforePublishRequest(UaClient client, org.opcfoundation.ua.core.PublishRequest publishRequest)
          Called before sending the PublishRequest.
 boolean validatePublishResponse(UaClient client, org.opcfoundation.ua.core.PublishResponse response)
          Called before handling the PublishResponse.
 boolean validateRepublishResponse(UaClient client, org.opcfoundation.ua.core.RepublishResponse response)
          Called before handling the RepublishResponse.
 

Method Detail

onAfterCreateSessionChannel

void onAfterCreateSessionChannel(UaClient client,
                                 org.opcfoundation.ua.application.Session session)
                                 throws ConnectException
Called during UaClient.connect, after the session has been created, but before it is activated. Throw a ConnectException in case you want the UaClient to disconnect(). This can be used, for example, in cases where the Server returns something weird. To see the revised Session parameters, see UaClient.getSession().

Parameters:
client - the client
session - the session from UaClient.getSession()
Throws:
ConnectException - if the UaClient should disconnect

onBeforePublishRequest

void onBeforePublishRequest(UaClient client,
                            org.opcfoundation.ua.core.PublishRequest publishRequest)
Called before sending the PublishRequest. Can be used e.g. to store the request. Normally this method should not modify the request.

Parameters:
client - the client
publishRequest - the PublishRequest

validatePublishResponse

boolean validatePublishResponse(UaClient client,
                                org.opcfoundation.ua.core.PublishResponse response)
Called before handling the PublishResponse. In case you want to prevent the response from being handled, return false

Parameters:
client - the client
response - the PublishResponse
Returns:
false if this PublishResponse should not be handled.

validateRepublishResponse

boolean validateRepublishResponse(UaClient client,
                                  org.opcfoundation.ua.core.RepublishResponse response)
Called before handling the RepublishResponse. In case you want to prevent the response from being handled, return false.

Parameters:
client - the client
response - the RepublishResponse
Returns:
false if this RepublishResponse should not be handled.


Copyright © 2018. All rights reserved.