|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.PageContext
railo.runtime.PageContext
railo.runtime.PageContextImpl
public final class PageContextImpl
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 |
---|
public PageContextImpl(ScopeContext scopeContext, ConfigWebImpl config, QueryCache queryCache, int id, javax.servlet.http.HttpServlet servlet)
factoryImpl
- scopeContext
- config
- Configuration of the Cold Fusion Containercompiler
- CFML CompilerqueryCache
- Query Cache Objectid
- identity of the pageContextMethod Detail |
---|
public long sizeOf()
Sizeable
sizeOf
in interface Sizeable
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)
servlet
- req
- rsp
- errorPageURL
- needsSession
- bufferSize
- autoFlush
- public void release()
release
in class javax.servlet.jsp.PageContext
PageContext.release()
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
initialize
in class javax.servlet.jsp.PageContext
IOException
IllegalStateException
IllegalArgumentException
PageContext.initialize(javax.servlet.Servlet, javax.servlet.ServletRequest, javax.servlet.ServletResponse, java.lang.String, boolean, int, boolean)
public void write(String str) throws IOException
PageContext
write
in class PageContext
IOException
PageContext.write(java.lang.String)
public void forceWrite(String str) throws IOException
PageContext
forceWrite
in class PageContext
IOException
PageContext.forceWrite(java.lang.String)
public void writePSQ(Object o) throws IOException, PageException
PageContext
writePSQ
in class PageContext
IOException
PageException
PageContext.writePSQ(java.lang.Object)
public void flush()
PageContext
flush
in class PageContext
PageContext.flush()
public void close()
PageContext
close
in class PageContext
PageContext.close()
public PageSource getRelativePageSource(String realPath)
PageContext
getRelativePageSource
in class PageContext
PageContext.getRelativePageSource(java.lang.String)
public PageSource getRelativePageSourceExisting(String realPath)
public PageSource[] getRelativePageSources(String realPath)
public PageSource getPageSource(String realPath)
PageContext
getPageSource
in class PageContext
realPath
- path to get PageSource forpublic PageSource[] getPageSources(String realPath)
public PageSource getPageSourceExisting(String realPath)
public boolean useSpecialMappings(boolean useTagMappings)
public boolean useSpecialMappings()
public Resource getPhysical(String realPath, boolean alsoDefaultMapping)
PageContext
getPhysical
in class PageContext
realPath
- path to get PageSource forpublic PageSource toPageSource(Resource res, PageSource defaultValue)
toPageSource
in class PageContext
public void doInclude(String realPath) throws PageException
PageContext
doInclude
in class PageContext
realPath
- absolute path as file object
PageException
PageContext.doInclude(java.lang.String)
public void doInclude(PageSource source) throws PageException
PageContext
doInclude
in class PageContext
source
- absolute path as file object
PageException
public void doInclude(PageSource[] sources) throws PageException
PageException
PageContext.doInclude(railo.runtime.PageSource)
public Array getTemplatePath() throws ExpressionException
PageContext
getTemplatePath
in class PageContext
ExpressionException
PageContext.getTemplatePath()
public List<PageSource> getPageSourceList()
public void copyStateTo(PageContextImpl other)
public int getCurrentLevel()
PageContext
getCurrentLevel
in class PageContext
public PageSource getCurrentPageSource()
getCurrentPageSource
in class PageContext
public PageSource getCurrentTemplatePageSource()
getCurrentTemplatePageSource
in class PageContext
public PageSource getBasePageSource()
getBasePageSource
in class PageContext
public Resource getRootTemplateDirectory()
getRootTemplateDirectory
in class PageContext
PageContext.getRootTemplateDirectory()
public Scope scope(int type) throws PageException
VariableInterpreter.scope(...)
PageContext
scope
in class PageContext
type
- type of scope (Scope.xx)
PageException
- FUTURE set to deprecatedPageContext.scope(int)
public Scope scope(String strScope, Scope defaultValue) throws PageException
PageException
public Undefined undefinedScope()
undefinedScope
in class PageContext
PageContext.undefinedScope()
public Undefined us()
us
in class PageContext
public Variables variablesScope()
variablesScope
in class PageContext
PageContext.variablesScope()
public URL urlScope()
urlScope
in class PageContext
PageContext.urlScope()
public Form formScope()
formScope
in class PageContext
PageContext.formScope()
public URLForm urlFormScope()
urlFormScope
in class PageContext
PageContext.urlFormScope()
public Request requestScope()
requestScope
in class PageContext
PageContext.requestScope()
public CGI cgiScope()
cgiScope
in class PageContext
PageContext.cgiScope()
public Application applicationScope() throws PageException
applicationScope
in class PageContext
PageException
PageContext.applicationScope()
public Argument argumentsScope()
argumentsScope
in class PageContext
PageContext.argumentsScope()
public Argument argumentsScope(boolean bind)
PageContext
argumentsScope
in class PageContext
bind
- indicate that the Argument Scope is binded for using outsite of the udf
PageContext.argumentsScope(boolean)
public Scope localScope()
localScope
in class PageContext
PageContext.localScope()
public Scope localScope(boolean bind)
public Object localGet() throws PageException
PageException
public Object localGet(boolean bind) throws PageException
PageException
public Object localTouch() throws PageException
PageException
public Object localTouch(boolean bind) throws PageException
PageException
public void setFunctionScopes(Scope local, Argument argument)
local
- sets the current local scopeargument
- sets the current argument scopepublic Session sessionScope() throws PageException
sessionScope
in class PageContext
PageException
PageContext.sessionScope()
public Session sessionScope(boolean checkExpires) throws PageException
PageException
public Server serverScope()
serverScope
in class PageContext
PageContext.serverScope()
public Cluster clusterScope() throws PageException
clusterScope
in class PageContext
PageException
PageContext.clusterScope()
public Cluster clusterScope(boolean create) throws PageException
PageContext
clusterScope
in class PageContext
create
- return null when false and scope does not exists
PageException
public Cookie cookieScope()
cookieScope
in class PageContext
PageContext.cookieScope()
public Client clientScope() throws PageException
clientScope
in class PageContext
PageException
PageContext.clientScope()
public Client clientScopeEL()
public Object set(Object coll, String key, Object value) throws PageException
PageContext
set
in class PageContext
coll
- Collection Object (Collection, HashMap aso.)key
- key of the new valuevalue
- new Value
PageException
PageContext.set(java.lang.Object, java.lang.String, java.lang.Object)
public Object set(Object coll, Collection.Key key, Object value) throws PageException
PageContext
set
in class PageContext
coll
- Collection Object (Collection, HashMap aso.)key
- key of the new valuevalue
- new Value
PageException
public Object touch(Object coll, String key) throws PageException
PageContext
touch
in class PageContext
coll
- Collection Objectkey
- key to touch
PageException
PageContext.touch(java.lang.Object, java.lang.String)
public Object touch(Object coll, Collection.Key key) throws PageException
PageContext
touch
in class PageContext
coll
- Collection Objectkey
- key to touch
PageException
PageContext.touch(java.lang.Object, railo.runtime.type.Collection.Key)
public Object getCollection(Object coll, String key) throws PageException
PageContext
getCollection
in class PageContext
coll
- Collection Objectkey
- key to touch
PageException
PageContext.getCollection(java.lang.Object, java.lang.String)
public Object getCollection(Object coll, Collection.Key key) throws PageException
PageContext
getCollection
in class PageContext
coll
- Collection Objectkey
- key to touch
PageException
PageContext.getCollection(java.lang.Object, railo.runtime.type.Collection.Key)
public Object getCollection(Object coll, String key, Object defaultValue)
PageContext
getCollection
in class PageContext
coll
- Collection Objectkey
- key to touch
PageContext.getCollection(java.lang.Object, java.lang.String, java.lang.Object)
public Object getCollection(Object coll, Collection.Key key, Object defaultValue)
PageContext
getCollection
in class PageContext
coll
- Collection Objectkey
- key to touch
PageContext.getCollection(java.lang.Object, railo.runtime.type.Collection.Key, java.lang.Object)
public Object get(Object coll, String key) throws PageException
get
in class PageContext
coll
- Collection to get valuekey
- key of the value
PageException
PageContext.get(java.lang.Object, java.lang.String)
public Object get(Object coll, Collection.Key key) throws PageException
get
in class PageContext
coll
- Collection to get valuekey
- key of the value
PageException
PageContext.get(java.lang.Object, railo.runtime.type.Collection.Key)
public Reference getReference(Object coll, String key) throws PageException
getReference
in class PageContext
coll
- Collection to get valuekey
- key of the value
PageException
PageContext.getReference(java.lang.Object, java.lang.String)
public Reference getReference(Object coll, Collection.Key key) throws PageException
getReference
in class PageContext
coll
- Collection to get valuekey
- key of the value
PageException
public Object get(Object coll, String key, Object defaultValue)
get
in class PageContext
coll
- Collection to get valuekey
- key of the value
PageContext.get(java.lang.Object, java.lang.String, java.lang.Object)
public Object get(Object coll, Collection.Key key, Object defaultValue)
get
in class PageContext
coll
- Collection to get valuekey
- key of the value
PageContext.get(java.lang.Object, railo.runtime.type.Collection.Key, java.lang.Object)
public Object setVariable(String var, Object value) throws PageException
PageContext
setVariable
in class PageContext
var
- Variable String name to setvalue
- value to set
PageException
PageContext.setVariable(java.lang.String, java.lang.Object)
public Object getVariable(String var) throws PageException
getVariable
in class PageContext
var
- variable name to get
PageException
PageContext.getVariable(java.lang.String)
public void param(String type, String name, Object defaultValue, String regex) throws PageException
param
in class PageContext
PageException
public void param(String type, String name, Object defaultValue, double min, double max) throws PageException
param
in class PageContext
PageException
public void param(String type, String name, Object defaultValue) throws PageException
param
in class PageContext
PageException
public Object removeVariable(String var) throws PageException
removeVariable
in class PageContext
var
- variable name to get
PageException
PageContext.removeVariable(java.lang.String)
public VariableReference getVariableReference(String var) throws PageException
var
- variable name to get
PageException
public Object getFunction(Object coll, String key, Object[] args) throws PageException
PageContext
getFunction
in class PageContext
coll
- Collection of the UDF Functionkey
- name of the functionargs
- arguments to call the function
PageException
PageContext.getFunction(java.lang.Object, java.lang.String, java.lang.Object[])
public Object getFunction(Object coll, Collection.Key key, Object[] args) throws PageException
PageContext
getFunction
in class PageContext
coll
- Collection of the UDF Functionkey
- name of the functionargs
- arguments to call the function
PageException
PageContext.getFunction(java.lang.Object, railo.runtime.type.Collection.Key, java.lang.Object[])
public Object getFunctionWithNamedValues(Object coll, String key, Object[] args) throws PageException
PageContext
getFunctionWithNamedValues
in class PageContext
coll
- Collection of the UDF Functionkey
- name of the functionargs
- arguments to call the function
PageException
PageContext.getFunctionWithNamedValues(java.lang.Object, java.lang.String, java.lang.Object[])
public Object getFunctionWithNamedValues(Object coll, Collection.Key key, Object[] args) throws PageException
PageContext
getFunctionWithNamedValues
in class PageContext
coll
- Collection of the UDF Functionkey
- name of the functionargs
- arguments to call the function
PageException
PageContext.getFunctionWithNamedValues(java.lang.Object, railo.runtime.type.Collection.Key, java.lang.Object[])
public ConfigWeb getConfig()
getConfig
in class PageContext
PageContext.getConfig()
public Iterator getIterator(String key) throws PageException
PageContext
getIterator
in class PageContext
key
- Variable Name to get
PageException
PageContext.getIterator(java.lang.String)
public Query getQuery(String key) throws PageException
PageContext
getQuery
in class PageContext
key
- Variable Name to get
PageException
PageContext.getQuery(java.lang.String)
public void setAttribute(String name, Object value)
setAttribute
in class javax.servlet.jsp.PageContext
PageContext.setAttribute(java.lang.String, java.lang.Object)
public void setAttribute(String name, Object value, int scope)
setAttribute
in class javax.servlet.jsp.PageContext
PageContext.setAttribute(java.lang.String, java.lang.Object, int)
public Object getAttribute(String name)
getAttribute
in class javax.servlet.jsp.PageContext
PageContext.getAttribute(java.lang.String)
public Object getAttribute(String name, int scope)
getAttribute
in class javax.servlet.jsp.PageContext
PageContext.getAttribute(java.lang.String, int)
public Object findAttribute(String name)
findAttribute
in class javax.servlet.jsp.PageContext
PageContext.findAttribute(java.lang.String)
public void removeAttribute(String name)
removeAttribute
in class javax.servlet.jsp.PageContext
PageContext.removeAttribute(java.lang.String)
public void removeAttribute(String name, int scope)
removeAttribute
in class javax.servlet.jsp.PageContext
PageContext.removeAttribute(java.lang.String, int)
public int getAttributesScope(String name)
getAttributesScope
in class javax.servlet.jsp.PageContext
PageContext.getAttributesScope(java.lang.String)
public Enumeration getAttributeNamesInScope(int scope)
getAttributeNamesInScope
in class javax.servlet.jsp.PageContext
PageContext.getAttributeNamesInScope(int)
public javax.servlet.jsp.JspWriter getOut()
getOut
in class javax.servlet.jsp.PageContext
PageContext.getOut()
public javax.servlet.http.HttpSession getSession()
getSession
in class javax.servlet.jsp.PageContext
PageContext.getSession()
public Object getPage()
getPage
in class javax.servlet.jsp.PageContext
PageContext.getPage()
public javax.servlet.ServletRequest getRequest()
getRequest
in class javax.servlet.jsp.PageContext
PageContext.getRequest()
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
PageContext
getHttpServletRequest
in class PageContext
PageContext.getHttpServletRequest()
public javax.servlet.ServletResponse getResponse()
getResponse
in class javax.servlet.jsp.PageContext
PageContext.getResponse()
public javax.servlet.http.HttpServletResponse getHttpServletResponse()
PageContext
getHttpServletResponse
in class PageContext
PageContext.getHttpServletResponse()
public javax.servlet.ServletOutputStream getServletOutputStream() throws IOException
getServletOutputStream
in class PageContext
IOException
public OutputStream getResponseStream() throws IOException
IOException
public Exception getException()
getException
in class javax.servlet.jsp.PageContext
PageContext.getException()
public javax.servlet.ServletConfig getServletConfig()
getServletConfig
in class javax.servlet.jsp.PageContext
PageContext.getServletConfig()
public javax.servlet.ServletContext getServletContext()
getServletContext
in class javax.servlet.jsp.PageContext
PageContext.getServletContext()
public void handlePageException(PageException pe)
PageContext
handlePageException
in class PageContext
pe
- Page ExceptionPageContext.handlePageException(railo.runtime.exp.PageException)
public void handlePageException(Exception e)
handlePageException
in class javax.servlet.jsp.PageContext
PageContext.handlePageException(java.lang.Exception)
public void handlePageException(Throwable t)
handlePageException
in class javax.servlet.jsp.PageContext
PageContext.handlePageException(java.lang.Throwable)
public void setHeader(String name, String value)
PageContext
setHeader
in class PageContext
name
- name of the value to setvalue
- value to setPageContext.setHeader(java.lang.String, java.lang.String)
public javax.servlet.jsp.tagext.BodyContent pushBody()
pushBody
in class javax.servlet.jsp.PageContext
PageContext.pushBody()
public javax.servlet.jsp.JspWriter popBody()
popBody
in class javax.servlet.jsp.PageContext
PageContext.popBody()
public void outputStart()
PageContext
outputStart
in class PageContext
PageContext.outputStart()
public void outputEnd()
PageContext
outputEnd
in class PageContext
PageContext.outputEnd()
public void setCFOutputOnly(boolean boolEnablecfoutputonly)
PageContext
setCFOutputOnly
in class PageContext
PageContext.setCFOutputOnly(boolean)
public void setCFOutputOnly(short enablecfoutputonly)
PageContext
setCFOutputOnly
in class PageContext
PageContext.setCFOutputOnly(short)
public boolean setSilent()
PageContext
setSilent
in class PageContext
PageContext.setSilent()
public boolean unsetSilent()
PageContext
unsetSilent
in class PageContext
PageContext.unsetSilent()
public Debugger getDebugger()
PageContext
getDebugger
in class PageContext
PageContext.getDebugger()
public void execute(String realPath, boolean throwExcpetion) throws PageException
PageContext
execute
in class PageContext
PageException
railo.runtime.PageContext#execute(java.lang.String)
public void execute(String realPath, boolean throwExcpetion, boolean onlyTopLevel) throws PageException
PageException
public void include(String realPath) throws javax.servlet.ServletException, IOException
include
in class javax.servlet.jsp.PageContext
javax.servlet.ServletException
IOException
PageContext.include(java.lang.String)
public void forward(String realPath) throws javax.servlet.ServletException, IOException
forward
in class javax.servlet.jsp.PageContext
javax.servlet.ServletException
IOException
PageContext.forward(java.lang.String)
public void include(PageSource ps) throws javax.servlet.ServletException
PageContext
include
in class PageContext
ps
- absolute path as file object
javax.servlet.ServletException
PageContext.include(railo.runtime.PageSource)
public void clear()
PageContext
clear
in class PageContext
PageContext.clear()
public long getRequestTimeout()
getRequestTimeout
in class PageContext
PageContext.getRequestTimeout()
public void setRequestTimeout(long requestTimeout)
setRequestTimeout
in class PageContext
requestTimeout
- The requestTimeout to set.PageContext.setRequestTimeout(long)
public String getCFID()
getCFID
in class PageContext
PageContext.getCFID()
public String getCFToken()
getCFToken
in class PageContext
PageContext.getCFToken()
public String getURLToken()
getURLToken
in class PageContext
PageContext.getURLToken()
public String getJSessionId()
getJSessionId
in class PageContext
PageContext.getJSessionId()
public int getId()
getId
in class PageContext
PageContext.getId()
public CFMLWriter getRootOut()
public Locale getLocale()
getLocale
in class PageContext
PageContext.getLocale()
public void setPsq(boolean psq)
PageContext
setPsq
in class PageContext
psq
- sets preserve single quote for queryPageContext.setPsq(boolean)
public boolean getPsq()
PageContext
getPsq
in class PageContext
PageContext.getPsq()
public void setLocale(Locale locale)
setLocale
in class PageContext
PageContext.setLocale(java.util.Locale)
public void setLocale(String strLocale) throws ExpressionException
setLocale
in class PageContext
strLocale
- The locale to set as String.
ExpressionException
PageContext.setLocale(java.lang.String)
public void setErrorPage(ErrorPage ep)
PageContext
setErrorPage
in class PageContext
PageContext.setErrorPage(railo.runtime.err.ErrorPage)
public javax.servlet.jsp.tagext.Tag use(String tagClassName) throws PageException
PageContext
use
in class PageContext
PageException
PageContext.use(java.lang.String)
public javax.servlet.jsp.tagext.Tag use(Class clazz) throws PageException
PageContext
use
in class PageContext
clazz
- class to load from ta handler pool
PageException
PageContext.use(java.lang.Class)
public void reuse(javax.servlet.jsp.tagext.Tag tag) throws PageException
PageContext
reuse
in class PageContext
tag
- tags to puts back
PageException
PageContext.reuse(javax.servlet.jsp.tagext.Tag)
public QueryCache getQueryCache()
getQueryCache
in class PageContext
PageContext.getQueryCache()
public void initBody(javax.servlet.jsp.tagext.BodyTag bodyTag, int state) throws javax.servlet.jsp.JspException
PageContext
initBody
in class PageContext
javax.servlet.jsp.JspException
PageContext.initBody(javax.servlet.jsp.tagext.BodyTag, int)
public void releaseBody(javax.servlet.jsp.tagext.BodyTag bodyTag, int state)
PageContext
releaseBody
in class PageContext
PageContext.releaseBody(javax.servlet.jsp.tagext.BodyTag, int)
public void setVariablesScope(Variables variables)
PageContext
setVariablesScope
in class PageContext
railo.runtime.PageContext#setVariablesScope(railo.runtime.type.Scope)
public Component getActiveComponent()
getActiveComponent
in class PageContext
PageContext.getActiveComponent()
public Credential getRemoteUser() throws PageException
getRemoteUser
in class PageContext
PageException
PageContext.getRemoteUser()
public void clearRemoteUser()
PageContext
clearRemoteUser
in class PageContext
PageContext.clearRemoteUser()
public void setRemoteUser(Credential remoteUser)
setRemoteUser
in class PageContext
remoteUser
- The remoteUser to set.PageContext.setRemoteUser(railo.runtime.security.Credential)
public VariableUtil getVariableUtil()
getVariableUtil
in class PageContext
PageContext.getVariableUtil()
public void throwCatch() throws PageException
PageContext
throwCatch
in class PageContext
PageException
PageContext.throwCatch()
public PageException setCatch(Throwable t)
PageContext
setCatch
in class PageContext
PageContext.setCatch(java.lang.Throwable)
public void setCatch(PageException pe)
public void setCatch(PageException pe, boolean caught, boolean store)
public PageException getCatch()
public void clearCatch()
PageContext
clearCatch
in class PageContext
PageContext.clearCatch()
public void addPageSource(PageSource ps, boolean alsoInclude)
PageContext
addPageSource
in class PageContext
PageContext.addPageSource(railo.runtime.PageSource, boolean)
public void addPageSource(PageSource ps, PageSource psInc)
public void removeLastPageSource(boolean alsoInclude)
PageContext
removeLastPageSource
in class PageContext
PageContext.removeLastPageSource(boolean)
public FTPPool getFTPPool()
getFTPPool
in class PageContext
PageContext.getFTPPool()
public ApplicationContext getApplicationContext()
getApplicationContext
in class PageContext
PageContext.getApplicationContext()
public void setApplicationContext(ApplicationContext applicationContext)
setApplicationContext
in class PageContext
applicationContext
- The applicationContext to set.PageContext.setApplicationContext(railo.runtime.util.ApplicationContext)
public boolean initApplicationContext() throws PageException
PageException
public ScopeFactory getScopeFactory()
public javax.servlet.jsp.tagext.Tag getCurrentTag()
PageContext
getCurrentTag
in class PageContext
PageContext.getCurrentTag()
public long getStartTime()
getStartTime
in class PageContext
PageContext.getStartTime()
public Thread getThread()
getThread
in class PageContext
PageContext.getThread()
public void setThread(Thread thread)
public int getExecutionTime()
getExecutionTime
in class PageContext
PageContext.getExecutionTime()
public void setExecutionTime(int executionTime)
setExecutionTime
in class PageContext
executionTime
- The executionTime to set.PageContext.setExecutionTime(int)
public void compile(PageSource pageSource) throws PageException
PageContext
compile
in class PageContext
PageException
PageContext.compile(railo.runtime.PageSource)
public void compile(String realPath) throws PageException
PageContext
compile
in class PageContext
PageException
PageContext.compile(java.lang.String)
public javax.servlet.http.HttpServlet getServlet()
public Component loadComponent(String compPath) throws PageException
loadComponent
in class PageContext
PageException
PageContext.loadComponent(java.lang.String)
public PageSource getBase()
public void setBase(PageSource base)
base
- the base to setpublic boolean isCFCRequest()
isCFCRequest
in class PageContext
public DataSourceManager getDataSourceManager()
getDataSourceManager
in class PageContext
railo.runtime.config.Config#getDataSourceManager()
public Object evaluate(String expression) throws PageException
PageContext
evaluate
in class PageContext
expression
- expression to evaluate
PageException
public UDF getActiveUDF()
getActiveUDF
in class PageContext
public void setActiveUDF(UDF activeUDF)
activeUDF
- the activeUDF to setpublic CFMLFactory getCFMLFactory()
getCFMLFactory
in class PageContext
PageContext.getCFMLFactory()
public PageContext getParentPageContext()
getParentPageContext
in class PageContext
PageContext.getParentPageContext()
public String[] getThreadScopeNames()
getThreadScopeNames
in class PageContext
PageContext.getThreadScopeNames()
public Threads getThreadScope(String name)
getThreadScope
in class PageContext
PageContext.getThreadScope(java.lang.String)
public Object getThreadScope(Collection.Key name, Object defaultValue)
public Object getThreadScope(String name, Object defaultValue)
public void setThreadScope(String name, Threads ct)
PageContext
setThreadScope
in class PageContext
PageContext.setThreadScope(java.lang.String, railo.runtime.type.scope.Threads)
public void setThreadScope(Collection.Key name, Threads ct)
public boolean hasFamily()
hasFamily
in class PageContext
PageContext.hasFamily()
public DatasourceConnection _getConnection(String datasource, String user, String pass) throws PageException
PageException
public DatasourceConnection _getConnection(DataSource ds, String user, String pass) throws PageException
PageException
public TimeZone getTimeZone()
getTimeZone
in class PageContext
PageContext.getTimeZone()
public void setTimeZone(TimeZone timeZone)
setTimeZone
in class PageContext
PageContext.setTimeZone(java.util.TimeZone)
public int getRequestId()
public boolean isTrusted(Page page)
public void setPageUsed(Page page)
public void exeLogEndline(int line)
line
- public void exeLogStart(int line, String id)
public void exeLogEnd(int line, String id)
public ORMSession getORMSession(boolean create) throws PageException
create
- if set to true, railo creates a session when not exist
PageException
public void resetSession()
public boolean isGatewayContext()
public void setGatewayContext(boolean gatewayContext)
gatewayContext
- the gatewayContext to setpublic void setServerPassword(String serverPassword)
public String getServerPassword()
public short getSessionType()
public Scope SymTab_findBuiltinScope(String name) throws PageException
PageException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |