Class Request


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

      • Request

        public Request​(String content)
        Contructs an instance of Request class with the content of the Request. The session ID and DTD ID need to be set explicitly using corresponding setters as those are optional for the request.
        Parameters:
        content - The content of this Request.
    • Method Detail

      • setDtdID

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

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

        public void setSessionID​(String id)
        Sets the session ID of the request.
        Parameters:
        id - A string representing the session ID of the request.
      • getSessionID

        public String getSessionID()
        Gets the session ID of the request.
        Returns:
        The session ID of the request.
      • getContent

        public String getContent()
        Gets the content of the Request.
        Returns:
        The content of the Request.
      • setContent

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