coldbox.system.testing.mock.web.context

Class MockRequestContext

lucee.Component
    extended by coldbox.system.web.context.RequestContext
      extended by coldbox.system.testing.mock.web.context.MockRequestContext

Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- A mock request context used for integration testing via TestBox

Class Attributes:
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
  • serializable : false
  •  
    Method Summary
    any setHTTPHeader([any statusCode], [any statusText=''], [any name], [any value=''])
         Set an HTTP Header.
     
    Methods inherited from class coldbox.system.web.context.RequestContext
    buildLink, clearCollection, clearPrivateCollection, collectionAppend, getCollection, getContext, getController, getCurrentAction, getCurrentEvent, getCurrentHandler, getCurrentLayout, getCurrentLayoutModule, getCurrentModule, getCurrentRoute, getCurrentRoutedNamespace, getCurrentRoutedURL, getCurrentRouteName, getCurrentView, getCurrentViewArgs, getCurrentViewModule, getDefaultLayout, getDefaultView, getEventCacheableEntry, getEventName, getExcept, getFileMimeType, getFolderLayouts, getFullURL, getHTMLBaseURL, getHTTPBasicCredentials, getHTTPContent, getHTTPHeader, getHTTPMethod, getIsNoExecution, getMemento, getModuleEntryPoint, getModuleRoot, getOnly, getPrivateCollection, getPrivateContext, getPrivateExcept, getPrivateOnly, getPrivateSize, getPrivateTrimValue, getPrivateValue, getProperties, getRegisteredLayouts, getRenderData, getRenderingRegions, getRoutedStruct, getSelf, getSESBaseURL, getSESEnabled, getSize, getTrimValue, getValue, getViewCacheableEntry, getViewLayouts, init, isAjax, isEventCacheable, isInvalidHTTPMethod, isNoRender, isProxyRequest, isSES, isSSL, isViewCacheable, noExecution, noLayout, noRender, overrideEvent, paramPrivateValue, paramValue, privateCollectionAppend, privateValueExists, removeEventCacheableEntry, removePrivateValue, removeValue, renderData, renderWithFormats, route, sendFile, setContext, setController, setDefaultLayout, setDefaultView, setEventCacheableEntry, setEventName, setFolderLayouts, setIsInvalidHTTPMethod, setIsNoExecution, setLayout, setMemento, setPrivateContext, setPrivateValue, setProperties, setProxyRequest, setRegisteredLayouts, setRenderingRegions, setRoutedStruct, setSESBaseURL, setSESEnabled, setValue, setView, setViewCacheableEntry, setViewLayouts, valueExists
     
    Methods inherited from class lucee.Component
    None

    Method Detail

    setHTTPHeader

    public any setHTTPHeader([any statusCode], [any statusText=''], [any name], [any value=''])

    Set an HTTP Header return RequestContext

    Overrides:
    setHTTPHeader in class RequestContext
    Parameters:
    statusCode - the status code
    statusText - the status text
    name - The header name
    value - The header value