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:
David Caruana
2007-06-19 14:35:02 +00:00
parent 5f5d83d00b
commit bcdf03bc80
5 changed files with 81 additions and 18 deletions

View File

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