1 /**************************************************************************** 2 * Copyright (c) 2005, 2006, 2007, 2008, 2009 Imola Informatica. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the LGPL License v2.1 5 * which accompanies this distribution, and is available at 6 * http://www.gnu.org/licenses/lgpl.html 7 ****************************************************************************/ 8 package it.imolinfo.jbi4corba.jbi.processor; 9 10 import javax.xml.transform.Source; 11 12 /** 13 * Wraps a source (with jbi-wrapping informations). 14 */ 15 public class JbiMessage { 16 17 /** The message source. */ 18 private Source messageSource = null; 19 20 /** The is wrapped. */ 21 private boolean isWrapped = false; 22 23 /** 24 * Instantiates a new jbi4 ejb message. 25 * 26 * @param message 27 * @param isWrapped 28 */ 29 public JbiMessage(Source message, boolean isWrapped) { 30 this.messageSource = message; 31 this.isWrapped = isWrapped; 32 } 33 34 /** 35 * Gets the message source. 36 * 37 * @return the message source 38 */ 39 public Source getMessageSource() { 40 return messageSource; 41 } 42 43 /** 44 * Sets the message source. 45 * 46 * @param messageSource 47 * the new message source 48 */ 49 public void setMessageSource(Source messageSource) { 50 this.messageSource = messageSource; 51 } 52 53 /** 54 * Checks if is wrapped. 55 * 56 * @return true, if is wrapped 57 */ 58 public boolean isWrapped() { 59 return isWrapped; 60 } 61 62 /** 63 * Sets the wrapped. 64 * 65 * @param isWrapped 66 * the new wrapped 67 */ 68 public void setWrapped(boolean isWrapped) { 69 this.isWrapped = isWrapped; 70 } 71 72 }