railo.runtime
Class PageContextImpl

java.lang.Object
  extended by javax.servlet.jsp.PageContext
      extended by railo.runtime.PageContext
          extended by railo.runtime.PageContextImpl
All Implemented Interfaces:
Sizeable

public final class PageContextImpl
extends PageContext
implements Sizeable

page context for every page object. the PageContext is a jsp page context expanded by cold fusion functionality. for example you have the method getSession to get jsp combatible session object (HTTPSession) and with sessionScope() you get CFML combatible session object (Struct,Scope).


Field Summary
 
Fields inherited from class javax.servlet.jsp.PageContext
APPLICATION, APPLICATION_SCOPE, CONFIG, EXCEPTION, OUT, PAGE, PAGE_SCOPE, PAGECONTEXT, REQUEST, REQUEST_SCOPE, RESPONSE, SESSION, SESSION_SCOPE
 
Constructor Summary
PageContextImpl(ScopeContext scopeContext, ConfigWebImpl config, QueryCache queryCache, int id, javax.servlet.http.HttpServlet servlet)
          default Constructor
 
Method Summary
 DatasourceConnection _getConnection(DataSource ds, String user, String pass)
           
 DatasourceConnection _getConnection(String datasource, String user, String pass)
           
 void addPageSource(PageSource ps, boolean alsoInclude)
          adds a PageSource
 void addPageSource(PageSource ps, PageSource psInc)
           
 Application applicationScope()
           
 Argument argumentsScope()
           
 Argument argumentsScope(boolean bind)
          return the argument scope
 CGI cgiScope()
           
 void clear()
          clear the actuell output buffer
 void clearCatch()
          clear all catches
 void clearRemoteUser()
          clear the remote user
 Client clientScope()
           
 Client clientScopeEL()
           
 void close()
          Close the response stream.
 Cluster clusterScope()
           
 Cluster clusterScope(boolean create)
          cluster scope
 void compile(PageSource pageSource)
          compile a CFML Template
 void compile(String realPath)
          compile a CFML Template
 Cookie cookieScope()
           
 void copyStateTo(PageContextImpl other)
           
 void doInclude(PageSource source)
          includes a path from a absolute path
 void doInclude(PageSource[] sources)
           
 void doInclude(String realPath)
          includes a path from a absolute path
 Object evaluate(String expression)
          evaluate given expression
 void execute(String realPath, boolean throwExcpetion)
          execute a request n the pageConext
 void execute(String realPath, boolean throwExcpetion, boolean onlyTopLevel)
           
 void exeLogEnd(int line, String id)
           
 void exeLogEndline(int line)
          Deprecated. no longer supported and ignored
 void exeLogStart(int line, String id)
           
 Object findAttribute(String name)
           
 void flush()
          Flush Content of buffer to the response stream of the Socket.
 void forceWrite(String str)
          Writes a String to the Response Buffer,also when cfoutputonly is true and execution is outside of a cfoutput
 Form formScope()
           
 void forward(String realPath)
           
 Object get(Object coll, Collection.Key key)
           
 Object get(Object coll, Collection.Key key, Object defaultValue)
           
 Object get(Object coll, String key)
           
 Object get(Object coll, String key, Object defaultValue)
           
 Component getActiveComponent()
           
 UDF getActiveUDF()
           
 ApplicationContext getApplicationContext()
           
 Object getAttribute(String name)
           
 Object getAttribute(String name, int scope)
           
 Enumeration getAttributeNamesInScope(int scope)
           
 int getAttributesScope(String name)
           
 PageSource getBase()
           
 PageSource getBasePageSource()
           
 PageException getCatch()
           
 String getCFID()
           
 CFMLFactory getCFMLFactory()
           
 String getCFToken()
           
 Object getCollection(Object coll, Collection.Key key)
          same like getProperty but return a collection object (QueryColumn) if return object is a Query
 Object getCollection(Object coll, Collection.Key key, Object defaultValue)
          same like getProperty but return a collection object (QueryColumn) if return object is a Query
 Object getCollection(Object coll, String key)
          same like getProperty but return a collection object (QueryColumn) if return object is a Query
 Object getCollection(Object coll, String key, Object defaultValue)
          same like getProperty but return a collection object (QueryColumn) if return object is a Query
 ConfigWeb getConfig()
           
 int getCurrentLevel()
          returns the current level, how deep is the page stack
 PageSource getCurrentPageSource()
           
 javax.servlet.jsp.tagext.Tag getCurrentTag()
          returns the tag that is in use
 PageSource getCurrentTemplatePageSource()
           
 DataSourceManager getDataSourceManager()
           
 Debugger getDebugger()
          return debugger of the page Context
 Exception getException()
           
 int getExecutionTime()
           
 FTPPool getFTPPool()
           
 Object getFunction(Object coll, Collection.Key key, Object[] args)
          call a UDF Function and return "return value" of the function
 Object getFunction(Object coll, String key, Object[] args)
          call a UDF Function and return "return value" of the function
 Object getFunctionWithNamedValues(Object coll, Collection.Key key, Object[] args)
          call a UDF Function and return "return value" of the function
 Object getFunctionWithNamedValues(Object coll, String key, Object[] args)
          call a UDF Function and return "return value" of the function
 javax.servlet.http.HttpServletRequest getHttpServletRequest()
          return HttpServletRequest, getRequest only returns ServletRequest
 javax.servlet.http.HttpServletResponse getHttpServletResponse()
          return HttpServletResponse, getResponse only returns ServletResponse
 int getId()
           
 Iterator getIterator(String key)
          get variable from string definition and cast ist to a Iterator Object
 String getJSessionId()
           
 Locale getLocale()
           
 ORMSession getORMSession(boolean create)
           
 javax.servlet.jsp.JspWriter getOut()
           
 Object getPage()
           
 PageSource getPageSource(String realPath)
          get PageSource of the first Mapping that match the given realPath
 PageSource getPageSourceExisting(String realPath)
           
 List<PageSource> getPageSourceList()
           
 PageSource[] getPageSources(String realPath)
           
 PageContext getParentPageContext()
           
 Resource getPhysical(String realPath, boolean alsoDefaultMapping)
          get Resource of the first Mapping that match the given realPath
 boolean getPsq()
          returns if single quotes will be preserved inside a query tag (psq=preserve single quote)
 Query getQuery(String key)
          get variable from string definition and cast ist to a Query Object
 QueryCache getQueryCache()
           
 Reference getReference(Object coll, Collection.Key key)
           
 Reference getReference(Object coll, String key)
           
 PageSource getRelativePageSource(String realPath)
          creates a PageSource from Realpath
 PageSource getRelativePageSourceExisting(String realPath)
           
 PageSource[] getRelativePageSources(String realPath)
           
 Credential getRemoteUser()
           
 javax.servlet.ServletRequest getRequest()
           
 int getRequestId()
           
 long getRequestTimeout()
           
 javax.servlet.ServletResponse getResponse()
           
 OutputStream getResponseStream()
           
 CFMLWriter getRootOut()
           
 Resource getRootTemplateDirectory()
           
 ScopeFactory getScopeFactory()
           
 String getServerPassword()
           
 javax.servlet.http.HttpServlet getServlet()
           
 javax.servlet.ServletConfig getServletConfig()
           
 javax.servlet.ServletContext getServletContext()
           
 javax.servlet.ServletOutputStream getServletOutputStream()
           
 javax.servlet.http.HttpSession getSession()
           
 short getSessionType()
           
 long getStartTime()
           
 Array getTemplatePath()
          array of current template stack
 Thread getThread()
           
 Object getThreadScope(Collection.Key name, Object defaultValue)
           
 Threads getThreadScope(String name)
           
 Object getThreadScope(String name, Object defaultValue)
           
 String[] getThreadScopeNames()
           
 TimeZone getTimeZone()
           
 String getURLToken()
           
 Object getVariable(String var)
           
 VariableReference getVariableReference(String var)
          a variable reference, references to variable, to modifed it, with global effect.
 VariableUtil getVariableUtil()
           
 void handlePageException(Exception e)
           
 void handlePageException(PageException pe)
          specialised method for handlePageException with argument Exception or Throwable
 void handlePageException(Throwable t)
           
 boolean hasFamily()
           
 void include(PageSource ps)
          includes a path from a absolute path
 void include(String realPath)
           
 boolean initApplicationContext()
           
 void initBody(javax.servlet.jsp.tagext.BodyTag bodyTag, int state)
          init body of a tag
 PageContextImpl initialize(javax.servlet.http.HttpServlet servlet, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush, boolean isChild)
          initialize a existing page context
 void initialize(javax.servlet.Servlet servlet, javax.servlet.ServletRequest req, javax.servlet.ServletResponse rsp, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush)
           
 boolean isCFCRequest()
           
 boolean isGatewayContext()
           
 boolean isTrusted(Page page)
           
 Component loadComponent(String compPath)
           
 Object localGet()
           
 Object localGet(boolean bind)
           
 Scope localScope()
           
 Scope localScope(boolean bind)
           
 Object localTouch()
           
 Object localTouch(boolean bind)
           
 void outputEnd()
          ends a cfoutput block
 void outputStart()
          starts a cfoutput block
 void param(String type, String name, Object defaultValue)
           
 void param(String type, String name, Object defaultValue, double min, double max)
           
 void param(String type, String name, Object defaultValue, String regex)
           
 javax.servlet.jsp.JspWriter popBody()
           
 javax.servlet.jsp.tagext.BodyContent pushBody()
           
 void release()
           
 void releaseBody(javax.servlet.jsp.tagext.BodyTag bodyTag, int state)
          release body of a tag
 void removeAttribute(String name)
           
 void removeAttribute(String name, int scope)
           
 void removeLastPageSource(boolean alsoInclude)
          remove the last PageSource
 Object removeVariable(String var)
           
 Request requestScope()
           
 void resetSession()
           
 void reuse(javax.servlet.jsp.tagext.Tag tag)
          puts a tag back to pool
 Scope scope(int type)
          Deprecated. use instead VariableInterpreter.scope(...)
 Scope scope(String strScope, Scope defaultValue)
           
 Server serverScope()
           
 Session sessionScope()
           
 Session sessionScope(boolean checkExpires)
           
 Object set(Object coll, Collection.Key key, Object value)
          set property at a collection object
 Object set(Object coll, String key, Object value)
          set property at a collection object
 void setActiveUDF(UDF activeUDF)
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 void setAttribute(String name, Object value)
           
 void setAttribute(String name, Object value, int scope)
           
 void setBase(PageSource base)
           
 void setCatch(PageException pe)
           
 void setCatch(PageException pe, boolean caught, boolean store)
           
 PageException setCatch(Throwable t)
          sets a excption
 void setCFOutputOnly(boolean boolEnablecfoutputonly)
          sets state of cfoutput only
 void setCFOutputOnly(short enablecfoutputonly)
          sets state of cfoutput only
 void setErrorPage(ErrorPage ep)
          sets the error page
 void setExecutionTime(int executionTime)
           
 void setFunctionScopes(Scope local, Argument argument)
           
 void setGatewayContext(boolean gatewayContext)
           
 void setHeader(String name, String value)
          write a value to the header of the response
 void setLocale(Locale locale)
           
 void setLocale(String strLocale)
           
 void setPageUsed(Page page)
           
 void setPsq(boolean psq)
          sets if inside a query tag single quote will be preserved (preserve single quote)
 void setRemoteUser(Credential remoteUser)
           
 void setRequestTimeout(long requestTimeout)
           
 void setServerPassword(String serverPassword)
           
 boolean setSilent()
          sets the pagecontext silent
 void setThread(Thread thread)
           
 void setThreadScope(Collection.Key name, Threads ct)
           
 void setThreadScope(String name, Threads ct)
          set a thread to the context
 void setTimeZone(TimeZone timeZone)
           
 Object setVariable(String var, Object value)
          sets a value by string syntax ("scopename.key.key" -> "url.name")
 void setVariablesScope(Variables variables)
          set a other variable scope
 long sizeOf()
          return the size of the object
 Scope SymTab_findBuiltinScope(String name)
           
 void throwCatch()
          return throwed exception
 PageSource toPageSource(Resource res, PageSource defaultValue)
           
 Object touch(Object coll, Collection.Key key)
          touch a new property, if property doesn't existset a Struct, otherwise do nothing
 Object touch(Object coll, String key)
          touch a new property, if property doesn't existset a Struct, otherwise do nothing
 Undefined undefinedScope()
           
 boolean unsetSilent()
          unsets the pagecontext silent
 URLForm urlFormScope()
           
 URL urlScope()
           
 Undefined us()
           
 javax.servlet.jsp.tagext.Tag use(Class clazz)
          returns a tag from tag handler pool
 javax.servlet.jsp.tagext.Tag use(String tagClassName)
          returns a tag from tag handler pool
 boolean useSpecialMappings()
           
 boolean useSpecialMappings(boolean useTagMappings)
           
 Variables variablesScope()
           
 void write(String str)
          Writes a String to the Response Buffer
 void writePSQ(Object o)
          Writes a String to the Response Buffer,also when cfoutputonly is true and execution is outside of a cfoutput
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageContextImpl

