org.jenkinsci.plugins.relution
Class RelutionCommunicator

java.lang.Object
  extended by org.jenkinsci.plugins.relution.RelutionCommunicator

public class RelutionCommunicator
extends Object


Constructor Summary
RelutionCommunicator(String apiEndpoint, String apiUsername, String apiPassword, String apiOrganization, String proxyHost, String apiReleaseStatus, int proxyPort, RequestFactory requestFactory)
          Constructor to create a Communicator for Relution.
 
Method Summary
 String analyzeUploadedApplication(String uploadToken, String UUID, String appIcon, String releaseStatus, String appName, String appReleaseNotes, String appDescription, org.apache.tools.ant.types.FileSet fileSet, RelutionCommunicator communicator)
          Analyze the uploaded application
 RequestFactory getRequestFactory()
          getting the Factory an specific communicator
 ApplicationInformation saveApplicationInformation(String appObject)
          Obtain information stored in the app store for the given UUID
 void setRequestFactory(RequestFactory requestFactory)
          setting an Factory for an specific communicator
 String uploadApplicationAsset(String uploadToken, File file)
          Upload the application file and return the token for analyzing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelutionCommunicator

public RelutionCommunicator(String apiEndpoint,
                            String apiUsername,
                            String apiPassword,
                            String apiOrganization,
                            String proxyHost,
                            String apiReleaseStatus,
                            int proxyPort,
                            RequestFactory requestFactory)
Constructor to create a Communicator for Relution.

Parameters:
apiEndpoint - URL to which the communcator connects
apiUsername - login with the specified User
apiPassword - login with the specified Password
apiOrganization - login with the specified Organization
apiReleaseStatus -
proxyHost - necessary Host for remote debugging
proxyPort - necessary Port for remote debugging
requestFactory - handles the creation of the requests
Method Detail

setRequestFactory

public void setRequestFactory(RequestFactory requestFactory)
setting an Factory for an specific communicator

Parameters:
requestFactory -

getRequestFactory

public RequestFactory getRequestFactory()
getting the Factory an specific communicator

Returns:
getting the Factory an specific communicator

uploadApplicationAsset

public String uploadApplicationAsset(String uploadToken,
                                     File file)
                              throws URISyntaxException,
                                     org.apache.http.ParseException,
                                     org.apache.http.client.ClientProtocolException,
                                     IOException
Upload the application file and return the token for analyzing

Parameters:
uploadToken -
file -
Returns:
String
Throws:
URISyntaxException
org.apache.http.ParseException
org.apache.http.client.ClientProtocolException
IOException

analyzeUploadedApplication

public String analyzeUploadedApplication(String uploadToken,
                                         String UUID,
                                         String appIcon,
                                         String releaseStatus,
                                         String appName,
                                         String appReleaseNotes,
                                         String appDescription,
                                         org.apache.tools.ant.types.FileSet fileSet,
                                         RelutionCommunicator communicator)
                                  throws URISyntaxException,
                                         org.apache.http.ParseException,
                                         org.apache.http.client.ClientProtocolException,
                                         IOException,
                                         IllegalArgumentException,
                                         IllegalAccessException
Analyze the uploaded application

Parameters:
uploadToken -
UUID - unique ID of the App that should be uploaded.
Returns:
Json Object that could be uploaded to the mcap.
Throws:
URISyntaxException
org.apache.http.ParseException
org.apache.http.client.ClientProtocolException
IOException
IllegalArgumentException
IllegalAccessException

saveApplicationInformation

public ApplicationInformation saveApplicationInformation(String appObject)
                                                  throws URISyntaxException,
                                                         org.apache.http.ParseException,
                                                         org.apache.http.client.ClientProtocolException,
                                                         IOException
Obtain information stored in the app store for the given UUID

Parameters:
UUID -
Returns:
ApplicationInformation
Throws:
URISyntaxException
org.apache.http.ParseException
org.apache.http.client.ClientProtocolException
IOException


Copyright © 2004-2013. All Rights Reserved.