webfunds.sox
Class RegisterReply

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

public class RegisterReply
extends Reply

See Also:
Serialized Form

Field Summary
protected  AccountId accId
          The identifier returned by the register request
 
Fields inherited from class webfunds.sox.Reply
errorNumber, errorText, req_version, requestId, sub_version
 
Constructor Summary
RegisterReply(RegisterRequest request, AccountId id)
          Create a Register reply
RegisterReply(RegisterRequest request, byte[] data)
           
RegisterReply(RegisterRequest request, java.io.InputStream is)
           
RegisterReply(RegisterRequest request, int errNum)
          Create a Register reply
 
Method Summary
 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).
 AccountId getAccountId()
          Get the account identifier
 java.lang.String toString()
          Convert this object to a human readable string
 
Methods inherited from class webfunds.sox.Reply
addErrorText, equals, getErrorNumber, getErrorText, getRequestId
 
Methods inherited from class webfunds.sox.Encodable
decode, encode, main, 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

accId

protected AccountId accId
The identifier returned by the register request
Constructor Detail

RegisterReply

public RegisterReply(RegisterRequest request,
                     AccountId id)
Create a Register reply

RegisterReply

public RegisterReply(RegisterRequest request,
                     int errNum)
Create a Register reply

RegisterReply

public RegisterReply(RegisterRequest request,
                     byte[] data)
              throws SOXPacketException

RegisterReply

public RegisterReply(RegisterRequest request,
                     java.io.InputStream is)
              throws SOXPacketException
Method Detail

getAccountId

public AccountId getAccountId()
Get the account identifier

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