I have the below code as my restful service operation.
@GET
@UnitOfWork
@Timed(name = "get-requests")
@Path("/{referenceId}")
public Response get(@Auth @ApiParam(access = "internal") UserPrincipal user,
@ApiParam(name = "id", value = "reference ID", required = true)
@PathParam("referenceId") String id) {
return Response.ok(id).build();
}
However, I noticed if I pass in m1234;5678
, I get only m1234
returned. I tried @Path("/{referenceId:.*}")
, but it doesn't work.
I also tried use @Encode
at the top of the method to make sure the url is not decoded and then try to replace %3B
with ";" in the code. But it seems not working also.
Please note that I cannot use Spring framework. Thanks.