Tabnine Logo
WebScript.getDescription
Code IndexAdd Tabnine to your IDE (free)

How to use
getDescription
method
in
org.springframework.extensions.webscripts.WebScript

Best Java code snippets using org.springframework.extensions.webscripts.WebScript.getDescription (Showing top 20 results out of 315)

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

org.springframework.extensions.webscriptsWebScriptgetDescription

Javadoc

Gets the Service Description

Popular methods of WebScript

  • getResources
    Gets the Service Resources
  • execute
    Execute the Service
  • init
    Initialise a WebScript
  • setURLModelFactory

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • JLabel (javax.swing)
  • JList (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now