Enum Class ServingType

java.lang.Object
java.lang.Enum<ServingType>
com.atlassian.plugin.webresource.impl.support.http.ServingType
All Implemented Interfaces:
Serializable, Comparable<ServingType>, Constable

public enum ServingType extends Enum<ServingType>
Represents the various unique modes of serving content at a URL.

These should have a 1:1 correspondence to the URL paths the WRM responds to, with the exception of source maps, which re-use the same serving type as their base URL.

  • Enum Constant Details

    • UNKNOWN

      public static final ServingType UNKNOWN
      The "nothing was set" content type.
    • RESOURCES_SINGLE

      public static final ServingType RESOURCES_SINGLE
      Serve a single tangible Resource at this URL. The resource lives in the WebResource referenced in this request.
    • SOURCES_SINGLE

      public static final ServingType SOURCES_SINGLE
      Serve the raw, unmodified source for a single tangible Resource at this URL. The resource lives in the WebResource referenced in this request.
    • BATCH

      public static final ServingType BATCH
      Serve an ordered collection of Resource content from a single Bundle at this URL.
    • BATCH_RESOURCE

      public static final ServingType BATCH_RESOURCE
      Serve the content of a single tangible Resource at this URL. The resource lives in the single Bundle referenced in this request.
    • CONTEXTBATCH

      public static final ServingType CONTEXTBATCH
      Serve an ordered collection of Resource content at this URL, for every Bundle included by at least one of the Context referenced in this request.
    • CONTEXTBATCH_RESOURCE

      public static final ServingType CONTEXTBATCH_RESOURCE
      Serve a single tangible Resource at this URL. The resource lives in one of the Bundles included by at least one of the Context referenced in this request.
  • Method Details

    • values

      public static ServingType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ServingType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null