Class AccessTokenGrantWriter
java.lang.Object
org.apache.cxf.rs.security.oauth2.client.AccessTokenGrantWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<AccessTokenGrant>
@Produces("application/x-www-form-urlencoded")
public class AccessTokenGrantWriter
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter<AccessTokenGrant>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(AccessTokenGrant t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) voidwriteTo(AccessTokenGrant t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
-
Constructor Details
-
AccessTokenGrantWriter
public AccessTokenGrantWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<AccessTokenGrant>
-
getSize
public long getSize(AccessTokenGrant t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSizein interfacejakarta.ws.rs.ext.MessageBodyWriter<AccessTokenGrant>
-
writeTo
public void writeTo(AccessTokenGrant t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<AccessTokenGrant>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-