本文整理了Java中org.springframework.extensions.webscripts.WebScriptRequest.getServiceMatch()
方法的一些代码示例,展示了WebScriptRequest.getServiceMatch()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebScriptRequest.getServiceMatch()
方法的具体详情如下:
包路径:org.springframework.extensions.webscripts.WebScriptRequest
类名称:WebScriptRequest
方法名:getServiceMatch
[英]Gets the matching API Service for this request
[中]获取此请求的匹配API服务
代码示例来源:origin: stackoverflow.com
protected Map<String, Object> executeImpl(WebScriptRequest req,
Status status, Cache cache)
{
Map<String, String> templateVars = req.getServiceMatch().getTemplateVars();
WebScript webscript = req.getServiceMatch().getWebScript();
ResourceBundle webscriptRB = webscript.getResources();
....
}
代码示例来源:origin: org.alfresco.surf/spring-webscripts
/**
* Gets the template form of this path
*
* @return template form of path
*/
public String getTemplate()
{
return req.getServiceMatch().getTemplate();
}
代码示例来源:origin: org.springframework.extensions.surf/spring-webscripts
/**
* Gets the template form of this path
*
* @return template form of path
*/
public String getTemplate()
{
return req.getServiceMatch().getTemplate();
}
代码示例来源:origin: org.alfresco.surf/spring-webscripts
/**
* Gets the values of template variables
*
* @return map of value indexed by variable name (or the empty map)
*/
public Map<String, String> getTemplateArgs()
{
Map<String, String> args = req.getServiceMatch().getTemplateVars();
return (args == null) ? emptyArgs : args;
}
}
代码示例来源:origin: deas/alfresco
/**
* Gets the template form of this path
*
* @return template form of path
*/
public String getTemplate()
{
return req.getServiceMatch().getTemplate();
}
代码示例来源:origin: org.springframework.extensions.surf/spring-webscripts
/**
* Gets the values of template variables
*
* @return map of value indexed by variable name (or the empty map)
*/
public Map<String, String> getTemplateArgs()
{
Map<String, String> args = req.getServiceMatch().getTemplateVars();
return (args == null) ? emptyArgs : args;
}
}
代码示例来源:origin: deas/alfresco
/**
* Gets the values of template variables
*
* @return map of value indexed by variable name (or the empty map)
*/
public Map<String, String> getTemplateArgs()
{
Map<String, String> args = req.getServiceMatch().getTemplateVars();
return (args == null) ? emptyArgs : args;
}
}
代码示例来源:origin: org.springframework.extensions.surf/spring-webscripts
/**
* Gets the matching service path
*
* e.g.
* a) service registered path = /search/engine
* b) request path = /search/engine/external
*
* => /search/engine
*
* @return matching path
*/
public String getMatch()
{
return req.getServiceMatch().getPath();
}
代码示例来源:origin: org.alfresco.surf/spring-webscripts
/**
* Gets the matching service path
*
* e.g.
* a) service registered path = /search/engine
* b) request path = /search/engine/external
*
* => /search/engine
*
* @return matching path
*/
public String getMatch()
{
return req.getServiceMatch().getPath();
}
代码示例来源:origin: deas/alfresco
/**
* Gets the matching service path
*
* e.g.
* a) service registered path = /search/engine
* b) request path = /search/engine/external
*
* => /search/engine
*
* @return matching path
*/
public String getMatch()
{
return req.getServiceMatch().getPath();
}
代码示例来源:origin: org.alfresco.surf/spring-webscripts
params.put("webscript", req.getServiceMatch().getWebScript().getDescription());
params.put("format", new FormatModel(container.getFormatRegistry(), req.getFormat()));
params.put("args", createArgs(req));
代码示例来源:origin: org.springframework.extensions.surf/spring-webscripts
params.put("webscript", req.getServiceMatch().getWebScript().getDescription());
params.put("format", new FormatModel(container.getFormatRegistry(), req.getFormat()));
params.put("args", createArgs(req));
代码示例来源:origin: deas/alfresco
params.put("webscript", req.getServiceMatch().getWebScript().getDescription());
params.put("format", new FormatModel(container.getFormatRegistry(), req.getFormat()));
params.put("args", createArgs(req));
代码示例来源:origin: org.alfresco.surf/spring-webscripts
params.put("webscript", req.getServiceMatch().getWebScript().getDescription());
params.put("format", new FormatModel(container.getFormatRegistry(), req.getFormat()));
params.put("args", createArgs(req));
代码示例来源:origin: org.springframework.extensions.surf/spring-webscripts
@Override
protected void executeScript(WebScriptRequest scriptReq, WebScriptResponse scriptRes, Authenticator auth)
throws IOException
{
// Set Portlet title based on Web Script
WebScript script = scriptReq.getServiceMatch().getWebScript();
Description desc = script.getDescription();
res.setTitle(desc.getShortName());
// Note: Do not render script if portlet window is minimized
if (!WindowState.MINIMIZED.equals(req.getWindowState()))
{
super.executeScript(scriptReq, scriptRes, auth);
}
}
代码示例来源:origin: deas/alfresco
@Override
protected void executeScript(WebScriptRequest scriptReq, WebScriptResponse scriptRes, Authenticator auth)
throws IOException
{
// Set Portlet title based on Web Script
WebScript script = scriptReq.getServiceMatch().getWebScript();
Description desc = script.getDescription();
res.setTitle(desc.getShortName());
// Note: Do not render script if portlet window is minimized
if (!WindowState.MINIMIZED.equals(req.getWindowState()))
{
super.executeScript(scriptReq, scriptRes, auth);
}
}
代码示例来源:origin: org.alfresco.surf/spring-webscripts
@Override
protected void executeScript(WebScriptRequest scriptReq, WebScriptResponse scriptRes, Authenticator auth)
throws IOException
{
// Set Portlet title based on Web Script
WebScript script = scriptReq.getServiceMatch().getWebScript();
Description desc = script.getDescription();
res.setTitle(desc.getShortName());
// Note: Do not render script if portlet window is minimized
if (!WindowState.MINIMIZED.equals(req.getWindowState()))
{
super.executeScript(scriptReq, scriptRes, auth);
}
}
代码示例来源:origin: org.springframework.extensions.surf/spring-webscripts
public void executeScript(WebScriptRequest scriptReq, WebScriptResponse scriptRes, Authenticator auth)
throws IOException
{
// Handle authentication of scripts on a case-by-case basis.
// Currently we assume that if a webscript servlet has any authenticator
// applied then it must be for some kind of remote user auth as supplied.
WebScript script = scriptReq.getServiceMatch().getWebScript();
script.setURLModelFactory(getUrlModelFactory());
Description desc = script.getDescription();
RequiredAuthentication required = desc.getRequiredAuthentication();
if (auth == null || RequiredAuthentication.none == required || auth.authenticate(required, false))
{
script.execute(scriptReq, scriptRes);
}
}
代码示例来源:origin: org.alfresco.surf/spring-webscripts
public void executeScript(WebScriptRequest scriptReq, WebScriptResponse scriptRes, Authenticator auth)
throws IOException
{
// Handle authentication of scripts on a case-by-case basis.
// Currently we assume that if a webscript servlet has any authenticator
// applied then it must be for some kind of remote user auth as supplied.
WebScript script = scriptReq.getServiceMatch().getWebScript();
script.setURLModelFactory(getUrlModelFactory());
Description desc = script.getDescription();
RequiredAuthentication required = desc.getRequiredAuthentication();
if (auth == null || RequiredAuthentication.none == required || auth.authenticate(required, false))
{
script.execute(scriptReq, scriptRes);
}
}
代码示例来源:origin: deas/alfresco
public void executeScript(WebScriptRequest scriptReq, WebScriptResponse scriptRes, Authenticator auth)
throws IOException
{
// Handle authentication of scripts on a case-by-case basis.
// Currently we assume that if a webscript servlet has any authenticator
// applied then it must be for some kind of remote user auth as supplied.
WebScript script = scriptReq.getServiceMatch().getWebScript();
script.setURLModelFactory(getUrlModelFactory());
Description desc = script.getDescription();
RequiredAuthentication required = desc.getRequiredAuthentication();
if (auth == null || RequiredAuthentication.none == required || auth.authenticate(required, false))
{
script.execute(scriptReq, scriptRes);
}
}
内容来源于网络,如有侵权,请联系作者删除!