org.exoplatform.frameworks.jcr.command.web
Class DisplayResourceCommand
java.lang.Object
org.exoplatform.frameworks.jcr.command.web.DisplayResourceCommand
- All Implemented Interfaces:
- org.apache.commons.chain.Command
public class DisplayResourceCommand
- extends java.lang.Object
- implements 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!
- Version:
- $Id: DisplayResourceCommand.java 35179 2009-08-07 13:58:20Z pnedonosko $
- Author:
- Gennady Azarenkov
|
Method Summary |
boolean |
execute(org.apache.commons.chain.Context context)
|
java.lang.String |
getPathKey()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_MAPPING
public static java.lang.String DEFAULT_MAPPING
DEFAULT_ENCODING
public static java.lang.String DEFAULT_ENCODING
DisplayResourceCommand
public DisplayResourceCommand()
execute
public boolean execute(org.apache.commons.chain.Context context)
throws java.lang.Exception
- Specified by:
execute in interface org.apache.commons.chain.Command
- Throws:
java.lang.Exception
getPathKey
public java.lang.String getPathKey()
- Returns:
- path Key
Copyright © 2010 eXo Platform SAS. All Rights Reserved.