Package io.micronaut.gcp.credentials
Class OAuth2MessageBodyWriter
java.lang.Object
io.micronaut.gcp.credentials.OAuth2MessageBodyWriter
- All Implemented Interfaces:
io.micronaut.http.body.MessageBodyWriter<DefaultOAuth2HttpTransportFactory.MutableBlockingLowLevelHttpRequest>
@Internal
@Requires(beans=DefaultOAuth2HttpTransportFactory.class)
@Singleton
public final class OAuth2MessageBodyWriter
extends Object
implements io.micronaut.http.body.MessageBodyWriter<DefaultOAuth2HttpTransportFactory.MutableBlockingLowLevelHttpRequest>
A
MessageBodyWriter
implementation for writing the LowLevelHttpRequest
that
is used for OAuth2 token refresh.- Since:
- 5.4.0
- Author:
- Jeremy Grelle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
writeTo
(@NonNull io.micronaut.core.type.Argument<DefaultOAuth2HttpTransportFactory.MutableBlockingLowLevelHttpRequest> type, @NonNull io.micronaut.http.MediaType mediaType, DefaultOAuth2HttpTransportFactory.MutableBlockingLowLevelHttpRequest httpTransportRequest, @NonNull io.micronaut.core.type.MutableHeaders outgoingHeaders, @NonNull OutputStream outputStream) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.http.body.MessageBodyWriter
createSpecific, isBlocking, isWriteable, writeTo
-
Constructor Details
-
OAuth2MessageBodyWriter
public OAuth2MessageBodyWriter()
-
-
Method Details
-
writeTo
public void writeTo(@NonNull @NonNull io.micronaut.core.type.Argument<DefaultOAuth2HttpTransportFactory.MutableBlockingLowLevelHttpRequest> type, @NonNull @NonNull io.micronaut.http.MediaType mediaType, DefaultOAuth2HttpTransportFactory.MutableBlockingLowLevelHttpRequest httpTransportRequest, @NonNull @NonNull io.micronaut.core.type.MutableHeaders outgoingHeaders, @NonNull @NonNull OutputStream outputStream) throws io.micronaut.http.codec.CodecException - Specified by:
writeTo
in interfaceio.micronaut.http.body.MessageBodyWriter<DefaultOAuth2HttpTransportFactory.MutableBlockingLowLevelHttpRequest>
- Throws:
io.micronaut.http.codec.CodecException
-