package rfx.server.http.data.service; import io.netty.handler.codec.http.HttpHeaders; import java.util.List; /** * the base interface for HttpProcessor implementations * * @author trieu * */ public interface DataService { /** * free closable resources, better for JVM GC */ public void freeResource(); /** * @return String the class-path of implemented class */ public String getClasspath(); /** * @return true if the model can be processed and rendered to text */ public boolean isRenderedByTemplate(); public static String getClasspath(DataService e){ String classpath = e.getClass().getName(); //System.out.println("---buildClasspath "+classpath); return classpath; } public static String getClasspath(Class<?> e){ return e.getName(); } public List<HttpHeaders> getHttpHeaders(); }