public PageContextImpl(ScopeContext scopeContext,
                       ConfigWebImpl config,
                       QueryCache queryCache,
                       int id,
                       javax.servlet.http.HttpServlet servlet)
default Constructor

Parameters:
factoryImpl -
scopeContext -
config - Configuration of the Cold Fusion Container
compiler - CFML Compiler
queryCache - Query Cache Object
id - identity of the pageContext
Method Detail

sizeOf

public long sizeOf()
Description copied from interface: Sizeable
return the size of the object

Specified by:
sizeOf in interface Sizeable
Returns:
size of the object

initialize

public PageContextImpl initialize(javax.servlet.http.HttpServlet servlet,
                                  javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse rsp,
                                  String errorPageURL,
                                  boolean needsSession,
                                  int bufferSize,
                                  boolean autoFlush,
                                  boolean isChild)
initialize a existing page context

Parameters:
servlet -
req -
rsp -
errorPageURL -
needsSession -
bufferSize -
autoFlush -

release

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

initialize

public void initialize(javax.servlet.Servlet servlet,
                       javax.servlet.ServletRequest req,
                       javax.servlet.ServletResponse rsp,
                       String errorPageURL,
                       boolean needsSession,
                       int bufferSize,
                       boolean autoFlush)
                throws IOException,
                       IllegalStateException,
                       IllegalArgumentException
