forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove erroneous state tracking from client readers/writers
- Loading branch information
Showing
7 changed files
with
95 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/ClientMessageBodyReader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.jboss.resteasy.reactive.client.spi; | ||
|
||
import java.io.InputStream; | ||
import java.lang.annotation.Annotation; | ||
import java.lang.reflect.Type; | ||
|
||
import jakarta.ws.rs.core.MediaType; | ||
import jakarta.ws.rs.core.MultivaluedMap; | ||
import jakarta.ws.rs.ext.MessageBodyReader; | ||
|
||
import org.jboss.resteasy.reactive.client.impl.RestClientRequestContext; | ||
|
||
public interface ClientMessageBodyReader<T> extends MessageBodyReader<T> { | ||
|
||
T readFrom(Class<T> type, Type genericType, | ||
Annotation[] annotations, MediaType mediaType, | ||
MultivaluedMap<String, String> httpHeaders, | ||
InputStream entityStream, | ||
RestClientRequestContext context) throws java.io.IOException, jakarta.ws.rs.WebApplicationException; | ||
} |
22 changes: 22 additions & 0 deletions
22
...runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/ClientMessageBodyWriter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.jboss.resteasy.reactive.client.spi; | ||
|
||
import java.io.OutputStream; | ||
import java.lang.annotation.Annotation; | ||
import java.lang.reflect.Type; | ||
|
||
import jakarta.ws.rs.core.MediaType; | ||
import jakarta.ws.rs.core.MultivaluedMap; | ||
import jakarta.ws.rs.ext.MessageBodyWriter; | ||
|
||
import org.jboss.resteasy.reactive.client.impl.RestClientRequestContext; | ||
|
||
public interface ClientMessageBodyWriter<T> extends MessageBodyWriter<T> { | ||
|
||
void writeTo(T t, Class<?> type, Type genericType, Annotation[] annotations, | ||
MediaType mediaType, | ||
MultivaluedMap<String, Object> httpHeaders, | ||
OutputStream entityStream, | ||
RestClientRequestContext context) | ||
throws java.io.IOException, jakarta.ws.rs.WebApplicationException; | ||
|
||
} |