Package com.iplanet.services.comm.share
Class Response
- java.lang.Object
-
- com.iplanet.services.comm.share.Response
-
public class Response extends Object
ThisResponseclass 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContent()Gets the content of the Response.StringgetDtdID()Gets the ID of the DTD for the content of the ResponsevoidsetContent(String content)Sets the content of the Response.voidsetDtdID(String id)Sets the ID of the DTD for the content of the Response
-
-
-
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.
-
-