gpt4 book ai didi

org.springframework.extensions.webscripts.WebScript.getDescription()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 13:49:05 24 4
gpt4 key购买 nike

本文整理了Java中org.springframework.extensions.webscripts.WebScript.getDescription()方法的一些代码示例,展示了WebScript.getDescription()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebScript.getDescription()方法的具体详情如下:
包路径:org.springframework.extensions.webscripts.WebScript
类名称:WebScript
方法名:getDescription

WebScript.getDescription介绍

[英]Gets the Service Description
[中]获取服务描述

代码示例

代码示例来源:origin: deas/alfresco

/**
 * Associate Web Script with Path
 * 
 * @param script
 */
public void addScript(WebScript script)
{
  scripts.put(script.getDescription().getId(), script);
}

代码示例来源:origin: org.springframework.extensions.surf/spring-webscripts

/**
 * Associate Web Script with Path
 * 
 * @param script WebScript
 */
public void addScript(WebScript script)
{
  scripts.put(script.getDescription().getId(), script);
}

代码示例来源:origin: org.alfresco.surf/spring-webscripts

/**
 * Associate Web Script with Path
 * 
 * @param script WebScript
 */
public void addScript(WebScript script)
{
  scripts.put(script.getDescription().getId(), script);
}

代码示例来源:origin: org.springframework.extensions.surf/spring-webscripts

public String[] getScriptDocumentPaths(WebScript script) throws IOException
{
  String scriptPaths = script.getDescription().getId() + ".*";
  return getDocumentPaths("/", false, scriptPaths);
}

代码示例来源:origin: org.springframework.extensions.surf/spring-surf

public String[] getScriptDocumentPaths(WebScript script)
{
  String scriptPaths = script.getDescription().getId() + ".*";
  return getDocumentPathsByRegEx("/", scriptPaths, false);
}

代码示例来源:origin: org.springframework.extensions.surf/spring-surf

public String[] getScriptDocumentPaths(WebScript script) throws IOException
{
  String scriptPaths = script.getDescription().getId() + ".*";
  return getDocumentPaths("/", false, scriptPaths);
}

代码示例来源:origin: org.alfresco.surf/spring-surf

public String[] getScriptDocumentPaths(WebScript script) throws IOException
{
  String scriptPaths = script.getDescription().getId() + ".*";
  return getDocumentPaths("/", false, scriptPaths);
}

代码示例来源:origin: org.alfresco.surf/spring-surf

public String[] getScriptDocumentPaths(WebScript script)
{
  String scriptPaths = script.getDescription().getId() + ".*";
  return getDocumentPathsByRegEx("/", scriptPaths, false);
}

代码示例来源:origin: deas/alfresco

public String[] getScriptDocumentPaths(WebScript script)
{
  String scriptPaths = script.getDescription().getId() + ".*";
  return getDocumentPaths("", false, scriptPaths);
}

代码示例来源:origin: org.springframework.extensions.surf/spring-webscripts

public String[] getScriptDocumentPaths(WebScript script)
{
  String scriptPaths = script.getDescription().getId() + ".*";
  return getDocumentPaths("", false, scriptPaths);
}

代码示例来源:origin: org.alfresco.surf/spring-webscripts

public String[] getScriptDocumentPaths(WebScript script) throws IOException
{
  String scriptPaths = script.getDescription().getId() + ".*";
  return getDocumentPaths("/", false, scriptPaths);
}

代码示例来源:origin: org.alfresco.surf/spring-webscripts

public String[] getScriptDocumentPaths(WebScript script)
{
  String scriptPaths = script.getDescription().getId() + ".*";
  return getDocumentPaths("", false, scriptPaths);
}

代码示例来源:origin: deas/alfresco

public String[] getScriptDocumentPaths(WebScript script) throws IOException
{
  String scriptPaths = script.getDescription().getId() + ".*";
  return getDocumentPaths("/", false, scriptPaths);
}

代码示例来源:origin: org.springframework.extensions.surf/spring-webscripts

/**
 * Register a lifecycle
 * 
 * @param script WebScript
 */
private void registerLifecycle(WebScript script)
{
  Description desc = script.getDescription();
  Lifecycle lifecycle = desc.getLifecycle();
      PathImpl path = lifecycleByPath.get("/");
  PathImpl subpath = lifecycleByPath.get(PathImpl.concatPath(path.getPath(), lifecycle.toString()));
  if (subpath == null)
  {
     subpath = path.createChildPath(lifecycle.toString());
     lifecycleByPath.put(subpath.getPath(), subpath);
  }          
  subpath.addScript(script);
}

代码示例来源: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

@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

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

@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: 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);
  }
}

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com