Package org.apache.xmlrpc

Examples of org.apache.xmlrpc.XmlRpcClient$CallData


    public Vector getAllServerPageSummaries(ConfluenceServerSettings confSettings, String space) throws IOException, XmlRpcException {
        Vector paramsVector = new Vector();
        String loginToken = getLoginToken(confSettings);
        paramsVector.add(loginToken);
        paramsVector.add(space);
        XmlRpcClient client = getXMLRPCClient(confSettings);
        Vector pageSummaries = null;
        pageSummaries = (Vector) client.execute(CONFLUENCE_REMOTE_API_VERSION + ".getPages", paramsVector);
        Vector retList = null;
        if (pageSummaries != null) {
            retList = new Vector(pageSummaries.size());
            for (int i = 0; i < pageSummaries.size(); i++) {
                Hashtable pageSummHT = (Hashtable) pageSummaries.elementAt(i);
View Full Code Here


    public Vector getAllBlogEntrySummaries(ConfluenceServerSettings confSettings, String space) throws IOException, XmlRpcException {
        Vector paramsVector = new Vector();
        String loginToken = getLoginToken(confSettings);
        paramsVector.add(loginToken);
        paramsVector.add(space);
        XmlRpcClient client = getXMLRPCClient(confSettings);
        Vector blogSummaries = null;
        blogSummaries = (Vector) client.execute(CONFLUENCE_REMOTE_API_VERSION + ".getBlogEntries", paramsVector);
        Vector retList = null;
        if (blogSummaries != null) {
            retList = new Vector(blogSummaries.size());
            for (int i = 0; i < blogSummaries.size(); i++) {
                Hashtable pageSummHT = (Hashtable) blogSummaries.elementAt(i);
View Full Code Here

    public List getPageHistory(ConfluenceServerSettings confSettings, String pageId) throws IOException, XmlRpcException {
        Vector paramsVector = new Vector();
        String loginToken = getLoginToken(confSettings);
        paramsVector.add(loginToken);
        paramsVector.add(pageId);
        XmlRpcClient client = getXMLRPCClient(confSettings);
        Vector pageHistories = null;
        pageHistories = (Vector) client.execute(CONFLUENCE_REMOTE_API_VERSION + ".getPageHistory", paramsVector);
        List retList = null;
        if (pageHistories != null) {
            retList = new Vector(pageHistories.size());
            for (int i = 0; i < pageHistories.size(); i++) {
                Hashtable pageHistoryHT = (Hashtable) pageHistories.elementAt(i);
View Full Code Here

    public PageForXmlRpc getPage(ConfluenceServerSettings confSettings, String pageId) throws IOException, XmlRpcException {
        Vector paramsVector = new Vector();
        String loginToken = getLoginToken(confSettings);
        paramsVector.add(loginToken);
        paramsVector.add(pageId);
        XmlRpcClient client = getXMLRPCClient(confSettings);
        Hashtable page = null;
        try {
            page = (Hashtable) client.execute(CONFLUENCE_REMOTE_API_VERSION + ".getPage", paramsVector);
        } catch (XmlRpcException e) {
            if (isConfluence4OrMore(confSettings)) {
                return getPageSummary(confSettings, pageId);
            }
            log.debug("Problem getting page", e);
View Full Code Here

        Vector paramsVector = new Vector();
        String loginToken = getLoginToken(confSettings);
        paramsVector.add(loginToken);
        paramsVector.add(spacekey);
        paramsVector.add(pagetitle);
        XmlRpcClient client = getXMLRPCClient(confSettings);
        Hashtable page = null;
        page = (Hashtable) client.execute(CONFLUENCE_REMOTE_API_VERSION + ".getPageSummary", paramsVector);
        return PageForXmlRpc.create(page);
    }
View Full Code Here

    public PageForXmlRpc getPageSummary(ConfluenceServerSettings confSettings, String pageid) throws IOException, XmlRpcException {
        Vector paramsVector = new Vector();
        String loginToken = getLoginToken(confSettings);
        paramsVector.add(loginToken);
        paramsVector.add(pageid);
        XmlRpcClient client = getXMLRPCClient(confSettings);
        Hashtable page = null;
        page = (Hashtable) client.execute(CONFLUENCE_REMOTE_API_VERSION + ".getPageSummary", paramsVector);
        return PageForXmlRpc.create(page);
    }
View Full Code Here

    public BlogForXmlRpc getBlog(ConfluenceServerSettings confSettings, String blogId) throws IOException, XmlRpcException {
        Vector paramsVector = new Vector();
        String loginToken = getLoginToken(confSettings);
        paramsVector.add(loginToken);
        paramsVector.add(blogId);
        XmlRpcClient client = getXMLRPCClient(confSettings);
        Hashtable blog = null;
        blog = (Hashtable) client.execute(CONFLUENCE_REMOTE_API_VERSION + ".getBlog", paramsVector);
        return BlogForXmlRpc.create(blog);
    }
View Full Code Here

        String loginToken = getLoginToken(confSettings);
        paramsVector.add(loginToken);
        paramsVector.add(spacekey);
        paramsVector.add(Calendar.getInstance().get(Calendar.DAY_OF_MONTH));
        paramsVector.add(title);
        XmlRpcClient client = getXMLRPCClient(confSettings);
        Hashtable blog = null;
        blog = (Hashtable) client.execute(CONFLUENCE_REMOTE_API_VERSION + ".getBlogEntryByDayAndTitle", paramsVector);
        return BlogForXmlRpc.create(blog);
    }
View Full Code Here

    public List<AttachmentForXmlRpc> getAttachments(ConfluenceServerSettings confSettings, String pageId) throws IOException, XmlRpcException {
        Vector paramsVector = new Vector();
        String loginToken = getLoginToken(confSettings);
        paramsVector.add(loginToken);
        paramsVector.add(pageId);
        XmlRpcClient client = getXMLRPCClient(confSettings);
        Hashtable page = null;
        Vector results = (Vector) client.execute(CONFLUENCE_REMOTE_API_VERSION + ".getAttachments", paramsVector);
        List<AttachmentForXmlRpc> retList = new ArrayList();
        for (Iterator iterator = results.iterator(); iterator.hasNext(); ) {
            Hashtable hashtable = (Hashtable) iterator.next();
            AttachmentForXmlRpc newAttachment = new AttachmentForXmlRpc();
            newAttachment.setPageParams(hashtable);
View Full Code Here

    public UserForXmlRpc getUser(ConfluenceServerSettings confSettings, String pUsername) throws IOException, XmlRpcException {
        Vector paramsVector = new Vector();
        String loginToken = getLoginToken(confSettings);
        paramsVector.add(loginToken);
        paramsVector.add(pUsername);
        XmlRpcClient client = getXMLRPCClient(confSettings);
        Hashtable user = null;
        user = (Hashtable) (client.execute(CONFLUENCE_REMOTE_API_VERSION + ".getUser", paramsVector));
        return UserForXmlRpc.create(user);
    }
View Full Code Here

TOP

Related Classes of org.apache.xmlrpc.XmlRpcClient$CallData

Copyright © 2018 www.massapicom. 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.