mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Web Scripts:
- support url extension for specifying required response format - update scriptUrl method to handle various forms of specifying format on url - refactor web script request hierarchy; remove copy & paste - add reset web script registry to web script "Test Server" git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5803 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -45,6 +45,7 @@ public class WebScriptDescriptionImpl implements WebScriptDescription
|
||||
private String description;
|
||||
private RequiredAuthentication requiredAuthentication;
|
||||
private RequiredTransaction requiredTransaction;
|
||||
private FormatStyle formatStyle;
|
||||
private String httpMethod;
|
||||
private URI[] uris;
|
||||
private String defaultFormat;
|
||||
@@ -204,6 +205,24 @@ public class WebScriptDescriptionImpl implements WebScriptDescription
|
||||
return this.requiredTransaction;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the format style
|
||||
*
|
||||
* @param formatStyle
|
||||
*/
|
||||
public void setFormatStyle(FormatStyle formatStyle)
|
||||
{
|
||||
this.formatStyle = formatStyle;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.web.scripts.WebScriptDescription#getFormatStyle()
|
||||
*/
|
||||
public FormatStyle getFormatStyle()
|
||||
{
|
||||
return this.formatStyle;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the service http method
|
||||
*
|
||||
|
Reference in New Issue
Block a user