at.ac.tuwien.infosys.sm4all.copal.rest.provider
Class XMLRESTfulListenerReader

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.rest.provider.XMLReader<RESTfulListener>
      extended by at.ac.tuwien.infosys.sm4all.copal.rest.provider.XMLRESTfulListenerReader
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<RESTfulListener>

public class XMLRESTfulListenerReader
extends XMLReader<RESTfulListener>
implements javax.ws.rs.ext.MessageBodyReader<RESTfulListener>

A RESTfulListener XMLReader.

Author:
sanjin

Constructor Summary
XMLRESTfulListenerReader()
          Creates instance of RESTfulListener XMLReader.
 
Method Summary
 boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
protected  RESTfulListener unmarshal(org.w3c.dom.Element element)
          Unmarshal a value from specified Element.
 
Methods inherited from class at.ac.tuwien.infosys.sm4all.copal.rest.provider.XMLReader
readFrom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.ws.rs.ext.MessageBodyReader
readFrom
 

Constructor Detail

XMLRESTfulListenerReader

public XMLRESTfulListenerReader()
Creates instance of RESTfulListener XMLReader.

Method Detail

isReadable

public boolean isReadable(java.lang.Class<?> type,
                          java.lang.reflect.Type genericType,
                          java.lang.annotation.Annotation[] annotations,
                          javax.ws.rs.core.MediaType mediaType)
Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<RESTfulListener>
Overrides:
isReadable in class XMLReader<RESTfulListener>

unmarshal

protected RESTfulListener unmarshal(org.w3c.dom.Element element)
                             throws FailedUnmarshallingException
Description copied from class: XMLReader
Unmarshal a value from specified Element.

Specified by:
unmarshal in class XMLReader<RESTfulListener>
Parameters:
element - the Element used for unmarshalling.
Returns:
value the unmarshaled value.
Throws:
FailedUnmarshallingException - if unmarshalling was unsuccessful.


Copyright © 2010 Distributed Systems Group, Vienna University of Technology. All Rights Reserved.