Specified by:
initialize in class javax.servlet.jsp.PageContext
Throws:
IOException
IllegalStateException
IllegalArgumentException
See Also:
PageContext.initialize(javax.servlet.Servlet, javax.servlet.ServletRequest, javax.servlet.ServletResponse, java.lang.String, boolean, int, boolean)

write

public void write(String str)
           throws IOException
Description copied from class: PageContext
Writes a String to the Response Buffer

Specified by:
write in class PageContext
Throws:
IOException
See Also:
PageContext.write(java.lang.String)

forceWrite

public void forceWrite(String str)
                throws IOException
Description copied from class: PageContext
Writes a String to the Response Buffer,also when cfoutputonly is true and execution is outside of a cfoutput

Specified by:
forceWrite in class PageContext
Throws:
IOException
See Also:
PageContext.forceWrite(java.lang.String)

writePSQ

public void writePSQ(Object o)
              throws IOException,
                     PageException
Description copied from class: PageContext
Writes a String to the Response Buffer,also when cfoutputonly is true and execution is outside of a cfoutput

Specified by:
writePSQ in class PageContext
Throws:
IOException
PageException
See Also:
PageContext.writePSQ(java.lang.Object)

flush

public void flush()
Description copied from class: PageContext
Flush Content of buffer to the response stream of the Socket.

Specified by:
flush in class PageContext
See Also:
PageContext.flush()

close

public void close()
Description copied from class: PageContext
Close the response stream.

Specified by:
close in class PageContext
See Also:
PageContext.close()

getRelativePageSource

public PageSource getRelativePageSource(String realPath)
Description copied from class: PageContext
creates a PageSource from Realpath

Specified by:
getRelativePageSource in class PageContext
Returns:
Page Source
See Also:
PageContext.getRelativePageSource(java.lang.String)

getRelativePageSourceExisting

public PageSource getRelativePageSourceExisting(String realPath)

getRelativePageSources

public PageSource[] getRelativePageSources(String realPath)

getPageSource

public PageSource getPageSource(String realPath)
Description copied from class: PageContext
get PageSource of the first Mapping that match the given realPath

Specified by:
getPageSource in class PageContext
Parameters:
realPath - path to get PageSource for

getPageSources

public PageSource[] getPageSources(String realPath)

getPageSourceExisting

public PageSource getPageSourceExisting(String realPath)

useSpecialMappings

public boolean useSpecialMappings(boolean useTagMappings)

useSpecialMappings

public boolean useSpecialMappings()

getPhysical

public Resource getPhysical(String realPath,
                            boolean alsoDefaultMapping)
Description copied from class: PageContext
get Resource of the first Mapping that match the given realPath

Specified by:
getPhysical in class PageContext
Parameters:
realPath - path to get PageSource for

toPageSource

public PageSource toPageSource(Resource res,
                               PageSource defaultValue)
Specified by:
toPageSource in class PageContext

doInclude

public void doInclude(String realPath)
               throws PageException
Description copied from class: PageContext
includes a path from a absolute path

Specified by:
doInclude in class PageContext
Parameters:
realPath - absolute path as file object
Throws:
PageException
See Also:
PageContext.doInclude(java.lang.String)

doInclude

public void doInclude(PageSource source)
               throws PageException
Description copied from class: PageContext
includes a path from a absolute path

Specified by:
doInclude in class PageContext
Parameters:
source - absolute path as file object
Throws:
PageException

doInclude

public void doInclude(PageSource[] sources)
               throws PageException
Throws:
PageException
See Also:
PageContext.doInclude(railo.runtime.PageSource)

getTemplatePath

public Array getTemplatePath()
                      throws ExpressionException
Description copied from class: PageContext
array of current template stack

Specified by:
getTemplatePath in class PageContext
Returns:
array
Throws:
ExpressionException
See Also:
PageContext.getTemplatePath()

getPageSourceList

public List<PageSource> getPageSourceList()

copyStateTo

public void copyStateTo(PageContextImpl other)

getCurrentLevel

public int getCurrentLevel()
Description copied from class: PageContext
returns the current level, how deep is the page stack

Specified by:
getCurrentLevel in class PageContext
Returns:
level

getCurrentPageSource

public PageSource getCurrentPageSource()
Specified by:
getCurrentPageSource in class PageContext
Returns:
the current template SourceFile

getCurrentTemplatePageSource

public PageSource getCurrentTemplatePageSource()
Specified by:
getCurrentTemplatePageSource in class PageContext
Returns:
the current template SourceFile

getBasePageSource

public PageSource getBasePageSource()
Specified by:
getBasePageSource in class PageContext
Returns:
base template file

getRootTemplateDirectory

public Resource getRootTemplateDirectory()
Specified by:
getRootTemplateDirectory in class PageContext
Returns:
directory of root template file
See Also:
PageContext.getRootTemplateDirectory()

scope

public Scope scope(int type)
            throws PageException
Deprecated. use instead VariableInterpreter.scope(...)

Description copied from class: PageContext
returns matching scope

Specified by:
scope in class PageContext
Parameters:
type - type of scope (Scope.xx)
Returns:
scope matching to defined scope definition
Throws:
PageException - FUTURE set to deprecated
See Also:
PageContext.scope(int)

scope

public Scope scope(String strScope,
                   Scope defaultValue)
            throws PageException
Throws:
PageException

undefinedScope

public Undefined undefinedScope()
Specified by:
undefinedScope in class PageContext
Returns:
undefined scope, undefined scope is a placeholder for the scopecascading
See Also:
PageContext.undefinedScope()

us

public Undefined us()
Specified by:
us in class PageContext
Returns:
undefined scope, undefined scope is a placeholder for the scopecascading

variablesScope

public Variables variablesScope()
Specified by:
variablesScope in class PageContext
Returns:
variables scope
See Also:
PageContext.variablesScope()

urlScope

public URL urlScope()
Specified by:
urlScope in class PageContext
Returns:
url scope
See Also:
PageContext.urlScope()

formScope

public Form formScope()
Specified by:
formScope in class PageContext
Returns:
form scope
See Also:
PageContext.formScope()

urlFormScope

public URLForm urlFormScope()
Specified by:
urlFormScope in class PageContext
Returns:
scope mixed url and scope
See Also:
PageContext.urlFormScope()

requestScope

public Request requestScope()
Specified by:
requestScope in class PageContext
Returns:
request scope
See Also:
PageContext.requestScope()

