Class EventResponseMessage


  • public final class EventResponseMessage
    extends Object
    The event response message received from the service URI.
    • Constructor Detail

      • EventResponseMessage

        public EventResponseMessage()
    • Method Detail

      • content

        public String content()
        Get the content property: The content of the event response message.
        Returns:
        the content value.
      • withContent

        public EventResponseMessage withContent​(String content)
        Set the content property: The content of the event response message.
        Parameters:
        content - the content value to set.
        Returns:
        the EventResponseMessage object itself.
      • headers

        public Map<String,​String> headers()
        Get the headers property: The headers of the event response message.
        Returns:
        the headers value.
      • withHeaders

        public EventResponseMessage withHeaders​(Map<String,​String> headers)
        Set the headers property: The headers of the event response message.
        Parameters:
        headers - the headers value to set.
        Returns:
        the EventResponseMessage object itself.
      • reasonPhrase

        public String reasonPhrase()
        Get the reasonPhrase property: The reason phrase of the event response message.
        Returns:
        the reasonPhrase value.
      • withReasonPhrase

        public EventResponseMessage withReasonPhrase​(String reasonPhrase)
        Set the reasonPhrase property: The reason phrase of the event response message.
        Parameters:
        reasonPhrase - the reasonPhrase value to set.
        Returns:
        the EventResponseMessage object itself.
      • statusCode

        public String statusCode()
        Get the statusCode property: The status code of the event response message.
        Returns:
        the statusCode value.
      • withStatusCode

        public EventResponseMessage withStatusCode​(String statusCode)
        Set the statusCode property: The status code of the event response message.
        Parameters:
        statusCode - the statusCode value to set.
        Returns:
        the EventResponseMessage object itself.
      • version

        public String version()
        Get the version property: The HTTP message version.
        Returns:
        the version value.
      • withVersion

        public EventResponseMessage withVersion​(String version)
        Set the version property: The HTTP message version.
        Parameters:
        version - the version value to set.
        Returns:
        the EventResponseMessage object itself.
      • validate

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