mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Short URL format for common Alfresco servlets - for internal use
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5839 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -73,8 +73,11 @@ public abstract class BaseDownloadContentServlet extends BaseServlet
|
||||
|
||||
protected static final String MSG_ERROR_CONTENT_MISSING = "error_content_missing";
|
||||
|
||||
protected static final String URL_DIRECT = "d";
|
||||
protected static final String URL_DIRECT_LONG = "direct";
|
||||
protected static final String URL_ATTACH = "a";
|
||||
protected static final String URL_ATTACH_LONG = "attach";
|
||||
protected static final String ARG_PROPERTY = "property";
|
||||
protected static final String ARG_ATTACH = "attach";
|
||||
protected static final String ARG_PATH = "path";
|
||||
|
||||
/**
|
||||
@@ -122,7 +125,7 @@ public abstract class BaseDownloadContentServlet extends BaseServlet
|
||||
|
||||
// attachment mode (either 'attach' or 'direct')
|
||||
String attachToken = t.nextToken();
|
||||
boolean attachment = attachToken.equals(ARG_ATTACH);
|
||||
boolean attachment = URL_ATTACH.equals(attachToken) || URL_ATTACH_LONG.equals(attachToken);
|
||||
|
||||
// get or calculate the noderef and filename to download as
|
||||
NodeRef nodeRef;
|
||||
|
Reference in New Issue
Block a user