001    package com.khubla.pragmatach.plugin.xstream;
002    
003    import java.util.Map;
004    
005    import com.khubla.pragmatach.framework.api.PragmatachException;
006    import com.khubla.pragmatach.framework.api.Response;
007    import com.khubla.pragmatach.framework.controller.BeanBoundController;
008    import com.khubla.pragmatach.framework.controller.ControllerBeanUtil;
009    import com.khubla.pragmatach.framework.controller.impl.AbstractController;
010    
011    /**
012     * @author tome
013     */
014    public class XStreamController extends AbstractController implements BeanBoundController {
015       /**
016        * ctor
017        */
018       public XStreamController() {
019       }
020    
021       private Map<String, String> getPostFieldValues() throws PragmatachException {
022          // TODO Auto-generated method stub
023          return null;
024       }
025    
026       /**
027        * render
028        */
029       public Response render() throws PragmatachException {
030          try {
031             return new XStreamResponse(getCacheHeaders(), this);
032          } catch (final Exception e) {
033             throw new PragmatachException("Exception in render", e);
034          }
035       }
036    
037       @Override
038       public void populateController() throws PragmatachException {
039          ControllerBeanUtil.populateController(this, this.getPostFieldValues());
040       }
041    }