Package org.qzerver.model.agent.action.providers.executor.http.threads

Examples of org.qzerver.model.agent.action.providers.executor.http.threads.HttpOutputThread


        boolean succeed = statusCode == definition.getExpectedStatusCode();
        result.setSucceed(succeed);

        HttpEntity entity = response.getEntity();

        HttpOutputThread outputThread = new HttpOutputThread(request, entity, maxCaptureSize,
            definition.isSkipOutput());
        outputThread.start();

        if (definition.getTimeoutMs() > 0) {
            HttpTimeoutThread timeoutThread = new HttpTimeoutThread(outputThread, definition.getTimeoutMs());
            timeoutThread.start();
        }

        outputThread.join();

        result.setOutput(outputThread.composeActionOutput());

        return result;
    }
View Full Code Here

TOP

Related Classes of org.qzerver.model.agent.action.providers.executor.http.threads.HttpOutputThread

Copyright © 2018 www.massapicom. 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.