cgiScope

public CGI cgiScope()
Specified by:
cgiScope in class PageContext
Returns:
request scope
See Also:
PageContext.cgiScope()

applicationScope

public Application applicationScope()
                             throws PageException
Specified by:
applicationScope in class PageContext
Returns:
application scope
Throws:
PageException
See Also:
PageContext.applicationScope()

argumentsScope

public Argument argumentsScope()
Specified by:
argumentsScope in class PageContext
Returns:
arguments scope
See Also:
PageContext.argumentsScope()

argumentsScope

public Argument argumentsScope(boolean bind)
Description copied from class: PageContext
return the argument scope

Specified by:
argumentsScope in class PageContext
Parameters:
bind - indicate that the Argument Scope is binded for using outsite of the udf
Returns:
Argument Scope
See Also:
PageContext.argumentsScope(boolean)

localScope

public Scope localScope()
Specified by:
localScope in class PageContext
Returns:
arguments scope
See Also:
PageContext.localScope()

localScope

public Scope localScope(boolean bind)

localGet

public Object localGet()
                throws PageException
Throws:
PageException

localGet

public Object localGet(boolean bind)
                throws PageException
Throws:
PageException

localTouch

public Object localTouch()
                  throws PageException
Throws:
PageException

localTouch

public Object localTouch(boolean bind)
                  throws PageException
Throws:
PageException

setFunctionScopes

public void setFunctionScopes(Scope local,
                              Argument argument)
Parameters:
local - sets the current local scope
argument - sets the current argument scope

sessionScope

public Session sessionScope()
                     throws PageException
Specified by:
sessionScope in class PageContext
Returns:
session scope
Throws:
PageException
See Also:
PageContext.sessionScope()

sessionScope

public Session sessionScope(boolean checkExpires)
                     throws PageException
Throws:
PageException

serverScope

public Server serverScope()
Specified by:
serverScope in class PageContext
Returns:
server scope
See Also:
PageContext.serverScope()

clusterScope

public Cluster clusterScope()
                     throws PageException
Specified by:
clusterScope in class PageContext
Returns:
cluster scope
Throws:
PageException
See Also:
PageContext.clusterScope()

clusterScope

public Cluster clusterScope(boolean create)
                     throws PageException
Description copied from class: PageContext
cluster scope

Specified by:
clusterScope in class PageContext
Parameters:
create - return null when false and scope does not exists
Returns:
cluster scope or null
Throws:
PageException

cookieScope

public Cookie cookieScope()
Specified by:
cookieScope in class PageContext
Returns:
cookie scope
See Also:
PageContext.cookieScope()

clientScope

public Client clientScope()
                   throws PageException
Specified by:
clientScope in class PageContext
Returns:
cookie scope
Throws:
PageException
See Also:
PageContext.clientScope()

clientScopeEL

public Client clientScopeEL()

set

public Object set(Object coll,
                  String key,
                  Object value)
           throws PageException
Description copied from class: PageContext
set property at a collection object

Specified by:
set in class PageContext
Parameters:
coll - Collection Object (Collection, HashMap aso.)
key - key of the new value
value - new Value
Returns:
value setted
Throws:
PageException
See Also:
PageContext.set(java.lang.Object, java.lang.String, java.lang.Object)

set

public Object set(Object coll,
                  Collection.Key key,
                  Object value)
           throws PageException
Description copied from class: PageContext
set property at a collection object

Specified by:
set in class PageContext
Parameters:
coll - Collection Object (Collection, HashMap aso.)
key - key of the new value
value - new Value
Returns:
value setted
Throws:
PageException

touch

public Object touch(Object coll,
                    String key)
             throws PageException
Description copied from class: PageContext
touch a new property, if property doesn't existset a Struct, otherwise do nothing

Specified by:
touch in class PageContext
Parameters:
coll - Collection Object
key - key to touch
Returns:
Property
Throws:
PageException
See Also:
PageContext.touch(java.lang.Object, java.lang.String)

touch

public Object touch(Object coll,
                    Collection.Key key)
             throws PageException
Description copied from class: PageContext
touch a new property, if property doesn't existset a Struct, otherwise do nothing

Specified by:
touch in class PageContext
Parameters:
coll - Collection Object
key - key to touch
Returns:
Property
Throws:
PageException
See Also:
PageContext.touch(java.lang.Object, railo.runtime.type.Collection.Key)

getCollection

public Object getCollection(Object coll,
                            String key)
                     throws PageException
Description copied from class: PageContext
same like getProperty but return a collection object (QueryColumn) if return object is a Query

Specified by:
getCollection in class PageContext
Parameters:
coll - Collection Object
key - key to touch
Returns:
Property or QueryColumn
Throws:
PageException
See Also:
PageContext.getCollection(java.lang.Object, java.lang.String)

getCollection

public Object getCollection(Object coll,
                            Collection.Key key)
                     throws PageException
Description copied from class: PageContext
same like getProperty but return a collection object (QueryColumn) if return object is a Query

Specified by:
getCollection in class PageContext
Parameters:
coll - Collection Object
key - key to touch
Returns:
Property or QueryColumn
Throws:
PageException
See Also:
PageContext.getCollection(java.lang.Object, railo.runtime.type.Collection.Key)

getCollection

public Object getCollection(Object coll,
                            String key,
                            Object defaultValue)
Description copied from class: PageContext
same like getProperty but return a collection object (QueryColumn) if return object is a Query

Specified by:
getCollection in class PageContext
Parameters:
coll - Collection Object
key - key to touch
Returns:
Property or QueryColumn
See Also:
PageContext.getCollection(java.lang.Object, java.lang.String, java.lang.Object)

getCollection

public Object getCollection(Object coll,
                            Collection.Key key,
                            Object defaultValue)
Description copied from class: PageContext
same like getProperty but return a collection object (QueryColumn) if return object is a Query

Specified by:
getCollection in class PageContext
Parameters:
coll - Collection Object
key - key to touch
Returns:
Property or QueryColumn
See Also:
PageContext.getCollection(java.lang.Object, railo.runtime.type.Collection.Key, java.lang.Object)

get

public Object get(Object coll,
                  String key)
           throws PageException
Specified by:
get in class PageContext
Parameters:
coll - Collection to get value
key - key of the value
Returns:
return value of a Collection, throws Exception if value doesn't exist
Throws:
PageException
See Also:
PageContext.get(java.lang.Object, java.lang.String)

get

public Object get(Object coll,
                  Collection.Key key)
           throws PageException
Specified by:
get in class PageContext
Parameters:
coll - Collection to get value
key - key of the value
Returns:
return value of a Collection, throws Exception if value doesn't exist
Throws:
PageException
See Also:
PageContext.get(java.lang.Object, railo.runtime.type.Collection.Key)

getReference

public Reference getReference(Object coll,
                              String key)
                       throws PageException
