Class ThemeProvider.Aide

  • Enclosing interface:
    ThemeProvider

    public static class ThemeProvider.Aide
    extends java.lang.Object
    Utilities to help the implementation of ThemeProvider to manipulate the URI such that it is able to use a different URI for a different theme.
    • Constructor Summary

      Constructors 
      Constructor Description
      Aide()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String[] decodeURI​(java.lang.String uri)
      Decodes the injected URI and returns a two-element array.
      static java.lang.String injectURI​(java.lang.String uri, java.lang.String fragment)
      Injects a fragment into the specified URI, and returns the injected URI.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Aide

        public Aide()
    • Method Detail

      • injectURI

        public static java.lang.String injectURI​(java.lang.String uri,
                                                 java.lang.String fragment)
        Injects a fragment into the specified URI, and returns the injected URI.
        Parameters:
        uri - the URI to be modified
        fragment - the fragment that will be injected uri.
      • decodeURI

        public static java.lang.String[] decodeURI​(java.lang.String uri)
        Decodes the injected URI and returns a two-element array. The first element is the original URI, while the second element is the fragment.

        Notice that it returns null if no injection is found.