Enum Class RequestBodyTypes

java.lang.Object
java.lang.Enum<RequestBodyTypes>
io.virtualan.requestbody.RequestBodyTypes
All Implemented Interfaces:
Serializable, Comparable<RequestBodyTypes>, Constable

public enum RequestBodyTypes extends Enum<RequestBodyTypes>
This is Virtual Service request body types supported.
Author:
Elan Thangamani
  • Enum Constant Details

  • Method Details

    • values

      public static RequestBodyTypes[] 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 RequestBodyTypes 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
    • getType

      public String getType()
    • getValidMockRequestBody

      public abstract Object getValidMockRequestBody(RequestBody requestBody) throws IOException
      Throws:
      IOException
    • getDefaultMessageBody

      public abstract String getDefaultMessageBody(RequestBody requestBody) throws IOException
      Throws:
      IOException
    • compareRequestBody

      public abstract boolean compareRequestBody(RequestBody requestBody) throws IOException, javax.xml.bind.JAXBException
      Throws:
      IOException
      javax.xml.bind.JAXBException
    • fromString

      public static RequestBodyTypes fromString(String requestBodyType)