Class P4Browser

    • Constructor Detail

      • P4Browser

        public P4Browser​(String url)
    • Method Detail

      • getUrl

        public final String getUrl()
      • getSafeUrl

        public URL getSafeUrl()
      • getDiffLink

        public abstract URL getDiffLink​(P4AffectedFile file,
                                        P4Ref change)
                                 throws Exception
        Determines the link to the diff between the version.
        Parameters:
        file - Perforce file spec
        change - changelist number
        Returns:
        null if the browser doesn't have any URL for diff.
        Throws:
        Exception - push up stack
      • getFileLink

        public abstract URL getFileLink​(P4AffectedFile file)
                                 throws Exception
        Determines the link to a single file under Perforce. This page should display all the past revisions of this file, etc.
        Parameters:
        file - Perforce file spec
        Returns:
        null if the browser doesn't have any suitable URL.
        Throws:
        Exception - push up stack
      • getJobLink

        public abstract URL getJobLink​(String job)
                                throws Exception
        Determines the link for associated Perforce jobs.
        Parameters:
        job - ID
        Returns:
        null if the browser doesn't have any suitable URL.
        Throws:
        Exception - push up stack
      • parseRevision

        protected int parseRevision​(P4AffectedFile file)