|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.authorize.Result<T>
net.authorize.xml.Result<T>
public class Result<T>
Templated wrapper container for passing back the result from the request gateway.
Field Summary | |
---|---|
static String |
ERROR
|
protected ArrayList<Message> |
messages
|
static String |
OK
|
protected String |
resultCode
|
Fields inherited from class net.authorize.Result |
---|
MessageDigestAlgorithm, target, transaction |
Constructor Summary | |
---|---|
protected |
Result()
|
Method Summary | ||
---|---|---|
static
|
createResult(T object,
BasicXmlDocument response)
|
|
protected static String |
getElementText(Element parent_el,
String element_name)
Local wrapper for getting element text from a parent. |
|
ArrayList<Message> |
getMessages()
|
|
String |
getResultCode()
Returns the result code. |
|
protected void |
importResponseMessages(Transaction txn)
Import the response messages into the result. |
|
boolean |
isError()
Returns true if the response is Error. |
|
boolean |
isOk()
Returns true if the response is Ok. |
|
void |
printMessages()
|
Methods inherited from class net.authorize.Result |
---|
getTarget, getTransaction, isAuthorizeNetResponse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String OK
public static final String ERROR
protected String resultCode
protected ArrayList<Message> messages
Constructor Detail |
---|
protected Result()
Method Detail |
---|
public static <T> Result<T> createResult(T object, BasicXmlDocument response)
public String getResultCode()
public ArrayList<Message> getMessages()
protected static String getElementText(Element parent_el, String element_name)
parent_el
- element_name
-
protected void importResponseMessages(Transaction txn)
txn
- transaction containing the response messages.public void printMessages()
public boolean isOk()
public boolean isError()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |