Package org.apache.jorphan.util

Examples of org.apache.jorphan.util.XMLBuffer.tag()


        final String countLimit = getCountlim();

        res.setSamplerData("Search with filter " + searchFilter);
        xmlBuffer.tag("searchfilter",searchFilter); // $NON-NLS-1$
        xmlBuffer.tag("baseobj",getRootdn()); // $NON-NLS-1$
        xmlBuffer.tag("searchbase",searchBase);// $NON-NLS-1$
        xmlBuffer.tag("scope" , scopeStr); // $NON-NLS-1$
        xmlBuffer.tag("countlimit",countLimit); // $NON-NLS-1$
        xmlBuffer.tag("timelimit",timeLimit); // $NON-NLS-1$

                NamingEnumeration srch;
View Full Code Here


        res.setSamplerData("Search with filter " + searchFilter);
        xmlBuffer.tag("searchfilter",searchFilter); // $NON-NLS-1$
        xmlBuffer.tag("baseobj",getRootdn()); // $NON-NLS-1$
        xmlBuffer.tag("searchbase",searchBase);// $NON-NLS-1$
        xmlBuffer.tag("scope" , scopeStr); // $NON-NLS-1$
        xmlBuffer.tag("countlimit",countLimit); // $NON-NLS-1$
        xmlBuffer.tag("timelimit",timeLimit); // $NON-NLS-1$

                NamingEnumeration srch;
        try {
View Full Code Here

        res.setSamplerData("Search with filter " + searchFilter);
        xmlBuffer.tag("searchfilter",searchFilter); // $NON-NLS-1$
        xmlBuffer.tag("baseobj",getRootdn()); // $NON-NLS-1$
        xmlBuffer.tag("searchbase",searchBase);// $NON-NLS-1$
        xmlBuffer.tag("scope" , scopeStr); // $NON-NLS-1$
        xmlBuffer.tag("countlimit",countLimit); // $NON-NLS-1$
        xmlBuffer.tag("timelimit",timeLimit); // $NON-NLS-1$

                NamingEnumeration srch;
        try {
          res.sampleStart();
View Full Code Here

        xmlBuffer.tag("searchfilter",searchFilter); // $NON-NLS-1$
        xmlBuffer.tag("baseobj",getRootdn()); // $NON-NLS-1$
        xmlBuffer.tag("searchbase",searchBase);// $NON-NLS-1$
        xmlBuffer.tag("scope" , scopeStr); // $NON-NLS-1$
        xmlBuffer.tag("countlimit",countLimit); // $NON-NLS-1$
        xmlBuffer.tag("timelimit",timeLimit); // $NON-NLS-1$

                NamingEnumeration srch;
        try {
          res.sampleStart();
          srch = temp_client.searchTest(
View Full Code Here

        res.setResponseCode("800"); // $NON-NLS-1$
      }
      isSuccessful = false;
    } finally {
      xmlBuffer.closeTag("operation"); // $NON-NLS-1$
      xmlBuffer.tag("responsecode",res.getResponseCode()); // $NON-NLS-1$
      xmlBuffer.tag("responsemessage",res.getResponseMessage()); // $NON-NLS-1$
      res.setResponseData(xmlBuffer.toString().getBytes());
      res.setDataType(SampleResult.TEXT);
      res.setSuccessful(isSuccessful);
    }
View Full Code Here

      }
      isSuccessful = false;
    } finally {
      xmlBuffer.closeTag("operation"); // $NON-NLS-1$
      xmlBuffer.tag("responsecode",res.getResponseCode()); // $NON-NLS-1$
      xmlBuffer.tag("responsemessage",res.getResponseMessage()); // $NON-NLS-1$
      res.setResponseData(xmlBuffer.toString().getBytes());
      res.setDataType(SampleResult.TEXT);
      res.setSuccessful(isSuccessful);
    }
    return res;
View Full Code Here

        DirContext dirContext = ldapContexts.get(getThreadName());

        try {
            xmlBuffer.openTag("operation"); // $NON-NLS-1$
            final String testType = getTest();
            xmlBuffer.tag("opertype", testType); // $NON-NLS-1$
            log.debug("performing test: " + testType);
            if (testType.equals(UNBIND)) {
                res.setSamplerData("Unbind");
                xmlBuffer.tag("baseobj",getRootdn()); // $NON-NLS-1$
                xmlBuffer.tag("binddn",getUserDN()); // $NON-NLS-1$
View Full Code Here

            final String testType = getTest();
            xmlBuffer.tag("opertype", testType); // $NON-NLS-1$
            log.debug("performing test: " + testType);
            if (testType.equals(UNBIND)) {
                res.setSamplerData("Unbind");
                xmlBuffer.tag("baseobj",getRootdn()); // $NON-NLS-1$
                xmlBuffer.tag("binddn",getUserDN()); // $NON-NLS-1$
                unbindOp(dirContext, res);
            } else if (testType.equals(BIND)) {
                res.setSamplerData("Bind as "+getUserDN());
                xmlBuffer.tag("baseobj",getRootdn()); // $NON-NLS-1$
View Full Code Here

            xmlBuffer.tag("opertype", testType); // $NON-NLS-1$
            log.debug("performing test: " + testType);
            if (testType.equals(UNBIND)) {
                res.setSamplerData("Unbind");
                xmlBuffer.tag("baseobj",getRootdn()); // $NON-NLS-1$
                xmlBuffer.tag("binddn",getUserDN()); // $NON-NLS-1$
                unbindOp(dirContext, res);
            } else if (testType.equals(BIND)) {
                res.setSamplerData("Bind as "+getUserDN());
                xmlBuffer.tag("baseobj",getRootdn()); // $NON-NLS-1$
                xmlBuffer.tag("binddn",getUserDN()); // $NON-NLS-1$
View Full Code Here

                xmlBuffer.tag("baseobj",getRootdn()); // $NON-NLS-1$
                xmlBuffer.tag("binddn",getUserDN()); // $NON-NLS-1$
                unbindOp(dirContext, res);
            } else if (testType.equals(BIND)) {
                res.setSamplerData("Bind as "+getUserDN());
                xmlBuffer.tag("baseobj",getRootdn()); // $NON-NLS-1$
                xmlBuffer.tag("binddn",getUserDN()); // $NON-NLS-1$
                xmlBuffer.tag("connectionTO",getConnTimeOut()); // $NON-NLS-1$
                bindOp(res);
            } else if (testType.equals(SBIND)) {
                res.setSamplerData("SingleBind as "+getUserDN());
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.