Suvodip Mukherjee | 29 Apr 20:38
Favicon

RE: How to get bitmap field values

Thanks Alejandro. I guess I can work with these.
Will work on this tomorrow, it's evening in UK now :)

________________________________

From: jpos-dev@... on behalf of Alejandro Revilla
Sent: Tue 4/29/2008 7:18 PM
To: jpos-dev@...
Subject: Re: [jpos-dev] How to get bitmap field values

>
> I need to check if the ISOMessage contains my pre-defined ISO fields and
> if there are any extra fields present.
>
I understand. You can't do that out-of-the-box, but you can get a hold
of the BitSet (using m.getValue(-1)) and then using ISOUtil.bitSet2byte
in order to get a byte[]. 

Then you can either compare at the byte[] array level or use
ISOUtil.hexString and deal with Strings.

In some of my systems I use a 'CheckField' transaction participant that
you can configure like this:

<participant class="org.jpos.jcard.CheckFields" logger="Q2" realm="CheckRequiredFields">
<property name="mandatory" value="PCODE,7,11,12,13,AMOUNT,PAN,41" />
<property name="optional" value="17,32,37,42,43,46,60,63,111" />
</participant>

you can use the code as a reference: http://jpos.org/private/CheckFields.java
<http://jpos.org/private/CheckFields.java> 

--Alejandro

*****************************************************
This email is issued by a VocaLink group company. It is confidential and intended for the exclusive use of
the addressee only. You should not disclose its contents to any other person. If you are not the addressee
(or responsible for delivery of the message to the addressee), please notify the originator immediately
by return message and destroy the original message. The contents of this email will have no contractual
effect unless it is otherwise agreed between a specific VocaLink group company and the recipient.

The VocaLink group companies include, among others: VocaLink Limited (Company No 06119048, VAT No. 907
9619 87) which is registered in England and Wales at registered office Drake House, Homestead Road,
Rickmansworth, WD3 1FX. United Kingdom, Voca Limited (Company no 1023742, VAT No. 907 9619 87) which is
registered in England and Wales at registered office Drake House, Three Rivers Court, Homestead Road,
Rickmansworth, Hertfordshire. WD3 1FX. United Kingdom, LINK Interchange Network Limited (Company No
3565766, VAT No. 907 9619 87) which is registered in England and Wales at registered office Arundel House,
1 Liverpool Gardens, Worthing, West Sussex, BN11 1SL and VocaLink Holdings Limited (Company No
06119036, VAT No. 907 9619 87) which is registered in England and Wales at registered off
 ice Drake House, Homestead Road, Rickmansworth, WD3 1FX. United Kingdom.

The views and opinions expressed in this email may not reflect those of any member of the VocaLink group.
This message and any attachments have been scanned for viruses prior to leaving the VocaLink group
network; however, VocaLink does not guarantee the security of this message and will not be responsible
for any damages arising as a result of any virus being passed on or arising from any alteration of this
message by a third party. The VocaLink group may monitor emails sent to and from the VocaLink group network.

This message has been checked for all email viruses by MessageLabs.
*************************************************************

[Non-text portions of this message have been removed]

------------------------------------


Gmane