Tabnine Logo
FileResource$3
Code IndexAdd Tabnine to your IDE (free)

How to use
FileResource$3
in
org.eclipse.jetty.util.resource

Best Java code snippets using org.eclipse.jetty.util.resource.FileResource$3 (Showing top 2 results out of 1,395)

origin: org.eclipse.jetty/jetty-util

public FileResource(File base, String childPath)
{
  String encoded = URIUtil.encodePath(childPath);
  _file = new File(base, childPath);
  // The encoded path should be a suffix of the resource (give or take a directory / )
  URI uri;
  try
  {
    if (base.isDirectory())
    {
      // treat all paths being added as relative
      uri=new URI(URIUtil.addEncodedPaths(base.toURI().toASCIIString(),encoded));
    }
    else
    {
      uri=new URI(base.toURI().toASCIIString()+encoded);
    }
  }
  catch (final URISyntaxException e)
  {
    throw new InvalidPathException(base.toString() + childPath, e.getMessage())
    {
      {
        initCause(e);
      }
    };
  }
  _uri=uri;
  _alias=checkFileAlias(_uri,_file);
}
origin: jenkinsci/winstone

public FileResource(File base, String childPath)
{
  String encoded = URIUtil.encodePath(childPath);
  _file = new File(base, childPath);
  // The encoded path should be a suffix of the resource (give or take a directory / )
  URI uri;
  try
  {
    if (base.isDirectory())
    {
      // treat all paths being added as relative
      uri=new URI(URIUtil.addEncodedPaths(base.toURI().toASCIIString(),encoded));
    }
    else
    {
      uri=new URI(base.toURI().toASCIIString()+encoded);
    }
  }
  catch (final URISyntaxException e)
  {
    throw new InvalidPathException(base.toString() + childPath, e.getMessage())
    {
      {
        initCause(e);
      }
    };
  }
  _uri=uri;
  _alias=checkFileAlias(_uri,_file);
}
org.eclipse.jetty.util.resourceFileResource$3

Most used methods

  • initCause

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. 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
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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