Class MediaTypeAdapter


  • public class MediaTypeAdapter
    extends jakarta.xml.bind.annotation.adapters.XmlAdapter<String,​jakarta.ws.rs.core.MediaType>
    Version:
    $Revision: 1 $
    Author:
    Bill Burke
    • Constructor Detail

      • MediaTypeAdapter

        public MediaTypeAdapter()
    • Method Detail

      • unmarshal

        public jakarta.ws.rs.core.MediaType unmarshal​(String s)
                                               throws Exception
        Specified by:
        unmarshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,​jakarta.ws.rs.core.MediaType>
        Throws:
        Exception
      • marshal

        public String marshal​(jakarta.ws.rs.core.MediaType mediaType)
                       throws Exception
        Specified by:
        marshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,​jakarta.ws.rs.core.MediaType>
        Throws:
        Exception