it.eng.rdlab.soa3.pm.connector.beans
Class Status
java.lang.Object
it.eng.rdlab.soa3.pm.connector.beans.Status
public class Status
- extends Object
Bean used to communicate the result of a XACML based operation
- Author:
- Ciro Formisano (ENG)
|
Constructor Summary |
Status(int status,
int result)
|
|
Method Summary |
String |
getInfo()
A string representation of the result of the operation (for example the XACML string of a policy) |
int |
getResult()
The result can be
0 = TRUE
1 = FALSE |
int |
getStatus()
the status can be:
0 = OK
1 = SERVER ERROR
2 = INTERNAL ERROR |
void |
setInfo(String info)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OPERATION_OK
public static final int OPERATION_OK
- See Also:
- Constant Field Values
SERVER_ERROR
public static final int SERVER_ERROR
- See Also:
- Constant Field Values
INTERNAL_ERROR
public static final int INTERNAL_ERROR
- See Also:
- Constant Field Values
RESULT_TRUE
public static final int RESULT_TRUE
- See Also:
- Constant Field Values
RESULT_FALSE
public static final int RESULT_FALSE
- See Also:
- Constant Field Values
Status
public Status(int status,
int result)
getStatus
public int getStatus()
- the status can be:
0 = OK
1 = SERVER ERROR
2 = INTERNAL ERROR
- Returns:
- the status
getResult
public int getResult()
- The result can be
0 = TRUE
1 = FALSE
- Returns:
- the result of the operation
getInfo
public String getInfo()
- A string representation of the result of the operation (for example the XACML string of a policy)
- Returns:
- the info string
setInfo
public void setInfo(String info)
Copyright © 2013. All Rights Reserved.