Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Deflate algorithm compiled in a jar to be used by a Java Callout

Hello there,

I would like to know if there are any JAR compiled already that does the Deflate algorithm (where you don't need to do marven build or other stuff) and you just add it inside the resource file and call it with the Java Callout for deflate/inflate methods?

Please don't suggest marven build or other stuff that has solution links with javascript where you need to add libraries/build stuff and so on because I can't install any libraries and have to manage with the native stuff/assertions that there are on hybrid apigee only!

Thanks,

cico

0 4 217
4 REPLIES 4

Can you provide more details on what exactly you're trying to do and what you're expecting?

Hello dknezic,

for example I have a certain payload encoded in base64 and then want to gzip or unzip it, or for saml apply deflate algorithm to deflate or inflate and so on, having these functions as gzip to apply where needed would help (I thought it was clear from the question when I was asking for deflate algorithm :D)

 

or I want to gzip a payload and then base64 it and then send it somewhere, I know that apigee does the gzip part when you send/receive requests, but if I want to gzip something and then base64 I didn't find a way to do it, or to inflate something that was previously compressed

Cheers,

cico

Maybe this Java callout will help? https://github.com/DinoChiesa/Apigee-Java-SAML-Decoder 

It does the opposite of what you are describing - it decodes (and inflates) an encoded SAML assertion. It sounds like you want to deflate and encode.  But you could use it as a starting point.

Thanks dino for the reply, but I can't maven build/install anything in this apigee hybrid, this is required/must by the client (that's the reason I was wondering if I can load directly a JAR that does the gzip I need or if there are other ways to handle it)

I need to specifically do in this order: gzip -> encode base64 -> send
Receive: receive -> decode base64 -> unzip 

Maybe there is a javascript library that does it and I am missing it, do you have a list of all libraries we can use with the javascript on apigee without installing external ones?

 

thanks,

cico