Suvodip Mukherjee | 29 Apr 19:21
Favicon

How to get bitmap field values

Hi,
Any idea how to get the primary and secondary bitmap values using jpos.
I am trying to search for these values by using ISOMsg.hasField(1) and
ISOMsg.hasField(1).
However, the bitmap fields are not found. Please help.

Thanks & regards,
Suvodip

<http://geo.yahoo.com/serv?s=97359714/grpId=293577/grpspId=1705006764/ms
gId=7907/stime=1209489560/nc1=4507179/nc2=3848641/nc3=5202322> 

*****************************************************
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.
(Continue reading)

Alejandro Revilla | 29 Apr 19:30

Re: How to get bitmap field values

Most people trying to access the bitmap want to do so in order to figure
out if a field is present or not. You can do that in jPOS using ISOMsg's
hasField method (i.e. m.hasField(35)). 

We internally store a bitset in an internal field -1, you can use
code like this:

 import java.util.BitSet;

 BitSet bset = (BitSet) m.getValue(-1);

But I wonder if you really need to. What's your use case?

On Tue, Apr 29, 2008 at 06:23:02PM +0100, Suvodip Mukherjee wrote:
> Hi,
> Any idea how to get the primary and secondary bitmap values using jpos.
> I am trying to search for these values by using ISOMsg.hasField(1) and
> ISOMsg.hasField(1).
> However, the bitmap fields are not found. Please help.
>  
> Thanks & regards,
> Suvodip
>  
> <http://geo.yahoo.com/serv?s=97359714/grpId=293577/grpspId=1705006764/ms
> gId=7907/stime=1209489560/nc1=4507179/nc2=3848641/nc3=5202322> 
>  
> 
> *****************************************************
> 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
(Continue reading)

Andy Orrock | 29 Apr 20:02
Favicon

RE: How to get bitmap field values

You can also read my comments about the Secondary Bit Map here, as others
have had similar questions about it:

http://tinyurl.com/4zrc7c  

By the way, Suvodip, VocaLink has won Confidential Footer declaration
contest!  

Andy 

-----Original Message-----
From: jpos-dev@...
[mailto:jpos-dev@...] On Behalf
Of Alejandro Revilla
Sent: Tuesday, April 29, 2008 12:30 PM
To: jpos-dev@...
Subject: Re: [jpos-dev] How to get bitmap field values

Most people trying to access the bitmap want to do so in order to figure
out if a field is present or not. You can do that in jPOS using ISOMsg's
hasField method (i.e. m.hasField(35)). 

We internally store a bitset in an internal field -1, you can use
code like this:

 import java.util.BitSet;

 BitSet bset = (BitSet) m.getValue(-1);

But I wonder if you really need to. What's your use case?
(Continue reading)

Suvodip Mukherjee | 29 Apr 20:33
Favicon

RE: How to get bitmap field values

Yes, and the award goes to VocaLink :)

________________________________

From: jpos-dev@... on behalf of Andy Orrock
Sent: Tue 4/29/2008 7:02 PM
To: jpos-dev@...
Subject: RE: [jpos-dev] How to get bitmap field values

You can also read my comments about the Secondary Bit Map here, as others
have had similar questions about it:

http://tinyurl.com/4zrc7c <http://tinyurl.com/4zrc7c>  

By the way, Suvodip, VocaLink has won Confidential Footer declaration
contest! 

Andy 

-----Original Message-----
From: jpos-dev@... <mailto:jpos-dev%40yahoogroups.com> 
[mailto:jpos-dev@...
<mailto:jpos-dev%40yahoogroups.com> ] On Behalf
Of Alejandro Revilla
Sent: Tuesday, April 29, 2008 12:30 PM
To: jpos-dev@... <mailto:jpos-dev%40yahoogroups.com> 
Subject: Re: [jpos-dev] How to get bitmap field values

Most people trying to access the bitmap want to do so in order to figure
out if a field is present or not. You can do that in jPOS using ISOMsg's
(Continue reading)

Suvodip Mukherjee | 29 Apr 19:46
Favicon

RE: How to get bitmap field values

Alexandro,
I need to check if the ISOMessage contains my pre-defined ISO fields and
if there are any extra fields present.
So, what I plan to do is pick up the 16/32 character bitmap field and
then compare it with my template bitmap to check that the fields needed
are present. Checking for each field I need with hasField() is a lengthy
process.

Is there a way to get the primary and secondary bitmap fields as
strings, please? like the other fields using m.getValue().

Regards,
Suvodip

________________________________

From: jpos-dev@...
[mailto:jpos-dev@...] On
Behalf Of Alejandro Revilla
Sent: 29 April 2008 18:30
To: jpos-dev@...
Subject: Re: [jpos-dev] How to get bitmap field values

Most people trying to access the bitmap want to do so in order to figure
out if a field is present or not. You can do that in jPOS using ISOMsg's
hasField method (i.e. m.hasField(35)). 

We internally store a bitset in an internal field -1, you can use
code like this:

(Continue reading)

Alejandro Revilla | 29 Apr 20:18

Re: 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

--Alejandro

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

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
(Continue reading)

Suvodip Mukherjee | 29 Apr 19:50
Favicon

RE: How to get bitmap field values

To explain it more easily, if the ISO string is
"962404000000008000000000000000003200000001", I want a method which
would return me "0400000000800000" which is the bitmap value for this
message.

________________________________

From: Suvodip Mukherjee 
Sent: 29 April 2008 18:50
To: 'jpos-dev@...'
Subject: RE: [jpos-dev] How to get bitmap field values

Alexandro,
I need to check if the ISOMessage contains my pre-defined ISO fields and
if there are any extra fields present.
So, what I plan to do is pick up the 16/32 character bitmap field and
then compare it with my template bitmap to check that the fields needed
are present. Checking for each field I need with hasField() is a lengthy
process.

Is there a way to get the primary and secondary bitmap fields as
strings, please? like the other fields using m.getValue().

Regards,
Suvodip

________________________________

From: jpos-dev@...
[mailto:jpos-dev@...] On
(Continue reading)

Suvodip Mukherjee | 30 Apr 17:23
Favicon

RE: How to get bitmap field values

Alejandro,
Thanks for the tips. It worked like dream.

Regards,
Suvodip

________________________________

From: Suvodip Mukherjee 
Sent: 29 April 2008 19:38
To: jpos-dev@...
Subject: RE: [jpos-dev] 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
(Continue reading)


Gmane