Specified by:
getReference in class PageContext
Parameters:
coll - Collection to get value
key - key of the value
Returns:
return value of a Collection, throws Exception if value doesn't exist
Throws:
PageException
See Also:
PageContext.getReference(java.lang.Object, java.lang.String)

getReference

public Reference getReference(Object coll,
                              Collection.Key key)
                       throws PageException
Specified by:
getReference in class PageContext
Parameters:
coll - Collection to get value
key - key of the value
Returns:
return value of a Collection, throws Exception if value doesn't exist
Throws:
PageException

get

public Object get(Object coll,
                  String key,
                  Object defaultValue)
Specified by:
get in class PageContext
Parameters:
coll - Collection to get value
key - key of the value
Returns:
return value of a Collection, return null if value not exists
See Also:
PageContext.get(java.lang.Object, java.lang.String, java.lang.Object)

get

public Object get(Object coll,
                  Collection.Key key,
                  Object defaultValue)
Specified by:
get in class PageContext
Parameters:
coll - Collection to get value
key - key of the value
Returns:
return value of a Collection, return null if value not exists
See Also:
PageContext.get(java.lang.Object, railo.runtime.type.Collection.Key, java.lang.Object)

setVariable

public Object setVariable(String var,
                          Object value)
                   throws PageException
Description copied from class: PageContext
sets a value by string syntax ("scopename.key.key" -> "url.name")

Specified by:
setVariable in class PageContext
Parameters:
var - Variable String name to set
value - value to set
Returns:
setted value
Throws:
PageException
See Also:
PageContext.setVariable(java.lang.String, java.lang.Object)

getVariable

public Object getVariable(String var)
                   throws PageException
Specified by:
getVariable in class PageContext
Parameters:
var - variable name to get
Returns:
return a value by string syntax ("scopename.key.key" -> "url.name")
Throws:
PageException
See Also:
PageContext.getVariable(java.lang.String)

param

public void param(String type,
                  String name,
                  Object defaultValue,
                  String regex)
           throws PageException
Specified by:
param in class PageContext
Throws:
PageException

param

public void param(String type,
                  String name,
                  Object defaultValue,
                  double min,
                  double max)
           throws PageException
Specified by:
param in class PageContext
Throws:
PageException

param

public void param(String type,
                  String name,
                  Object defaultValue)
           throws PageException
Specified by:
param in class PageContext
Throws:
PageException

removeVariable

public Object removeVariable(String var)
                      throws PageException
Specified by:
removeVariable in class PageContext
Parameters:
var - variable name to get
Returns:
return a value by string syntax ("scopename.key.key" -> "url.name")
Throws:
PageException
See Also:
PageContext.removeVariable(java.lang.String)

getVariableReference

public VariableReference getVariableReference(String var)
                                       throws PageException
a variable reference, references to variable, to modifed it, with global effect.

Parameters:
var - variable name to get
Returns:
return a variable reference by string syntax ("scopename.key.key" -> "url.name")
Throws:
PageException

getFunction

public Object getFunction(Object coll,
                          String key,
                          Object[] args)
                   throws PageException
Description copied from class: PageContext
call a UDF Function and return "return value" of the function

Specified by:
getFunction in class PageContext
Parameters:
coll - Collection of the UDF Function
key - name of the function
args - arguments to call the function
Returns:
return value of the function
Throws:
PageException
See Also:
PageContext.getFunction(java.lang.Object, java.lang.String, java.lang.Object[])

getFunction

public Object getFunction(Object coll,
                          Collection.Key key,
                          Object[] args)
                   throws PageException
Description copied from class: PageContext
call a UDF Function and return "return value" of the function

Specified by:
getFunction in class PageContext
Parameters:
coll - Collection of the UDF Function
key - name of the function
args - arguments to call the function
Returns:
return value of the function
Throws:
PageException
See Also:
PageContext.getFunction(java.lang.Object, railo.runtime.type.Collection.Key, java.lang.Object[])

getFunctionWithNamedValues

public Object getFunctionWithNamedValues(Object coll,
                                         String key,
                                         Object[] args)
                                  throws PageException
Description copied from class: PageContext
call a UDF Function and return "return value" of the function

Specified by:
getFunctionWithNamedValues in class PageContext
Parameters:
coll - Collection of the UDF Function
key - name of the function
args - arguments to call the function
Returns:
return value of the function
Throws:
PageException
See Also:
PageContext.getFunctionWithNamedValues(java.lang.Object, java.lang.String, java.lang.Object[])

getFunctionWithNamedValues

public Object getFunctionWithNamedValues(Object coll,
                                         Collection.Key key,
                                         Object[] args)
                                  throws PageException
Description copied from class: PageContext
call a UDF Function and return "return value" of the function

Specified by:
getFunctionWithNamedValues in class PageContext
Parameters:
coll - Collection of the UDF Function
key - name of the function
args - arguments to call the function
Returns:
return value of the function
Throws:
PageException
See Also:
PageContext.getFunctionWithNamedValues(java.lang.Object, railo.runtime.type.Collection.Key, java.lang.Object[])

getConfig

public ConfigWeb getConfig()
Specified by:
getConfig in class PageContext
Returns:
Returns the Config Object of the PageContext.
See Also:
PageContext.getConfig()

getIterator

public Iterator getIterator(String key)
                     throws PageException
Description copied from class: PageContext
get variable from string definition and cast ist to a Iterator Object

Specified by:
getIterator in class PageContext
Parameters:
key - Variable Name to get
Returns:
Iterator
Throws:
PageException
See Also:
PageContext.getIterator(java.lang.String)

getQuery

public Query getQuery(String key)
               throws PageException
Description copied from class: PageContext
get variable from string definition and cast ist to a Query Object

Specified by:
getQuery in class PageContext
Parameters:
key - Variable Name to get
Returns:
Query
Throws:
PageException
See Also:
PageContext.getQuery(java.lang.String)

setAttribute

public void setAttribute(String name,
                         Object value)
Specified by:
setAttribute in class javax.servlet.jsp.PageContext
See Also:
PageContext.setAttribute(java.lang.String, java.lang.Object)

setAttribute

public void setAttribute(String name,
                         Object value,
                         int scope)
Specified by:
setAttribute in class javax.servlet.jsp.PageContext
See Also:
PageContext.setAttribute(java.lang.String, java.lang.Object, int)

getAttribute

public Object getAttribute(String name)
Specified by:
getAttribute in class javax.servlet.jsp.PageContext
See Also:
PageContext.getAttribute(java.lang.String)

getAttribute

public Object getAttribute(String name,
                           int scope)
Specified by:
getAttribute in class javax.servlet.jsp.PageContext
See Also:
PageContext.getAttribute(java.lang.String, int)

findAttribute

public Object findAttribute(String name)
Specified by:
findAttribute in class javax.servlet.jsp.PageContext
See Also:
PageContext.findAttribute(java.lang.String)

removeAttribute

public void removeAttribute(String name)
Specified by:
removeAttribute in class javax.servlet.jsp.PageContext
See Also:
PageContext.removeAttribute(java.lang.String)

removeAttribute

