Class CAVerdantMessages

java.lang.Object
com.io7m.cardant.server.service.verdant.CAVerdantMessages
All Implemented Interfaces:
CAVerdantMessagesType, com.io7m.repetoir.core.RPServiceType

public final class CAVerdantMessages extends Object implements CAVerdantMessagesType
Service wrapper for Verdant messages.
  • Constructor Details

    • CAVerdantMessages

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

    • serialize

      public byte[] serialize(com.io7m.verdant.core.VProtocols protocols, int version) throws com.io7m.verdant.core.VProtocolException
      Description copied from interface: CAVerdantMessagesType
      Serialize the given protocols.
      Specified by:
      serialize in interface CAVerdantMessagesType
      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
      Description copied from interface: CAVerdantMessagesType
      Parse versions from the given source.
      Specified by:
      parse in interface CAVerdantMessagesType
      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