Tabnine Logo
HostFileNameParser$Authority.getPassword
Code IndexAdd Tabnine to your IDE (free)

How to use
getPassword
method
in
org.apache.commons.vfs2.provider.HostFileNameParser$Authority

Best Java code snippets using org.apache.commons.vfs2.provider.HostFileNameParser$Authority.getPassword (Showing top 6 results out of 315)

origin: org.wso2.org.apache.commons/commons-vfs2-sandbox

@Override
public FileName parseUri(final VfsComponentContext context, final FileName base, final String filename)
    throws FileSystemException {
  final StringBuilder name = new StringBuilder();
  // Extract the scheme and authority parts
  final Authority auth = extractToPath(filename, name);
  // extract domain
  String username = auth.getUserName();
  final String domain = extractDomain(username);
  if (domain != null) {
    username = username.substring(domain.length() + 1);
  }
  // Decode and adjust separators
  UriParser.canonicalizePath(name, 0, name.length(), this);
  UriParser.fixSeparators(name);
  // Extract the share
  final String share = UriParser.extractFirstElement(name);
  if (share == null || share.length() == 0) {
    throw new FileSystemException("vfs.provider.smb/missing-share-name.error", filename);
  }
  // Normalise the path. Do this after extracting the share name,
  // to deal with things like smb://hostname/share/..
  final FileType fileType = UriParser.normalisePath(name);
  final String path = name.toString();
  return new SmbFileName(auth.getScheme(), auth.getHostName(), auth.getPort(), username, auth.getPassword(),
      domain, share, path, fileType);
}
origin: org.apache.commons/commons-vfs2-sandbox

auth.getPort(),
username,
auth.getPassword(),
domain,
share,
origin: com.github.abashev/commons-vfs2

  @Override
  public FileName parseUri(final VfsComponentContext context, final FileName base, final String filename)
      throws FileSystemException {
    // FTP URI are generic URI (as per RFC 2396)
    final StringBuilder name = new StringBuilder();

    // Extract the scheme and authority parts
    final Authority auth = extractToPath(filename, name);

    // Extract the queryString
    final String queryString = UriParser.extractQueryString(name);

    // Decode and normalise the file name
    UriParser.canonicalizePath(name, 0, name.length(), this);
    UriParser.fixSeparators(name);
    final FileType fileType = UriParser.normalisePath(name);
    final String path = name.toString();

    return new URLFileName(auth.getScheme(), auth.getHostName(), auth.getPort(), getDefaultPort(),
        auth.getUserName(), auth.getPassword(), path, fileType, queryString);
  }
}
origin: apache/commons-vfs

  @Override
  public FileName parseUri(final VfsComponentContext context, final FileName base, final String filename)
      throws FileSystemException {
    // FTP URI are generic URI (as per RFC 2396)
    final StringBuilder name = new StringBuilder();

    // Extract the scheme and authority parts
    final Authority auth = extractToPath(filename, name);

    // Extract the queryString
    final String queryString = UriParser.extractQueryString(name);

    // Decode and normalise the file name
    UriParser.canonicalizePath(name, 0, name.length(), this);
    UriParser.fixSeparators(name);
    final FileType fileType = UriParser.normalisePath(name);
    final String path = name.toString();

    return new URLFileName(auth.getScheme(), auth.getHostName(), auth.getPort(), getDefaultPort(),
        auth.getUserName(), auth.getPassword(), path, fileType, queryString);
  }
}
origin: org.apache.commons/commons-vfs2

  @Override
  public FileName parseUri(final VfsComponentContext context, final FileName base, final String filename)
      throws FileSystemException {
    // FTP URI are generic URI (as per RFC 2396)
    final StringBuilder name = new StringBuilder();

    // Extract the scheme and authority parts
    final Authority auth = extractToPath(filename, name);

    // Extract the queryString
    final String queryString = UriParser.extractQueryString(name);

    // Decode and normalise the file name
    UriParser.canonicalizePath(name, 0, name.length(), this);
    UriParser.fixSeparators(name);
    final FileType fileType = UriParser.normalisePath(name);
    final String path = name.toString();

    return new URLFileName(auth.getScheme(), auth.getHostName(), auth.getPort(), getDefaultPort(),
        auth.getUserName(), auth.getPassword(), path, fileType, queryString);
  }
}
origin: apache/commons-vfs

  @Override
  public FileName parseUri(final VfsComponentContext context, final FileName base, final String filename)
      throws FileSystemException {
    // FTP URI are generic URI (as per RFC 2396)
    final StringBuilder name = new StringBuilder();

    // Extract the scheme and authority parts
    final Authority auth = extractToPath(filename, name);

    // Extract the queryString
    final String queryString = UriParser.extractQueryString(name);

    // Decode and normalise the file name
    UriParser.canonicalizePath(name, 0, name.length(), this);
    UriParser.fixSeparators(name);
    final FileType fileType = UriParser.normalisePath(name);
    final String path = name.toString();

    return new GenericURLFileName(auth.getScheme(), auth.getHostName(), auth.getPort(), getDefaultPort(),
        auth.getUserName(), auth.getPassword(), path, fileType, queryString);
  }
}
org.apache.commons.vfs2.providerHostFileNameParser$AuthoritygetPassword

Javadoc

Get the user password.

Popular methods of HostFileNameParser$Authority

  • getHostName
    Get the host name.
  • getPort
    Get the port.
  • getScheme
    Get the connection schema.
  • getUserName
    Get the user name.
  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top PhpStorm 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