@Produces(value="application/x-www-form-urlencoded") @Consumes(value="application/x-www-form-urlencoded") @Provider public class OOBResponseProvider extends Object implements javax.ws.rs.ext.MessageBodyReader<OOBAuthorizationResponse>, javax.ws.rs.ext.MessageBodyWriter<OOBAuthorizationResponse>
Constructor and Description |
---|
OOBResponseProvider() |
Modifier and Type | Method and Description |
---|---|
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) |
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<OOBAuthorizationResponse>
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
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<OOBAuthorizationResponse>
IOException
public long getSize(OOBAuthorizationResponse t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<OOBAuthorizationResponse>
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<OOBAuthorizationResponse>
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
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<OOBAuthorizationResponse>
IOException
javax.ws.rs.WebApplicationException
Apache CXF