coldbox.system

Class Interceptor

lucee.Component
    extended by coldbox.system.FrameworkSupertype
      extended by coldbox.system.Interceptor
Direct Known Subclasses:
SES

Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- Base class for all interceptors

Class Attributes:
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
  • serializable : false
  •  
  • author : Luis Majano
  •  
    Property Summary
    type property default serializable required
    any cachebox


    • access = public
    • returntype = any
    true false
    any controller


    • access = public
    • returntype = any
    true false
    any flash


    • access = public
    • returntype = any
    true false
    coldbox.system.services.InterceptorService interceptorService


    • access = public
    • returntype = any
    true false
    any log


    • access = public
    • returntype = any
    true false
    any logBox


    • access = public
    • returntype = any
    true false
    struct properties


    • access = public
    • returntype = any
    true false
    any wirebox


    • access = public
    • returntype = any
    true false
    Constructor Summary
    init(any controller, [struct properties='[runtime expression]'])
          Constructor.
    Method Summary
    any appendToBuffer(any str)
         Append to the interceptor buffer: Deprecated, please use incoming buffer arguments instead, this is not thread safe.
    any clearBuffer()
         Clear the interceptor buffer: Deprecated, please use incoming buffer arguements instead, this is not thread safe.
    void configure()
         Configuration method for the interceptor.
    any getBufferObject()
         Get the request buffer object from scope.
    string getBufferString()
         Get the string representation of the buffer: Deprecated, please use incoming buffer arguements instead, this is not thread safe.
    string getCachebox()
    string getFlash()
    string getInterceptorService()
    string getLog()
    string getLogBox()
    string getProperties()
    any getProperty(any property, [any defaultValue])
         Get an interceptor property.
    string getWirebox()
    boolean propertyExists(any property)
         Verify an interceptor property.
    any setCachebox(any cachebox)
    any setFlash(any flash)
    any setInterceptorService(coldbox.system.services.InterceptorService interceptorService)
    any setLog(any log)
    any setLogBox(any logBox)
    any setProperties(struct properties)
    any setProperty(any property, any value)
         Store an interceptor property.
    any setWirebox(any wirebox)
    any unregister(any state)
         Unregister the interceptor.
     
    Methods inherited from class coldbox.system.FrameworkSupertype
    addAsset, announceInterception, getCache, getController, getInstance, getInterceptor, getModel, getModuleConfig, getModuleSettings, getMyPlugin, getPlugin, getRenderer, getRequestCollection, getRequestContext, getSetting, getSettingStructure, includeUDF, loadApplicationHelpers, locateDirectoryPath, locateFilePath, persistVariables, populateModel, relocate, renderExternalView, renderLayout, renderView, runEvent, setController, setNextEvent, setSetting, settingExists
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(any controller, [struct properties='[runtime expression]'])

    Constructor

    Parameters:
    controller - The ColdBox controller
    properties - The properties to init the Interceptor with

    Property Detail

    cachebox

    property any cachebox

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    controller

    property any controller

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    flash

    property any flash

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    interceptorService

    property coldbox.system.services.InterceptorService interceptorService

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    log

    property any log

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    logBox

    property any logBox

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    properties

    property struct properties

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    wirebox

    property any wirebox

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    Method Detail

    appendToBuffer Deprecated

    public any appendToBuffer(any str)

    Append to the interceptor buffer: Deprecated, please use incoming buffer arguments instead, this is not thread safe

    Deprecated:
    Please use the incoming `buffer` argument instead
    Parameters:
    str - The string to append to the buffer
    Returns:
    Interceptor

    clearBuffer Deprecated

    public any clearBuffer()

    Clear the interceptor buffer: Deprecated, please use incoming buffer arguements instead, this is not thread safe

    Deprecated:
    true
    Returns:
    Interceptor

    configure

    public void configure()

    Configuration method for the interceptor


    getBufferObject Deprecated

    public any getBufferObject()

    Get the request buffer object from scope.: Deprecated, please use incoming buffer arguements instead, this is not thread safe

    Deprecated:
    Please use the incoming `buffer` argument instead
    Returns:
    struct

    getBufferString Deprecated

    public string getBufferString()

    Get the string representation of the buffer: Deprecated, please use incoming buffer arguements instead, this is not thread safe

    Deprecated:
    Please use the incoming `buffer` argument instead

    getCachebox

    public string getCachebox()


    getFlash

    public string getFlash()


    getInterceptorService

    public string getInterceptorService()


    getLog

    public string getLog()


    getLogBox

    public string getLogBox()


    getProperties

    public string getProperties()


    getProperty

    public any getProperty(any property, [any defaultValue])

    Get an interceptor property

    Parameters:
    property - The property to retrieve
    defaultValue - The default value to return if property does not exist

    getWirebox

    public string getWirebox()


    propertyExists

    public boolean propertyExists(any property)

    Verify an interceptor property

    Parameters:
    property - The property to check

    setCachebox

    public any setCachebox(any cachebox)

    Parameters:
    cachebox

    setFlash

    public any setFlash(any flash)

    Parameters:
    flash

    setInterceptorService

    public any setInterceptorService(coldbox.system.services.InterceptorService interceptorService)

    Parameters:
    interceptorService

    setLog

    public any setLog(any log)

    Parameters:
    log

    setLogBox

    public any setLogBox(any logBox)

    Parameters:
    logBox

    setProperties

    public any setProperties(struct properties)

    Parameters:
    properties

    setProperty

    public any setProperty(any property, any value)

    Store an interceptor property

    Parameters:
    property - The property to store
    value - The value to store
    Returns:
    Interceptor instance

    setWirebox

    public any setWirebox(any wirebox)

    Parameters:
    wirebox

    unregister

    public any unregister(any state)

    Unregister the interceptor

    Parameters:
    state - The named state to unregister this interceptor from
    Returns:
    Interceptor