com.kpelykh.docker.client.model
Class BoundHostVolumes.Serializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<BoundHostVolumes>
com.kpelykh.docker.client.model.BoundHostVolumes.Serializer
- All Implemented Interfaces:
- com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
- Enclosing class:
- BoundHostVolumes
public static class BoundHostVolumes.Serializer
- extends com.fasterxml.jackson.databind.JsonSerializer<BoundHostVolumes>
This is an ugly hack. We assume that the serializer only gets called when
a containing ContainerConfig gets serialized, when POSTing to
/containers/create . In that context, we pass only the container-path
part (the key in the volumes map).
- Author:
- Kevin A. Archie
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer |
com.fasterxml.jackson.databind.JsonSerializer.None |
Method Summary |
void |
serialize(BoundHostVolumes volumes,
com.fasterxml.jackson.core.JsonGenerator jg,
com.fasterxml.jackson.databind.SerializerProvider sp)
|
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer |
acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isUnwrappingSerializer, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoundHostVolumes.Serializer
public BoundHostVolumes.Serializer()
serialize
public void serialize(BoundHostVolumes volumes,
com.fasterxml.jackson.core.JsonGenerator jg,
com.fasterxml.jackson.databind.SerializerProvider sp)
throws IOException
- Specified by:
serialize
in class com.fasterxml.jackson.databind.JsonSerializer<BoundHostVolumes>
- Throws:
IOException
Copyright © 2014. All rights reserved.