Class IdVerdantMessages

java.lang.Object
com.io7m.idstore.server.service.verdant.IdVerdantMessages
All Implemented Interfaces:
com.io7m.repetoir.core.RPServiceType

public final class IdVerdantMessages extends Object implements com.io7m.repetoir.core.RPServiceType
Service wrapper for Verdant messages.
  • Constructor Details

    • IdVerdantMessages

      public IdVerdantMessages()
      Service wrapper for Verdant messages.
  • Method Details

    • contentType

      public static String contentType()
      Returns:
      The content type used for versioning
    • serialize

      public byte[] serialize(com.io7m.verdant.core.VProtocols protocols, int version) throws com.io7m.verdant.core.VProtocolException
      Serialize the given protocols.
      Parameters:
      protocols - The protocols
      version - The container version
      Returns:
      The serialized bytes
      Throws:
      com.io7m.verdant.core.VProtocolException - On errors
    • parse

      public com.io7m.verdant.core.VProtocols parse(URI source, byte[] data) throws com.io7m.verdant.core.VProtocolException
      Parse versions from the given source.
      Parameters:
      source - The source
      data - The read bytes
      Returns:
      A set of parsed versions
      Throws:
      com.io7m.verdant.core.VProtocolException - If the input cannot be parsed
    • description

      public String description()
      Specified by:
      description in interface com.io7m.repetoir.core.RPServiceType
    • toString

      public String toString()
      Overrides:
      toString in class Object