1 /* 2 Licensed under the Apache License, Version 2.0 (the "License"); 3 you may not use this file except in compliance with the License. 4 You may obtain a copy of the License at 5 6 http://www.apache.org/licenses/LICENSE-2.0 7 8 Unless required by applicable law or agreed to in writing, software 9 distributed under the License is distributed on an "AS IS" BASIS, 10 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 See the License for the specific language governing permissions and 12 limitations under the License. 13 */ 14 package uk.nhs.interoperability.payload; 15 16 import uk.nhs.interoperability.infrastructure.ITKMessageProperties; 17 18 /** 19 * The Class SimpleMessage. 20 * 21 * @author Michael Odling-Smee 22 * @author Nicholas Jones 23 * @since 0.1 24 */ 25 public class SimpleMessage extends ITKMessageImpl { 26 27 /* (non-Javadoc) 28 * @see uk.nhs.interoperability.payload.ITKMessage#getFullPayload() 29 */ 30 public String getFullPayload() { 31 return super.getBusinessPayload(); 32 } 33 34 /** 35 * Instantiates a new simple message. 36 */ 37 public SimpleMessage() { 38 super(); 39 } 40 41 public SimpleMessage(String businessPayload) { 42 this(null, businessPayload); 43 } 44 45 public SimpleMessage(ITKMessageProperties itkMessageProperties, String businessPayload) { 46 super(); 47 this.setMessageProperties(itkMessageProperties); 48 this.setBusinessPayload(businessPayload); 49 } 50 51 /** 52 * Instantiates a new simple message. 53 * 54 * @param itkMessageProperties the itk message properties 55 * @param auditIdentity the audit identity 56 * @param profileId the profile id 57 * @param reflectMessageProperties the reflect message properties 58 */ 59 public SimpleMessage(ITKMessageProperties itkMessageProperties, String auditIdentity, String profileId, boolean reflectMessageProperties) { 60 super(itkMessageProperties, auditIdentity, profileId, reflectMessageProperties); 61 } 62 63 /** 64 * Instantiates a new simple message. 65 * 66 * @param itkMessageProperties the itk message properties 67 */ 68 public SimpleMessage(ITKMessageProperties itkMessageProperties) { 69 super(itkMessageProperties); 70 } 71 72 }