webfunds.sox
Class DepositReply
java.lang.Object
|
+--webfunds.sox.Encodable
|
+--webfunds.sox.Reply
|
+--webfunds.sox.DepositReply
- public class DepositReply
- extends Reply
A deposit reply.
This might want to change to being an extension of MailReply
in the next change.
- See Also:
- Serialized Form
|
Method Summary |
protected static void |
cycle()
|
void |
decode(java.io.InputStream is)
Update this reply object with the data read from
an inputstream, where the data on the stream was previously
written using the encode() method of a reply object. |
void |
encode(java.io.OutputStream os)
Encode a reply to an output stream, suitable for
using with ReplyPacket to send remote servers
(which use the decode() method to re-construct the object). |
boolean |
equals(java.lang.Object obj)
|
static DepositReply |
example()
|
static DepositReply |
example(DepositRequest req)
|
MailItem[] |
getMailItems()
This is the main interface. |
Receipt |
getReceipt()
|
protected static void |
input()
|
static void |
main(java.lang.String[] args)
|
protected static void |
output()
|
protected static void |
readWrite()
|
java.lang.String |
toString()
Convert this object to a human readable string |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
receipt_data
protected byte[] receipt_data
mails
protected MailItem[] mails
DepositReply
public DepositReply(DepositRequest request,
MailItem mail)
- Create a Good DepositReply with a MailItem
DepositReply
public DepositReply(DepositRequest request,
MailItem[] mails)
DepositReply
public DepositReply(DepositRequest request,
int errNum)
- Create a Bad DepositReply - required by DepositRequest
DepositReply
public DepositReply(DepositRequest request,
byte[] data)
throws SOXPacketException
DepositReply
public DepositReply(DepositRequest request,
java.io.InputStream is)
throws SOXPacketException
getReceipt
public Receipt getReceipt()
getMailItems
public MailItem[] getMailItems()
- This is the main interface.
Recover the mail yourself, please!
encode
public void encode(java.io.OutputStream os)
throws java.io.IOException
- Description copied from class: Reply
- Encode a reply to an output stream, suitable for
using with ReplyPacket to send remote servers
(which use the decode() method to re-construct the object).
This method is usually used by subclasses to decode
the request-id field.
- Overrides:
- encode in class Reply
- Tags copied from class: Reply
- Parameters:
os - the stream on which to send the output- Returns:
- byte[] the reply in encoded form
decode
public void decode(java.io.InputStream is)
throws SOXPacketException
- Description copied from class: Reply
- Update this reply object with the data read from
an inputstream, where the data on the stream was previously
written using the encode() method of a reply object.
This method is usually used by subclasses to decode
the request-id field.
- Overrides:
- decode in class Reply
- Tags copied from class: Reply
- Parameters:
is - the stream from which to read the reply
toString
public java.lang.String toString()
- Description copied from class: Reply
- Convert this object to a human readable string
- Overrides:
- toString in class Reply
equals
public boolean equals(java.lang.Object obj)
- Overrides:
- equals in class Reply
example
public static DepositReply example(DepositRequest req)
example
public static DepositReply example()
main
public static void main(java.lang.String[] args)
cycle
protected static void cycle()
throws java.lang.Exception
output
protected static void output()
throws java.lang.Exception
readWrite
protected static void readWrite()
throws java.lang.Exception
input
protected static void input()
throws java.lang.Exception