mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Web Scripts:
- filename convention changed from _ to . git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5793 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -48,12 +48,11 @@ public class ServiceDescription extends AbstractWebScript
|
||||
public void execute(WebScriptRequest req, WebScriptResponse res) throws IOException
|
||||
{
|
||||
// extract web script id
|
||||
String extensionPath = req.getExtensionPath();
|
||||
if (extensionPath == null || extensionPath.length() == 0)
|
||||
String scriptId = req.getExtensionPath();
|
||||
if (scriptId == null || scriptId.length() == 0)
|
||||
{
|
||||
throw new WebScriptException("Web Script Id not provided");
|
||||
}
|
||||
String scriptId = extensionPath.replace("/", ".");
|
||||
|
||||
// locate web script
|
||||
WebScript script = getWebScriptRegistry().getWebScript(scriptId);
|
||||
@@ -67,7 +66,7 @@ public class ServiceDescription extends AbstractWebScript
|
||||
InputStream serviceDescIS = null;
|
||||
try
|
||||
{
|
||||
serviceDescIS = desc.getSourceDocument();
|
||||
serviceDescIS = desc.getDescDocument();
|
||||
OutputStream out = res.getOutputStream();
|
||||
res.setContentType(MimetypeMap.MIMETYPE_XML + ";charset=UTF-8");
|
||||
byte[] buffer = new byte[2048];
|
||||
|
Reference in New Issue
Block a user