Tabnine Logo
ClassPathStore.hasDocument
Code IndexAdd Tabnine to your IDE (free)

How to use
hasDocument
method
in
org.springframework.extensions.webscripts.ClassPathStore

Best Java code snippets using org.springframework.extensions.webscripts.ClassPathStore.hasDocument (Showing top 4 results out of 315)

origin: org.springframework.extensions.surf/spring-webscripts

/**
 * @see freemarker.cache.TemplateLoader#findTemplateSource(java.lang.String)
 */
public Object findTemplateSource(String name) throws IOException
{
  ClassPathTemplateSource source = null;
  if (hasDocument(name))
  {
    source = new ClassPathTemplateSource(name);
  }
  return source;
}
origin: org.alfresco.surf/spring-webscripts

/**
 * @see freemarker.cache.TemplateLoader#findTemplateSource(java.lang.String)
 */
public Object findTemplateSource(String name) throws IOException
{
  ClassPathTemplateSource source = null;
  if (hasDocument(name))
  {
    source = new ClassPathTemplateSource(name);
  }
  return source;
}
origin: deas/alfresco

/**
 * @see freemarker.cache.TemplateLoader#findTemplateSource(java.lang.String)
 */
public Object findTemplateSource(String name) throws IOException
{
  ClassPathTemplateSource source = null;
  if (hasDocument(name))
  {
    source = new ClassPathTemplateSource(name);
  }
  return source;
}
origin: deas/alfresco

@Test
public void testHasDocument() throws Exception
{
  boolean b1 = getClassPathStore().hasDocument("file7.txt");
  assertEquals(false, b1);
  
  boolean b2 = getClassPathStore().hasDocument("file1.txt");
  assertEquals(true, b2);
}
  
org.springframework.extensions.webscriptsClassPathStorehasDocument

Popular methods of ClassPathStore

  • getDocumentPaths
  • createPath
    Helper method for creating fully qualified paths
  • extractJarFileURL
    Extract the URL for the actual jar file from the given URL (which may point to a resource in a jar f
  • getBasePath
  • getDocumentResource
    Gets a resource for a document path. The resource will either live in the class path as a class file
  • getDocumentResources
    Gets resources that match a given location pattern. A resource in the returned array can live in the
  • isJarURL
    Determine whether the given URL points to a resource in a jar file, that is, has protocol "jar", "zi
  • lastModified
  • matchDocumentPaths
    Matches the given path to the full class path that is comprised of class files and resources located
  • toDocumentPath
    Converts a resource path back to a document path. A document path is relative to the base path of th
  • toResourcePath
    Converts a document path to a resource path. A document path is relative to the base path of the sto
  • createDocument
  • toResourcePath,
  • createDocument,
  • getAllDocumentPaths,
  • getDescriptionDocumentPaths,
  • getDocument,
  • getScriptLoader,
  • getTemplateLoader,
  • init,
  • removeDocument

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • findViewById (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Top 12 Jupyter Notebook extensions
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