All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class RandomArtServletextends HttpServlet
This servlet generates random art (visual identifier) images.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Pinned for serialized-form compatibility.
      See Also:
    • PARAM_IDENTICON_CODE_SHORT

      private static final String PARAM_IDENTICON_CODE_SHORT
      Request parameter naming the identicon code.
      See Also:
    • PARAM_IDENTICON_MODE_SHORT

      private static final String PARAM_IDENTICON_MODE_SHORT
      Request parameter naming the identicon mode.
      See Also:
    • DEFAULT_IDENTICON_EXPIRES_IN_MILLIS

      private static final long DEFAULT_IDENTICON_EXPIRES_IN_MILLIS
      How long a generated identicon may be cached - 24 hours.
      See Also:
    • version

      private int version
      Bumped when the rendered output format changes.
    • identiconExpiresInMillis

      private long identiconExpiresInMillis
      How long a rendered identicon stays in the cache.
  • Constructor Details

    • RandomArtServlet

      public RandomArtServlet()
      A fresh servlet on format version 1 with the default 24 hour identicon expiry; init() may raise the version when a newer format is requested.
  • Method Details