1 2 24 25 26 27 28 package com.lutris.appserver.server; 29 30 import java.io.IOException ; 31 32 import javax.servlet.Servlet ; 33 import javax.servlet.ServletContext ; 34 import javax.servlet.ServletException ; 35 import javax.servlet.http.HttpServletRequest ; 36 import javax.servlet.http.HttpServletResponse ; 37 38 import org.enhydra.util.jivan.JivanFactory; 39 import org.enhydra.xml.xmlc.XMLCFactory; 40 41 import com.lutris.appserver.server.httpPresentation.HttpPresentationComms; 42 import com.lutris.appserver.server.httpPresentation.HttpPresentationManager; 43 import com.lutris.appserver.server.session.SessionManager; 44 import com.lutris.appserver.server.sql.DatabaseManager; 45 import com.lutris.logging.LogChannel; 46 import com.lutris.util.Config; 47 48 114 public interface Application { 115 116 119 public static final int STOPPED = 1; 120 121 124 public static final int RUNNING = 2; 125 126 129 public static final int INCOMPLETE = 3; 130 131 134 public static final int DEAD = 4; 135 136 139 public static final int HALTED = 5; 140 141 146 public int getState(); 147 148 153 public void setName(String name); 154 155 160 public String getName(); 161 162 167 public Config getConfig(); 168 169 177 public void startup(Config appConfig) throws ApplicationException; 178 179 191 public void restartup(Config appConfig) throws ApplicationException; 192 193 197 public void shutdown(); 198 199 231 public boolean requestPreprocessor(HttpPresentationComms comms) 232 throws Exception ; 233 234 235 248 public void requestPostProcessor(HttpPresentationComms comms) 249 throws Exception ; 250 251 252 290 public boolean servletRequestPreprocessor(Servlet servlet, 291 ServletContext context, 292 HttpServletRequest request, 293 HttpServletResponse response) 294 throws ServletException , IOException ; 295 296 297 302 public void setLogChannel(LogChannel chan); 303 304 310 public LogChannel getLogChannel(); 311 312 318 public SessionManager getSessionManager(); 319 320 327 public DatabaseManager getDatabaseManager(); 328 329 336 public HttpPresentationManager getHttpPresentationManager(); 337 338 347 public void setHttpPresentationManager(HttpPresentationManager pm); 348 349 354 public XMLCFactory getXMLCFactory(); 355 356 359 public void setXMLCFactory( boolean enableDeferredParsing); 360 361 367 public void setJivanFactory(boolean reload); 368 369 372 public JivanFactory getJivanFactory(); 373 374 375 } 376 | Popular Tags |