Example #1
0
        /// <summary>
        /// Sending Response to gsa host and data retrieving
        /// </summary>
        /// <param name="query"></param>
        /// <param name="path">Set to null if you dont want to save in file</param>
        /// <returns></returns>
        public Response getGSAResponse(Query query,String path)
        {
            StreamReader readStream = search(query);

            ResponseBuilder rsp = new ResponseBuilder();//(readStream, GSAHostAddress);

            return rsp.buildResponse(readStream, GSAHostAddress, path);// ResponseBuilder.buildResponse(search(rawQuery), xmlSystemId);
        }
Example #2
0
        /// <summary>
        /// Default Search
        /// </summary>
        /// <param name="query">Query class object</param>
        /// <returns></returns>
        public StreamReader search(Query query)
        {
            if (query.getAccess() != 'p')
                this.NeedCredentails = true;

            return search(query.getValue());
        }