railo.runtime.engine
Class CFMLEngineImpl

java.lang.Object
  extended by railo.runtime.engine.CFMLEngineImpl
All Implemented Interfaces:
CFMLEngine

public final class CFMLEngineImpl
extends Object
implements CFMLEngine

The CFMl Engine


Field Summary
 
Fields inherited from interface railo.loader.engine.CFMLEngine
CAN_RESTART, CAN_RESTART_ALL, CAN_RESTART_CONTEXT, CAN_UPDATE
 
Method Summary
 void addServletConfig(javax.servlet.ServletConfig config)
          adds a servlet config
 boolean allowRequestTimeout()
           
 void allowRequestTimeout(boolean allowRequestTimeout)
           
 boolean can(int type, String password)
          checks if process has the right to do was given with type, the engine with given password
 Object getBlazeDSUtil()
          returns the Blaze DS Util
 Cast getCastUtil()
          return the cast util
 CFMLEngineFactory getCFMLEngineFactory()
           
 Map getCFMLFactories()
           
 CFMLFactory getCFMLFactory(javax.servlet.ServletContext srvContext, javax.servlet.ServletConfig srvConfig, javax.servlet.http.HttpServletRequest req)
           
 Creation getCreationUtil()
          returns the decision util
 Decision getDecisionUtil()
          returns the decision util
 Excepton getExceptionUtil()
          returns the decision util
 Object getFDController()
          returns the FusionDebug Engine
 HTTPUtil getHTTPUtil()
          returns the HTTP Util
static CFMLEngine getInstance()
          get singelton instance of the CFML Engine, throwsexception when not already init
static CFMLEngine getInstance(CFMLEngineFactory factory)
          get singelton instance of the CFML Engine
 Operation getOperatonUtil()
          return the operation util
 ResourceUtil getResourceUtil()
          returns the Resource Util
 String getState()
           
 PageContext getThreadPageContext()
           
 URL getUpdateLocation()
           
 String getUpdateType()
           
 String getVersion()
           
 VideoUtil getVideoUtil()
           
 ZipUtil getZipUtil()
           
 boolean isRunning()
           
 void reset()
          reset the engine
 void reset(String configId)
          reset the engine
 void serviceAMF(javax.servlet.http.HttpServlet servlet, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp)
          method to invoke the engine for AMF
 void serviceCFML(javax.servlet.http.HttpServlet servlet, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp)
          method to invoke the engine for CFML
 void serviceFile(javax.servlet.http.HttpServlet servlet, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp)
           
 void touchMonitor(ConfigServerImpl cs)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

touchMonitor

public void touchMonitor(ConfigServerImpl cs)

getInstance

public static CFMLEngine getInstance(CFMLEngineFactory factory)
get singelton instance of the CFML Engine

Parameters:
factory -
Returns:
CFMLEngine

getInstance

public static CFMLEngine getInstance()
                              throws javax.servlet.ServletException
get singelton instance of the CFML Engine, throwsexception when not already init

Parameters:
factory -
Returns:
CFMLEngine
Throws:
javax.servlet.ServletException

addServletConfig

public void addServletConfig(javax.servlet.ServletConfig config)
                      throws javax.servlet.ServletException
Description copied from interface: CFMLEngine
adds a servlet config

Specified by:
addServletConfig in interface CFMLEngine
Throws:
javax.servlet.ServletException
See Also:
CFMLEngine.addServletConfig(javax.servlet.ServletConfig)

getCFMLFactory

public CFMLFactory getCFMLFactory(javax.servlet.ServletContext srvContext,
                                  javax.servlet.ServletConfig srvConfig,
                                  javax.servlet.http.HttpServletRequest req)
                           throws javax.servlet.ServletException
Specified by:
getCFMLFactory in interface CFMLEngine
Throws:
javax.servlet.ServletException
See Also:
CFMLEngine.getCFMLFactory(javax.servlet.ServletContext, javax.servlet.ServletConfig, javax.servlet.http.HttpServletRequest)

serviceCFML

public void serviceCFML(javax.servlet.http.HttpServlet servlet,
                        javax.servlet.http.HttpServletRequest req,
                        javax.servlet.http.HttpServletResponse rsp)
                 throws javax.servlet.ServletException,
                        IOException
Description copied from interface: CFMLEngine
method to invoke the engine for CFML