public void removeAttribute(String name,
                            int scope)
Specified by:
removeAttribute in class javax.servlet.jsp.PageContext
See Also:
PageContext.removeAttribute(java.lang.String, int)

getAttributesScope

public int getAttributesScope(String name)
Specified by:
getAttributesScope in class javax.servlet.jsp.PageContext
See Also:
PageContext.getAttributesScope(java.lang.String)

getAttributeNamesInScope

public Enumeration getAttributeNamesInScope(int scope)
Specified by:
getAttributeNamesInScope in class javax.servlet.jsp.PageContext
See Also:
PageContext.getAttributeNamesInScope(int)

getOut

public javax.servlet.jsp.JspWriter getOut()
Specified by:
getOut in class javax.servlet.jsp.PageContext
See Also:
PageContext.getOut()

getSession

public javax.servlet.http.HttpSession getSession()
Specified by:
getSession in class javax.servlet.jsp.PageContext
See Also:
PageContext.getSession()

getPage

public Object getPage()
Specified by:
getPage in class javax.servlet.jsp.PageContext
See Also:
PageContext.getPage()

getRequest

public javax.servlet.ServletRequest getRequest()
Specified by:
getRequest in class javax.servlet.jsp.PageContext
See Also:
PageContext.getRequest()

getHttpServletRequest

public javax.servlet.http.HttpServletRequest getHttpServletRequest()
Description copied from class: PageContext
return HttpServletRequest, getRequest only returns ServletRequest

Specified by:
getHttpServletRequest in class PageContext
Returns:
HttpServletRequest
See Also:
PageContext.getHttpServletRequest()

getResponse

public javax.servlet.ServletResponse getResponse()
Specified by:
getResponse in class javax.servlet.jsp.PageContext
See Also:
PageContext.getResponse()

getHttpServletResponse

public javax.servlet.http.HttpServletResponse getHttpServletResponse()
Description copied from class: PageContext
return HttpServletResponse, getResponse only returns ServletResponse

Specified by:
getHttpServletResponse in class PageContext
Returns:
HttpServletResponse
See Also:
PageContext.getHttpServletResponse()

getServletOutputStream

public javax.servlet.ServletOutputStream getServletOutputStream()
                                                         throws IOException
Specified by:
getServletOutputStream in class PageContext
Throws:
IOException

getResponseStream

public OutputStream getResponseStream()
                               throws IOException
Throws:
IOException

getException

public Exception getException()
Specified by:
getException in class javax.servlet.jsp.PageContext
See Also:
PageContext.getException()

getServletConfig

public javax.servlet.ServletConfig getServletConfig()
Specified by:
getServletConfig in class javax.servlet.jsp.PageContext
See Also:
PageContext.getServletConfig()

getServletContext

public javax.servlet.ServletContext getServletContext()
Specified by:
getServletContext in class javax.servlet.jsp.PageContext
See Also:
PageContext.getServletContext()

handlePageException

public void handlePageException(PageException pe)
Description copied from class: PageContext
specialised method for handlePageException with argument Exception or Throwable

Specified by:
handlePageException in class PageContext
Parameters:
pe - Page Exception
See Also:
PageContext.handlePageException(railo.runtime.exp.PageException)

handlePageException

public void handlePageException(Exception e)
Specified by:
handlePageException in class javax.servlet.jsp.PageContext
See Also:
PageContext.handlePageException(java.lang.Exception)

handlePageException

public void handlePageException(Throwable t)
Specified by:
handlePageException in class javax.servlet.jsp.PageContext
See Also:
PageContext.handlePageException(java.lang.Throwable)

setHeader

public void setHeader(String name,
                      String value)
Description copied from class: PageContext
write a value to the header of the response

Specified by:
setHeader in class PageContext
Parameters:
name - name of the value to set
value - value to set
See Also:
PageContext.setHeader(java.lang.String, java.lang.String)

pushBody

public javax.servlet.jsp.tagext.BodyContent pushBody()
Overrides:
pushBody in class javax.servlet.jsp.PageContext
See Also:
PageContext.pushBody()

popBody

public javax.servlet.jsp.JspWriter popBody()
Overrides:
popBody in class javax.servlet.jsp.PageContext
See Also:
PageContext.popBody()

outputStart

public void outputStart()
Description copied from class: PageContext
starts a cfoutput block

Specified by:
outputStart in class PageContext
See Also:
PageContext.outputStart()

outputEnd

public void outputEnd()
Description copied from class: PageContext
ends a cfoutput block

Specified by:
outputEnd in class PageContext
See Also:
PageContext.outputEnd()

setCFOutputOnly

public void setCFOutputOnly(boolean boolEnablecfoutputonly)
Description copied from class: PageContext
sets state of cfoutput only

Specified by:
setCFOutputOnly in class PageContext
See Also:
PageContext.setCFOutputOnly(boolean)

setCFOutputOnly

public void setCFOutputOnly(short enablecfoutputonly)
Description copied from class: PageContext
sets state of cfoutput only

Specified by:
setCFOutputOnly in class PageContext
See Also:
PageContext.setCFOutputOnly(short)

setSilent

public boolean setSilent()
Description copied from class: PageContext
sets the pagecontext silent

Specified by:
setSilent in class PageContext
Returns:
return setting that was before
See Also:
PageContext.setSilent()

unsetSilent

public boolean unsetSilent()
Description copied from class: PageContext
unsets the pagecontext silent

Specified by:
unsetSilent in class PageContext
Returns:
return setting that was before
See Also:
PageContext.unsetSilent()

getDebugger

public Debugger getDebugger()
Description copied from class: PageContext
return debugger of the page Context

Specified by:
getDebugger in class PageContext
Returns:
debugger
See Also:
PageContext.getDebugger()

execute

public void execute(String realPath,
                    boolean throwExcpetion)
             throws PageException
Description copied from class: PageContext
execute a request n the pageConext

Specified by:
execute in class PageContext
Throws:
PageException
See Also:
railo.runtime.PageContext#execute(java.lang.String)

execute

public void execute(String realPath,
                    boolean throwExcpetion,
                    boolean onlyTopLevel)
             throws PageException
Throws:
PageException

include

public void include(String realPath)
             throws javax.servlet.ServletException,
                    IOException
Specified by:
include in class javax.servlet.jsp.PageContext
Throws:
javax.servlet.ServletException
IOException
See Also:
PageContext.include(java.lang.String)

forward

public void forward(String realPath)
             throws javax.servlet.ServletException,
                    IOException
Specified by:
forward in class javax.servlet.jsp.PageContext
Throws:
javax.servlet.ServletException
IOException
See Also:
PageContext.forward(java.lang.String)

include

public void include(PageSource ps)
             throws javax.servlet.ServletException
Description copied from class: PageContext
includes a path from a absolute path

Specified by:
include in class PageContext
Parameters:
ps - absolute path as file object
Throws:
javax.servlet.ServletException
See Also:
PageContext.include(railo.runtime.PageSource)

clear

public void clear()
Description copied from class: PageContext
clear the actuell output buffer

