camerondavison / dropwizard-protobuf

Support for reading and writing Google Protocol Buffer objects within Dropwizard

Home Page:http://dropwizard.github.io/dropwizard-protobuf/1.0.3-1/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dropwizard Protobuf

Build Status Coverage 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 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>1.0.3-1</version>
</dependency>

Support

Please file bug reports and feature requests in GitHub issues.

License

Copyright (c) 2016 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.

About

Support for reading and writing Google Protocol Buffer objects within Dropwizard

http://dropwizard.github.io/dropwizard-protobuf/1.0.3-1/

License:Apache License 2.0


Languages

Language:Java 89.5%Language:Protocol Buffer 5.7%Language:Shell 4.8%