org.ogf.graap.wsag.api.rest.providers
Class URIProvider
java.lang.Object
org.ogf.graap.wsag.api.rest.providers.URIProvider
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyReader<URI>, javax.ws.rs.ext.MessageBodyWriter<URI>
public class URIProvider
- extends Object
- implements javax.ws.rs.ext.MessageBodyWriter<URI>, javax.ws.rs.ext.MessageBodyReader<URI>
- Author:
- owaeld
Method Summary |
long |
getSize(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)
|
URI |
readFrom(Class<URI> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
|
void |
writeTo(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 |
URIProvider
public URIProvider()
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<URI>
getSize
public long getSize(URI t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<URI>
writeTo
public void writeTo(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<URI>
- Throws:
IOException
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<URI>
readFrom
public URI readFrom(Class<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<URI>
- Throws:
IOException
Copyright © 2008-2012. All Rights Reserved.