Force a HttpHandler to accept POST only
by Samy Dindane
Hi folks,
I have a HttpHandler that I want to reach with POST requests only.
I tried exchange.setRequestMethod(new HttpString("POST”)) inside handleRequest(), but the HttpHandler still responds to GET requests.
Is there any way to do this?
In case you’d like to check out the code, it can be found here.
Thank you.
Samy
10 years, 11 months
Authentication Mechanism Configuration
by Darran Lofthouse
Hopefully now is going to be the time to once and for all get the
authentication mechanism configuration completed for the Undertow /
WildFly integration.
I have an old discussion I am going through again that covers
configuring the mechanisms from the subsystem level i.e. a war can have
it's security settings defined / overridden without the contents of the
war being affected.
But there is also the second group of users that prefers to have
complete control within the deployment.
I see you have already suggested the following Stuart: -
> I was thinking we introduce:
>
> interface AuthenticationMechanismFactory {
> AuthenticationMechanism create(final Map<String, String> properties);
> }
>
> And then allow a syntax like so:
>
>
<auth-method>com.acme.MyAuthMechanismFactory?prop1=val1,prop2=val2</auth-method>
In previous releases the equivalent would have been achieved by defining
a valve in the web app.
Is this the kind of approach we want for web apps that are defining
their own mechanisms? Is there any additional configuration required?
Regards,
Darran Lofthouse.
10 years, 11 months