|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.checkout.CheckoutResponse
public class CheckoutResponse
The default implementation of the CheckoutResponse interface.
Constructor Summary | |
---|---|
CheckoutResponse()
|
|
CheckoutResponse(java.io.InputStream response)
A constructor which takes the response as an InputStream. |
|
CheckoutResponse(java.lang.String response)
A constructor which takes the response String. |
Method Summary | |
---|---|
java.lang.String |
getErrorMessage()
If Google responded with an error (isGood = false) then this property will contain the human-readable error message. |
java.lang.String |
getRedirectUrl()
If Google indicated a redirect URL in the response, this property will contain the URL string. |
java.lang.String |
getSerialNumber()
Gets the serial number. |
java.lang.String |
getXml()
Return the XML response String. |
java.lang.String |
getXmlPretty()
Return the nicely formatted XML response String. |
boolean |
isValidRequest()
Gets a value indicating whether Google returned an error code or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CheckoutResponse() throws CheckoutException
CheckoutException
public CheckoutResponse(java.lang.String response) throws CheckoutException
response
- The response string
CheckoutException
public CheckoutResponse(java.io.InputStream response) throws CheckoutException
response
- The response as an InputStream
CheckoutException
Method Detail |
---|
public boolean isValidRequest()
public java.lang.String getSerialNumber()
public java.lang.String getErrorMessage()
public java.lang.String getRedirectUrl()
public java.lang.String getXml()
public java.lang.String getXmlPretty()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |