public class ResponseMessage extends Object implements com.aspose.html.internal.ms.System.IDisposable
Represents a response message.
IDisposable
Constructor and Description |
---|
ResponseMessage(int status)
Initializes a new instance of the
ResponseMessage class. |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
Content |
getContent()
Gets or sets the response content.
|
com.aspose.html.internal.ms.System.Net.CookieCollection |
getCookies()
Gets or sets the cookie collection.
|
ResponseHeaders |
getHeaders()
Gets the headers.
|
RequestMessage |
getRequest()
Gets or sets the associated request.
|
int |
getStatusCode()
Gets or sets the status code.
|
boolean |
isSuccess()
Gets a value indicating whether this message is success.
|
void |
setContent(Content value)
Gets or sets the response content.
|
void |
setCookies(com.aspose.html.internal.ms.System.Net.CookieCollection value)
Gets or sets the cookie collection.
|
void |
setRequest(RequestMessage value)
Gets or sets the associated request.
|
void |
setStatusCode(int value)
Gets or sets the status code.
|
public ResponseMessage(int status)
Initializes a new instance of the ResponseMessage
class.
status
- The status.public ResponseHeaders getHeaders()
Gets the headers.
Value: The headers.public Content getContent()
Gets or sets the response content.
Value: The body.public void setContent(Content value)
Gets or sets the response content.
Value: The body.public com.aspose.html.internal.ms.System.Net.CookieCollection getCookies()
Gets or sets the cookie collection.
public void setCookies(com.aspose.html.internal.ms.System.Net.CookieCollection value)
Gets or sets the cookie collection.
public RequestMessage getRequest()
Gets or sets the associated request.
Value: The request.public void setRequest(RequestMessage value)
Gets or sets the associated request.
Value: The request.public int getStatusCode()
Gets or sets the status code.
Value: The status code.public void setStatusCode(int value)
Gets or sets the status code.
Value: The status code.public boolean isSuccess()
Gets a value indicating whether this message is success.
Value:true
if this instance is success; otherwise, false
.public void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
dispose
in interface com.aspose.html.internal.ms.System.IDisposable