Class Constants

java.lang.Object
io.github.smootheez.Constants

public final class Constants extends Object
Holds application-wide constant values used throughout the Mod Publisher service. This class is non-instantiable and only provides static constant fields.
  • Field Details

    • USER_AGENT

      public static final String USER_AGENT
      The User-Agent header sent with HTTP requests made by the publisher. Format: <Author>/<Application>/<Version>.
      See Also:
    • MEDIA_TYPE_JSON

      public static final String MEDIA_TYPE_JSON
      The JSON media type used for request and response bodies.
      See Also:
    • MEDIA_TYPE_JAR

      public static final String MEDIA_TYPE_JAR
      The JAR media type used when uploading mod artifacts.
      See Also:
    • VALID_RELEASE_TYPE

      public static final Set<String> VALID_RELEASE_TYPE
      Valid release channels supported for uploads (e.g., release, beta, alpha).
    • TIMEOUT

      public static final Duration TIMEOUT
      Default request timeout duration for network operations.
    • DATA

      public static final String DATA
      JSON key for root-level file data.
      See Also:
    • METADATA

      public static final String METADATA
      JSON key for metadata blocks associated with uploads.
      See Also: