Class FacetURL


  • public class FacetURL
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String urlFixed
      The URL when it is converted into a form that is URI friendly this includes - converting \\foo\a into smb://foo/a - adding http:// if not host is given - Ensuring the URL end with a slash (for consistency) The casing is maintained in this.
      private java.lang.String urlForComparison
      This is the same as the urlFixed however the casing is lowercased in any part of the URI that is case insensitive.
    • Constructor Summary

      Constructors 
      Constructor Description
      FacetURL​(java.lang.String url)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      (package private) static java.lang.String convertWindowsURLToSmb​(java.lang.String url)  
      (package private) static java.lang.String ensurePathEndsWithSlash​(java.lang.String url)  
      (package private) static java.lang.String ensureUrlhasScheme​(java.lang.String url)  
      boolean equals​(java.lang.Object o)  
      java.lang.String getUrlFixed()
      The URL when it is converted into a form that is URI friendly this includes - converting \\foo\a into smb://foo/a - adding http:// if not host is given - Ensuring the URL end with a slash (for consistency) The casing is maintained in this.
      java.lang.String getUrlForComparison()
      This is the same as the urlFixed however the casing is lowercased in any part of the URI that is case insensitive.
      int hashCode()  
      (package private) static java.lang.String prepUrlForComparison​(java.lang.String url)
      May only change the case of letters, if it does otherwise getSelectedItems() will need to change
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • urlFixed

        private java.lang.String urlFixed
        The URL when it is converted into a form that is URI friendly this includes - converting \\foo\a into smb://foo/a - adding http:// if not host is given - Ensuring the URL end with a slash (for consistency) The casing is maintained in this.
      • urlForComparison

        private java.lang.String urlForComparison
        This is the same as the urlFixed however the casing is lowercased in any part of the URI that is case insensitive. If this does anything other than lowercase the URI users of this class will need to be updated to ensure they don't expect the urlFixed and this to be the same length.
    • Constructor Detail

      • FacetURL

        public FacetURL​(java.lang.String url)
    • Method Detail

      • convertWindowsURLToSmb

        static java.lang.String convertWindowsURLToSmb​(java.lang.String url)
      • ensureUrlhasScheme

        static java.lang.String ensureUrlhasScheme​(java.lang.String url)
      • ensurePathEndsWithSlash

        static java.lang.String ensurePathEndsWithSlash​(java.lang.String url)
      • prepUrlForComparison

        static java.lang.String prepUrlForComparison​(java.lang.String url)
        May only change the case of letters, if it does otherwise getSelectedItems() will need to change
        Parameters:
        url - must have the scheme
        Returns:
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getUrlFixed

        public java.lang.String getUrlFixed()
        The URL when it is converted into a form that is URI friendly this includes - converting \\foo\a into smb://foo/a - adding http:// if not host is given - Ensuring the URL end with a slash (for consistency) The casing is maintained in this.
      • getUrlForComparison

        public java.lang.String getUrlForComparison()
        This is the same as the urlFixed however the casing is lowercased in any part of the URI that is case insensitive. If this does anything other than lowercase the URI users of this class will need to be updated to ensure they don't expect the urlFixed and this to be the same length.