public class BinaryDataEndpoint extends DataEndpoint
DataEndpoint.State| Constructor and Description |
|---|
BinaryDataEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
login(Object client,
String userName,
String password)
Login to the endpoint and return the sessionId.
|
protected void |
logout(Object client,
String sessionId)
Logout from the endpoint.
|
protected void |
send(Object client,
List<org.wso2.carbon.databridge.commons.Event> events)
Send the list of events to the actual endpoint.
|
getDataEndpointConfiguration, getState, initialize, shutdown, toStringprotected String login(Object client, String userName, String password) throws DataEndpointAuthenticationException
DataEndpointlogin in class DataEndpointclient - The client which can be used to connect to the endpoint.userName - The username which is used to login,password - The password which is required for the login operation.DataEndpointAuthenticationExceptionprotected void logout(Object client, String sessionId) throws DataEndpointAuthenticationException
DataEndpointlogout in class DataEndpointclient - The client that is used to logout operation.sessionId - The current session Id.DataEndpointAuthenticationExceptionprotected void send(Object client, List<org.wso2.carbon.databridge.commons.Event> events) throws DataEndpointException, org.wso2.carbon.databridge.commons.exception.SessionTimeoutException, org.wso2.carbon.databridge.commons.exception.UndefinedEventTypeException
DataEndpointsend in class DataEndpointclient - The client that can be used to send the events.events - List of events that needs to be sent.DataEndpointExceptionorg.wso2.carbon.databridge.commons.exception.SessionTimeoutExceptionorg.wso2.carbon.databridge.commons.exception.UndefinedEventTypeExceptionCopyright © 2024 WSO2. All rights reserved.