org.jasig.portal.car
Class CarResourceWorker
java.lang.Object
org.jasig.portal.car.CarResourceWorker
- All Implemented Interfaces:
- IWorkerRequestProcessor
- public class CarResourceWorker
- extends java.lang.Object
- implements IWorkerRequestProcessor
Class to handle incoming portal requests with specified worker of
"carrsrc". These request are for loading web elements out of an installed
channel archive file. The form of the URL is the traditional UPFileSpec
with a worker of "carrsrc" and a query parameter "carrsrc=".
The resourcePath is the path to the resource from within the channel
archive.
For example: if a channel existed with the directory structure of
"org/jasig/uportal/channels/email/" and within the email channel
base directory there was an "images" directory containing "mailbox.gif"
then the browser could access that image from the installed email channel
archive via ".uP?carrsrc=org/jasig/
uportal/channels/email/images/mailbox.gif".
See the ChannelRuntimeData.getBaseMediaURL methods from which channels
can obtain the base URL dynamically without having to know if they are
deployed as a traditional channel or as a channel archive.
- Version:
- $Revision: 1.12 $
- Author:
- Mark Boyd
Field Summary |
static java.lang.String |
RCS_ID
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RCS_ID
public static final java.lang.String RCS_ID
- See Also:
- Constant Field Values
CarResourceWorker
public CarResourceWorker()
- Create a CarResourceWorker.
processWorkerDispatch
public void processWorkerDispatch(PortalControlStructures pcs)
throws PortalException
- Provides web access to channel resources stored in channel archive
files housing channels if the channels were installed in the portal
using a CAR.
- Specified by:
processWorkerDispatch
in interface IWorkerRequestProcessor
- Parameters:
pcs
- a PortalControlStructures
object
- Throws:
PortalException
- if an error occurs