railo.runtime
Class CFMLFactoryImpl

java.lang.Object
  extended by javax.servlet.jsp.JspFactory
      extended by railo.runtime.CFMLFactory
          extended by railo.runtime.CFMLFactoryImpl

public final class CFMLFactoryImpl
extends CFMLFactory

implements a JSP Factory, this class produce JSP Compatible PageContext Object this object holds also the must interfaces to coldfusion specified functionlity


Constructor Summary
CFMLFactoryImpl(CFMLEngineImpl engine, QueryCache queryCache)
          constructor of the JspFactory
 
Method Summary
 void checkTimeout()
          check timeout of all running threads, downgrade also priority from all thread run longer than 10 seconds
 ConfigWeb getConfig()
           
 ConfigWebImpl getConfigWebImpl()
           
 javax.servlet.jsp.JspEngineInfo getEngineInfo()
           
 Array getInfo()
           
 Object getLabel()
           
 javax.servlet.jsp.PageContext getPageContext(javax.servlet.Servlet servlet, javax.servlet.ServletRequest req, javax.servlet.ServletResponse rsp, String errorPageURL, boolean needsSession, int bufferSize, boolean autoflush)
           
 long getPageContextesSize()
           
 PageContextImpl getPageContextImpl(javax.servlet.http.HttpServlet servlet, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp, String errorPageURL, boolean needsSession, int bufferSize, boolean autoflush, boolean registerPageContext2Thread, boolean isChild)
           
 QueryCache getQueryCache()
           
 PageContext getRailoPageContext(javax.servlet.http.HttpServlet servlet, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp, String errorPageURL, boolean needsSession, int bufferSize, boolean autoflush)
          similar to getPageContext Method but return the concrete implementation of the railo PageCOntext and take the HTTP Version of the Servlet Objects
 Struct getRunningPageContextes()
           
 ScopeContext getScopeContext()
           
 javax.servlet.http.HttpServlet getServlet()
           
 URL getURL()
           
 int getUsedPageContextLength()
           
 void releasePageContext(javax.servlet.jsp.PageContext pc)
           
 void releaseRailoPageContext(PageContext pc)
          Similar to the releasePageContext Method, but take railo PageContext as entry
 void resetPageContext()
          reset the PageContexes
 void setConfig(ConfigWebImpl config)
           
 void setLabel(String label)
          FUTURE deprecated
 void setURL(URL url)
           
 void stopThread(String threadId, String stopType)
           
static void terminate(PageContext pc)
           
 
Methods inherited from class javax.servlet.jsp.JspFactory
getDefaultFactory, setDefaultFactory
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CFMLFactoryImpl

public CFMLFactoryImpl(CFMLEngineImpl engine,
                       QueryCache queryCache)
constructor of the JspFactory

Parameters:
config - Railo specified Configuration
compiler - Cold Fusion compiler
engine -
Method Detail

resetPageContext

public void resetPageContext()
reset the PageContexes

Specified by:
resetPageContext in class CFMLFactory

getPageContext

public javax.servlet.jsp.PageContext getPageContext(javax.servlet.Servlet servlet,
                                                    javax.servlet.ServletRequest req,
                                                    javax.servlet.ServletResponse rsp,
                                                    String errorPageURL,
                                                    boolean needsSession,
                                                    int bufferSize,
                                                    boolean autoflush)
Specified by:
getPageContext in class javax.servlet.jsp.JspFactory
See Also:
JspFactory.getPageContext(javax.servlet.Servlet, javax.servlet.ServletRequest, javax.servlet.ServletResponse, java.lang.String, boolean, int, boolean)

getRailoPageContext

public PageContext getRailoPageContext(javax.servlet.http.HttpServlet servlet,
                                       javax.servlet.http.HttpServletRequest req,
                                       javax.servlet.http.HttpServletResponse rsp,
                                       String errorPageURL,
                                       boolean needsSession,
                                       int bufferSize,
                                       boolean autoflush)
similar to getPageContext Method but return the concrete implementation of the railo PageCOntext and take the HTTP Version of the Servlet Objects

Specified by:
getRailoPageContext in class CFMLFactory
Parameters:
servlet -
req -
rsp -
errorPageURL -
needsSession -
bufferSize -
autoflush -
Returns:
return the page

getPageContextImpl

public PageContextImpl getPageContextImpl(javax.servlet.http.HttpServlet servlet,
                                          javax.servlet.http.HttpServletRequest req,
                                          javax.servlet.http.HttpServletResponse rsp,
                                          String errorPageURL,
                                          boolean needsSession,
                                          int bufferSize,
                                          boolean autoflush,
                                          boolean registerPageContext2Thread,
                                          boolean isChild)

releasePageContext

public void releasePageContext(javax.servlet.jsp.PageContext pc)
Specified by:
releasePageContext in class javax.servlet.jsp.JspFactory
See Also:
JspFactory.releasePageContext(javax.servlet.jsp.PageContext)

releaseRailoPageContext

public void releaseRailoPageContext(PageContext pc)
Similar to the releasePageContext Method, but take railo PageContext as entry

Specified by:
releaseRailoPageContext in class CFMLFactory
Parameters:
pc -

checkTimeout

public void checkTimeout()
check timeout of all running threads, downgrade also priority from all thread run longer than 10 seconds

Specified by:
checkTimeout in class CFMLFactory

terminate

public static void terminate(PageContext pc)

getEngineInfo

public javax.servlet.jsp.JspEngineInfo getEngineInfo()
Specified by:
getEngineInfo in class javax.servlet.jsp.JspFactory
See Also:
JspFactory.getEngineInfo()

getQueryCache

public QueryCache getQueryCache()
Specified by:
getQueryCache in class CFMLFactory
Returns:
returns the query cache

getUsedPageContextLength

public int getUsedPageContextLength()
Specified by:
getUsedPageContextLength in class CFMLFactory
Returns:
returns count of pagecontext in use

getConfig

public ConfigWeb getConfig()
Specified by:
getConfig in class CFMLFactory
Returns:
Returns the config.

getConfigWebImpl

public ConfigWebImpl getConfigWebImpl()

getScopeContext

public ScopeContext getScopeContext()
Returns:
Returns the scopeContext.

getLabel

public Object getLabel()
Specified by:
getLabel in class CFMLFactory
Returns:
label of the factory

setLabel

public void setLabel(String label)
Description copied from class: CFMLFactory
FUTURE deprecated

Specified by:
setLabel in class CFMLFactory
Parameters:
label -

getURL

public URL getURL()
Returns:
the hostName

setURL

public void setURL(URL url)

getServlet

public javax.servlet.http.HttpServlet getServlet()
Specified by:
getServlet in class CFMLFactory
Returns:
the servlet

setConfig

public void setConfig(ConfigWebImpl config)

getRunningPageContextes

public Struct getRunningPageContextes()

getPageContextesSize

public long getPageContextesSize()

getInfo

public Array getInfo()

stopThread

public void stopThread(String threadId,
                       String stopType)


Copyright © 2012 Railo