railo.runtime.util
Interface Creation

All Known Implementing Classes:
CreationImpl

public interface Creation

Creation of different Objects


Method Summary
 Array createArray()
          creates and returns a array instance
 Array createArray(int dimension)
          creates and returns a array instance
 Array createArray(String list, String delimiter, boolean removeEmptyItem, boolean trim)
          creates and returns a array based on a string list
 ClusterEntry createClusterEntry(Collection.Key key, Serializable value, int offset)
           
 Component createComponentFromName(PageContext pc, String fullName)
          creates a component object from (Full)Name, for example railo.extensions.net.HTTPUtil
 Component createComponentFromPath(PageContext pc, String path)
          creates a component object from a absolute local path, for example /Users/susi/Projects/Sorglos/wwwrooot/railo/extensions/net/HTTPUtil.cfc
 Date createDate(int year, int month, int day)
          creates and returns a Date instance
 Date createDate(long time)
          creates and returns a Date instance
 DateTime createDateTime(int year, int month, int day, int hour, int minute, int seond, int millis)
          creates and returns a DateTime instance
 DateTime createDateTime(long time)
          creates and returns a DateTime instance
 Document createDocument()
          creates and returns a xml Document instance
 Document createDocument(InputStream is, boolean isHtml)
          creates and returns a xml Document instance
 Document createDocument(Resource file, boolean isHtml)
          creates and returns a xml Document instance
 Document createDocument(String xml, boolean isHtml)
          creates and returns a xml Document instance
 javax.servlet.http.HttpServletRequest createHttpServletRequest(File contextRoot, String serverName, String scriptName, String queryString, javax.servlet.http.Cookie[] cookies, Map<String,Object> headers, Map<String,String> parameters, Map<String,Object> attributes, javax.servlet.http.HttpSession session)
           
 javax.servlet.http.HttpServletResponse createHttpServletResponse(OutputStream io)
           
 Collection.Key createKey(String key)
          creates a collecton Key out of a String
 PageContext createPageContext(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp, OutputStream out)
           
 Query createQuery(Collection.Key[] columns, int rows, String name)
          creates a query object with given data
 Query createQuery(DatasourceConnection dc, SQL sql, int maxrow, int fetchsize, int timeout, String name)
           
 Query createQuery(DatasourceConnection dc, SQL sql, int maxrow, String name)
          Deprecated. replaced with createQuery(DatasourceConnection, SQL, int, int, int, String)
 Query createQuery(String[] columns, int rows, String name)
          Deprecated. usse instead createQuery(Collection.Key[] columns, int rows, String name)
 SpoolerTask createRemoteClientTask(ExecutionPlan[] plans, RemoteClient remoteClient, Struct attrColl, String callerId, String type)
           
 Resource createResource(String path, boolean existing)
           
 Struct createStruct()
          creates and returns a struct instance
 Struct createStruct(int type)
           
 Time createTime(int hour, int minute, int second, int millis)
          creates and returns a Time instance
 Time createTime(long time)
          creates and returns a Time instance
 TimeSpan createTimeSpan(int day, int hour, int minute, int second)
          creates and returns a TimeSpan instance
 

Method Detail

createArray

Array createArray()
creates and returns a array instance

Returns:
array

createArray

Array createArray(String list,
                  String delimiter,
                  boolean removeEmptyItem,
                  boolean trim)
creates and returns a array based on a string list

Returns:
array

createDateTime

DateTime createDateTime(long time)
creates and returns a DateTime instance

Parameters:
time -
Returns:
DateTime

createDateTime

DateTime createDateTime(int year,
                        int month,
                        int day,
                        int hour,
                        int minute,
                        int seond,
                        int millis)
                        throws PageException
creates and returns a DateTime instance

Parameters:
year -
month -
day -
hour -
minute -
seond -
millis -
Returns:
DateTime
Throws:
PageException

createDate

Date createDate(long time)
creates and returns a Date instance

Parameters:
time -
Returns:
DateTime

createDate

Date createDate(int year,
                int month,
                int day)
                throws PageException
creates and returns a Date instance

Parameters:
year -
month -
day -
Returns:
DateTime
Throws:
PageException

createTime

Time createTime(long time)
creates and returns a Time instance

Parameters:
time -
Returns:
DateTime

createTime

Time createTime(int hour,
                int minute,
                int second,
                int millis)
creates and returns a Time instance

Parameters:
hour -
minute -
second -
millis -
Returns:
DateTime

createTimeSpan

TimeSpan createTimeSpan(int day,
                        int hour,
                        int minute,
                        int second)
