public class ServerResponse
extends java.lang.Object
| Constructor and Description |
|---|
ServerResponse() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getContent()
Getter for the field
content. |
java.lang.String |
getContentAsString()
Getter for the field
contentAsString. |
java.lang.String |
getEncoding()
Getter for the field
encoding. |
java.lang.String |
getMediaType()
Getter for the field
mediaType. |
int |
getStatus()
Getter for the field
status. |
void |
setContent(byte[] content)
Setter for the field
content. |
void |
setContentAsString(java.lang.String contentAsString)
Setter for the field
contentAsString. |
void |
setEncoding(java.lang.String encoding)
Setter for the field
encoding. |
void |
setMediaType(java.lang.String mediaType)
Setter for the field
mediaType. |
void |
setStatus(int status)
Setter for the field
status. |
public java.lang.String getMediaType()
Getter for the field mediaType.
String object.public void setMediaType(java.lang.String mediaType)
Setter for the field mediaType.
mediaType - a String object.public java.lang.String getEncoding()
Getter for the field encoding.
String object.public void setEncoding(java.lang.String encoding)
Setter for the field encoding.
encoding - a String object.public java.lang.String getContentAsString()
Getter for the field contentAsString.
String object.public void setContentAsString(java.lang.String contentAsString)
Setter for the field contentAsString.
contentAsString - a String object.public byte[] getContent()
Getter for the field content.
byte objects.public void setContent(byte[] content)
Setter for the field content.
content - an array of byte objects.public int getStatus()
Getter for the field status.
public void setStatus(int status)
Setter for the field status.
status - a int.Copyright © 2022. All rights reserved.