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

Examples of org.qzerver.model.agent.action.providers.executor.http.HttpActionOutput


            if (ArrayUtils.isNotEmpty(capturedData)) {
                data = capturedData;
            }
        }

        HttpActionOutput output = new HttpActionOutput();
        output.setStatus(status);
        output.setData(data);
        output.setExcepionClass(excepionClass);
        output.setExceptionMessage(exceptionMessage);

        Header contentEncodingHeader = entity.getContentEncoding();
        if (contentEncodingHeader != null) {
            output.setEncoding(contentEncodingHeader.getValue());
        }

        Header contentTypeHeader = entity.getContentType();
        if (contentTypeHeader != null) {
            output.setType(contentTypeHeader.getValue());
        }

        return output;
    }
View Full Code Here

TOP

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

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.