Thursday, 15 January 2015

java - multiple Jersey @Path s on single method -



java - multiple Jersey @Path s on single method -

using bailiwick of jersey - know can annotate method

@path("/{a:path1|path2}")

but wandering if possible utilize 2 annotations on single method

@path("path1") @path("path2")

to same effect (i know - way can not @pathparam ).

only in java 8 allowed have more 1 same annotation. , more annotation should marked specially (@repeatable, see more info here). annotation @path not have such meta-annotation.

so, conclusion not possible.

java jersey

No comments:

Post a Comment