Search in sources :

Example 1 with GetOAuthConsumersResponse

use of com.zimbra.soap.account.message.GetOAuthConsumersResponse in project zm-mailbox by Zimbra.

the class GetOAuthConsumers method handle.

@Override
public Element handle(Element request, Map<String, Object> context) throws ServiceException {
    ZimbraSoapContext zsc = getZimbraSoapContext(context);
    Account account = getRequestedAccount(zsc);
    GetOAuthConsumersResponse response = new GetOAuthConsumersResponse();
    encodeResponse(account, response);
    return zsc.jaxbToElement(response);
}
Also used : Account(com.zimbra.cs.account.Account) ZimbraSoapContext(com.zimbra.soap.ZimbraSoapContext) GetOAuthConsumersResponse(com.zimbra.soap.account.message.GetOAuthConsumersResponse)

Aggregations

Account (com.zimbra.cs.account.Account)1 ZimbraSoapContext (com.zimbra.soap.ZimbraSoapContext)1 GetOAuthConsumersResponse (com.zimbra.soap.account.message.GetOAuthConsumersResponse)1