Coder Social home page Coder Social logo

cabolabs-ehrserver-groovy's People

Contributors

ppazos avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

vallesaude

cabolabs-ehrserver-groovy's Issues

add commit method

  • basic commit
  • add xml xsd validation on the client side if the commit is XML
  • do JSON to XML to validate XML when the commit is JSON

refactor all calls as closures

All API calls need to process a lot of possible exceptions.

  1. Create a method "doRequest" that receives the request in a closure, executes the closure, checks for all the possible exceptions there, and returns the response.
  2. The current methods process the response and return the correspondent object (data or error).

correct encoding for spanish

when committing compositions with spanish accentuation the characters appear as symbols on the EHRServer, it seems UTF-8 should be <?xml version="1.0" encoding="ISO-8859-1"?> for spanish.

handle errors

java.lang.NullPointerException: Cannot get property 'token' on null object
at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:60)
at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:172)
at org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:47)

download server SSL certificate dynamically

Server certs change.

We need to download the server cert to be able to do HTTPS calls.

We need to download and cache the cert dynamically from time to time, or when an SSL appears (forced update).

All this should be transparent to the client.

Reading, most mention the use of a Certificate Manager, where certs can be added and updated.

Some ideas:

https://github.com/escline/InstallCert/blob/master/InstallCert.java

https://github.com/EMCECS/ssl-certificate-extractor/blob/master/src/main/java/SSLCertificateExtractor.java

https://www.codebyamir.com/blog/java-developers-guide-to-ssl-certificates

http://helpdesk.objects.com.au/java/how-do-i-programatically-extract-a-certificate-from-a-site-and-add-it-to-my-keystore

http://www.xinotes.net/notes/note/1088/

https://stackoverflow.com/questions/859111/how-can-i-use-different-certificates-on-specific-connections/859271#859271

https://stackoverflow.com/questions/10577029/how-do-i-retrieve-an-untrusted-ssl-server-certificate-in-order-to-review-and-tru

https://stackoverflow.com/questions/41986959/dynamic-ssl-keystore-certificate-selection

https://jcalcote.wordpress.com/2010/06/22/managing-a-dynamic-java-trust-store/

https://futurestud.io/tutorials/retrofit-2-how-to-trust-unsafe-ssl-certificates-self-signed-expired
https://github.com/square/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/CustomTrust.java
http://square.github.io/retrofit/

FULL EXAMPLE prints some basic info about the cert
https://www.mkyong.com/java/java-https-client-httpsurlconnection-example/

https://stackoverflow.com/questions/13022717/java-and-https-url-connection-without-downloading-certificate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.