Class RequestPartDescriptor


public class RequestPartDescriptor extends IgnorableDescriptor<RequestPartDescriptor>
A descriptor of a request part.
Since:
1.1.0
Author:
Andy Wilkinson
See Also:
  • Constructor Details

    • RequestPartDescriptor

      protected RequestPartDescriptor(String name)
      Creates a new RequestPartDescriptor describing the request part with the given name.
      Parameters:
      name - the name of the request part
  • Method Details

    • optional

      public final RequestPartDescriptor optional()
      Marks the request part as optional.
      Returns:
      this
    • getName

      public final String getName()
      Returns the name of the request part being described by this descriptor.
      Returns:
      the name of the parameter
    • isOptional

      public final boolean isOptional()
      Returns true if the described request part is optional, otherwise false.
      Returns:
      true if the described request part is optional, otherwise false