[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jaxrs-dev] OPTIONS and ResourceInfo
|
> On Apr 22, 2020, at 1:11 PM, Markus KARG <markus@xxxxxxxxxxxxxxx> wrote:
>
> 1. The same as if the method would have been GET instead of OPTIONS.
These are different as there is not necessarily an instance of Method to return for OPTIONS.
>
> 2. Yes, but not in this corner case. Tried in Payara and it provided the CDI wrapper instead of the original class.
Interesting.
— Santiago
>
> -----Ursprüngliche Nachricht-----
> Von: jaxrs-dev-bounces@xxxxxxxxxxx [mailto:jaxrs-dev-bounces@xxxxxxxxxxx] Im Auftrag von Santiago Pericas-Geertsen
> Gesendet: Mittwoch, 22. April 2020 15:53
> An: jaxrs-dev@xxxxxxxxxxx
> Betreff: [jaxrs-dev] OPTIONS and ResourceInfo
>
> Hi All,
>
> I have an “expectation" question about a special case related to the injection of ResourceInfo. As you know, Jakarta REST implementations must provide default implementations for OPTIONS.
>
> Suppose such a request is received and passes through a filter that injects ResourceInfo:
>
> 1. What do you expect ResourceInfo#getResourceClass and ResourceInfo#getResourceMethod to return?
>
> 2. Ever looked at what your favorite implementation actually returns?
>
> A bit of an edge case, but would be nice to clarify IMO.
>
> — Santiago
> _______________________________________________
> jaxrs-dev mailing list
> jaxrs-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jaxrs-dev
>
> _______________________________________________
> jaxrs-dev mailing list
> jaxrs-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jaxrs-dev