With following code, serviceIdSegment
is null
while serviceId
is not null
.
class MySubResource {
@GET
@Path("{serviceId: .+}")
public Response readById(@PathParam String serviceId) {
// serviceId is not null
// why serviceIdSegment is null?
}
@PathParam("serviceId");
private PathSegment serviceIdSegment;
}
Can anybody please tell me why?