railo.loader.engine
Class CFMLEngineWrapper

java.lang.Object
  extended by railo.loader.engine.CFMLEngineWrapper
All Implemented Interfaces:
CFMLEngine, EngineChangeListener

public class CFMLEngineWrapper
extends Object
implements CFMLEngine, EngineChangeListener

wrapper for a CFMlEngine


Field Summary
 
Fields inherited from interface railo.loader.engine.CFMLEngine
CAN_RESTART, CAN_RESTART_ALL, CAN_RESTART_CONTEXT, CAN_UPDATE
 
Constructor Summary
CFMLEngineWrapper(CFMLEngine engine)
          constructor of the class
 
Method Summary
 void addServletConfig(javax.servlet.ServletConfig config)
          adds a servlet config
 boolean can(int type, String password)
          checks if process has the right to do was given with type, the engine with given password
 boolean equalTo(CFMLEngine other, boolean checkReferenceEqualityOnly)
          this interface is new to this class and not offically part of Railo 3.x, do not use outside the loader
 Object getBlazeDSUtil()
          returns the Blaze DS Util
 Cast getCastUtil()
          return the cast util
 CFMLEngineFactory getCFMLEngineFactory()
           
 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
 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()
           
 void onUpdate(CFMLEngine newEngine)
          will be called whene there is a change oon the engine
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CFMLEngineWrapper

public CFMLEngineWrapper(CFMLEngine engine)
constructor of the class

Parameters:
engine -
Method Detail

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)

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)

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
See Also:
CFMLEngine.serviceAMF(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
See Also:
CFMLEngine.getCFMLEngineFactory()

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)

onUpdate

public void onUpdate(CFMLEngine newEngine)
Description copied from interface: EngineChangeListener
will be called whene there is a change oon the engine

Specified by:
onUpdate in interface EngineChangeListener
Parameters:
newEngine - new CFML Engine
See Also:
EngineChangeListener.onUpdate(railo.loader.engine.CFMLEngine)

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()

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)

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()

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()

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()

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()

equalTo

public boolean equalTo(CFMLEngine other,
                       boolean checkReferenceEqualityOnly)
this interface is new to this class and not offically part of Railo 3.x, do not use outside the loader

Parameters:
other -
checkReferenceEqualityOnly -
Returns:


Copyright © 2012 Railo