001    package com.khubla.pragmatach.framework.controller.impl;
002    
003    import java.util.Map;
004    
005    import javax.servlet.http.HttpServletResponse;
006    
007    import com.khubla.pragmatach.framework.api.Response;
008    
009    /**
010     * @author tome
011     */
012    public abstract class AbstractResponse implements Response {
013       /**
014        * content type
015        */
016       protected final static String CONTENT_TYPE_HTML = "text/html";
017       /**
018        * the cache headers
019        */
020       private final Map<String, String> cacheHeaders;
021    
022       /**
023        * ctor
024        */
025       public AbstractResponse(Map<String, String> cacheHeaders) {
026          this.cacheHeaders = cacheHeaders;
027       }
028    
029       public Map<String, String> getCacheHeaders() {
030          return cacheHeaders;
031       }
032    
033       @Override
034       public int getHTTPCode() {
035          return HttpServletResponse.SC_OK;
036       }
037    }