org.drools.guvnor.server.jaxrs.providers.atom
Class MediaTypeAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<String,javax.ws.rs.core.MediaType>
      extended by org.drools.guvnor.server.jaxrs.providers.atom.MediaTypeAdapter

public class MediaTypeAdapter
extends XmlAdapter<String,javax.ws.rs.core.MediaType>

TODO remove this file when JBoss AS includes RESTEasy 2.3.4.Final or higher


Constructor Summary
MediaTypeAdapter()
           
 
Method Summary
 String marshal(javax.ws.rs.core.MediaType mediaType)
           
 javax.ws.rs.core.MediaType unmarshal(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(String s)
                                     throws Exception
Specified by:
unmarshal in class XmlAdapter<String,javax.ws.rs.core.MediaType>
Throws:
Exception

marshal

public String marshal(javax.ws.rs.core.MediaType mediaType)
               throws Exception
Specified by:
marshal in class XmlAdapter<String,javax.ws.rs.core.MediaType>
Throws:
Exception


Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.