Class BuildAgentUtil


  • public class BuildAgentUtil
    extends Object
    Author:
    Maxim.Manuylov Date: 21.05.2008
    • Constructor Detail

      • BuildAgentUtil

        public BuildAgentUtil()
    • 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