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

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

Best Java code snippets using org.eclipse.jetty.util.resource.FileResource$3.initCause (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$3initCause

Popular methods of FileResource$3

    Popular in Java

    • Finding current android device location
    • addToBackStack (FragmentTransaction)
    • onCreateOptionsMenu (Activity)
    • requestLocationUpdates (LocationManager)
    • ServerSocket (java.net)
      This class represents a server-side socket that waits for incoming client connections. A ServerSocke
    • URL (java.net)
      A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
    • ResultSet (java.sql)
      An interface for an object which represents a database table entry, returned as the result of the qu
    • Vector (java.util)
      Vector is an implementation of List, backed by an array and synchronized. All optional operations in
    • JFileChooser (javax.swing)
    • Table (org.hibernate.mapping)
      A relational table
    • CodeWhisperer alternatives
    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