Comments (12)
Looks very interesting and will help me with #40622. Thanks
from quarkus.
@michalvavrik We could also add a method to the interface to be able to filter the endpoints by id, i.e. io.quarkus.websockets.next.WebSocket.endpointId().
I like that, I can refactor #40873 to use that instead.
from quarkus.
Quarkus REST https://quarkus.io/guides/rest has https://javadoc.io/doc/io.quarkus.resteasy.reactive/resteasy-reactive/3.10.2/org/jboss/resteasy/reactive/server/ServerExceptionMapper.html that allows to register either global mapper for all the REST resources, or just for the one resources where the bean is produced.
For WS Next, it could be of interest to register this new interface for one endpoint only to avoid path-matching inside that bean.
from quarkus.
Maybe later though. Let's start with the global one.
from quarkus.
Maybe later though. Let's start with the global one.
Agreed. Let's start with the global one and improve later on (if needed ;-)
from quarkus.
Definitely +1 on focusing on global and then moving to per class
from quarkus.
Definitely +1 on focusing on global and then moving to per class
hey @geoand , yes as far as user beans go, but it would be ineffective to have a global bean applied on every endpoint and then start matching request with a bean to determine if you need to run it. If I need to secure just one endpoint of all, I think it's better to have a local endpoint specific. in #40873 I added build item for that, so it's Quarkus internal but it will exist.
from quarkus.
I'll have to have a look in a few days
from quarkus.
I'll have to have a look in a few days
sure, no hurry, thx
from quarkus.
👍🏼
from quarkus.
Definitely +1 on focusing on global and then moving to per class
hey @geoand , yes as far as user beans go, but it would be ineffective to have a global bean applied on every endpoint and then start matching request with a bean to determine if you need to run it. If I need to secure just one endpoint of all, I think it's better to have a local endpoint specific. in #40873 I added build item for that, so it's Quarkus internal but it will exist.
@michalvavrik We could also add a method to the interface to be able to filter the endpoints by id, i.e. io.quarkus.websockets.next.WebSocket.endpointId()
.
interface HttpUpgradePolicy {
boolean appliesTo(String endpointId);
Uni<CheckResult> checkUpgrade(HttpUpgradeContext context);
}
from quarkus.
Done.
from quarkus.
Related Issues (20)
- Our Nightly Quarkus build deploy to Nexus was failing after the gradle upgrade to 8.9 HOT 3
- Update examples to use org.htmlunit:htmlunit HOT 5
- Core module is using a mix of traditional `@ConfigRoot` and `@ConfigMapping` HOT 5
- Support for Demonstrating Proof of Possession (DPoP) in quarkus-oidc HOT 1
- Add OIDC response filters HOT 1
- Quarkus JaCoCo in CD/CI error Error while instrumenting io/quarkus/test/common/*
- Sort identity providers by priority in QuarkusIdentityProviderManagerImpl HOT 3
- ArrayIndexOutOfBoundsException occurred when i was serializing data from redis with quarkus redis extension HOT 6
- Incorrect data in the ReactiveDatasourceHealthCheck being set when the connection is down HOT 2
- Narayana throws an exception when working with the latest MSSQL server HOT 1
- Native Image run issue with XML Changelog quarkus-liquibase HOT 8
- Extend @TestSecurity to support Credential HOT 1
- Upgrade Postgres 16 HOT 1
- Native Build is missing GRPC generated class HOT 5
- Resteasy-reactive Unit endpoint reported as "Run time writers required" HOT 2
- Thread dump messed up when running an app using quarkus:run
- unable to load resource bundle from dependent jar HOT 5
- LogManager error of type GENERIC_FAILURE: Handler with name 'console' is linked to a category but not configured. HOT 5
- Using value higher than Integer.MAX_VALUE as REST method arg cause 404 Not Found instead of 400 Bad Request HOT 2
- Unable to migrate to non-deprecated AnnotationsTransformerBuildItem HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quarkus.