Package jetbrains.buildServer.agent.impl
Class BuildAgentUtil
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.BuildAgentUtil
-
public class BuildAgentUtil extends Object
- Author:
- Maxim.Manuylov Date: 21.05.2008
-
-
Constructor Summary
Constructors Constructor Description BuildAgentUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Pair<Integer,String>
parseRegistrationResponse(String response)
Parses server response on registration request and returns an array of agent properties
-
-
-
Method Detail
-
parseRegistrationResponse
@NotNull public static Pair<Integer,String> parseRegistrationResponse(@NotNull String response) throws IllegalArgumentException
Parses server response on registration request and returns an array of agent properties- Parameters:
response
- Text response received from the server by the agent registration request- Returns:
- a pair of id and authorization token, in case the server version is early the authorization token may be null.
- Throws:
IllegalArgumentException
- if the id received from the server is not a number
-
-