public class UploadSkinAction extends ServiceableAction implements Contextualizable
| Modifier and Type | Field and Description |
|---|---|
protected Context |
_cocoonContext
The cocoon context
|
managerEMPTY_MAP| Constructor and Description |
|---|
UploadSkinAction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_filter(File skinDir,
String absoluteSkinPath,
boolean isModel)
Filter skin directory
|
protected File |
_unzip(File uploadedFile)
Unzip file in temp directory
|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
contextualize(Context context) |
serviceenableLogging, getLogger, setupLogger, setupLogger, setupLoggerprotected Context _cocoonContext
public UploadSkinAction()
public void contextualize(Context context) throws ContextException
contextualize in interface ContextualizableContextExceptionpublic Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
protected File _unzip(File uploadedFile) throws IOException
uploadedFile - the uploaded fileIOException - if an I/O exception occursprotected void _filter(File skinDir, String absoluteSkinPath, boolean isModel) throws IOException
skinDir - the skin directoryabsoluteSkinPath - the absolute path of tmp skin directoryisModel - true if the uploaded skin is the model of skin.IOException - if an error occurred