项目作者: dropwizard

项目描述 :
Support for reading and writing Google Protocol Buffer objects within Dropwizard
高级语言: Java
项目地址: git://github.com/dropwizard/dropwizard-protobuf.git
创建时间: 2014-08-04T15:05:54Z
项目社区:https://github.com/dropwizard/dropwizard-protobuf

开源协议:Apache License 2.0

下载


Dropwizard Protobuf

Build Status
Maven Central
GitHub license

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 ProtocolBundle to your Dropwizard application inside the Application#initialize method.

  1. @Override
  2. public void initialize(Bootstrap<HelloWorldConfiguration> bootstrap) {
  3. bootstrap.addBundle(new ProtobufBundle());
  4. }

Maven Artifacts

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

  1. <dependency>
  2. <groupId>io.dropwizard.modules</groupId>
  3. <artifactId>dropwizard-protobuf</artifactId>
  4. <version>2.0.7-1</version>
  5. </dependency>

Support

Please file bug reports and feature requests in GitHub issues.

License

Copyright (c) 2020 Smoke Turner, LLC

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.