Class DisplayResourceCommand
java.lang.Object
org.exoplatform.frameworks.jcr.command.web.DisplayResourceCommand
- All Implemented Interfaces:
org.apache.commons.chain.Command
Created by The eXo Platform SAS .
the command to output nt:resource to Servlet Response gets DefaultKeys.PATH attrribute from the Context and acts as follow: - if there is nt:resource Node on DefaultKeys.PATH displays it - otherwise recursively tries to get nt:resource from incoming node's primary items and display it - throws PathNotFoundException if no such a node found WARNING: this mechanizm is not suitable for big files streaming as uses byte arry buffer for data transfer!
the command to output nt:resource to Servlet Response gets DefaultKeys.PATH attrribute from the Context and acts as follow: - if there is nt:resource Node on DefaultKeys.PATH displays it - otherwise recursively tries to get nt:resource from incoming node's primary items and display it - throws PathNotFoundException if no such a node found WARNING: this mechanizm is not suitable for big files streaming as uses byte arry buffer for data transfer!
- Version:
- $Id: DisplayResourceCommand.java 13861 2007-03-28 11:31:16Z vetal_ok $
- Author:
- Gennady Azarenkov
-
Field Summary
FieldsFields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT_MAPPING
-
DEFAULT_ENCODING
-
-
Constructor Details
-
DisplayResourceCommand
public DisplayResourceCommand()
-
-
Method Details
-
execute
- Specified by:
executein interfaceorg.apache.commons.chain.Command- Throws:
Exception
-
getPathKey
- Returns:
- path Key
-