本文整理了Java中org.springframework.extensions.webscripts.WebScriptRequest.getExtensionPath()
方法的一些代码示例,展示了WebScriptRequest.getExtensionPath()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebScriptRequest.getExtensionPath()
方法的具体详情如下:
包路径:org.springframework.extensions.webscripts.WebScriptRequest
类名称:WebScriptRequest
方法名:getExtensionPath
[英]Gets the path extension beyond the path registered for this service e.g. a) service registered path = /search/engine b) request path = /search/engine/external => /external
[中]获取超出为此服务注册的路径的路径扩展,例如a)服务注册路径=/search/engine b)请求路径=/search/engine/external=>/external
代码示例来源:origin: org.springframework.extensions.surf/spring-webscripts
/**
* Gets the Service Extension Path
*
* e.g.
* a) service registered path = /search/engine
* b) request path = /search/engine/external
*
* => /external
*
* @return extension path
*/
public String getExtension()
{
return req.getExtensionPath();
}
代码示例来源:origin: deas/alfresco
/**
* Gets the Service Extension Path
*
* e.g.
* a) service registered path = /search/engine
* b) request path = /search/engine/external
*
* => /external
*
* @return extension path
*/
public String getExtension()
{
return req.getExtensionPath();
}
代码示例来源:origin: org.alfresco.surf/spring-webscripts
/**
* Gets the Service Extension Path
*
* e.g.
* a) service registered path = /search/engine
* b) request path = /search/engine/external
*
* => /external
*
* @return extension path
*/
public String getExtension()
{
return req.getExtensionPath();
}
代码示例来源:origin: deas/alfresco
@Override
protected Map<String, Object> executeImpl(WebScriptRequest req, Status status)
{
// extract web script package
String uriPath = req.getExtensionPath();
if (uriPath == null || uriPath.length() == 0)
{
uriPath = "/";
}
if (!uriPath.startsWith("/"))
{
uriPath = "/" + uriPath;
}
// locate web script package
Path path = getContainer().getRegistry().getUri(uriPath);
if (path == null)
{
throw new WebScriptException(Status.STATUS_NOT_FOUND, "Web Script URI '" + uriPath + "' not found");
}
Map<String, Object> model = new HashMap<String, Object>(7, 1.0f);
model.put("uri", path);
return model;
}
代码示例来源:origin: deas/alfresco
@Override
protected Map<String, Object> executeImpl(WebScriptRequest req, Status status)
{
// extract web script package
String uriPath = req.getExtensionPath();
if (uriPath == null || uriPath.length() == 0)
{
uriPath = "/";
}
if (!uriPath.startsWith("/"))
{
uriPath = "/" + uriPath;
}
// locate web script package
Path path = getContainer().getRegistry().getLifecycle(uriPath);
if (path == null)
{
throw new WebScriptException(Status.STATUS_NOT_FOUND, "Web Script URI '" + uriPath + "' not found");
}
Map<String, Object> model = new HashMap<String, Object>(7, 1.0f);
model.put("lifecycle", path);
return model;
}
代码示例来源:origin: deas/alfresco
@Override
protected Map<String, Object> executeImpl(WebScriptRequest req, Status status)
{
// extract web script package
String packagePath = req.getExtensionPath();
if (packagePath == null || packagePath.length() == 0)
{
packagePath = "/";
}
if (!packagePath.startsWith("/"))
{
packagePath = "/" + packagePath;
}
// locate web script package
Path path = getContainer().getRegistry().getPackage(packagePath);
if (path == null)
{
throw new WebScriptException(Status.STATUS_NOT_FOUND, "Web Script Package '" + packagePath + "' not found");
}
Map<String, Object> model = new HashMap<String, Object>(7, 1.0f);
model.put("package", path);
return model;
}
代码示例来源:origin: deas/alfresco
@Override
protected Map<String, Object> executeImpl(WebScriptRequest req, Status status)
{
// extract web script package
String familyPath = req.getExtensionPath();
if (familyPath == null || familyPath.length() == 0)
{
familyPath = "/";
}
if (!familyPath.startsWith("/"))
{
familyPath = "/" + familyPath;
}
// locate web script package
Path path = getContainer().getRegistry().getFamily(familyPath);
if (path == null)
{
throw new WebScriptException(Status.STATUS_NOT_FOUND, "Web Script Family '" + familyPath + "' not found");
}
Map<String, Object> model = new HashMap<String, Object>(7, 1.0f);
model.put("family", path);
return model;
}
代码示例来源:origin: deas/alfresco
String scriptId = req.getExtensionPath();
if (scriptId == null || scriptId.length() == 0)
代码示例来源:origin: deas/alfresco
public void execute(WebScriptRequest req, WebScriptResponse res) throws IOException
String scriptId = req.getExtensionPath();
if (scriptId == null || scriptId.length() == 0)
内容来源于网络,如有侵权,请联系作者删除!