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:
Kevin Roast
2007-06-04 11:06:26 +00:00
parent 45fcc962e1
commit c8b5be7bca
6 changed files with 57 additions and 19 deletions

View File

@@ -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;