Specified by:
clear in class PageContext
See Also:
PageContext.clear()

getRequestTimeout

public long getRequestTimeout()
Specified by:
getRequestTimeout in class PageContext
Returns:
return the request timeout for this pagecontext in milli seconds
See Also:
PageContext.getRequestTimeout()

setRequestTimeout

public void setRequestTimeout(long requestTimeout)
Specified by:
setRequestTimeout in class PageContext
Parameters:
requestTimeout - The requestTimeout to set.
See Also:
PageContext.setRequestTimeout(long)

getCFID

public String getCFID()
Specified by:
getCFID in class PageContext
Returns:
returns the cfid of the actuell user
See Also:
PageContext.getCFID()

getCFToken

public String getCFToken()
Specified by:
getCFToken in class PageContext
Returns:
returns the actuell cftoken of the user
See Also:
PageContext.getCFToken()

getURLToken

public String getURLToken()
Specified by:
getURLToken in class PageContext
Returns:
returns the urltoken of the actuell user
See Also:
PageContext.getURLToken()

getJSessionId

public String getJSessionId()
Specified by:
getJSessionId in class PageContext
Returns:
return the session id
See Also:
PageContext.getJSessionId()

getId

public int getId()
Specified by:
getId in class PageContext
Returns:
returns the page context id
See Also:
PageContext.getId()

getRootOut

public CFMLWriter getRootOut()
Returns:
returns the root JSP Writer

getLocale

public Locale getLocale()
Specified by:
getLocale in class PageContext
Returns:
Returns the locale.
See Also:
PageContext.getLocale()

setPsq

public void setPsq(boolean psq)
Description copied from class: PageContext
sets if inside a query tag single quote will be preserved (preserve single quote)

Specified by:
setPsq in class PageContext
Parameters:
psq - sets preserve single quote for query
See Also:
PageContext.setPsq(boolean)

getPsq

public boolean getPsq()
Description copied from class: PageContext
returns if single quotes will be preserved inside a query tag (psq=preserve single quote)

Specified by:
getPsq in class PageContext
Returns:
preserve single quote
See Also:
PageContext.getPsq()

setLocale

public void setLocale(Locale locale)
Specified by:
setLocale in class PageContext
See Also:
PageContext.setLocale(java.util.Locale)

setLocale

public void setLocale(String strLocale)
               throws ExpressionException
Specified by:
setLocale in class PageContext
Parameters:
strLocale - The locale to set as String.
Throws:
ExpressionException
See Also:
PageContext.setLocale(java.lang.String)

setErrorPage

public void setErrorPage(ErrorPage ep)
Description copied from class: PageContext
sets the error page

Specified by:
setErrorPage in class PageContext
See Also:
PageContext.setErrorPage(railo.runtime.err.ErrorPage)

use

public javax.servlet.jsp.tagext.Tag use(String tagClassName)
                                 throws PageException
Description copied from class: PageContext
returns a tag from tag handler pool

Specified by:
use in class PageContext
Returns:
matching tag
Throws:
PageException
See Also:
PageContext.use(java.lang.String)

use

public javax.servlet.jsp.tagext.Tag use(Class clazz)
                                 throws PageException
Description copied from class: PageContext
returns a tag from tag handler pool

Specified by:
use in class PageContext
Parameters:
clazz - class to load from ta handler pool
Returns:
tag matching class
Throws:
PageException
See Also:
PageContext.use(java.lang.Class)

reuse

public void reuse(javax.servlet.jsp.tagext.Tag tag)
           throws PageException
Description copied from class: PageContext
puts a tag back to pool

Specified by:
reuse in class PageContext
Parameters:
tag - tags to puts back
Throws:
PageException
See Also:
PageContext.reuse(javax.servlet.jsp.tagext.Tag)

getQueryCache

public QueryCache getQueryCache()
Specified by:
getQueryCache in class PageContext
Returns:
returns the query cache
See Also:
PageContext.getQueryCache()

initBody

public void initBody(javax.servlet.jsp.tagext.BodyTag bodyTag,
                     int state)
              throws javax.servlet.jsp.JspException
Description copied from class: PageContext
init body of a tag

Specified by:
initBody in class PageContext
Throws:
javax.servlet.jsp.JspException
See Also:
PageContext.initBody(javax.servlet.jsp.tagext.BodyTag, int)

releaseBody

public void releaseBody(javax.servlet.jsp.tagext.BodyTag bodyTag,
                        int state)
Description copied from class: PageContext
release body of a tag

Specified by:
releaseBody in class PageContext
See Also:
PageContext.releaseBody(javax.servlet.jsp.tagext.BodyTag, int)

setVariablesScope

public void setVariablesScope(Variables variables)
Description copied from class: PageContext
set a other variable scope

Specified by:
setVariablesScope in class PageContext
See Also:
railo.runtime.PageContext#setVariablesScope(railo.runtime.type.Scope)

getActiveComponent

public Component getActiveComponent()
Specified by:
getActiveComponent in class PageContext
Returns:
Returns the active Component.
See Also:
PageContext.getActiveComponent()

getRemoteUser

public Credential getRemoteUser()
                         throws PageException
Specified by:
getRemoteUser in class PageContext
Returns:
Returns the remoteUser.
Throws:
PageException
See Also:
PageContext.getRemoteUser()

clearRemoteUser

public void clearRemoteUser()
Description copied from class: PageContext
clear the remote user

Specified by:
clearRemoteUser in class PageContext
See Also:
PageContext.clearRemoteUser()

setRemoteUser

public void setRemoteUser(Credential remoteUser)
Specified by:
setRemoteUser in class PageContext
Parameters:
remoteUser - The remoteUser to set.
See Also:
PageContext.setRemoteUser(railo.runtime.security.Credential)

getVariableUtil

public VariableUtil getVariableUtil()
Specified by:
getVariableUtil in class PageContext
Returns:
Returns the variableUtil.
See Also:
PageContext.getVariableUtil()

throwCatch

public void throwCatch()
                throws PageException
Description copied from class: PageContext
return throwed exception

Specified by:
throwCatch in class PageContext
Throws:
PageException
See Also:
PageContext.throwCatch()

setCatch

public PageException setCatch(Throwable t)
Description copied from class: PageContext
sets a excption

Specified by:
setCatch in class PageContext
Returns:
PageExcption
See Also:
PageContext.setCatch(java.lang.Throwable)

setCatch

public void setCatch(PageException pe)

setCatch

public void setCatch(PageException pe,
                     boolean caught,
                     boolean store)

getCatch

public PageException getCatch()
Returns:
return current catch

clearCatch

public void clearCatch()
Description copied from class: PageContext
clear all catches

Specified by:
clearCatch in class PageContext
See Also:
PageContext.clearCatch()

addPageSource

public void addPageSource(PageSource ps,
                          boolean alsoInclude)
Description copied from class: PageContext
adds a PageSource

Specified by:
addPageSource in class PageContext
See Also:
PageContext.addPageSource(railo.runtime.PageSource, boolean)

