View Javadoc

1   /*******************************************************************************
2    *  Copyright (c) 2005, 2006 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.jbi4cics.messageformat;
9   
10  import it.imolinfo.jbi4cics.exception.FormatException;
11  import it.imolinfo.jbi4cics.service.ServiceContext;
12  
13  public class NoOpMessageFormatter implements MessageFormatter {
14  
15    public NoOpMessageFormatter() {
16      super();
17      // TODO Auto-generated constructor stub
18    }
19  
20    public void mapInputBeanToInputMessage(ServiceContext serviceContext) throws FormatException {
21      serviceContext.setInputMessage(serviceContext.getInputBean());
22      
23    }
24  
25    public void mapOutputMessageToOutputBean(ServiceContext serviceContext) throws FormatException {
26      serviceContext.setOutputBean(serviceContext.getOutputMessage());
27    }
28  
29  }