org.jenkinsci.plugins.relution.net
Class RequestFactory

java.lang.Object
  extended by org.jenkinsci.plugins.relution.net.RequestFactory

public class RequestFactory
extends Object


Constructor Summary
RequestFactory()
           
 
Method Summary
 Request createAnalyzeUploadedApplication(String uploadToken, String UUID)
          Creates an request which could be send against the relution.
 Request createAppStoreItemsRequest()
          With these created request you could retrieve the apps stored in the relution store.
 Request createUploadedApplicationInformationRequest(String appObject)
          Creates an request that could be send against the relution with an APIObject.
 Request createUploadRequest(String uploadToken, File file)
          Creates an request which could be send against the relution.
 String getRelutionApiUrl()
           
 String getRelutionOrganization()
           
 String getRelutionPassword()
           
 String getRelutionReleaseStatus()
           
 String getRelutionUsername()
           
 String send(Request request)
          send the request with org.apache.http
 void setRelutionApiUrl(String relutionApiUrl)
           
 void setRelutionCookieStore(org.apache.http.impl.client.BasicCookieStore relutionCookieStore)
           
 void setRelutionOrganization(String relutionOrganization)
           
 void setRelutionPassword(String relutionPassword)
           
 void setRelutionProxyHost(org.apache.http.HttpHost relutionProxyHost)
           
 void setRelutionReleaseStatus(String relutionReleaseStatus)
           
 void setRelutionUsername(String relutionUsername)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestFactory

public RequestFactory()
Method Detail

send

public String send(Request request)
            throws URISyntaxException,
                   org.apache.http.ParseException,
                   org.apache.http.client.ClientProtocolException,
                   IOException
send the request with org.apache.http

Parameters:
request - request should be send
Returns:
response after executing request
Throws:
URISyntaxException
org.apache.http.ParseException
org.apache.http.client.ClientProtocolException
IOException

createAppStoreItemsRequest

public Request createAppStoreItemsRequest()
With these created request you could retrieve the apps stored in the relution store.

Returns:
json representation of the apps stored in the relution.

createUploadRequest

public Request createUploadRequest(String uploadToken,
                                   File file)
Creates an request which could be send against the relution.

Parameters:
uploadToken - empty string
file - file which should be created
Returns:
a new persisted APIObject File.

createAnalyzeUploadedApplication

public Request createAnalyzeUploadedApplication(String uploadToken,
                                                String UUID)
Creates an request which could be send against the relution.

Parameters:
uploadToken - empty String
UUID - uuid of the Object which should be checked
Returns:
APIObject App if the app not exists in the store or an error if the app already exists

createUploadedApplicationInformationRequest

public Request createUploadedApplicationInformationRequest(String appObject)
Creates an request that could be send against the relution with an APIObject.

Parameters:
appObject - The APIObject returned in an previous step
Returns:
request could be send aginst the relution to upload the appObject

getRelutionPassword

public String getRelutionPassword()
Returns:
Password relates to the Username.

setRelutionPassword

public void setRelutionPassword(String relutionPassword)
Parameters:
relutionPassword - Sets entry of the textfield apiPassword.

getRelutionReleaseStatus

public String getRelutionReleaseStatus()
Returns:
actual entered ReleaseStatus.

setRelutionReleaseStatus

public void setRelutionReleaseStatus(String relutionReleaseStatus)
Parameters:
relutionReleaseStatus - Sets entry of the textfield apiReleaseStatus.

getRelutionApiUrl

public String getRelutionApiUrl()
Returns:
URL to which your app will connect.

setRelutionApiUrl

public void setRelutionApiUrl(String relutionApiUrl)
Parameters:
relutionApiUrl - Communication endpoint to set.

setRelutionProxyHost

public void setRelutionProxyHost(org.apache.http.HttpHost relutionProxyHost)
Parameters:
relutionProxyHost - HttpHost to be set.

setRelutionCookieStore

public void setRelutionCookieStore(org.apache.http.impl.client.BasicCookieStore relutionCookieStore)
Parameters:
relutionCookieStore - BasicCookieStore to set.

getRelutionUsername

public String getRelutionUsername()
Returns:
Username sed to login to relution.

setRelutionUsername

public void setRelutionUsername(String relutionUsername)
Parameters:
relutionUsername - Sets entry of the textfield apiUsername.

getRelutionOrganization

public String getRelutionOrganization()
Returns:
Organization relates to the Username.

setRelutionOrganization

public void setRelutionOrganization(String relutionOrganization)
Parameters:
relutionOrganization - Sets entry of the textfield apiOrganization.


Copyright © 2004-2013. All Rights Reserved.