addPageSource

public void addPageSource(PageSource ps,
                          PageSource psInc)

removeLastPageSource

public void removeLastPageSource(boolean alsoInclude)
Description copied from class: PageContext
remove the last PageSource

Specified by:
removeLastPageSource in class PageContext
See Also:
PageContext.removeLastPageSource(boolean)

getFTPPool

public FTPPool getFTPPool()
Specified by:
getFTPPool in class PageContext
Returns:
returns the ftp pool
See Also:
PageContext.getFTPPool()

getApplicationContext

public ApplicationContext getApplicationContext()
Specified by:
getApplicationContext in class PageContext
Returns:
Returns the applicationContext.
See Also:
PageContext.getApplicationContext()

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
Specified by:
setApplicationContext in class PageContext
Parameters:
applicationContext - The applicationContext to set.
See Also:
PageContext.setApplicationContext(railo.runtime.util.ApplicationContext)

initApplicationContext

public boolean initApplicationContext()
                               throws PageException
Returns:
return value of method "onApplicationStart" or true
Throws:
PageException

getScopeFactory

public ScopeFactory getScopeFactory()
Returns:
the scope factory

getCurrentTag

public javax.servlet.jsp.tagext.Tag getCurrentTag()
Description copied from class: PageContext
returns the tag that is in use

Specified by:
getCurrentTag in class PageContext
Returns:
Returns the currentTag.
See Also:
PageContext.getCurrentTag()

getStartTime

public long getStartTime()
Specified by:
getStartTime in class PageContext
Returns:
Returns the startTime.
See Also:
PageContext.getStartTime()

getThread

public Thread getThread()
Specified by:
getThread in class PageContext
Returns:
Returns the thread.
See Also:
PageContext.getThread()

setThread

public void setThread(Thread thread)

getExecutionTime

public int getExecutionTime()
Specified by:
getExecutionTime in class PageContext
Returns:
Returns the executionTime.
See Also:
PageContext.getExecutionTime()

setExecutionTime

public void setExecutionTime(int executionTime)
Specified by:
setExecutionTime in class PageContext
Parameters:
executionTime - The executionTime to set.
See Also:
PageContext.setExecutionTime(int)

compile

public void compile(PageSource pageSource)
             throws PageException
Description copied from class: PageContext
compile a CFML Template

Specified by:
compile in class PageContext
Throws:
PageException
See Also:
PageContext.compile(railo.runtime.PageSource)

compile

public void compile(String realPath)
             throws PageException
Description copied from class: PageContext
compile a CFML Template

Specified by:
compile in class PageContext
Throws:
PageException
See Also:
PageContext.compile(java.lang.String)

getServlet

public javax.servlet.http.HttpServlet getServlet()

loadComponent

public Component loadComponent(String compPath)
                        throws PageException
Specified by:
loadComponent in class PageContext
Throws:
PageException
See Also:
PageContext.loadComponent(java.lang.String)

getBase

public PageSource getBase()
Returns:
the base

setBase

public void setBase(PageSource base)
Parameters:
base - the base to set

isCFCRequest

public boolean isCFCRequest()
Specified by:
isCFCRequest in class PageContext
Returns:
the isCFCRequest

getDataSourceManager

public DataSourceManager getDataSourceManager()
Specified by:
getDataSourceManager in class PageContext
See Also:
railo.runtime.config.Config#getDataSourceManager()

evaluate

public Object evaluate(String expression)
                throws PageException
Description copied from class: PageContext
evaluate given expression

Specified by:
evaluate in class PageContext
Parameters:
expression - expression to evaluate
Returns:
return value generated by expression or null
Throws:
PageException

getActiveUDF

public UDF getActiveUDF()
Specified by:
getActiveUDF in class PageContext
Returns:
the activeUDF

setActiveUDF

public void setActiveUDF(UDF activeUDF)
Parameters:
activeUDF - the activeUDF to set

getCFMLFactory

public CFMLFactory getCFMLFactory()
Specified by:
getCFMLFactory in class PageContext
See Also:
PageContext.getCFMLFactory()

getParentPageContext

public PageContext getParentPageContext()
Specified by:
getParentPageContext in class PageContext
See Also:
PageContext.getParentPageContext()

getThreadScopeNames

public String[] getThreadScopeNames()
Specified by:
getThreadScopeNames in class PageContext
Returns:
return a Array with names off all threads running.
See Also:
PageContext.getThreadScopeNames()

getThreadScope

public Threads getThreadScope(String name)
Specified by:
getThreadScope in class PageContext
See Also:
PageContext.getThreadScope(java.lang.String)

getThreadScope

public Object getThreadScope(Collection.Key name,
                             Object defaultValue)

getThreadScope

public Object getThreadScope(String name,
                             Object defaultValue)

setThreadScope

public void setThreadScope(String name,
                           Threads ct)
Description copied from class: PageContext
set a thread to the context

Specified by:
setThreadScope in class PageContext
See Also:
PageContext.setThreadScope(java.lang.String, railo.runtime.type.scope.Threads)

setThreadScope

public void setThreadScope(Collection.Key name,
                           Threads ct)

hasFamily

public boolean hasFamily()
Specified by:
hasFamily in class PageContext
See Also:
PageContext.hasFamily()

_getConnection

public DatasourceConnection _getConnection(String datasource,
                                           String user,
                                           String pass)
                                    throws PageException
Throws:
PageException

_getConnection

public DatasourceConnection _getConnection(DataSource ds,
                                           String user,
                                           String pass)
                                    throws PageException
Throws:
PageException

getTimeZone

public TimeZone getTimeZone()
Specified by:
getTimeZone in class PageContext
See Also:
PageContext.getTimeZone()

setTimeZone

public void setTimeZone(TimeZone timeZone)
Specified by:
setTimeZone in class PageContext
See Also:
PageContext.setTimeZone(java.util.TimeZone)

getRequestId

public int getRequestId()
Returns:
the requestId

isTrusted

public boolean isTrusted(Page page)

setPageUsed

public void setPageUsed(Page page)

exeLogEndline

public void exeLogEndline(int line)
Deprecated. no longer supported and ignored

Parameters:
line -

exeLogStart

public void exeLogStart(int line,
                        String id)

exeLogEnd

public void exeLogEnd(int line,
                      String id)

getORMSession

public ORMSession getORMSession(boolean create)
                         throws PageException
Parameters:
create - if set to true, railo creates a session when not exist
Returns:
Throws:
PageException

resetSession

public void resetSession()

isGatewayContext

public boolean isGatewayContext()
Returns:
the gatewayContext

setGatewayContext

public void setGatewayContext(boolean gatewayContext)
Parameters:
gatewayContext - the gatewayContext to set

setServerPassword

public void setServerPassword(String serverPassword)

getServerPassword

public String getServerPassword()

getSessionType

public short getSessionType()

SymTab_findBuiltinScope

public Scope SymTab_findBuiltinScope(String name)
                              throws PageException
Throws:
PageException


Copyright © 2012 Railo