- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.springframework.extensions.webscripts.WebScriptException.<init>()
方法的一些代码示例,展示了WebScriptException.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebScriptException.<init>()
方法的具体详情如下:
包路径:org.springframework.extensions.webscripts.WebScriptException
类名称:WebScriptException
方法名:<init>
暂无
代码示例来源:origin: stackoverflow.com
@Override
protected void executeImpl(Action action, NodeRef actionedUponNodeRef) {
if (condition) {
// Do something
} else {
throw new WebScriptException("Action is failed");
}
}
代码示例来源:origin: org.alfresco.surf/spring-webscripts
public void afterPropertiesSet()
throws Exception
{
if (defaultWebScript == null || defaultWebScript.length() == 0 || !applicationContext.containsBean(defaultWebScript))
{
throw new WebScriptException("Default Web Script implementation '" + (defaultWebScript == null ? "<undefined>" : defaultWebScript) + "' does not exist.");
}
}
代码示例来源:origin: org.springframework.extensions.surf/spring-webscripts
public void afterPropertiesSet()
throws Exception
{
if (defaultWebScript == null || defaultWebScript.length() == 0 || !applicationContext.containsBean(defaultWebScript))
{
throw new WebScriptException("Default Web Script implementation '" + (defaultWebScript == null ? "<undefined>" : defaultWebScript) + "' does not exist.");
}
}
代码示例来源:origin: org.alfresco.surf/spring-webscripts
public boolean hasTemplate(String templatePath)
{
boolean hasTemplate = false;
try
{
Template template = templateConfig.getTemplate(templatePath);
hasTemplate = (template != null);
}
catch(FileNotFoundException e)
{
// NOTE: return false as template is not found
}
catch(IOException e)
{
throw new WebScriptException("Failed to retrieve template " + templatePath, e);
}
return hasTemplate;
}
代码示例来源:origin: deas/alfresco
public void afterPropertiesSet()
throws Exception
{
if (defaultWebScript == null || defaultWebScript.length() == 0 || !applicationContext.containsBean(defaultWebScript))
{
throw new WebScriptException("Default Web Script implementation '" + (defaultWebScript == null ? "<undefined>" : defaultWebScript) + "' does not exist.");
}
}
代码示例来源:origin: org.alfresco.surf/spring-webscripts
public InputStream getInputStream()
{
try
{
return this.location.getInputStream();
}
catch (IOException e)
{
throw new WebScriptException("Unable to retrieve input stream for script " + getPathDescription());
}
}
代码示例来源:origin: org.springframework.extensions.surf/spring-webscripts
public InputStream getInputStream()
{
try
{
return this.location.getInputStream();
}
catch (IOException e)
{
throw new WebScriptException("Unable to retrieve input stream for script " + getPathDescription());
}
}
代码示例来源:origin: deas/alfresco
public InputStream getInputStream()
{
try
{
return this.location.getInputStream();
}
catch (IOException e)
{
throw new WebScriptException("Unable to retrieve input stream for script " + getPathDescription());
}
}
代码示例来源:origin: org.alfresco.surf/spring-webscripts
public Content getContent()
{
// ensure we only try to read the content once - as this method may be called several times
// but the underlying inputstream itself can only be processed a single time
if (content == null)
{
try
{
content = new InputStreamContent(req.getInputStream(), getContentType(), req.getCharacterEncoding());
}
catch(IOException e)
{
throw new WebScriptException("Failed to retrieve request content", e);
}
}
return content;
}
代码示例来源:origin: org.springframework.extensions.surf/spring-webscripts
public Content getContent()
{
// ensure we only try to read the content once - as this method may be called several times
// but the underlying inputstream itself can only be processed a single time
if (content == null)
{
try
{
content = new InputStreamContent(req.getInputStream(), getContentType(), req.getCharacterEncoding());
}
catch(IOException e)
{
throw new WebScriptException("Failed to retrieve request content", e);
}
}
return content;
}
代码示例来源:origin: org.alfresco.surf/spring-webscripts
public Object executeScript(String path, Map<String, Object> model)
{
// locate script within web script stores
ScriptContent scriptLocation = findScript(path);
if (scriptLocation == null)
{
throw new WebScriptException("Unable to locate script " + path);
}
// execute script
return executeScript(scriptLocation, model);
}
代码示例来源:origin: org.springframework.extensions.surf/spring-webscripts
public Object executeScript(String path, Map<String, Object> model)
{
// locate script within web script stores
ScriptContent scriptLocation = findScript(path);
if (scriptLocation == null)
{
throw new WebScriptException("Unable to locate script " + path);
}
// execute script
return executeScript(scriptLocation, model);
}
代码示例来源:origin: org.springframework.extensions.surf/spring-webscripts
public FormData read(WebScriptRequest req)
{
if (!(req instanceof WebScriptServletRequest))
{
throw new WebScriptException("Failed to convert request to FormData");
}
return new FormData(((WebScriptServletRequest)req).getHttpServletRequest());
}
代码示例来源:origin: org.alfresco.surf/spring-webscripts
public FormData read(WebScriptRequest req)
{
if (!(req instanceof WebScriptServletRequest))
{
throw new WebScriptException("Failed to convert request to FormData");
}
return new FormData(((WebScriptServletRequest)req).getHttpServletRequest());
}
代码示例来源:origin: deas/alfresco
public Object executeScript(String path, Map<String, Object> model)
{
// locate script within web script stores
ScriptContent scriptLocation = findScript(path);
if (scriptLocation == null)
{
throw new WebScriptException("Unable to locate script " + path);
}
// execute script
return executeScript(scriptLocation, model);
}
代码示例来源:origin: deas/alfresco
public FormData read(WebScriptRequest req)
{
if (!(req instanceof WebScriptServletRequest))
{
throw new WebScriptException("Failed to convert request to FormData");
}
return new FormData(((WebScriptServletRequest)req).getHttpServletRequest());
}
代码示例来源:origin: org.springframework.extensions.surf/spring-webscripts
/**
* Initializes the script loaders
*/
protected void initLoaders()
{
List<ScriptLoader> loaders = new ArrayList<ScriptLoader>(searchPath.getStores().size());
for (Store apiStore : searchPath.getStores())
{
ScriptLoader loader = apiStore.getScriptLoader();
if (loader == null)
{
throw new WebScriptException("Unable to retrieve script loader for Web Script store " + apiStore.getBasePath());
}
loaders.add(loader);
}
this.scriptLoader = new MultiScriptLoader(loaders.toArray(new ScriptLoader[loaders.size()]));
}
代码示例来源:origin: org.alfresco.surf/spring-webscripts
/**
* Initializes the script loaders
*/
protected void initLoaders()
{
List<ScriptLoader> loaders = new ArrayList<ScriptLoader>(searchPath.getStores().size());
for (Store apiStore : searchPath.getStores())
{
ScriptLoader loader = apiStore.getScriptLoader();
if (loader == null)
{
throw new WebScriptException("Unable to retrieve script loader for Web Script store " + apiStore.getBasePath());
}
loaders.add(loader);
}
this.scriptLoader = new MultiScriptLoader(loaders.toArray(new ScriptLoader[loaders.size()]));
}
代码示例来源:origin: deas/alfresco
/**
* Initializes the script loaders
*/
protected void initLoaders()
{
List<ScriptLoader> loaders = new ArrayList<ScriptLoader>(searchPath.getStores().size());
for (Store apiStore : searchPath.getStores())
{
ScriptLoader loader = apiStore.getScriptLoader();
if (loader == null)
{
throw new WebScriptException("Unable to retrieve script loader for Web Script store " + apiStore.getBasePath());
}
loaders.add(loader);
}
this.scriptLoader = new MultiScriptLoader(loaders.toArray(new ScriptLoader[loaders.size()]));
}
代码示例来源:origin: org.alfresco.surf/spring-webscripts
/**
* Render a template (contents as string)
*
* @param template the template
* @param model model
* @param writer output writer
* @param extension optional template extension type (i.e. ftl, php)
*/
final protected void renderString(String template, Map<String, Object> model, Writer writer, String extension)
{
TemplateProcessor processor = container.getTemplateProcessorRegistry().getTemplateProcessorByExtension(extension);
if (processor != null)
{
processor.processString(template, model, writer);
}
else
{
throw new WebScriptException("No processor found for extension " + extension);
}
}
本文整理了Java中org.springframework.extensions.webscripts.WebScript.getDescription()方法的一些代码示例,展示了WebScript
本文整理了Java中org.springframework.extensions.webscripts.WebScript.getResources()方法的一些代码示例,展示了WebScript.g
在露天有什么方法可以在 web 脚本中获取当前用户名吗??我正在调用一个 Web 脚本,并希望访问他在其中登录的当前用户名和密码。 这是我的描述符: Save Document Save
我有一个简单的 Spring 应用程序(前端应用程序),它将文件加载到 Alfresco 存储库中。如果该文件已存在,则不会创建其新版本。 Repository web script现介绍如下: pu
本文整理了Java中org.springframework.extensions.webscripts.WebScriptException类的一些代码示例,展示了WebScriptException
本文整理了Java中org.springframework.extensions.webscripts.WebScript类的一些代码示例,展示了WebScript类的具体用法。这些代码示例主要来源于
我在户外执行 wbesciptr 时遇到问题。我不知道发生了什么,但每次我运行用 java 编写的 webscript 时,我都会收到 401 错误代码。我在 javascript 中有 simmil
我想知道如何从 Surf 中的 Root 对象知道当前主机名。 我正在编写一个服务于 JNLP 的网络脚本,所以我没有页面上下文,并且 ${url.context} 只返回 /share。 我正在寻找
我想知道如何从 Surf 中的 Root 对象知道当前主机名。 我正在编写一个服务于 JNLP 的网络脚本,所以我没有页面上下文,并且 ${url.context} 只返回 /share。 我正在寻找
我目前正在使用 Alfresco 作为 ECM 开发 java/jee 应用程序。我想知道在 Java/jee 应用程序中与 alfresco 通信的最佳方式是什么。使用 Web 脚本或 java a
我需要在 Alfresco Share 上下文中创建一个无需身份验证即可访问的页面。使用页面框架时,它看起来非常简单,因为您可以添加 none到页面定义。 当使用 aikau 时,页面定义消失了,我只
我最近遇到了 spring surf project和 Spring webscripts . 这两种技术(我猜)似乎都来自 Alfresco 开发人员 Web Scripts Surf 是否正确?
我想通过后端网络脚本获取节点详细信息,但我遇到了一些问题。我试过两个网络脚本: alfresco/service/slingshot/doclib2/node/workspace/SpacesStor
本文整理了Java中org.springframework.extensions.webscripts.WebScriptException.getStatusModel()方法的一些代码示例,展示了
本文整理了Java中org.springframework.extensions.webscripts.WebScriptException.setStatusTemplateFactory()方法的
本文整理了Java中org.springframework.extensions.webscripts.WebScriptException.getStatus()方法的一些代码示例,展示了WebSc
本文整理了Java中org.springframework.extensions.webscripts.WebScriptException.()方法的一些代码示例,展示了WebScriptExcep
本文整理了Java中org.springframework.extensions.webscripts.WebScriptException.getStatusTemplate()方法的一些代码示例,
我尝试为露天创建脚本以设置继承权限,但我不知道我的脚本是否正确,这是我的脚本: 继承.post.xml Inherit Permission Inherit Permission of a User
最近我发现 Alfresco 中的文档上传功能支持一个简单的 Java Servlet (UploadContentServlet.java)。我不明白为什么它是 servlet 而不是 webscr
我是一名优秀的程序员,十分优秀!