Class GitLabAvatarCache

    • Field Detail

      • LOGGER

        public static final Logger LOGGER
        Our logger.
    • Constructor Detail

      • GitLabAvatarCache

        public GitLabAvatarCache()
        Constructor.
    • Method Detail

      • buildUrl

        public static String buildUrl​(String url,
                                      String size)
        Builds the URL for the cached avatar image of the required size.
        Parameters:
        url - the URL of the source avatar image.
        size - the size of the image.
        Returns:
        the URL of the cached image.
      • doDynamic

        public org.kohsuke.stapler.HttpResponse doDynamic​(org.kohsuke.stapler.StaplerRequest req,
                                                          @QueryParameter
                                                          String size)
        Serves the cached image.
        Parameters:
        req - the request.
        size - the requested size (defaults to 48x48 if unspecified).
        Returns:
        the response.