Package com.consol.citrus.message

Examples of com.consol.citrus.message.RawMessage


     * @param request
     */
    public void handleRequest(String request) {
        if (messageListener != null) {
            log.info("Received Http request");
            messageListener.onInboundMessage(new RawMessage(request), null);
        } else {
            log.info("Received Http request:" + NEWLINE + request);
        }
    }
View Full Code Here


     * @param response
     */
    public void handleResponse(String response) {
        if (messageListener != null) {
            log.info("Sending Http response");
            messageListener.onOutboundMessage(new RawMessage(response), null);
        } else {
            log.info("Sending Http response:" + NEWLINE + response);
        }
    }
View Full Code Here

     * @param request
     */
    public void handleRequest(String request) {
        if (messageListener != null) {
            log.info("Sending Http request message");
            messageListener.onOutboundMessage(new RawMessage(request), null);
        } else {
            log.info("Sending Http request message:" + NEWLINE + request);
        }
    }
View Full Code Here

     * @param response
     */
    public void handleResponse(String response) {
        if (messageListener != null) {
            log.info("Received Http response message");
            messageListener.onInboundMessage(new RawMessage(response), null);
        } else {
            log.info("Received Http response message:" + NEWLINE + response);
        }
    }
View Full Code Here

    protected void logMessage(String logMessage, String message, boolean incoming) {
        if (messageListener != null) {
            log.info(logMessage);

            if (incoming) {
                messageListener.onInboundMessage(new RawMessage(message), null);
            } else {
                messageListener.onOutboundMessage(new RawMessage(message), null);
            }
        } else {
            log.info(logMessage + ":" + System.getProperty("line.separator") + message);
        }
    }
View Full Code Here

        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        Message mailMessage;
        try {
            mimeMessage.getMimeMessage().writeTo(bos);
            mailMessage = new RawMessage(bos.toString()); //TODO use message charset encoding
        } catch (IOException e) {
            mailMessage = message;
        } catch (MessagingException e) {
            mailMessage = message;
        } finally {
View Full Code Here

TOP

Related Classes of com.consol.citrus.message.RawMessage

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.