org.wso2.carbon.appfactory.jenkins.artifact.storage
Class Utils

java.lang.Object
  extended by org.wso2.carbon.appfactory.jenkins.artifact.storage.Utils

public class Utils
extends Object


Constructor Summary
Utils()
           
 
Method Summary
static String getEnvironmentVariable(String variableName)
           
static Map<String,String[]> getParameterMapFromRequest(org.kohsuke.stapler.StaplerRequest request)
          This is a method to get a parameter map from the stapelerRequest.
static void getTagNamesOfPersistedArtifacts(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Request should have the job-name that user wants to get the tag names of This will send the list of tag names that user has asked to persist for the given job
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

getTagNamesOfPersistedArtifacts

public static void getTagNamesOfPersistedArtifacts(org.kohsuke.stapler.StaplerRequest req,
                                                   org.kohsuke.stapler.StaplerResponse rsp)
Request should have the job-name that user wants to get the tag names of This will send the list of tag names that user has asked to persist for the given job

Parameters:
req - request
rsp - response

getParameterMapFromRequest

public static Map<String,String[]> getParameterMapFromRequest(org.kohsuke.stapler.StaplerRequest request)
This is a method to get a parameter map from the stapelerRequest.

Parameters:
request - the staplerReqeust. This is the request that is sent to jenkins
Returns:
Map that contains the servlet request parameters. Also the StaplerRequest.getRootPath() value is added in to this map

getEnvironmentVariable

public static String getEnvironmentVariable(String variableName)


Copyright © 2015 WSO2 Inc. All rights reserved.