Specified by:
serviceCFML in interface CFMLEngine
Throws:
javax.servlet.ServletException
IOException
See Also:
CFMLEngine.serviceCFML(javax.servlet.http.HttpServlet, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

serviceFile

public void serviceFile(javax.servlet.http.HttpServlet servlet,
                        javax.servlet.http.HttpServletRequest req,
                        javax.servlet.http.HttpServletResponse rsp)
                 throws javax.servlet.ServletException,
                        IOException
Specified by:
serviceFile in interface CFMLEngine
Throws:
javax.servlet.ServletException
IOException

getVersion

public String getVersion()
Specified by:
getVersion in interface CFMLEngine
Returns:
returns the version of the engine in the format [x.x.x.xxx]
See Also:
CFMLEngine.getVersion()

getUpdateType

public String getUpdateType()
Specified by:
getUpdateType in interface CFMLEngine
Returns:
returns how this engine will be updated (auto, manuell)
See Also:
CFMLEngine.getUpdateType()

getUpdateLocation

public URL getUpdateLocation()
Specified by:
getUpdateLocation in interface CFMLEngine
Returns:
return location URL to get updates for the engines
See Also:
CFMLEngine.getUpdateLocation()

can

public boolean can(int type,
                   String password)
Description copied from interface: CFMLEngine
checks if process has the right to do was given with type, the engine with given password

Specified by:
can in interface CFMLEngine
Parameters:
type - restart type (CFMLEngine.CAN_UPDATE, CFMLEngine.CAN_RESTART)
Returns:
has right
See Also:
CFMLEngine.can(int, java.lang.String)

getCFMLEngineFactory

public CFMLEngineFactory getCFMLEngineFactory()
Specified by:
getCFMLEngineFactory in interface CFMLEngine
Returns:
returns the engine that has produced this engine

serviceAMF

public void serviceAMF(javax.servlet.http.HttpServlet servlet,
                       javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse rsp)
                throws javax.servlet.ServletException,
                       IOException
Description copied from interface: CFMLEngine
method to invoke the engine for AMF

Specified by:
serviceAMF in interface CFMLEngine
Throws:
javax.servlet.ServletException
IOException

reset

public void reset()
Description copied from interface: CFMLEngine
reset the engine

Specified by:
reset in interface CFMLEngine
See Also:
CFMLEngine.reset()

reset

public void reset(String configId)
Description copied from interface: CFMLEngine
reset the engine

Specified by:
reset in interface CFMLEngine
See Also:
CFMLEngine.reset(String)

getCastUtil

public Cast getCastUtil()
Description copied from interface: CFMLEngine
return the cast util

Specified by:
getCastUtil in interface CFMLEngine
Returns:
operaton util
See Also:
CFMLEngine.getCastUtil()

getOperatonUtil

public Operation getOperatonUtil()
Description copied from interface: CFMLEngine
return the operation util

Specified by:
getOperatonUtil in interface CFMLEngine
Returns:
operaton util
See Also:
CFMLEngine.getOperatonUtil()

getDecisionUtil

public Decision getDecisionUtil()
Description copied from interface: CFMLEngine
returns the decision util

Specified by:
getDecisionUtil in interface CFMLEngine
Returns:
decision util
See Also:
CFMLEngine.getDecisionUtil()

getExceptionUtil

public Excepton getExceptionUtil()
Description copied from interface: CFMLEngine
returns the decision util

Specified by:
getExceptionUtil in interface CFMLEngine
Returns:
decision util
See Also:
CFMLEngine.getExceptionUtil()

getCreationUtil

public Creation getCreationUtil()
Description copied from interface: CFMLEngine
returns the decision util

Specified by:
getCreationUtil in interface CFMLEngine
Returns:
decision util
See Also:
CFMLEngine.getCreationUtil()

getBlazeDSUtil

public Object getBlazeDSUtil()
Description copied from interface: CFMLEngine
returns the Blaze DS Util

Specified by:
getBlazeDSUtil in interface CFMLEngine
Returns:
Blaze DS Util
See Also:
CFMLEngine.getBlazeDSUtil()

getFDController

public Object getFDController()
Description copied from interface: CFMLEngine
returns the FusionDebug Engine

Specified by:
getFDController in interface CFMLEngine
Returns:
IFDController
See Also:
CFMLEngine.getFDController()

getCFMLFactories

public Map getCFMLFactories()

getResourceUtil

public ResourceUtil getResourceUtil()
Description copied from interface: CFMLEngine
returns the Resource Util

Specified by:
getResourceUtil in interface CFMLEngine
Returns:
Blaze DS Util
See Also:
CFMLEngine.getResourceUtil()

getHTTPUtil

public HTTPUtil getHTTPUtil()
Description copied from interface: CFMLEngine
returns the HTTP Util

Specified by:
getHTTPUtil in interface CFMLEngine
Returns:
the HTTP Util
See Also:
CFMLEngine.getHTTPUtil()

getThreadPageContext

public PageContext getThreadPageContext()
Specified by:
getThreadPageContext in interface CFMLEngine
Returns:
return PageContext for the current PageContext
See Also:
CFMLEngine.getThreadPageContext()

getVideoUtil

public VideoUtil getVideoUtil()
Specified by:
getVideoUtil in interface CFMLEngine
See Also:
CFMLEngine.getVideoUtil()

getZipUtil

public ZipUtil getZipUtil()
Specified by:
getZipUtil in interface CFMLEngine
See Also:
CFMLEngine.getZipUtil()

getState

public String getState()
Specified by:
getState in interface CFMLEngine
Returns:
returns the stae of the version (alpha,beta,rc,final)
See Also:
CFMLEngine.getState()

allowRequestTimeout

public void allowRequestTimeout(boolean allowRequestTimeout)

allowRequestTimeout

public boolean allowRequestTimeout()

isRunning

public boolean isRunning()


Copyright © 2012 Railo