Class MediaTypeAdapter


  • public class MediaTypeAdapter
    extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​javax.ws.rs.core.MediaType>
    Version:
    $Revision: 1 $
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String marshal​(javax.ws.rs.core.MediaType mediaType)  
      javax.ws.rs.core.MediaType unmarshal​(java.lang.String s)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MediaTypeAdapter

        public MediaTypeAdapter()
    • Method Detail

      • unmarshal

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

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