Class BackendProxyContract


  • public final class BackendProxyContract
    extends Object
    Details of the Backend WebProxy Server to use in the Request to Backend.
    • Constructor Detail

      • BackendProxyContract

        public BackendProxyContract()
    • Method Detail

      • url

        public String url()
        Get the url property: WebProxy Server AbsoluteUri property which includes the entire URI stored in the Uri instance, including all fragments and query strings.
        Returns:
        the url value.
      • withUrl

        public BackendProxyContract withUrl​(String url)
        Set the url property: WebProxy Server AbsoluteUri property which includes the entire URI stored in the Uri instance, including all fragments and query strings.
        Parameters:
        url - the url value to set.
        Returns:
        the BackendProxyContract object itself.
      • username

        public String username()
        Get the username property: Username to connect to the WebProxy server.
        Returns:
        the username value.
      • withUsername

        public BackendProxyContract withUsername​(String username)
        Set the username property: Username to connect to the WebProxy server.
        Parameters:
        username - the username value to set.
        Returns:
        the BackendProxyContract object itself.
      • password

        public String password()
        Get the password property: Password to connect to the WebProxy Server.
        Returns:
        the password value.
      • withPassword

        public BackendProxyContract withPassword​(String password)
        Set the password property: Password to connect to the WebProxy Server.
        Parameters:
        password - the password value to set.
        Returns:
        the BackendProxyContract object itself.
      • validate

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