Examples of retrieveRegId()


Examples of org.wso2.carbon.announcement.ui.clients.AnnouncementServiceClient.retrieveRegId()

    public String getAnnouncementHtml(HttpSession session, ServletConfig config) {
        String notificationHtml = (String)session.getAttribute(NOTIFIER_HTML_KEY);
        if (notificationHtml == null || isSessionChanged(session)) {
            try {
                AnnouncementServiceClient client = new AnnouncementServiceClient(config, session);
                String regId = client.retrieveRegId();
                String notificationUrl = Util.generateAnnouncementURL(regId, session);

                notificationHtml = Util.getAnnouncementHtml(notificationUrl);
                session.setAttribute(NOTIFIER_HTML_KEY, notificationHtml);
            } catch (Exception e) {
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.