org.ogf.graap.wsag.api.rest.providers
Class URIListProvider

java.lang.Object
  extended by org.ogf.graap.wsag.api.rest.providers.URIListProvider
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<List<URI>>, javax.ws.rs.ext.MessageBodyWriter<List<URI>>

@Provider
public class URIListProvider
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<List<URI>>, javax.ws.rs.ext.MessageBodyReader<List<URI>>

Author:
owaeld

Constructor Summary
URIListProvider()
           
 
Method Summary
 long getSize(List<URI> t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 List<URI> readFrom(Class<List<URI>> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
 void writeTo(List<URI> t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIListProvider

public URIListProvider()
Method Detail

isReadable

public boolean isReadable(Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          javax.ws.rs.core.MediaType mediaType)
Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<List<URI>>

readFrom

public List<URI> readFrom(Class<List<URI>> type,
                          Type genericType,
                          Annotation[] annotations,
                          javax.ws.rs.core.MediaType mediaType,
                          javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
                          InputStream entityStream)
                   throws IOException
Specified by:
readFrom in interface javax.ws.rs.ext.MessageBodyReader<List<URI>>
Throws:
IOException

isWriteable

public boolean isWriteable(Class<?> type,
                           Type genericType,
                           Annotation[] annotations,
                           javax.ws.rs.core.MediaType mediaType)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<List<URI>>

getSize

public long getSize(List<URI> t,
                    Class<?> type,
                    Type genericType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<List<URI>>

writeTo

public void writeTo(List<URI> t,
                    Class<?> type,
                    Type genericType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType,
                    javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
                    OutputStream entityStream)
             throws IOException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<List<URI>>
Throws:
IOException


Copyright © 2008-2012. All Rights Reserved.