Package org.whitesource.agent
Class ProjectsSender
- java.lang.Object
-
- org.whitesource.agent.ProjectsSender
-
public class ProjectsSender extends java.lang.ObjectClass for sending projects for all WhiteSource command line agents.- Author:
- Itai Marko, tom.shapira, anna.rozin
-
-
Field Summary
Fields Modifier and Type Field Description protected static intMAX_LOG_EVENTSprotected StatusCodeprepStepStatusCodestatic java.lang.StringPROJECT_URL_PREFIX
-
Constructor Summary
Constructors Constructor Description ProjectsSender(SenderConfiguration senderConfig, OfflineConfiguration offlineConfig, RequestConfiguration requestConfig, PluginInfo pluginInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.whitesource.agent.client.WhitesourceServicecreateService()Pair<java.lang.String,StatusCode>sendRequest(ProjectsDetails projectsDetails)protected java.lang.Stringupdate(org.whitesource.agent.client.WhitesourceService service, java.util.Collection<org.whitesource.agent.api.model.AgentProjectInfo> projects)
-
-
-
Field Detail
-
PROJECT_URL_PREFIX
public static final java.lang.String PROJECT_URL_PREFIX
- See Also:
- Constant Field Values
-
MAX_LOG_EVENTS
protected static final int MAX_LOG_EVENTS
- See Also:
- Constant Field Values
-
prepStepStatusCode
protected StatusCode prepStepStatusCode
-
-
Constructor Detail
-
ProjectsSender
public ProjectsSender(SenderConfiguration senderConfig, OfflineConfiguration offlineConfig, RequestConfiguration requestConfig, PluginInfo pluginInfo)
-
-
Method Detail
-
sendRequest
public Pair<java.lang.String,StatusCode> sendRequest(ProjectsDetails projectsDetails)
-
createService
protected org.whitesource.agent.client.WhitesourceService createService()
-
update
protected java.lang.String update(org.whitesource.agent.client.WhitesourceService service, java.util.Collection<org.whitesource.agent.api.model.AgentProjectInfo> projects) throws org.whitesource.agent.client.WssServiceException- Throws:
org.whitesource.agent.client.WssServiceException
-
-