Examples of doCallForObject()


Examples of edu.stanford.bmir.protege.web.server.rest.BioPortalUserInfoRestCall.doCallForObject()

   
   
    public BioPortalUserInfo getUserInfo(String username, String userpassword) throws CannotValidateBioPortalCredentials {
        try {
            BioPortalUserInfoRestCall call = new BioPortalUserInfoRestCall(bioportalRestAPIBase, username, userpassword);
            BioPortalUserInfoBean bean = call.doCallForObject();
            return new BioPortalUserInfo(bean.getUserName(), bean.getFirstName(), bean.getLastName(), BioPortalUserId.createFromId(bean.getId()), bean.getEmail());

        }
        catch (IOException e) {
            throw new CannotValidateBioPortalCredentials();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.