com.github.dockerjava.netty.handler.JsonRequestHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-java Show documentation
Show all versions of docker-java Show documentation
Java API Client for Docker
package com.github.dockerjava.netty.handler;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;
import com.fasterxml.jackson.databind.ObjectMapper;
/**
* Handler that encodes an outgoing object to JSON.
*
* @author Marcus Linke
*/
public class JsonRequestHandler extends MessageToByteEncoder