Examples of IHttpMacroExecutor


Examples of com.subgraph.vega.api.http.requests.IHttpMacroExecutor

      if (authMethod != null && authMethod.getType() == IAuthMethod.AuthMethodType.AUTH_METHOD_HTTP_MACRO) {
        logger.info("Pre-authenticating using an HTTP macro");
        IAuthMethodHttpMacro authMethodMacro = (IAuthMethodHttpMacro)authMethod;
        IHttpMacroContext context = scan.getRequestEngine().createMacroContext();
        context.setDict(identity.getDict());
        IHttpMacroExecutor executor = scan.getRequestEngine().createMacroExecutor(authMethodMacro.getMacro(), context);
        while (executor.hasNext()) {
          IHttpResponse response;
          int status;
         
          try {
            response = executor.sendNextRequest().get(true);
          } catch (Exception e) {
            logger.log(Level.WARNING, e.getMessage());
            return false;
          }   
          contentAnalyzer.processResponse(response, true, false);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.