mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Web Scripts - small refactor to template client url function - it's now a template method.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6018 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -33,7 +33,6 @@ package org.alfresco.web.scripts;
|
||||
public class URLModel
|
||||
{
|
||||
private WebScriptRequest req;
|
||||
private WebScriptResponse res;
|
||||
|
||||
/**
|
||||
* Construct
|
||||
@@ -41,10 +40,9 @@ public class URLModel
|
||||
* @param req
|
||||
* @param res
|
||||
*/
|
||||
URLModel(WebScriptRequest req, WebScriptResponse res)
|
||||
URLModel(WebScriptRequest req)
|
||||
{
|
||||
this.req = req;
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -157,15 +155,4 @@ public class URLModel
|
||||
return getExtension();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the client url encoding function script
|
||||
*
|
||||
* @param name name of the function object to return
|
||||
*
|
||||
* @return script to encode urls on the client
|
||||
*/
|
||||
public String getClientUrlFunction(String name)
|
||||
{
|
||||
return res.getEncodeScriptUrlFunction(name);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user