Class BASE1Header
java.lang.Object
org.jpos.iso.header.BaseHeader
org.jpos.iso.header.BASE1Header
- All Implemented Interfaces:
Serializable, Cloneable, ISOHeader, Loggeable
- See Also:
-
Field Summary
FieldsFields inherited from class BaseHeader
header -
Constructor Summary
ConstructorsConstructorDescriptionBASE1Header(byte[] header) BASE1Header(String source, String destination) BASE1Header(String source, String destination, int format) -
Method Summary
Modifier and TypeMethodDescriptionReturn the destination address in this ISOHeader.intintgetHLen()Gets the BASE 1 Reject Code.Return the source address in this ISOHeader.booleanvoidsetBatchNumber(int i) voidsetDestination(String dest) Set the Destination address in this ISOHeader.voidsetFlags(int i) voidsetFormat(int format) voidsetHFormat(int hformat) voidsetLen(int len) voidsetRtCtl(int i) voidSet the Source address in this ISOHeader.voidsetStatus(int i) voidSwap the source and destination addresses in this ISOHeader (if they exist).Methods inherited from class BaseHeader
clone, dump, getLength, isAsciiEncoding, pack, setAsciiEncoding, unpack
-
Field Details
-
LENGTH
- See Also:
-
-
Constructor Details
-
BASE1Header
public BASE1Header() -
BASE1Header
-
BASE1Header
-
BASE1Header
-
-
Method Details
-
getHLen
-
setHFormat
-
getFormat
-
setRtCtl
-
setFlags
-
setStatus
-
setBatchNumber
-
setFormat
-
setLen
-
setDestination
Description copied from interface:ISOHeaderSet the Destination address in this ISOHeader.- Specified by:
setDestinationin interfaceISOHeader- Overrides:
setDestinationin classBaseHeader
-
setSource
-
getSource
-
getDestination
Description copied from interface:ISOHeaderReturn the destination address in this ISOHeader. returns null if there is no destination address- Specified by:
getDestinationin interfaceISOHeader- Overrides:
getDestinationin classBaseHeader
-
swapDirection
Description copied from interface:ISOHeaderSwap the source and destination addresses in this ISOHeader (if they exist).- Specified by:
swapDirectionin interfaceISOHeader- Overrides:
swapDirectionin classBaseHeader
-
isRejected
-
getRejectCode
Gets the BASE 1 Reject Code.- Returns:
- If the message is a reject return the Reject Code Otherwise return ""
-
formatHeader
-