Git Product home page Git Product logo

hapi-server-java's Introduction

server-java

Java-based server which works with Java-based web servers like Tomcat

Introduction

There are presently four or more different Java server implementations. It would be useful to have a framework which handles the "HAPI parts" of the server, such as input validation and data handling, so that those setting up servers can focus on the data sources feeding into the server.

This will be a Java servlet which implements the HAPI protocol (version 3.1), using plugins written and maintained by the data steward. How these plugins connect will be documented below, and may evolve as the server matures, but the intent is that plugins for the Python server might also be used with this server implementation.

Much of this is inspired by the lessons learned implementing Das2Servers, where a perl script would hand off control to a reader, which would generate a stream of data on stdout which would go through the server and then out to the client. The Das2Server would perform additional operations, such as data reduction, before sending out the stream to the client. The state-of-the-art Das2Server is implemented in Python and provides caches of reduced data. The HAPI server has similarities, except that subsetting and formatting must be done to service the request.

This will provide a number of features which the other implementations may be missing. The mature HAPI server will handle input validation, protecting the server from hostile attacks. It may provide caching of data when the readers are slow, and also validate that reader responses are correct. Readers should be allowed to be sloppy, so that boilerplate code for subsetting needn't appear in each reader.

Last, we intend to support use with Docker containers, so that it can be set up easily at such sites. A war file will be the initial target and Docker container will be provided later.

Initial Implementations

There are a few groups who may use this server immediately. The HAPI server for the CDAWeb group's SSCWeb service is currently implemented as a secondary pass-through server (that calls the non-HAPI server and reformats the response as HAPI), so a full Java implementation could move this beyond the kind of web-scraping approach. ESAC intends to set up a HAPI server and is interested in this framework, and we hope to set up an initial version of the server in late May 2022. PDS-PPI has an existing server which might be more easily maintained using this framework. The CDAWeb server has known problems which need to be resolved.

Schedule

  • Initial implementation will be in March 2022.
  • Deployment of support for SSCWeb at CDAWeb in April 2022.
  • Containerize and deploy for testing at ESAC May 2022.
  • Code matures over the next year

Builds

When changes are pushed to the github server, the war file is rebuilt and will be available within a minute or two at https://cottagesystems.com/autoplot/git/server-java/HapiServer/dist/HapiServer.war

Manual

For installation instuctions, see the wiki: https://github.com/hapi-server/server-java/wiki.


last_modified_at: 2022-07-26T16:26:24

hapi-server-java's People

Contributors

jbfaden avatar jvandegriff avatar

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.