August 2018
Intermediate to advanced
314 pages
8h 9m
English
The HelloWorld class is a JAX-RS resource that responds to requests sent to the /helloworld path. This class has two methods with the respective helloWorldWithDeploymentDescriptor() and helloWorldWithProgrammatically() signatures. In helloWorldWithDeploymentDescriptor(), the authentication validation is oriented by the deployment descriptor configuration, and in helloWorldWithProgrammatically(), the authentication validation is oriented by codes written by the developer:
import javax.ws.rs.GET;import javax.ws.rs.Path;import javax.ws.rs.core.Context;import javax.ws.rs.core.Response;import javax.ws.rs.core.SecurityContext;@Path("helloworld")public class HelloWorld { @Context private SecurityContext securityContext ...
Read now
Unlock full access