-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Ensure that @ServerResponseFilter honors @namebinding
- Loading branch information
Showing
3 changed files
with
17 additions
and
5 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
10 changes: 9 additions & 1 deletion
10
...t/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/MetalFilter.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 |
---|---|---|
@@ -1,14 +1,22 @@ | ||
package io.quarkus.resteasy.reactive.server.test.customproviders; | ||
|
||
import javax.ws.rs.container.ContainerRequestContext; | ||
import javax.ws.rs.container.ContainerResponseContext; | ||
|
||
import org.jboss.resteasy.reactive.server.ServerRequestFilter; | ||
import org.jboss.resteasy.reactive.server.ServerResponseFilter; | ||
|
||
public class MetalFilter { | ||
|
||
@Metal | ||
@ServerRequestFilter | ||
public void headBang(ContainerRequestContext requestContext) { | ||
public void headBangIn(ContainerRequestContext requestContext) { | ||
requestContext.getHeaders().putSingle("heavy", "metal"); | ||
} | ||
|
||
@Metal | ||
@ServerResponseFilter | ||
public void headBangOut(ContainerResponseContext responseContext) { | ||
responseContext.getHeaders().putSingle("very", "heavy"); | ||
} | ||
} |