Push changes for Angel

This commit is contained in:
2024-02-23 20:28:07 -06:00
parent e342f849ef
commit 39b0da17b9
40 changed files with 589 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/JSF/JSFManagedBean.java to edit this template
*/
package beans;
import jakarta.inject.Named;
import jakarta.enterprise.context.RequestScoped;
/**
*
* @author caleb
*/
@Named(value="employee")
@RequestScoped
public class Employee {
private String name = "Paul Newman";
public String getName()
{
return name;
}
public void setName(String name)
{
this.name = name;
}
/** Creates a new instance of Employee */
public Employee() {
}
}

View File

@@ -0,0 +1,13 @@
package edu.slcc.asdv.caleb.lab_templates2_calebfontenot;
import jakarta.ws.rs.ApplicationPath;
import jakarta.ws.rs.core.Application;
/**
* Configures Jakarta RESTful Web Services for the application.
* @author Juneau
*/
@ApplicationPath("resources")
public class JakartaRestConfiguration extends Application {
}

View File

@@ -0,0 +1,20 @@
package edu.slcc.asdv.caleb.lab_templates2_calebfontenot.resources;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.core.Response;
/**
*
* @author
*/
@Path("jakartaee10")
public class JakartaEE10Resource {
@GET
public Response ping(){
return Response
.ok("ping Jakarta EE")
.build();
}
}