creates and returns a TimeSpan instance

Parameters:
day -
hour -
minute -
second -
Returns:
TimeSpan

createArray

Array createArray(int dimension)
                  throws PageException
creates and returns a array instance

Parameters:
dimension -
Returns:
array
Throws:
PageException

createStruct

Struct createStruct()
creates and returns a struct instance

Returns:
struct

createStruct

Struct createStruct(int type)

createQuery

Query createQuery(String[] columns,
                  int rows,
                  String name)
Deprecated. usse instead createQuery(Collection.Key[] columns, int rows, String name)

creates a query object with given data

Parameters:
columns -
rows -
name -
Returns:
created query Object

createQuery

Query createQuery(Collection.Key[] columns,
                  int rows,
                  String name)
                  throws PageException
creates a query object with given data

Parameters:
columns -
rows -
name -
Returns:
created query Object
Throws:
PageException

createQuery

Query createQuery(DatasourceConnection dc,
                  SQL sql,
                  int maxrow,
                  String name)
                  throws PageException
Deprecated. replaced with createQuery(DatasourceConnection, SQL, int, int, int, String)

creates a query object with a resultset from a sql query

Parameters:
dc - Connection to a database
name -
sql - sql to execute
maxrow - maxrow for the resultset
Throws:
PageException

createQuery

Query createQuery(DatasourceConnection dc,
                  SQL sql,
                  int maxrow,
                  int fetchsize,
                  int timeout,
                  String name)
                  throws PageException
Parameters:
dc - Connection to a database
sql - sql to execute
maxrow - maxrow for the resultset
fetchsize -
timeout -
name -
Returns:
created Query
Throws:
PageException

createDocument

Document createDocument()
                        throws PageException
creates and returns a xml Document instance

Returns:
struct
Throws:
PageException

createDocument

Document createDocument(Resource file,
                        boolean isHtml)
                        throws PageException
creates and returns a xml Document instance

Parameters:
file -
isHtml -
Returns:
struct
Throws:
PageException

createDocument

Document createDocument(String xml,
                        boolean isHtml)
                        throws PageException
creates and returns a xml Document instance

Parameters:
xml -
isHtml -
Returns:
struct
Throws:
PageException

createDocument

Document createDocument(InputStream is,
                        boolean isHtml)
                        throws PageException
creates and returns a xml Document instance

Parameters:
is -
isHtml -
Returns:
struct
Throws:
PageException

createKey

Collection.Key createKey(String key)
creates a collecton Key out of a String

Parameters:
key -

createRemoteClientTask

SpoolerTask createRemoteClientTask(ExecutionPlan[] plans,
                                   RemoteClient remoteClient,
                                   Struct attrColl,
                                   String callerId,
                                   String type)

createClusterEntry

ClusterEntry createClusterEntry(Collection.Key key,
                                Serializable value,
                                int offset)

createResource

Resource createResource(String path,
                        boolean existing)
                        throws PageException
Throws:
PageException

createHttpServletRequest

javax.servlet.http.HttpServletRequest createHttpServletRequest(File contextRoot,
                                                               String serverName,
                                                               String scriptName,
                                                               String queryString,
                                                               javax.servlet.http.Cookie[] cookies,
                                                               Map<String,Object> headers,
                                                               Map<String,String> parameters,
                                                               Map<String,Object> attributes,
                                                               javax.servlet.http.HttpSession session)

createHttpServletResponse

javax.servlet.http.HttpServletResponse createHttpServletResponse(OutputStream io)

createPageContext

PageContext createPageContext(javax.servlet.http.HttpServletRequest req,
                              javax.servlet.http.HttpServletResponse rsp,
                              OutputStream out)

createComponentFromName

Component createComponentFromName(PageContext pc,
                                  String fullName)
                                  throws PageException
creates a component object from (Full)Name, for example railo.extensions.net.HTTPUtil

Parameters:
pc - Pagecontext for loading the CFC
fullname - fullanem of the cfc example:railo.extensions.net.HTTPUtil
Returns:
loaded cfc
Throws:
PageException

createComponentFromPath

Component createComponentFromPath(PageContext pc,
                                  String path)
                                  throws PageException
creates a component object from a absolute local path, for example /Users/susi/Projects/Sorglos/wwwrooot/railo/extensions/net/HTTPUtil.cfc

Parameters:
pc - Pagecontext for loading the CFC
path - path of the cfc example:/Users/susi/Projects/Sorglos/wwwrooot/railo/extensions/net/HTTPUtil.cfc
Returns:
loaded cfc
Throws:
PageException


Copyright © 2012 Railo