org.jboss.resteasy.plugins.providers.atom
Class MediaTypeAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,MediaType>
      extended by org.jboss.resteasy.plugins.providers.atom.MediaTypeAdapter

public class MediaTypeAdapter
extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,MediaType>

Version:
$Revision: 1 $
Author:
Bill Burke

Constructor Summary
MediaTypeAdapter()
           
 
Method Summary
 java.lang.String marshal(MediaType mediaType)
           
 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 MediaType unmarshal(java.lang.String s)
                    throws java.lang.Exception
Specified by:
unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,MediaType>
Throws:
java.lang.Exception

marshal

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


Copyright © 2010. All Rights Reserved.