Skip to content

Support for reading and writing Google Protocol Buffer objects within Dropwizard

License

Notifications You must be signed in to change notification settings

dropwizard/dropwizard-protobuf

Repository files navigation

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.

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

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>2.0.7-1</version>
</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 https://www.apache.org/licenses/LICENSE-2.0.html or the LICENSE file in this repository for the full license text.