Enum Class WebTarget

java.lang.Object
java.lang.Enum<WebTarget>
io.microsphere.spring.web.util.WebTarget
All Implemented Interfaces:
Serializable, Comparable<WebTarget>, Constable

public enum WebTarget extends Enum<WebTarget>
The target of the web.
Since:
1.0.0
Author:
Mercy
See Also:
  • ResponseBody
  • ResponseCookie
  • Enum Constant Details

    • RESPONSE_BODY

      public static final WebTarget RESPONSE_BODY
      The body of response
    • RESPONSE_HEADER

      public static final WebTarget RESPONSE_HEADER
  • Method Details

    • values

      public static WebTarget[] 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 WebTarget 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
    • writeValue

      public abstract void writeValue(org.springframework.web.context.request.NativeWebRequest request, String name, String value)
      Write value to the target
      Parameters:
      request - the NativeWebRequest
      name - the name
      value - the value