Class Response


  • public class Response
    extends Object
    This Response class represents a response. The most important information in this Response object is the content of this response. The content in this Response object can be an arbitrary String. This makes it possible that high level services and applications can define their own response XML DTDs and then embed the corresponding XML document into this Response object as its content.
    See Also:
    ResponseSet
    • Constructor Detail

      • Response

        public Response​(String content)
        Constructs an instance of Response class with the content of the Response. The DTD ID needs to be set explicitly using the corresponding setter as it is optional for the response.
        Parameters:
        content - The content of this Response.
    • Method Detail

      • getDtdID

        public String getDtdID()
        Gets the ID of the DTD for the content of the Response
        Returns:
        The ID of the DTD for the content of the Response.
      • getContent

        public String getContent()
        Gets the content of the Response.
        Returns:
        The content of the Response.
      • setDtdID

        public void setDtdID​(String id)
        Sets the ID of the DTD for the content of the Response
        Parameters:
        id - The ID of the DTD for the content of the Response.
      • setContent

        public void setContent​(String content)
        Sets the content of the Response.
        Parameters:
        content - The content of the Response in String format.