Class ExcludeAuthorizationService

java.lang.Object
org.gcube.service.helloworld.rest.ExcludeAuthorizationService

@Path("guest") public class ExcludeAuthorizationService extends Object
  • Constructor Details

    • ExcludeAuthorizationService

      public ExcludeAuthorizationService()
  • Method Details

    • exludedMethod

      @GET @Produces("text/plain") public String exludedMethod()
      Answers without any token: the path is listed under excludes in application.yaml.
      Returns:
      a message
    • badRequest

      @GET @Path("bad-request") public String badRequest() throws jakarta.ws.rs.WebApplicationException
      Always fails with 400 Bad Request, to show the error returned to the client.
      Returns:
      never returns
      Throws:
      jakarta.ws.rs.WebApplicationException - always
    • notFound

      @GET @Path("not-found") public String notFound() throws jakarta.ws.rs.WebApplicationException
      Always fails with 404 Not Found, to show the error returned to the client.
      Returns:
      never returns
      Throws:
      jakarta.ws.rs.WebApplicationException - always
    • testPurge

      @Path("test-purge") public jakarta.ws.rs.core.Response testPurge() throws jakarta.ws.rs.WebApplicationException
      Answers 204 No Content to the custom HTTP method PURGE, which OpenAPI cannot describe.
      Returns:
      an empty response
      Throws:
      jakarta.ws.rs.WebApplicationException - never