Improved project

This commit is contained in:
Luca Frosini 2024-05-28 17:17:51 +02:00
parent 1ccbc61b1c
commit efff6efe0d
3 changed files with 6 additions and 7 deletions

View File

@ -3,10 +3,8 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
version="4.0"> version="4.0">
<display-name>Helloword Smartgears4 Service</display-name> <display-name>${project.name}</display-name>
<description> <description>${project.description}</description>
A gcube service - smartgears 4
</description>
<servlet> <servlet>
<servlet-name>helloword</servlet-name> <servlet-name>helloword</servlet-name>
<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>

View File

@ -12,7 +12,8 @@
<artifactId>hello-world-service</artifactId> <artifactId>hello-world-service</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
<name>Hello World Service</name> <name>Hello World Service</name>
<description>Hello World Service is used as reference project template for Smartgears 4 based services. DO NOT use tabs of new lines here otherwise it corrupts application.yaml file</description> <!-- DO NOT use tabs of new lines in description otherwise it corrupts application.yaml file -->
<description>Hello World Service is used as reference project template for Smartgears 4 based services.</description>
<packaging>war</packaging> <packaging>war</packaging>
<organization> <organization>

View File

@ -38,13 +38,13 @@ public class ExcludeAuthorizationService {
@GET @GET
@Path("bad-request") @Path("bad-request")
public String badRequest() throws WebApplicationException { public String badRequest() throws WebApplicationException {
throw new BadRequestException(); throw new BadRequestException("Your request is not valid");
} }
@GET @GET
@Path("not-found") @Path("not-found")
public String notFound() throws WebApplicationException { public String notFound() throws WebApplicationException {
throw new NotFoundException(); throw new NotFoundException("Not found sorry");
} }
@PURGE @PURGE