OpenSearch

- provide access to requested format in response template
- search response links render appropriate format argument

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4812 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2007-01-12 16:39:41 +00:00
parent d52cf961b6
commit 0861936a2e
2 changed files with 26 additions and 17 deletions

View File

@@ -110,4 +110,15 @@ public class APIRequest extends HttpServletRequestWrapper
return Boolean.valueOf(getParameter("guest"));
}
/**
* Get Requested Format
*
* @return content type requested
*/
public String getFormat()
{
String format = getParameter("format");
return (format == null || format.length() == 0) ? "" : format;
}
}