Package org.jpos.iso

Class FSDISOMsg

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, Loggeable

    public class FSDISOMsg
    extends ISOMsg
    implements java.lang.Cloneable
    See Also:
    Serialized Form
    • Method Detail

      • getMTI

        public java.lang.String getMTI()
        Overrides:
        getMTI in class ISOMsg
        Returns:
        current MTI
      • getString

        public java.lang.String getString​(int fldno)
        Description copied from class: ISOMsg
        Return the String value associated with the given ISOField number
        Overrides:
        getString in class ISOMsg
        Parameters:
        fldno - the Field Number
        Returns:
        field's String value
      • getString

        public java.lang.String getString​(java.lang.String fld)
        Description copied from class: ISOMsg
        Return the String value associated with the given field path
        Overrides:
        getString in class ISOMsg
        Parameters:
        fld - field path
        Returns:
        field's String value (may be null)
      • hasField

        public boolean hasField​(int fldno)
        Description copied from class: ISOMsg
        Check if a given field is present
        Overrides:
        hasField in class ISOMsg
        Parameters:
        fldno - the Field Number
        Returns:
        boolean indicating the existence of the field
      • hasField

        public boolean hasField​(java.lang.String fld)
        Description copied from class: ISOMsg
        Check if a field indicated by a fpath is present
        Overrides:
        hasField in class ISOMsg
        Parameters:
        fld - dot-separated field path (i.e. 63.2)
        Returns:
        true if field present
      • dump

        public void dump​(java.io.PrintStream p,
                         java.lang.String indent)
        Description copied from class: ISOMsg
        dump the message to a PrintStream. The output is sorta XML, intended to be easily parsed.
        Each component is responsible for its own dump function, ISOMsg just calls dump on every valid field.
        Specified by:
        dump in interface Loggeable
        Overrides:
        dump in class ISOMsg
        Parameters:
        p - - print stream
        indent - - optional indent string
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Overrides:
        writeExternal in class ISOMsg
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Overrides:
        readExternal in class ISOMsg
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • clone

        public java.lang.Object clone​(int[] fields)
        Description copied from class: ISOMsg
        Partially clone an ISOMsg
        Overrides:
        clone in class ISOMsg
        Parameters:
        fields - int array of fields to go
        Returns:
        new ISOMsg instance
      • merge

        public void merge​(ISOMsg m)
        Description copied from class: ISOMsg
        add all fields present on received parameter to this ISOMsg
        please note that received fields take precedence over existing ones (simplifying card agent message creation and template handling)
        Overrides:
        merge in class ISOMsg
        Parameters:
        m - ISOMsg to merge
      • setResponseMTI

        public void setResponseMTI()
        Description copied from class: ISOMsg
        sets an appropriate response MTI. i.e. 0100 becomes 0110
        i.e. 0201 becomes 0210
        i.e. 1201 becomes 1210
        Overrides:
        setResponseMTI in class ISOMsg
      • set

        public void set​(java.lang.String name,
                        java.lang.String value)
        Description copied from class: ISOMsg
        Creates an ISOField associated with fldno within this ISOMsg.
        Overrides:
        set in class ISOMsg
        Parameters:
        name - dot-separated field path (i.e. 63.2)
        value - field value