org.jpos.core
Class ThinResponse
java.lang.Object
org.jpos.core.ThinResponse
- All Implemented Interfaces:
- java.io.Serializable, CardTransactionResponse, Loggeable
public class ThinResponse
- extends java.lang.Object
- implements CardTransactionResponse, Loggeable
- Since:
- jPOS 1.1
Many Agents will provide custom CardTransactionResponse
implementations that may contain not serializable fields
or although serializables there are cases were there's no
need to increase message size with a big payload.
ThinResponse can be initialized from such an object
providing remote clients with information regarding
this particular CardTransactionResponse
(suitable for remote POS systems using a proxy to connect
to jPOS Agents)
- Version:
- $Id: ThinResponse.java 2854 2010-01-02 10:34:31Z apr $
- Author:
- apr@cs.com.uy
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
code
public java.lang.String code
message
public java.lang.String message
autNumber
public java.lang.String autNumber
authoritative
public boolean authoritative
canContinue
public boolean canContinue
approved
public boolean approved
ThinResponse
public ThinResponse(CardTransactionResponse c)
ThinResponse
public ThinResponse()
getImage
public byte[] getImage()
throws CardAgentException
- Description copied from interface:
CardTransactionResponse
- provides a [signed] [encripted] serialized image of a given
previously processed transaction
(suitable to be saved on persistent storage)
- Specified by:
getImage in interface CardTransactionResponse
- Returns:
- a serialized image of this transaction
- Throws:
CardAgentException
setAutCode
public void setAutCode(java.lang.String code)
getAutCode
public java.lang.String getAutCode()
- Specified by:
getAutCode in interface CardTransactionResponse
setMessage
public void setMessage(java.lang.String message)
getMessage
public java.lang.String getMessage()
- Specified by:
getMessage in interface CardTransactionResponse
setAutNumber
public void setAutNumber(java.lang.String autNumber)
getAutNumber
public java.lang.String getAutNumber()
- Specified by:
getAutNumber in interface CardTransactionResponse
setApproved
public void setApproved(boolean approved)
isApproved
public boolean isApproved()
- Specified by:
isApproved in interface CardTransactionResponse
setContinue
public void setContinue(boolean canContinue)
canContinue
public boolean canContinue()
- Specified by:
canContinue in interface CardTransactionResponse
setAuthoritative
public void setAuthoritative(boolean authoritative)
isAuthoritative
public boolean isAuthoritative()
- Specified by:
isAuthoritative in interface CardTransactionResponse
dump
public void dump(java.io.PrintStream p,
java.lang.String indent)
- Specified by:
dump in interface Loggeable
getBatchName
public java.lang.String getBatchName()
- Specified by:
getBatchName in interface CardTransactionResponse