net.praqma.jenkins.rqm.request
Class RQMUtilities

java.lang.Object
  extended by net.praqma.jenkins.rqm.request.RQMUtilities

public class RQMUtilities
extends Object

Author:
Praqma

Constructor Summary
RQMUtilities()
           
 
Method Summary
static RQMHttpClient createClient(String host, int port, String contextRoot, String project, String user, String password)
           
static String getServerUrl(String context, String host, int port)
           
static String getSingleFeedUrl(String qmServerURL, String projectAlias, String resourceType)
           
static String getSingleResourceBaseUrl(String qmServerURL, String projectAlias, String resourceType)
          Append an id on this one to get the correct path
static String getSingleResourceBaseUrlWithId(String contextRoot, String hostName, int port, String projectAlias, String resourceType, String externalId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RQMUtilities

public RQMUtilities()
Method Detail

getSingleResourceBaseUrl

public static String getSingleResourceBaseUrl(String qmServerURL,
                                              String projectAlias,
                                              String resourceType)
                                       throws UnsupportedEncodingException
Append an id on this one to get the correct path

Parameters:
qmServerURL -
projectAlias -
resourceType -
Returns:
Throws:
UnsupportedEncodingException

getSingleResourceBaseUrlWithId

public static String getSingleResourceBaseUrlWithId(String contextRoot,
                                                    String hostName,
                                                    int port,
                                                    String projectAlias,
                                                    String resourceType,
                                                    String externalId)
                                             throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

getServerUrl

public static String getServerUrl(String context,
                                  String host,
                                  int port)

getSingleFeedUrl

public static String getSingleFeedUrl(String qmServerURL,
                                      String projectAlias,
                                      String resourceType)

createClient

public static RQMHttpClient createClient(String host,
                                         int port,
                                         String contextRoot,
                                         String project,
                                         String user,
                                         String password)
                                  throws MalformedURLException,
                                         ClientCreationException
Throws:
MalformedURLException
ClientCreationException


Copyright © 2004-2014. All Rights Reserved.