Class YamlMediaTypeFactory

    • Constructor Detail

      • YamlMediaTypeFactory

        public YamlMediaTypeFactory​()
    • Method Detail

      • getMediaTypes

        public MediaType[] getMediaTypes​()
        Retrieves the Media-Types from the Media-Types property.
        Specified by:
        getMediaTypes in interface MediaTypesAccessor
        Returns:
        The Media-Types stored by the Media-Types property.
      • toMarshaled

        public String toMarshaled​(Object aObject)
                           throws org.refcodes.exception.MarshalException
        Specified by:
        toMarshaled in interface org.refcodes.factory.MarshalFactory<String>
        Throws:
        org.refcodes.exception.MarshalException
      • toUnmarshaled

        public <T> T toUnmarshaled​(String aHttpBody,
                                   Class<T> aType)
                            throws org.refcodes.exception.UnmarshalException
        Specified by:
        toUnmarshaled in interface org.refcodes.factory.UnmarshalFactory<String>
        Throws:
        org.refcodes.exception.UnmarshalException