webfunds.sox
Class MailReply

java.lang.Object
  |
  +--webfunds.sox.Encodable
        |
        +--webfunds.sox.Reply
              |
              +--webfunds.sox.MailReply

public class MailReply
extends Reply

See Also:
Serialized Form

Field Summary
protected  MailItem[] mails
           
protected  int next
           
 
Fields inherited from class webfunds.sox.Reply
errorNumber, errorText, req_version, requestId, sub_version
 
Constructor Summary
MailReply(Request request, byte[] data)
           
MailReply(Request request, byte[][] newMails)
           
MailReply(Request request, java.io.InputStream is)
           
MailReply(Request request, int errno)
           
MailReply(Request request, MailItem[] newMailItems)
           
 
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 MailReply example()
           
static MailReply example(MailRequest req)
           
 MailItem[] getMailItems()
           
 byte[][] getMails()
           
 byte[] getNext()
           
protected static void input()
           
static void main(java.lang.String[] args)
           
protected static void output()
           
protected static void readWrite()
           
 void resetMails()
           
 java.lang.String toString()
          Convert this object to a human readable string
 
Methods inherited from class webfunds.sox.Reply
addErrorText, getErrorNumber, getErrorText, getRequestId
 
Methods inherited from class webfunds.sox.Encodable
decode, encode, readByteArray, readCertificate, readProperties, readString, writeByteArray, writeCertificate, writeProperties, writeString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mails

protected MailItem[] mails

next

protected int next
Constructor Detail

MailReply

public MailReply(Request request,
                 byte[][] newMails)
          throws SOXPacketException

MailReply

public MailReply(Request request,
                 MailItem[] newMailItems)

MailReply

public MailReply(Request request,
                 int errno)

MailReply

public MailReply(Request request,
                 byte[] data)
          throws SOXPacketException

MailReply

public MailReply(Request request,
                 java.io.InputStream is)
          throws SOXPacketException
Method Detail

getMailItems

public MailItem[] getMailItems()

resetMails

public void resetMails()

getNext

public byte[] getNext()

getMails

public byte[][] getMails()

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 MailReply example(MailRequest req)

example

public static MailReply 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