Class RequestMatchPattern


  • public final class RequestMatchPattern
    extends Object
    The RequestMatchPattern model.
    • Constructor Detail

      • RequestMatchPattern

        public RequestMatchPattern()
    • Method Detail

      • path

        public String path()
        Get the path property: The path property.
        Returns:
        the path value.
      • withPath

        public RequestMatchPattern withPath​(String path)
        Set the path property: The path property.
        Parameters:
        path - the path value to set.
        Returns:
        the RequestMatchPattern object itself.
      • method

        public String method()
        Get the method property: The method property.
        Returns:
        the method value.
      • withMethod

        public RequestMatchPattern withMethod​(String method)
        Set the method property: The method property.
        Parameters:
        method - the method value to set.
        Returns:
        the RequestMatchPattern object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.