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
 void cli(Map<String,String> config, javax.servlet.ServletConfig servletConfig)
           
 Object getBlazeDSUtil()
          returns the Blaze DS Util
 Cast getCastUtil()
          return the cast util
 CFMLEngineFactory getCFMLEngineFactory()
           
 Map<String,CFMLFactory> 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
 javax.servlet.ServletConfig[] getServletConfigs()
           
 String getState()
           
 PageContext getThreadPageContext()
           
 URL getUpdateLocation()
           
 String getUpdateType()
           
 String getVersion()
           
 VideoUtil getVideoUtil()
           
 ZipUtil getZipUtil()
           
 boolean isRunning()
           
 void registerThreadPageContext(PageContext pc)
           
 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)
          method to invoke the engine for a simple file
 void serviceRest(javax.servlet.http.HttpServlet servlet, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp)
          method to invoke the engine for a Rest Requests
 void touchMonitor(ConfigServerImpl cs)
           
 long uptime()
           
 
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

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

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

serviceFile

public void serviceFile(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 a simple file

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

serviceRest

public void serviceRest(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 a Rest Requests

Specified by:
serviceRest 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]

getUpdateType

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

getUpdateLocation

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

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

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

reset

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

Specified by:
reset in interface CFMLEngine

getCastUtil

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

Specified by:
getCastUtil in interface CFMLEngine
Returns:
operaton util

getOperatonUtil

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

Specified by:
getOperatonUtil in interface CFMLEngine
Returns:
operaton util

getDecisionUtil

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

Specified by:
getDecisionUtil in interface CFMLEngine
Returns:
decision util

getExceptionUtil

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

Specified by:
getExceptionUtil in interface CFMLEngine
Returns:
decision util

getCreationUtil

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

Specified by:
getCreationUtil in interface CFMLEngine
Returns:
decision util

getBlazeDSUtil

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

Specified by:
getBlazeDSUtil in interface CFMLEngine
Returns:
Blaze DS Util

getFDController

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

Specified by:
getFDController in interface CFMLEngine
Returns:
IFDController

getCFMLFactories

public Map<String,CFMLFactory> getCFMLFactories()

getResourceUtil

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

Specified by:
getResourceUtil in interface CFMLEngine
Returns:
Blaze DS Util

getHTTPUtil

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

Specified by:
getHTTPUtil in interface CFMLEngine
Returns:
the HTTP Util

getThreadPageContext

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

registerThreadPageContext

public void registerThreadPageContext(PageContext pc)
Specified by:
registerThreadPageContext in interface CFMLEngine

getVideoUtil

public VideoUtil getVideoUtil()
Specified by:
getVideoUtil in interface CFMLEngine

getZipUtil

public ZipUtil getZipUtil()
Specified by:
getZipUtil in interface CFMLEngine

getState

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

allowRequestTimeout

public void allowRequestTimeout(boolean allowRequestTimeout)

allowRequestTimeout

public boolean allowRequestTimeout()

isRunning

public boolean isRunning()

cli

public void cli(Map<String,String> config,
                javax.servlet.ServletConfig servletConfig)
         throws IOException,
                javax.servlet.jsp.JspException,
                javax.servlet.ServletException
Specified by:
cli in interface CFMLEngine
Throws:
IOException
javax.servlet.jsp.JspException
javax.servlet.ServletException

getServletConfigs

public javax.servlet.ServletConfig[] getServletConfigs()

uptime

public long uptime()


Copyright © 2012 Railo