public class NodeReqResponse
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
hostName
The host name.
|
private static org.slf4j.Logger |
logger
The logger.
|
private java.util.Map<java.lang.String,java.lang.String> |
requestParameters
The request parameters.
|
private ResponseOnSingleTask |
singleTaskResponse
The single task response.
|
Constructor and Description |
---|
NodeReqResponse(java.lang.String hostName)
Instantiates a new node req response.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHostName()
Gets the host name.
|
java.util.Map<java.lang.String,java.lang.String> |
getRequestParameters()
Gets the request parameters.
|
ResponseOnSingleTask |
getSingleTaskResponse()
Gets the single task response.
|
static java.lang.String |
replaceStrByMap(java.util.Map<java.lang.String,java.lang.String> requestParameters,
java.lang.String sourceContent)
20130507: auto replace part.
|
void |
setCustomReqestContent(java.lang.String requestVarName,
java.lang.String requestVarContent)
Sets the custom reqest content.
|
void |
setDefaultEmptyReqestContent()
Sets the default empty reqest content.
|
void |
setDefaultReqestContent(java.lang.String requestFullContent)
Sets the default reqest content.
|
void |
setHostName(java.lang.String hostName)
Sets the host name.
|
void |
setSingleTaskResponse(ResponseOnSingleTask singleTaskResponse)
Sets the single task response.
|
java.lang.String |
toString() |
private static org.slf4j.Logger logger
private final java.util.Map<java.lang.String,java.lang.String> requestParameters
private java.lang.String hostName
private ResponseOnSingleTask singleTaskResponse
public NodeReqResponse(java.lang.String hostName)
hostName
- the host namepublic java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String replaceStrByMap(java.util.Map<java.lang.String,java.lang.String> requestParameters, java.lang.String sourceContent)
requestParameters
- the request parameterssourceContent
- the source contentpublic void setDefaultReqestContent(java.lang.String requestFullContent)
requestFullContent
- the new default reqest contentpublic void setDefaultEmptyReqestContent()
public void setCustomReqestContent(java.lang.String requestVarName, java.lang.String requestVarContent)
requestVarName
- the request var namerequestVarContent
- the request var contentpublic java.util.Map<java.lang.String,java.lang.String> getRequestParameters()
public ResponseOnSingleTask getSingleTaskResponse()
public void setSingleTaskResponse(ResponseOnSingleTask singleTaskResponse)
singleTaskResponse
- the new single task responsepublic java.lang.String getHostName()
public void setHostName(java.lang.String hostName)
hostName
- the new host name