railo-context.Componentcontentbox.model.media.ForwardMediaProvider
ContentBox - A Modular Content Platform Copyright 2012 by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com Apache License, Version 2.0 Copyright Since [2012] [Luis Majano and Ortus Solutions,Corp] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Deliver file via pagecontext forward
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
fileUtils
|
true
|
false
|
|
any
|
log
|
true
|
false
|
|
any
|
mediaService
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
any
|
deliverMedia(any mediaPath)
Deliver the media. |
any
|
getDescription()
Get the description of this provider. |
any
|
getDisplayName()
Get the display name of a provider. |
string
|
getFileUtils()
|
string
|
getLog()
|
string
|
getMediaService()
|
any
|
getName()
The internal name of the provider. |
private any
|
getRealMediaPath(any mediaPath)
PRIVATE ********************************************. |
boolean
|
mediaExists(any mediaPath)
Validate if a media requested exists. |
any
|
setFileUtils(any fileUtils)
|
any
|
setLog(any log)
|
any
|
setMediaService(any mediaService)
|
Methods inherited from class railo-context.Component |
---|
None |
Constructor Detail |
---|
Constructor
Property Detail |
---|
required
- falseinject
- coldbox:plugin:FileUtilsserializable
- truerequired
- falseinject
- logbox:logger:{this}serializable
- truerequired
- falseinject
- mediaService@cbserializable
- trueMethod Detail |
---|
Deliver the media
deliverMedia
in interface
IMediaProvider
mediaPath
- the media path to deliver back to the userGet the description of this provider
getDescription
in interface
IMediaProvider
Get the display name of a provider
getDisplayName
in interface
IMediaProvider
The internal name of the provider
getName
in interface
IMediaProvider
PRIVATE ********************************************
mediaPath
Validate if a media requested exists
mediaExists
in interface
IMediaProvider
mediaPath
- the media path to verify if it existsfileUtils
log
mediaService