Package org.jpos.iso
Class FSDISOMsg
- java.lang.Object
-
- org.jpos.iso.ISOComponent
-
- org.jpos.iso.ISOMsg
-
- org.jpos.iso.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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
java.lang.Object
clone(int[] fields)
Partially clone an ISOMsgvoid
dump(java.io.PrintStream p, java.lang.String indent)
dump the message to a PrintStream.FSDMsg
getFSDMsg()
java.lang.String
getMTI()
java.lang.String
getString(int fldno)
Return the String value associated with the given ISOField numberjava.lang.String
getString(java.lang.String fld)
Return the String value associated with the given field pathboolean
hasField(int fldno)
Check if a given field is presentboolean
hasField(java.lang.String fld)
Check if a field indicated by a fpath is presentvoid
merge(ISOMsg m)
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)byte[]
pack()
pack the message with the current packagervoid
readExternal(java.io.ObjectInput in)
void
set(java.lang.String name, java.lang.String value)
Creates an ISOField associated with fldno within this ISOMsg.void
setResponseMTI()
sets an appropriate response MTI.int
unpack(byte[] b)
unpack a messagevoid
unpack(java.io.InputStream in)
void
writeExternal(java.io.ObjectOutput out)
-
Methods inherited from class org.jpos.iso.ISOMsg
clone, getBytes, getBytes, getChildren, getComponent, getComponent, getComposite, getDirection, getFieldNumber, getHeader, getISOHeader, getKey, getMaxField, getPackager, getSource, getTrailer, getValue, getValue, getValue, hasAny, hasAny, hasFields, hasFields, hasMTI, isAdministrative, isAuthorization, isChargeback, isFeeCollection, isFileAction, isFinancial, isIncoming, isInner, isNetworkManagement, isOutgoing, isReconciliation, isRequest, isResponse, isRetransmission, isReversal, move, readDirection, readHeader, readPackager, recalcBitMap, set, set, set, set, set, setDirection, setFieldNumber, setHeader, setHeader, setMTI, setPackager, setRetransmissionMTI, setSource, setTrailer, setValue, toString, unset, unset, unset, unset, writeDirection, writeHeader, writePackager
-
Methods inherited from class org.jpos.iso.ISOComponent
getBytes, pack
-
-
-
-
Method Detail
-
pack
public byte[] pack() throws ISOException
Description copied from class:ISOMsg
pack the message with the current packager- Overrides:
pack
in classISOMsg
- Returns:
- the packed message
- Throws:
ISOException
-
unpack
public int unpack(byte[] b) throws ISOException
Description copied from class:ISOMsg
unpack a message- Overrides:
unpack
in classISOMsg
- Parameters:
b
- - raw message- Returns:
- consumed bytes
- Throws:
ISOException
-
unpack
public void unpack(java.io.InputStream in) throws java.io.IOException, ISOException
- Overrides:
unpack
in classISOMsg
- Throws:
java.io.IOException
ISOException
-
getString
public java.lang.String getString(int fldno)
Description copied from class:ISOMsg
Return the String value associated with the given ISOField number
-
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
-
hasField
public boolean hasField(int fldno)
Description copied from class:ISOMsg
Check if a given field is present
-
hasField
public boolean hasField(java.lang.String fld)
Description copied from class:ISOMsg
Check if a field indicated by a fpath is 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.
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Overrides:
writeExternal
in classISOMsg
- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
readExternal
in interfacejava.io.Externalizable
- Overrides:
readExternal
in classISOMsg
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
clone
public java.lang.Object clone(int[] fields)
Description copied from class:ISOMsg
Partially clone an ISOMsg
-
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)
-
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 classISOMsg
-
-