com.prosysopc.ua.server
Class SessionServiceHandler
java.lang.Object
com.prosysopc.ua.server.ServiceHandler
com.prosysopc.ua.server.SessionServiceHandler
- All Implemented Interfaces:
- org.opcfoundation.ua.core.SessionServiceSetHandler
public class SessionServiceHandler
- extends ServiceHandler
- implements org.opcfoundation.ua.core.SessionServiceSetHandler
|
Method Summary |
protected ServiceContext |
createServiceContext(org.opcfoundation.ua.core.RequestHeader requestHeader)
Create the serviceContext object used to identify the session and other parameters of a service
call. |
protected org.slf4j.Logger |
getLogger()
|
int |
getMinServerNonceLength()
|
void |
onActivateSession(org.opcfoundation.ua.transport.endpoint.EndpointServiceRequest<org.opcfoundation.ua.core.ActivateSessionRequest,org.opcfoundation.ua.core.ActivateSessionResponse> req)
|
void |
onCancel(org.opcfoundation.ua.transport.endpoint.EndpointServiceRequest<org.opcfoundation.ua.core.CancelRequest,org.opcfoundation.ua.core.CancelResponse> req)
|
void |
onCloseSession(org.opcfoundation.ua.transport.endpoint.EndpointServiceRequest<org.opcfoundation.ua.core.CloseSessionRequest,org.opcfoundation.ua.core.CloseSessionResponse> req)
|
void |
onCreateSession(org.opcfoundation.ua.transport.endpoint.EndpointServiceRequest<org.opcfoundation.ua.core.CreateSessionRequest,org.opcfoundation.ua.core.CreateSessionResponse> req)
|
void |
setMinServerNonceLength(int minServerNonceLength)
|
| Methods inherited from class com.prosysopc.ua.server.ServiceHandler |
checkRequestLength, fireRequestResponse, getEncoderContext, getMaxOperationsPerRequest, getNode, getNodeManagerTable, getOperationLimits, getServer, getSessionManager, handleServiceResultException, hasNode, setMaxOperationsPerRequest, setRequestResponseListener, toExtensionObject, validateEncoding, validateOperationalDiagnostics, validateRequest, validateResponse, validateResponse, validateServiceDiagnostics |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionServiceHandler
public SessionServiceHandler(SessionManager sessionManager)
- Parameters:
sessionManager -
getMinServerNonceLength
public int getMinServerNonceLength()
onActivateSession
public final void onActivateSession(org.opcfoundation.ua.transport.endpoint.EndpointServiceRequest<org.opcfoundation.ua.core.ActivateSessionRequest,org.opcfoundation.ua.core.ActivateSessionResponse> req)
throws org.opcfoundation.ua.common.ServiceFaultException
- Specified by:
onActivateSession in interface org.opcfoundation.ua.core.SessionServiceSetHandler
- Throws:
org.opcfoundation.ua.common.ServiceFaultException
onCancel
public final void onCancel(org.opcfoundation.ua.transport.endpoint.EndpointServiceRequest<org.opcfoundation.ua.core.CancelRequest,org.opcfoundation.ua.core.CancelResponse> req)
throws org.opcfoundation.ua.common.ServiceFaultException
- Specified by:
onCancel in interface org.opcfoundation.ua.core.SessionServiceSetHandler
- Throws:
org.opcfoundation.ua.common.ServiceFaultException
onCloseSession
public final void onCloseSession(org.opcfoundation.ua.transport.endpoint.EndpointServiceRequest<org.opcfoundation.ua.core.CloseSessionRequest,org.opcfoundation.ua.core.CloseSessionResponse> req)
throws org.opcfoundation.ua.common.ServiceFaultException
- Specified by:
onCloseSession in interface org.opcfoundation.ua.core.SessionServiceSetHandler
- Throws:
org.opcfoundation.ua.common.ServiceFaultException
onCreateSession
public final void onCreateSession(org.opcfoundation.ua.transport.endpoint.EndpointServiceRequest<org.opcfoundation.ua.core.CreateSessionRequest,org.opcfoundation.ua.core.CreateSessionResponse> req)
throws org.opcfoundation.ua.common.ServiceFaultException
- Specified by:
onCreateSession in interface org.opcfoundation.ua.core.SessionServiceSetHandler
- Throws:
org.opcfoundation.ua.common.ServiceFaultException
setMinServerNonceLength
public void setMinServerNonceLength(int minServerNonceLength)
createServiceContext
protected ServiceContext createServiceContext(org.opcfoundation.ua.core.RequestHeader requestHeader)
throws ServiceException
- Description copied from class:
ServiceHandler
- Create the serviceContext object used to identify the session and other parameters of a service
call.
- Overrides:
createServiceContext in class ServiceHandler
- Parameters:
requestHeader - The session token used to identity the session during communications
- Returns:
- The serviceContext
- Throws:
ServiceException - If the serviceContext is not found, StatusCode = Bad_SessionIdInvalid
getLogger
protected org.slf4j.Logger getLogger()
- Overrides:
getLogger in class ServiceHandler
- Returns:
- the logger
Copyright © 2018. All rights reserved.