Package org.objectstyle.confluence.rpc.soap_axis.confluenceservice_v1

Examples of org.objectstyle.confluence.rpc.soap_axis.confluenceservice_v1.ConfluenceSoapServiceProxy


  private DocPageRenderer parser;

  public DocGenerator(String baseUrl, String spaceKey, String docBase,
      String startPage, String username, String password, String template) {

    ConfluenceSoapServiceProxy service = new ConfluenceSoapServiceProxy();

    // derive service URL from base URL
    if (baseUrl != null) {
      if (baseUrl.endsWith("/")) {
        baseUrl = baseUrl.substring(0, baseUrl.length() - 1);
      }

      String endpoint = baseUrl + ENDPOINT_SUFFIX;
      service.setEndpoint(endpoint);
    }
    // service base URL from service default URL
    else if (service.getEndpoint().endsWith(ENDPOINT_SUFFIX)) {
      String endpoint = service.getEndpoint();
      baseUrl = endpoint.substring(0, endpoint.length()
          - ENDPOINT_SUFFIX.length());
    } else {
      throw new IllegalArgumentException(
          "Null base url and invalid service URL");
View Full Code Here

TOP

Related Classes of org.objectstyle.confluence.rpc.soap_axis.confluenceservice_v1.ConfluenceSoapServiceProxy

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.