public class CGThriftClient extends Object
Constructor and Description |
---|
CGThriftClient(CloudGatewayService.Client client) |
Modifier and Type | Method and Description |
---|---|
List<Message> |
exchange(List<Message> src,
int size,
String token)
The exchange operation, this will pass the response buffer to the server and will
receive request buffer from the server
|
String |
login(String userName,
String passWord,
String queueName)
The login method.
|
public CGThriftClient(CloudGatewayService.Client client)
public String login(String userName, String passWord, String queueName) throws NotAuthorizedException, org.apache.thrift.TException
userName
- user name of the userpassWord
- pass word of the userqueueName
- the buffer name to which user should allow access toNotAuthorizedException
- in case of user is not allowedorg.apache.thrift.TException
- in case of an connection errorpublic List<Message> exchange(List<Message> src, int size, String token) throws NotAuthorizedException, org.apache.thrift.TException
src
- the response buffer to pass to the serversize
- the size of the request message block that server should returntoken
- the token for successive exchange operationsNotAuthorizedException
- in case the token in invalidorg.apache.thrift.TException
- throws in case of an errorCopyright © 2019 WSO2. All rights reserved.