Package com.io7m.cardant.server.service.verdant

# Interface CAVerdantMessagesType

All Superinterfaces:
  `com.io7m.repetoir.core.RPServiceType`

All Known Implementing Classes:
  `CAVerdantMessages`

public interface CAVerdantMessagesType extends com.io7m.repetoir.core.RPServiceType
Service wrapper for Verdant messages.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static String`
  `contentType()`
  `com.io7m.verdant.core.VProtocols`
  `parse(URI source, byte[] data)`
  Parse versions from the given source.
  `byte[]`
  `serialize(com.io7m.verdant.core.VProtocols protocols, int version)`
  Serialize the given protocols.

  ### Methods inherited from interface com.io7m.repetoir.core.RPServiceType

  `description`

- ## Method Details

  - ### contentType

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

  - ### serialize

    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

    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