org.apache.cxf.rs.security.oauth.services
Class OOBResponseProvider
java.lang.Object
org.apache.cxf.rs.security.oauth.services.OOBResponseProvider
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyReader<OOBAuthorizationResponse>, javax.ws.rs.ext.MessageBodyWriter<OOBAuthorizationResponse>
@Provider
public class OOBResponseProvider
- extends Object
- implements javax.ws.rs.ext.MessageBodyReader<OOBAuthorizationResponse>, javax.ws.rs.ext.MessageBodyWriter<OOBAuthorizationResponse>
Method Summary |
long |
getSize(OOBAuthorizationResponse 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 mt)
|
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mt)
|
OOBAuthorizationResponse |
readFrom(Class<OOBAuthorizationResponse> clazz,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mt,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
InputStream is)
|
void |
writeTo(OOBAuthorizationResponse obj,
Class<?> c,
Type t,
Annotation[] anns,
javax.ws.rs.core.MediaType mt,
javax.ws.rs.core.MultivaluedMap<String,Object> headers,
OutputStream os)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OOBResponseProvider
public OOBResponseProvider()
isReadable
public boolean isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mt)
- Specified by:
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<OOBAuthorizationResponse>
readFrom
public OOBAuthorizationResponse readFrom(Class<OOBAuthorizationResponse> clazz,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mt,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
InputStream is)
throws IOException
- Specified by:
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<OOBAuthorizationResponse>
- Throws:
IOException
getSize
public long getSize(OOBAuthorizationResponse t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<OOBAuthorizationResponse>
isWriteable
public boolean isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mt)
- Specified by:
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<OOBAuthorizationResponse>
writeTo
public void writeTo(OOBAuthorizationResponse obj,
Class<?> c,
Type t,
Annotation[] anns,
javax.ws.rs.core.MediaType mt,
javax.ws.rs.core.MultivaluedMap<String,Object> headers,
OutputStream os)
throws IOException,
javax.ws.rs.WebApplicationException
- Specified by:
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<OOBAuthorizationResponse>
- Throws:
IOException
javax.ws.rs.WebApplicationException
Apache CXF