public class WsResultMeta
extends java.lang.Object
for all implementations of responses
Constructor and Description |
---|
WsResultMeta() |
Modifier and Type | Method and Description |
---|---|
void |
appendResultMessage(java.lang.String errorMessage)
append error message to list of error messages
|
void |
assignHttpStatusCode(int statusCode1)
status code for http lite / rest .
|
void |
assignResultCode(java.lang.String resultCode1)
code of the result for this subject
SUCCESS: means everything ok
SUBJECT_NOT_FOUND: cant find the subject
SUBJECT_DUPLICATE: found multiple subjects
|
void |
assignResultCode(WsResultCode wsResultCode1)
set result code which includes the success and http status code
|
void |
assignResultCode(WsResultCode wsResultCode1,
GrouperVersion clientVersion)
set result code which includes the success and http status code
|
void |
assignSuccess(java.lang.String success1)
T or F as to whether it was a successful assignment
|
void |
copyFields(WsResultMeta wsResultMeta)
copy fields from another result meta.
|
WsParam[] |
getParams() |
java.lang.String |
getResultCode()
code of the result for this subject
SUCCESS: means everything ok
SUBJECT_NOT_FOUND: cant find the subject
SUBJECT_DUPLICATE: found multiple subjects
|
java.lang.String |
getResultCode2()
reserved for future purpose
|
java.lang.String |
getResultMessage()
error message if there is an error
|
java.lang.String |
getSuccess()
T or F as to whether it was a successful assignment
|
int |
retrieveHttpStatusCode()
status code for http lite / rest .
|
void |
setParams(WsParam[] params1) |
void |
setResultCode(java.lang.String resultCode1) |
void |
setResultCode2(java.lang.String resultCode1) |
void |
setResultMessage(java.lang.String errorMessage)
error message if there is an error
|
void |
setSuccess(java.lang.String theSuccess)
T or F as to whether it was a successful assignment
|
java.lang.String |
toString()
make sure this is an explicit toString
|
public java.lang.String toString()
toString
in class java.lang.Object
public void copyFields(WsResultMeta wsResultMeta)
wsResultMeta
- public void appendResultMessage(java.lang.String errorMessage)
errorMessage
- public java.lang.String getResultCode()
code of the result for this subject SUCCESS: means everything ok SUBJECT_NOT_FOUND: cant find the subject SUBJECT_DUPLICATE: found multiple subjects
public java.lang.String getResultCode2()
reserved for future purpose
public java.lang.String getResultMessage()
public java.lang.String getSuccess()
public void setResultCode(java.lang.String resultCode1)
resultCode1
- the resultCode to setpublic void setResultCode2(java.lang.String resultCode1)
resultCode1
- the resultCode2 to setpublic void setSuccess(java.lang.String theSuccess)
theSuccess
- T | Fpublic void assignResultCode(java.lang.String resultCode1)
code of the result for this subject SUCCESS: means everything ok SUBJECT_NOT_FOUND: cant find the subject SUBJECT_DUPLICATE: found multiple subjects
resultCode1
- the resultCode to setpublic void assignResultCode(WsResultCode wsResultCode1)
wsResultCode1
- beangrouperWsVersion
- public void assignResultCode(WsResultCode wsResultCode1, GrouperVersion clientVersion)
wsResultCode1
- beanclientVersion
- public void setResultMessage(java.lang.String errorMessage)
errorMessage
- the errorMessage to setpublic void assignSuccess(java.lang.String success1)
success1
- the success to setpublic int retrieveHttpStatusCode()
public void assignHttpStatusCode(int statusCode1)
statusCode1
- the status code e.g. 200, if 500, then not inittedpublic WsParam[] getParams()
public void setParams(WsParam[] params1)
params1
- the params to set