com.atlassian.confluence.it.rpc
Class ConfluenceSoapRpc

java.lang.Object
  extended by com.atlassian.confluence.it.rpc.ConfluenceSoapRpc

public class ConfluenceSoapRpc
extends Object

Handles RPC over SOAP. Similar to ConfluenceRpc. TODO - This class and ConfluenceRpc could share an interface, and ConfluenceRpc be renamed to "ConfluenceXmlRpc".


Constructor Summary
ConfluenceSoapRpc(String baseUrl)
           
 
Method Summary
 void logIn(String token)
           
 void logIn(User user)
          Set the current user logged into this rpc client.
 void logOut()
           
 String renderContent(String spaceKey, long pageId, String newContent)
           
 void useAnonymously()
          Indicate that further rpc calls should be made anonymously, rather than as a specific user.
 boolean watchPage(long pageId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceSoapRpc

public ConfluenceSoapRpc(String baseUrl)
Method Detail

logIn

public void logIn(User user)
Set the current user logged into this rpc client. Creates a user token for the given user by calling the remote login method. All further methods called on the client will be performed using this token until logOut() or useAnonymously() are called.


logIn

public void logIn(String token)

useAnonymously

public void useAnonymously()
Indicate that further rpc calls should be made anonymously, rather than as a specific user. This will last until logIn(com.atlassian.confluence.it.User) or logOut() are called.


logOut

public void logOut()

renderContent

public String renderContent(String spaceKey,
                            long pageId,
                            String newContent)

watchPage

public boolean watchPage(long pageId)


Copyright © 2003-2012 Atlassian. All Rights Reserved.