GithubHelp home page GithubHelp logo

kuguobing / dropwizard-protobuf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dropwizard/dropwizard-protobuf

0.0 1.0 0.0 830 KB

Support for reading and writing Google Protocol Buffer objects within Dropwizard

Home Page: https://dropwizard.github.io/dropwizard-protobuf/0.7.1-2/

License: Apache License 2.0

Java 100.00%

dropwizard-protobuf's Introduction

Dropwizard Protobuf

Build Status Coverage Status

dropwizard-protobuf is a Jersey JAX-RS Entity Provider that allows reading and writing messages in Google's Protocol Buffers format.

Usage

Just add the ProtocolBufferMessageBodyProvider to your Dropwizard application inside the Application#run method.

@Override
public void run(HelloWorldConfiguration config, Environment environment) throws Exception {
    environment.jersey().register(new ProtocolBufferMessageBodyProvider());
    environment.jersey().register(new InvalidProtocolBufferExceptionMapper());
}

Maven Artifacts

This project is available on Maven Central. To add it to your project simply add the following dependencies to your pom.xml:

<dependency>
  <groupId>io.dropwizard.modules</groupId>
  <artifactId>dropwizard-protobuf</artifactId>
  <version>0.7.1-2</version>
</dependency>

Support

Please file bug reports and feature requests in GitHub issues.

License

Copyright (c) 2014 Justin Plock

This library is licensed under the Apache License, Version 2.0.

See http://www.apache.org/licenses/LICENSE-2.0.html or the LICENSE file in this repository for the full license text.

dropwizard-protobuf's People

Contributors

jplock avatar

Watchers

库国兵 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.