commit e4607e3968dc67586b6bc2214bc00f7bab08c707 Author: Nathan Billard Date: Fri Nov 8 09:34:34 2024 +0100 first commit diff --git a/AnalyseClient/.classpath b/AnalyseClient/.classpath new file mode 100644 index 0000000..2b8cab8 --- /dev/null +++ b/AnalyseClient/.classpath @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/AnalyseClient/.project b/AnalyseClient/.project new file mode 100644 index 0000000..93d21b3 --- /dev/null +++ b/AnalyseClient/.project @@ -0,0 +1,23 @@ + + + AnalyseClient + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/AnalyseClient/.settings/org.eclipse.jdt.core.prefs b/AnalyseClient/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..2f5cc74 --- /dev/null +++ b/AnalyseClient/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,8 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/AnalyseClient/.settings/org.eclipse.m2e.core.prefs b/AnalyseClient/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/AnalyseClient/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/AnalyseClient/pom.xml b/AnalyseClient/pom.xml new file mode 100644 index 0000000..eb420ee --- /dev/null +++ b/AnalyseClient/pom.xml @@ -0,0 +1,54 @@ + + 4.0.0 + fr.insa.ws.soap + AnalyseClient + 0.0.1-SNAPSHOT + + 17 + 3.4.2 + + + + + + com.sun.xml.ws + jaxws-rt + 2.3.6 + + + + + + org.apache.cxf + cxf-codegen-plugin + ${cxf.version} + + + generate-sources + generate-sources + + + ${project.build.directory}/generated-sources/cxf + + + + + ${basedir}/src/main/resources/wsdl/analyzer.wsdl + + + fr.insa.soap.wsdltojava + + + + + + wsdl2java + + + + + + + \ No newline at end of file diff --git a/AnalyseClient/src/main/java/ClientOfAnalyzer.java b/AnalyseClient/src/main/java/ClientOfAnalyzer.java new file mode 100644 index 0000000..1d68b45 --- /dev/null +++ b/AnalyseClient/src/main/java/ClientOfAnalyzer.java @@ -0,0 +1,17 @@ +import java.net.MalformedURLException; +import java.net.URI; +import java.net.URL; + +import fr.insa.soap.wsdltojava.AnalyserChaineWS; +import fr.insa.soap.wsdltojava.Analyzer; + +public class ClientOfAnalyzer { + public static void main(String [] args) throws MalformedURLException{ + final String adresse="http://localhost:8089/analyzer"; + final URL url = URI.create(adresse).toURL(); + final Analyzer service = new Analyzer(url); + final AnalyserChaineWS port = service.getPort(AnalyserChaineWS.class); + String chaine = "aseuthasontehu"; + System.out.println("La taille de la chaine " + chaine + " est " + port.compare(chaine)); + } +} diff --git a/AnalyseClient/src/main/resources/wsdl/analyzer.wsdl b/AnalyseClient/src/main/resources/wsdl/analyzer.wsdl new file mode 100644 index 0000000..c258088 --- /dev/null +++ b/AnalyseClient/src/main/resources/wsdl/analyzer.wsdl @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AnalyseClient/target/classes/ClientOfAnalyzer.class b/AnalyseClient/target/classes/ClientOfAnalyzer.class new file mode 100644 index 0000000..9a959f4 Binary files /dev/null and b/AnalyseClient/target/classes/ClientOfAnalyzer.class differ diff --git a/AnalyseClient/target/classes/META-INF/MANIFEST.MF b/AnalyseClient/target/classes/META-INF/MANIFEST.MF new file mode 100644 index 0000000..3cbb63e --- /dev/null +++ b/AnalyseClient/target/classes/META-INF/MANIFEST.MF @@ -0,0 +1,4 @@ +Manifest-Version: 1.0 +Build-Jdk-Spec: 22 +Created-By: Maven Integration for Eclipse + diff --git a/AnalyseClient/target/classes/META-INF/maven/fr.insa.soap/ClientWS/pom.properties b/AnalyseClient/target/classes/META-INF/maven/fr.insa.soap/ClientWS/pom.properties new file mode 100644 index 0000000..523cc07 --- /dev/null +++ b/AnalyseClient/target/classes/META-INF/maven/fr.insa.soap/ClientWS/pom.properties @@ -0,0 +1,7 @@ +#Generated by Maven Integration for Eclipse +#Wed Oct 02 17:53:07 CEST 2024 +artifactId=ClientWS +groupId=fr.insa.soap +m2e.projectLocation=/home/nbillard/eclipse-workspace/AnalyseClient +m2e.projectName=AnalyseClient +version=0.0.1-SNAPSHOT diff --git a/AnalyseClient/target/classes/META-INF/maven/fr.insa.soap/ClientWS/pom.xml b/AnalyseClient/target/classes/META-INF/maven/fr.insa.soap/ClientWS/pom.xml new file mode 100644 index 0000000..9319292 --- /dev/null +++ b/AnalyseClient/target/classes/META-INF/maven/fr.insa.soap/ClientWS/pom.xml @@ -0,0 +1,52 @@ + +4.0.0 +fr.insa.soap +ClientWS +0.0.1-SNAPSHOT + +11 +3.4.2 + + + + +com.sun.xml.ws +jaxws-rt +2.3.3 + + + + + +org.apache.cxf +cxf-codegen-plugin +${cxf.version} + + +generate-sources +generate-sources + + +${project.build.directory}/generated-sources/cxf + + + +${basedir}/src/main/resources/wsdl/analyzer.wsdl + +fr.insa.soap.wsdltojava + + + + + +wsdl2java + + + + + + + \ No newline at end of file diff --git a/AnalyseClient/target/classes/META-INF/maven/fr.insa.ws.soap/AnalyseClient/pom.properties b/AnalyseClient/target/classes/META-INF/maven/fr.insa.ws.soap/AnalyseClient/pom.properties new file mode 100644 index 0000000..7f4e015 --- /dev/null +++ b/AnalyseClient/target/classes/META-INF/maven/fr.insa.ws.soap/AnalyseClient/pom.properties @@ -0,0 +1,7 @@ +#Generated by Maven Integration for Eclipse +#Tue Oct 08 14:15:42 CEST 2024 +artifactId=AnalyseClient +groupId=fr.insa.ws.soap +m2e.projectLocation=/home/nbillard/eclipse-workspace/AnalyseClient +m2e.projectName=AnalyseClient +version=0.0.1-SNAPSHOT diff --git a/AnalyseClient/target/classes/META-INF/maven/fr.insa.ws.soap/AnalyseClient/pom.xml b/AnalyseClient/target/classes/META-INF/maven/fr.insa.ws.soap/AnalyseClient/pom.xml new file mode 100644 index 0000000..eb420ee --- /dev/null +++ b/AnalyseClient/target/classes/META-INF/maven/fr.insa.ws.soap/AnalyseClient/pom.xml @@ -0,0 +1,54 @@ + + 4.0.0 + fr.insa.ws.soap + AnalyseClient + 0.0.1-SNAPSHOT + + 17 + 3.4.2 + + + + + + com.sun.xml.ws + jaxws-rt + 2.3.6 + + + + + + org.apache.cxf + cxf-codegen-plugin + ${cxf.version} + + + generate-sources + generate-sources + + + ${project.build.directory}/generated-sources/cxf + + + + + ${basedir}/src/main/resources/wsdl/analyzer.wsdl + + + fr.insa.soap.wsdltojava + + + + + + wsdl2java + + + + + + + \ No newline at end of file diff --git a/AnalyseClient/target/classes/fr/insa/soap/wsdltojava/AnalyserChaineWS.class b/AnalyseClient/target/classes/fr/insa/soap/wsdltojava/AnalyserChaineWS.class new file mode 100644 index 0000000..a8ffd91 Binary files /dev/null and b/AnalyseClient/target/classes/fr/insa/soap/wsdltojava/AnalyserChaineWS.class differ diff --git a/AnalyseClient/target/classes/fr/insa/soap/wsdltojava/Analyzer.class b/AnalyseClient/target/classes/fr/insa/soap/wsdltojava/Analyzer.class new file mode 100644 index 0000000..4dedb5e Binary files /dev/null and b/AnalyseClient/target/classes/fr/insa/soap/wsdltojava/Analyzer.class differ diff --git a/AnalyseClient/target/classes/fr/insa/soap/wsdltojava/Compare.class b/AnalyseClient/target/classes/fr/insa/soap/wsdltojava/Compare.class new file mode 100644 index 0000000..e6d3a83 Binary files /dev/null and b/AnalyseClient/target/classes/fr/insa/soap/wsdltojava/Compare.class differ diff --git a/AnalyseClient/target/classes/fr/insa/soap/wsdltojava/CompareResponse.class b/AnalyseClient/target/classes/fr/insa/soap/wsdltojava/CompareResponse.class new file mode 100644 index 0000000..0e9f504 Binary files /dev/null and b/AnalyseClient/target/classes/fr/insa/soap/wsdltojava/CompareResponse.class differ diff --git a/AnalyseClient/target/classes/fr/insa/soap/wsdltojava/ObjectFactory.class b/AnalyseClient/target/classes/fr/insa/soap/wsdltojava/ObjectFactory.class new file mode 100644 index 0000000..0a52061 Binary files /dev/null and b/AnalyseClient/target/classes/fr/insa/soap/wsdltojava/ObjectFactory.class differ diff --git a/AnalyseClient/target/classes/fr/insa/soap/wsdltojava/package-info.class b/AnalyseClient/target/classes/fr/insa/soap/wsdltojava/package-info.class new file mode 100644 index 0000000..ca7228e Binary files /dev/null and b/AnalyseClient/target/classes/fr/insa/soap/wsdltojava/package-info.class differ diff --git a/AnalyseClient/target/classes/wsdl/analyzer.wsdl b/AnalyseClient/target/classes/wsdl/analyzer.wsdl new file mode 100644 index 0000000..c258088 --- /dev/null +++ b/AnalyseClient/target/classes/wsdl/analyzer.wsdl @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AnalyseClient/target/cxf-codegen-plugin-markers/.3B50E8084EFAFD2FEAFB634EE499AF485E9DB4E3 b/AnalyseClient/target/cxf-codegen-plugin-markers/.3B50E8084EFAFD2FEAFB634EE499AF485E9DB4E3 new file mode 100644 index 0000000..2070da2 Binary files /dev/null and b/AnalyseClient/target/cxf-codegen-plugin-markers/.3B50E8084EFAFD2FEAFB634EE499AF485E9DB4E3 differ diff --git a/AnalyseClient/target/generated-sources/cxf/fr/insa/soap/wsdltojava/AnalyserChaineWS.java b/AnalyseClient/target/generated-sources/cxf/fr/insa/soap/wsdltojava/AnalyserChaineWS.java new file mode 100644 index 0000000..4a9e66f --- /dev/null +++ b/AnalyseClient/target/generated-sources/cxf/fr/insa/soap/wsdltojava/AnalyserChaineWS.java @@ -0,0 +1,32 @@ +package fr.insa.soap.wsdltojava; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.ws.Action; +import javax.xml.ws.RequestWrapper; +import javax.xml.ws.ResponseWrapper; + +/** + * This class was generated by Apache CXF 3.4.2 + * 2024-10-02T17:53:06.830+02:00 + * Generated source version: 3.4.2 + * + */ +@WebService(targetNamespace = "http://soap.insa.fr/", name = "AnalyserChaineWS") +@XmlSeeAlso({ObjectFactory.class}) +public interface AnalyserChaineWS { + + @WebMethod + @Action(input = "http://soap.insa.fr/AnalyserChaineWS/compareRequest", output = "http://soap.insa.fr/AnalyserChaineWS/compareResponse") + @RequestWrapper(localName = "compare", targetNamespace = "http://soap.insa.fr/", className = "fr.insa.soap.wsdltojava.Compare") + @ResponseWrapper(localName = "compareResponse", targetNamespace = "http://soap.insa.fr/", className = "fr.insa.soap.wsdltojava.CompareResponse") + @WebResult(name = "return", targetNamespace = "") + public int compare( + + @WebParam(name = "chain", targetNamespace = "") + java.lang.String chain + ); +} diff --git a/AnalyseClient/target/generated-sources/cxf/fr/insa/soap/wsdltojava/Analyzer.java b/AnalyseClient/target/generated-sources/cxf/fr/insa/soap/wsdltojava/Analyzer.java new file mode 100644 index 0000000..62293cb --- /dev/null +++ b/AnalyseClient/target/generated-sources/cxf/fr/insa/soap/wsdltojava/Analyzer.java @@ -0,0 +1,87 @@ +package fr.insa.soap.wsdltojava; + +import java.net.MalformedURLException; +import java.net.URL; +import javax.xml.namespace.QName; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import javax.xml.ws.WebServiceFeature; +import javax.xml.ws.Service; + +/** + * This class was generated by Apache CXF 3.4.2 + * 2024-10-02T17:53:06.867+02:00 + * Generated source version: 3.4.2 + * + */ +@WebServiceClient(name = "analyzer", + wsdlLocation = "file:/home/nbillard/eclipse-workspace/AnalyseClient/src/main/resources/wsdl/analyzer.wsdl", + targetNamespace = "http://soap.insa.fr/") +public class Analyzer extends Service { + + public final static URL WSDL_LOCATION; + + public final static QName SERVICE = new QName("http://soap.insa.fr/", "analyzer"); + public final static QName AnalyserChaineWSPort = new QName("http://soap.insa.fr/", "AnalyserChaineWSPort"); + static { + URL url = null; + try { + url = new URL("file:/home/nbillard/eclipse-workspace/AnalyseClient/src/main/resources/wsdl/analyzer.wsdl"); + } catch (MalformedURLException e) { + java.util.logging.Logger.getLogger(Analyzer.class.getName()) + .log(java.util.logging.Level.INFO, + "Can not initialize the default wsdl from {0}", "file:/home/nbillard/eclipse-workspace/AnalyseClient/src/main/resources/wsdl/analyzer.wsdl"); + } + WSDL_LOCATION = url; + } + + public Analyzer(URL wsdlLocation) { + super(wsdlLocation, SERVICE); + } + + public Analyzer(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public Analyzer() { + super(WSDL_LOCATION, SERVICE); + } + + public Analyzer(WebServiceFeature ... features) { + super(WSDL_LOCATION, SERVICE, features); + } + + public Analyzer(URL wsdlLocation, WebServiceFeature ... features) { + super(wsdlLocation, SERVICE, features); + } + + public Analyzer(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) { + super(wsdlLocation, serviceName, features); + } + + + + + /** + * + * @return + * returns AnalyserChaineWS + */ + @WebEndpoint(name = "AnalyserChaineWSPort") + public AnalyserChaineWS getAnalyserChaineWSPort() { + return super.getPort(AnalyserChaineWSPort, AnalyserChaineWS.class); + } + + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns AnalyserChaineWS + */ + @WebEndpoint(name = "AnalyserChaineWSPort") + public AnalyserChaineWS getAnalyserChaineWSPort(WebServiceFeature... features) { + return super.getPort(AnalyserChaineWSPort, AnalyserChaineWS.class, features); + } + +} diff --git a/AnalyseClient/target/generated-sources/cxf/fr/insa/soap/wsdltojava/Compare.java b/AnalyseClient/target/generated-sources/cxf/fr/insa/soap/wsdltojava/Compare.java new file mode 100644 index 0000000..bf3eb38 --- /dev/null +++ b/AnalyseClient/target/generated-sources/cxf/fr/insa/soap/wsdltojava/Compare.java @@ -0,0 +1,60 @@ + +package fr.insa.soap.wsdltojava; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Classe Java pour compare complex type. + * + * <p>Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe. + * + * <pre> + * &lt;complexType name="compare"&gt; + * &lt;complexContent&gt; + * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; + * &lt;sequence&gt; + * &lt;element name="chain" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; + * &lt;/sequence&gt; + * &lt;/restriction&gt; + * &lt;/complexContent&gt; + * &lt;/complexType&gt; + * </pre> + * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "compare", propOrder = { + "chain" +}) +public class Compare { + + protected String chain; + + /** + * Obtient la valeur de la propriété chain. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChain() { + return chain; + } + + /** + * Définit la valeur de la propriété chain. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChain(String value) { + this.chain = value; + } + +} diff --git a/AnalyseClient/target/generated-sources/cxf/fr/insa/soap/wsdltojava/CompareResponse.java b/AnalyseClient/target/generated-sources/cxf/fr/insa/soap/wsdltojava/CompareResponse.java new file mode 100644 index 0000000..fd21b0e --- /dev/null +++ b/AnalyseClient/target/generated-sources/cxf/fr/insa/soap/wsdltojava/CompareResponse.java @@ -0,0 +1,54 @@ + +package fr.insa.soap.wsdltojava; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Classe Java pour compareResponse complex type. + * + * <p>Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe. + * + * <pre> + * &lt;complexType name="compareResponse"&gt; + * &lt;complexContent&gt; + * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; + * &lt;sequence&gt; + * &lt;element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/&gt; + * &lt;/sequence&gt; + * &lt;/restriction&gt; + * &lt;/complexContent&gt; + * &lt;/complexType&gt; + * </pre> + * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "compareResponse", propOrder = { + "_return" +}) +public class CompareResponse { + + @XmlElement(name = "return") + protected int _return; + + /** + * Obtient la valeur de la propriété return. + * + */ + public int getReturn() { + return _return; + } + + /** + * Définit la valeur de la propriété return. + * + */ + public void setReturn(int value) { + this._return = value; + } + +} diff --git a/AnalyseClient/target/generated-sources/cxf/fr/insa/soap/wsdltojava/ObjectFactory.java b/AnalyseClient/target/generated-sources/cxf/fr/insa/soap/wsdltojava/ObjectFactory.java new file mode 100644 index 0000000..c0fc773 --- /dev/null +++ b/AnalyseClient/target/generated-sources/cxf/fr/insa/soap/wsdltojava/ObjectFactory.java @@ -0,0 +1,79 @@ + +package fr.insa.soap.wsdltojava; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the fr.insa.soap.wsdltojava package. + * <p>An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _Compare_QNAME = new QName("http://soap.insa.fr/", "compare"); + private final static QName _CompareResponse_QNAME = new QName("http://soap.insa.fr/", "compareResponse"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: fr.insa.soap.wsdltojava + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link Compare } + * + */ + public Compare createCompare() { + return new Compare(); + } + + /** + * Create an instance of {@link CompareResponse } + * + */ + public CompareResponse createCompareResponse() { + return new CompareResponse(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Compare }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Compare }{@code >} + */ + @XmlElementDecl(namespace = "http://soap.insa.fr/", name = "compare") + public JAXBElement createCompare(Compare value) { + return new JAXBElement(_Compare_QNAME, Compare.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CompareResponse }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link CompareResponse }{@code >} + */ + @XmlElementDecl(namespace = "http://soap.insa.fr/", name = "compareResponse") + public JAXBElement createCompareResponse(CompareResponse value) { + return new JAXBElement(_CompareResponse_QNAME, CompareResponse.class, null, value); + } + +} diff --git a/AnalyseClient/target/generated-sources/cxf/fr/insa/soap/wsdltojava/package-info.java b/AnalyseClient/target/generated-sources/cxf/fr/insa/soap/wsdltojava/package-info.java new file mode 100644 index 0000000..d36a261 --- /dev/null +++ b/AnalyseClient/target/generated-sources/cxf/fr/insa/soap/wsdltojava/package-info.java @@ -0,0 +1,2 @@ +@javax.xml.bind.annotation.XmlSchema(namespace = "http://soap.insa.fr/") +package fr.insa.soap.wsdltojava; diff --git a/Benevolat/.classpath b/Benevolat/.classpath new file mode 100644 index 0000000..f7e4a1d --- /dev/null +++ b/Benevolat/.classpath @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Benevolat/.project b/Benevolat/.project new file mode 100644 index 0000000..0cb515e --- /dev/null +++ b/Benevolat/.project @@ -0,0 +1,23 @@ + + + Benevolat + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/Benevolat/.settings/org.eclipse.jdt.core.prefs b/Benevolat/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..2f5cc74 --- /dev/null +++ b/Benevolat/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,8 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/Benevolat/.settings/org.eclipse.m2e.core.prefs b/Benevolat/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/Benevolat/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/Benevolat/pom.xml b/Benevolat/pom.xml new file mode 100644 index 0000000..83f783c --- /dev/null +++ b/Benevolat/pom.xml @@ -0,0 +1,21 @@ + + 4.0.0 + fr.insa.ws.soap + Benevolat + 0.0.1-SNAPSHOT + + + 11 + + + + + com.sun.xml.ws + jaxws-rt + 2.3.6 + + + + \ No newline at end of file diff --git a/Benevolat/src/main/java/fr/insa/soap/AnalyserChaineApplication.java b/Benevolat/src/main/java/fr/insa/soap/AnalyserChaineApplication.java new file mode 100644 index 0000000..a44de4b --- /dev/null +++ b/Benevolat/src/main/java/fr/insa/soap/AnalyserChaineApplication.java @@ -0,0 +1,20 @@ +package fr.insa.soap; + +import java.net.MalformedURLException; + +import javax.xml.ws.Endpoint; + +public class AnalyserChaineApplication { + public static String host="localhost"; + public static short port=8089; + + public void demarrerService() { + String url="http://"+host+":" +port + "/"; + Endpoint.publish(url, new AnalyserChaineWS()); + } + + public static void main(String [] args) throws MalformedURLException { + new AnalyserChaineApplication().demarrerService(); + System.out.println("Service a demarré"); + } +} diff --git a/Benevolat/src/main/java/fr/insa/soap/AnalyserChaineWS.java b/Benevolat/src/main/java/fr/insa/soap/AnalyserChaineWS.java new file mode 100644 index 0000000..eb6ab4a --- /dev/null +++ b/Benevolat/src/main/java/fr/insa/soap/AnalyserChaineWS.java @@ -0,0 +1,14 @@ +package fr.insa.soap; + + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebService; + +@WebService(serviceName="analyzer") +public class AnalyserChaineWS { + @WebMethod(operationName="compare") + public int analyser(@WebParam(name="chain") String chaine) { + return chaine.length(); + } +} diff --git a/Benevolat/target/classes/META-INF/MANIFEST.MF b/Benevolat/target/classes/META-INF/MANIFEST.MF new file mode 100644 index 0000000..3cbb63e --- /dev/null +++ b/Benevolat/target/classes/META-INF/MANIFEST.MF @@ -0,0 +1,4 @@ +Manifest-Version: 1.0 +Build-Jdk-Spec: 22 +Created-By: Maven Integration for Eclipse + diff --git a/Benevolat/target/classes/META-INF/maven/fr.insa.ws.soap/Benevolat/pom.properties b/Benevolat/target/classes/META-INF/maven/fr.insa.ws.soap/Benevolat/pom.properties new file mode 100644 index 0000000..8197bfa --- /dev/null +++ b/Benevolat/target/classes/META-INF/maven/fr.insa.ws.soap/Benevolat/pom.properties @@ -0,0 +1,7 @@ +#Generated by Maven Integration for Eclipse +#Wed Oct 02 16:52:40 CEST 2024 +artifactId=Benevolat +groupId=fr.insa.ws.soap +m2e.projectLocation=/home/nbillard/eclipse-workspace/Benevolat +m2e.projectName=Benevolat +version=0.0.1-SNAPSHOT diff --git a/Benevolat/target/classes/META-INF/maven/fr.insa.ws.soap/Benevolat/pom.xml b/Benevolat/target/classes/META-INF/maven/fr.insa.ws.soap/Benevolat/pom.xml new file mode 100644 index 0000000..83f783c --- /dev/null +++ b/Benevolat/target/classes/META-INF/maven/fr.insa.ws.soap/Benevolat/pom.xml @@ -0,0 +1,21 @@ + + 4.0.0 + fr.insa.ws.soap + Benevolat + 0.0.1-SNAPSHOT + + + 11 + + + + + com.sun.xml.ws + jaxws-rt + 2.3.6 + + + + \ No newline at end of file diff --git a/Benevolat/target/classes/fr/insa/soap/AnalyserChaineApplication.class b/Benevolat/target/classes/fr/insa/soap/AnalyserChaineApplication.class new file mode 100644 index 0000000..f91a8b6 Binary files /dev/null and b/Benevolat/target/classes/fr/insa/soap/AnalyserChaineApplication.class differ diff --git a/Benevolat/target/classes/fr/insa/soap/AnalyserChaineWS.class b/Benevolat/target/classes/fr/insa/soap/AnalyserChaineWS.class new file mode 100644 index 0000000..143f267 Binary files /dev/null and b/Benevolat/target/classes/fr/insa/soap/AnalyserChaineWS.class differ diff --git a/NumberConversion/.classpath b/NumberConversion/.classpath new file mode 100644 index 0000000..2b8cab8 --- /dev/null +++ b/NumberConversion/.classpath @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/NumberConversion/.project b/NumberConversion/.project new file mode 100644 index 0000000..7ed66d5 --- /dev/null +++ b/NumberConversion/.project @@ -0,0 +1,23 @@ + + + NumberConversion + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/NumberConversion/.settings/org.eclipse.jdt.core.prefs b/NumberConversion/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..2f5cc74 --- /dev/null +++ b/NumberConversion/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,8 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/NumberConversion/.settings/org.eclipse.m2e.core.prefs b/NumberConversion/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/NumberConversion/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/NumberConversion/pom.xml b/NumberConversion/pom.xml new file mode 100644 index 0000000..778ad96 --- /dev/null +++ b/NumberConversion/pom.xml @@ -0,0 +1,54 @@ + + 4.0.0 + fr.insa.soap + NumberConversion + 0.0.1-SNAPSHOT + + 17 + 3.4.2 + + + + + + com.sun.xml.ws + jaxws-rt + 2.3.6 + + + + + + org.apache.cxf + cxf-codegen-plugin + ${cxf.version} + + + generate-sources + generate-sources + + + ${project.build.directory}/generated-sources/cxf + + + + + ${basedir}/src/main/resources/wsdl/numberconversion.wsdl + + + fr.insa.soap.wsdltojava + + + + + + wsdl2java + + + + + + + \ No newline at end of file diff --git a/NumberConversion/src/main/java/NumberConversionTester.java b/NumberConversion/src/main/java/NumberConversionTester.java new file mode 100644 index 0000000..807ff42 --- /dev/null +++ b/NumberConversion/src/main/java/NumberConversionTester.java @@ -0,0 +1,19 @@ +import java.math.BigInteger; +import java.net.MalformedURLException; +import java.net.URI; +import java.net.URL; + +import fr.insa.soap.wsdltojava.NumberConversion; +import fr.insa.soap.wsdltojava.NumberConversionSoapType; + + +public class NumberConversionTester { + public static void main(String [] args) throws MalformedURLException{ + final String adresse="https://www.dataaccess.com/webservicesserver/numberconversion.wso"; + final URL url = URI.create(adresse).toURL(); + final NumberConversion service = new NumberConversion(url); + final NumberConversionSoapType port = service.getPort(NumberConversionSoapType.class); + BigInteger test = new BigInteger("412342"); + System.out.println("We call " + test + " " + port.numberToWords(test)); + } +} diff --git a/NumberConversion/src/main/resources/wsdl/numberconversion.wsdl b/NumberConversion/src/main/resources/wsdl/numberconversion.wsdl new file mode 100644 index 0000000..3c84059 --- /dev/null +++ b/NumberConversion/src/main/resources/wsdl/numberconversion.wsdl @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Returns the word corresponding to the positive number passed as parameter. Limited to quadrillions. + + + + + Returns the non-zero dollar amount of the passed number. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The Number Conversion Web Service, implemented with Visual DataFlex, provides functions that convert numbers into words or dollar amounts. + + + + + + + + \ No newline at end of file diff --git a/NumberConversion/target/classes/META-INF/MANIFEST.MF b/NumberConversion/target/classes/META-INF/MANIFEST.MF new file mode 100644 index 0000000..3cbb63e --- /dev/null +++ b/NumberConversion/target/classes/META-INF/MANIFEST.MF @@ -0,0 +1,4 @@ +Manifest-Version: 1.0 +Build-Jdk-Spec: 22 +Created-By: Maven Integration for Eclipse + diff --git a/NumberConversion/target/classes/META-INF/maven/fr.insa.soap/NumberConversion/pom.properties b/NumberConversion/target/classes/META-INF/maven/fr.insa.soap/NumberConversion/pom.properties new file mode 100644 index 0000000..c24a0e5 --- /dev/null +++ b/NumberConversion/target/classes/META-INF/maven/fr.insa.soap/NumberConversion/pom.properties @@ -0,0 +1,7 @@ +#Generated by Maven Integration for Eclipse +#Tue Oct 08 14:51:58 CEST 2024 +artifactId=NumberConversion +groupId=fr.insa.soap +m2e.projectLocation=/home/nbillard/eclipse-workspace/NumberConversion +m2e.projectName=NumberConversion +version=0.0.1-SNAPSHOT diff --git a/NumberConversion/target/classes/META-INF/maven/fr.insa.soap/NumberConversion/pom.xml b/NumberConversion/target/classes/META-INF/maven/fr.insa.soap/NumberConversion/pom.xml new file mode 100644 index 0000000..778ad96 --- /dev/null +++ b/NumberConversion/target/classes/META-INF/maven/fr.insa.soap/NumberConversion/pom.xml @@ -0,0 +1,54 @@ + + 4.0.0 + fr.insa.soap + NumberConversion + 0.0.1-SNAPSHOT + + 17 + 3.4.2 + + + + + + com.sun.xml.ws + jaxws-rt + 2.3.6 + + + + + + org.apache.cxf + cxf-codegen-plugin + ${cxf.version} + + + generate-sources + generate-sources + + + ${project.build.directory}/generated-sources/cxf + + + + + ${basedir}/src/main/resources/wsdl/numberconversion.wsdl + + + fr.insa.soap.wsdltojava + + + + + + wsdl2java + + + + + + + \ No newline at end of file diff --git a/NumberConversion/target/classes/NumberConversionTester.class b/NumberConversion/target/classes/NumberConversionTester.class new file mode 100644 index 0000000..e0d210b Binary files /dev/null and b/NumberConversion/target/classes/NumberConversionTester.class differ diff --git a/NumberConversion/target/classes/fr/insa/soap/wsdltojava/NumberConversion.class b/NumberConversion/target/classes/fr/insa/soap/wsdltojava/NumberConversion.class new file mode 100644 index 0000000..fe76a79 Binary files /dev/null and b/NumberConversion/target/classes/fr/insa/soap/wsdltojava/NumberConversion.class differ diff --git a/NumberConversion/target/classes/fr/insa/soap/wsdltojava/NumberConversionSoapType.class b/NumberConversion/target/classes/fr/insa/soap/wsdltojava/NumberConversionSoapType.class new file mode 100644 index 0000000..d45228a Binary files /dev/null and b/NumberConversion/target/classes/fr/insa/soap/wsdltojava/NumberConversionSoapType.class differ diff --git a/NumberConversion/target/classes/fr/insa/soap/wsdltojava/NumberToDollars.class b/NumberConversion/target/classes/fr/insa/soap/wsdltojava/NumberToDollars.class new file mode 100644 index 0000000..73ab765 Binary files /dev/null and b/NumberConversion/target/classes/fr/insa/soap/wsdltojava/NumberToDollars.class differ diff --git a/NumberConversion/target/classes/fr/insa/soap/wsdltojava/NumberToDollarsResponse.class b/NumberConversion/target/classes/fr/insa/soap/wsdltojava/NumberToDollarsResponse.class new file mode 100644 index 0000000..a4c4553 Binary files /dev/null and b/NumberConversion/target/classes/fr/insa/soap/wsdltojava/NumberToDollarsResponse.class differ diff --git a/NumberConversion/target/classes/fr/insa/soap/wsdltojava/NumberToWords.class b/NumberConversion/target/classes/fr/insa/soap/wsdltojava/NumberToWords.class new file mode 100644 index 0000000..6c69c20 Binary files /dev/null and b/NumberConversion/target/classes/fr/insa/soap/wsdltojava/NumberToWords.class differ diff --git a/NumberConversion/target/classes/fr/insa/soap/wsdltojava/NumberToWordsResponse.class b/NumberConversion/target/classes/fr/insa/soap/wsdltojava/NumberToWordsResponse.class new file mode 100644 index 0000000..373439d Binary files /dev/null and b/NumberConversion/target/classes/fr/insa/soap/wsdltojava/NumberToWordsResponse.class differ diff --git a/NumberConversion/target/classes/fr/insa/soap/wsdltojava/ObjectFactory.class b/NumberConversion/target/classes/fr/insa/soap/wsdltojava/ObjectFactory.class new file mode 100644 index 0000000..7245640 Binary files /dev/null and b/NumberConversion/target/classes/fr/insa/soap/wsdltojava/ObjectFactory.class differ diff --git a/NumberConversion/target/classes/fr/insa/soap/wsdltojava/package-info.class b/NumberConversion/target/classes/fr/insa/soap/wsdltojava/package-info.class new file mode 100644 index 0000000..0fc592c Binary files /dev/null and b/NumberConversion/target/classes/fr/insa/soap/wsdltojava/package-info.class differ diff --git a/NumberConversion/target/classes/wsdl/numberconversion.wsdl b/NumberConversion/target/classes/wsdl/numberconversion.wsdl new file mode 100644 index 0000000..3c84059 --- /dev/null +++ b/NumberConversion/target/classes/wsdl/numberconversion.wsdl @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Returns the word corresponding to the positive number passed as parameter. Limited to quadrillions. + + + + + Returns the non-zero dollar amount of the passed number. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The Number Conversion Web Service, implemented with Visual DataFlex, provides functions that convert numbers into words or dollar amounts. + + + + + + + + \ No newline at end of file diff --git a/NumberConversion/target/cxf-codegen-plugin-markers/.06AC7E89EFA784B989AF93554BD7BC700CCD147E b/NumberConversion/target/cxf-codegen-plugin-markers/.06AC7E89EFA784B989AF93554BD7BC700CCD147E new file mode 100644 index 0000000..e8b9ffe Binary files /dev/null and b/NumberConversion/target/cxf-codegen-plugin-markers/.06AC7E89EFA784B989AF93554BD7BC700CCD147E differ diff --git a/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/NumberConversion.java b/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/NumberConversion.java new file mode 100644 index 0000000..0dc813c --- /dev/null +++ b/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/NumberConversion.java @@ -0,0 +1,113 @@ +package fr.insa.soap.wsdltojava; + +import java.net.MalformedURLException; +import java.net.URL; +import javax.xml.namespace.QName; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import javax.xml.ws.WebServiceFeature; +import javax.xml.ws.Service; + +/** + * The Number Conversion Web Service, implemented with Visual DataFlex, provides functions that convert numbers into words or dollar amounts. + * + * This class was generated by Apache CXF 3.4.2 + * 2024-10-08T14:41:29.112+02:00 + * Generated source version: 3.4.2 + * + */ +@WebServiceClient(name = "NumberConversion", + wsdlLocation = "file:/home/nbillard/eclipse-workspace/NumberConversion/src/main/resources/wsdl/numberconversion.wsdl", + targetNamespace = "http://www.dataaccess.com/webservicesserver/") +public class NumberConversion extends Service { + + public final static URL WSDL_LOCATION; + + public final static QName SERVICE = new QName("http://www.dataaccess.com/webservicesserver/", "NumberConversion"); + public final static QName NumberConversionSoap = new QName("http://www.dataaccess.com/webservicesserver/", "NumberConversionSoap"); + public final static QName NumberConversionSoap12 = new QName("http://www.dataaccess.com/webservicesserver/", "NumberConversionSoap12"); + static { + URL url = null; + try { + url = new URL("file:/home/nbillard/eclipse-workspace/NumberConversion/src/main/resources/wsdl/numberconversion.wsdl"); + } catch (MalformedURLException e) { + java.util.logging.Logger.getLogger(NumberConversion.class.getName()) + .log(java.util.logging.Level.INFO, + "Can not initialize the default wsdl from {0}", "file:/home/nbillard/eclipse-workspace/NumberConversion/src/main/resources/wsdl/numberconversion.wsdl"); + } + WSDL_LOCATION = url; + } + + public NumberConversion(URL wsdlLocation) { + super(wsdlLocation, SERVICE); + } + + public NumberConversion(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public NumberConversion() { + super(WSDL_LOCATION, SERVICE); + } + + public NumberConversion(WebServiceFeature ... features) { + super(WSDL_LOCATION, SERVICE, features); + } + + public NumberConversion(URL wsdlLocation, WebServiceFeature ... features) { + super(wsdlLocation, SERVICE, features); + } + + public NumberConversion(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) { + super(wsdlLocation, serviceName, features); + } + + + + + /** + * + * @return + * returns NumberConversionSoapType + */ + @WebEndpoint(name = "NumberConversionSoap") + public NumberConversionSoapType getNumberConversionSoap() { + return super.getPort(NumberConversionSoap, NumberConversionSoapType.class); + } + + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns NumberConversionSoapType + */ + @WebEndpoint(name = "NumberConversionSoap") + public NumberConversionSoapType getNumberConversionSoap(WebServiceFeature... features) { + return super.getPort(NumberConversionSoap, NumberConversionSoapType.class, features); + } + + + /** + * + * @return + * returns NumberConversionSoapType + */ + @WebEndpoint(name = "NumberConversionSoap12") + public NumberConversionSoapType getNumberConversionSoap12() { + return super.getPort(NumberConversionSoap12, NumberConversionSoapType.class); + } + + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns NumberConversionSoapType + */ + @WebEndpoint(name = "NumberConversionSoap12") + public NumberConversionSoapType getNumberConversionSoap12(WebServiceFeature... features) { + return super.getPort(NumberConversionSoap12, NumberConversionSoapType.class, features); + } + +} diff --git a/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/NumberConversionSoapType.java b/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/NumberConversionSoapType.java new file mode 100644 index 0000000..8a03af1 --- /dev/null +++ b/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/NumberConversionSoapType.java @@ -0,0 +1,46 @@ +package fr.insa.soap.wsdltojava; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.ws.RequestWrapper; +import javax.xml.ws.ResponseWrapper; + +/** + * This class was generated by Apache CXF 3.4.2 + * 2024-10-08T14:41:29.064+02:00 + * Generated source version: 3.4.2 + * + */ +@WebService(targetNamespace = "http://www.dataaccess.com/webservicesserver/", name = "NumberConversionSoapType") +@XmlSeeAlso({ObjectFactory.class}) +public interface NumberConversionSoapType { + + /** + * Returns the word corresponding to the positive number passed as parameter. Limited to quadrillions. + */ + @WebMethod(operationName = "NumberToWords") + @RequestWrapper(localName = "NumberToWords", targetNamespace = "http://www.dataaccess.com/webservicesserver/", className = "fr.insa.soap.wsdltojava.NumberToWords") + @ResponseWrapper(localName = "NumberToWordsResponse", targetNamespace = "http://www.dataaccess.com/webservicesserver/", className = "fr.insa.soap.wsdltojava.NumberToWordsResponse") + @WebResult(name = "NumberToWordsResult", targetNamespace = "http://www.dataaccess.com/webservicesserver/") + public java.lang.String numberToWords( + + @WebParam(name = "ubiNum", targetNamespace = "http://www.dataaccess.com/webservicesserver/") + java.math.BigInteger ubiNum + ); + + /** + * Returns the non-zero dollar amount of the passed number. + */ + @WebMethod(operationName = "NumberToDollars") + @RequestWrapper(localName = "NumberToDollars", targetNamespace = "http://www.dataaccess.com/webservicesserver/", className = "fr.insa.soap.wsdltojava.NumberToDollars") + @ResponseWrapper(localName = "NumberToDollarsResponse", targetNamespace = "http://www.dataaccess.com/webservicesserver/", className = "fr.insa.soap.wsdltojava.NumberToDollarsResponse") + @WebResult(name = "NumberToDollarsResult", targetNamespace = "http://www.dataaccess.com/webservicesserver/") + public java.lang.String numberToDollars( + + @WebParam(name = "dNum", targetNamespace = "http://www.dataaccess.com/webservicesserver/") + java.math.BigDecimal dNum + ); +} diff --git a/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/NumberToDollars.java b/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/NumberToDollars.java new file mode 100644 index 0000000..3a7f305 --- /dev/null +++ b/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/NumberToDollars.java @@ -0,0 +1,65 @@ + +package fr.insa.soap.wsdltojava; + +import java.math.BigDecimal; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Classe Java pour anonymous complex type. + * + * <p>Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe. + * + * <pre> + * &lt;complexType&gt; + * &lt;complexContent&gt; + * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; + * &lt;sequence&gt; + * &lt;element name="dNum" type="{http://www.w3.org/2001/XMLSchema}decimal"/&gt; + * &lt;/sequence&gt; + * &lt;/restriction&gt; + * &lt;/complexContent&gt; + * &lt;/complexType&gt; + * </pre> + * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "dNum" +}) +@XmlRootElement(name = "NumberToDollars") +public class NumberToDollars { + + @XmlElement(required = true) + protected BigDecimal dNum; + + /** + * Obtient la valeur de la propriété dNum. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getDNum() { + return dNum; + } + + /** + * Définit la valeur de la propriété dNum. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setDNum(BigDecimal value) { + this.dNum = value; + } + +} diff --git a/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/NumberToDollarsResponse.java b/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/NumberToDollarsResponse.java new file mode 100644 index 0000000..1d5b8d7 --- /dev/null +++ b/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/NumberToDollarsResponse.java @@ -0,0 +1,64 @@ + +package fr.insa.soap.wsdltojava; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Classe Java pour anonymous complex type. + * + * <p>Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe. + * + * <pre> + * &lt;complexType&gt; + * &lt;complexContent&gt; + * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; + * &lt;sequence&gt; + * &lt;element name="NumberToDollarsResult" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; + * &lt;/sequence&gt; + * &lt;/restriction&gt; + * &lt;/complexContent&gt; + * &lt;/complexType&gt; + * </pre> + * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "numberToDollarsResult" +}) +@XmlRootElement(name = "NumberToDollarsResponse") +public class NumberToDollarsResponse { + + @XmlElement(name = "NumberToDollarsResult", required = true) + protected String numberToDollarsResult; + + /** + * Obtient la valeur de la propriété numberToDollarsResult. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNumberToDollarsResult() { + return numberToDollarsResult; + } + + /** + * Définit la valeur de la propriété numberToDollarsResult. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNumberToDollarsResult(String value) { + this.numberToDollarsResult = value; + } + +} diff --git a/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/NumberToWords.java b/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/NumberToWords.java new file mode 100644 index 0000000..07b7685 --- /dev/null +++ b/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/NumberToWords.java @@ -0,0 +1,67 @@ + +package fr.insa.soap.wsdltojava; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Classe Java pour anonymous complex type. + * + * <p>Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe. + * + * <pre> + * &lt;complexType&gt; + * &lt;complexContent&gt; + * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; + * &lt;sequence&gt; + * &lt;element name="ubiNum" type="{http://www.w3.org/2001/XMLSchema}unsignedLong"/&gt; + * &lt;/sequence&gt; + * &lt;/restriction&gt; + * &lt;/complexContent&gt; + * &lt;/complexType&gt; + * </pre> + * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "ubiNum" +}) +@XmlRootElement(name = "NumberToWords") +public class NumberToWords { + + @XmlElement(required = true) + @XmlSchemaType(name = "unsignedLong") + protected BigInteger ubiNum; + + /** + * Obtient la valeur de la propriété ubiNum. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getUbiNum() { + return ubiNum; + } + + /** + * Définit la valeur de la propriété ubiNum. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setUbiNum(BigInteger value) { + this.ubiNum = value; + } + +} diff --git a/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/NumberToWordsResponse.java b/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/NumberToWordsResponse.java new file mode 100644 index 0000000..26bf8ce --- /dev/null +++ b/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/NumberToWordsResponse.java @@ -0,0 +1,64 @@ + +package fr.insa.soap.wsdltojava; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Classe Java pour anonymous complex type. + * + * <p>Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe. + * + * <pre> + * &lt;complexType&gt; + * &lt;complexContent&gt; + * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; + * &lt;sequence&gt; + * &lt;element name="NumberToWordsResult" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; + * &lt;/sequence&gt; + * &lt;/restriction&gt; + * &lt;/complexContent&gt; + * &lt;/complexType&gt; + * </pre> + * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "numberToWordsResult" +}) +@XmlRootElement(name = "NumberToWordsResponse") +public class NumberToWordsResponse { + + @XmlElement(name = "NumberToWordsResult", required = true) + protected String numberToWordsResult; + + /** + * Obtient la valeur de la propriété numberToWordsResult. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNumberToWordsResult() { + return numberToWordsResult; + } + + /** + * Définit la valeur de la propriété numberToWordsResult. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNumberToWordsResult(String value) { + this.numberToWordsResult = value; + } + +} diff --git a/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/ObjectFactory.java b/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/ObjectFactory.java new file mode 100644 index 0000000..2b28145 --- /dev/null +++ b/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/ObjectFactory.java @@ -0,0 +1,64 @@ + +package fr.insa.soap.wsdltojava; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the fr.insa.soap.wsdltojava package. + * <p>An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: fr.insa.soap.wsdltojava + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link NumberToWords } + * + */ + public NumberToWords createNumberToWords() { + return new NumberToWords(); + } + + /** + * Create an instance of {@link NumberToWordsResponse } + * + */ + public NumberToWordsResponse createNumberToWordsResponse() { + return new NumberToWordsResponse(); + } + + /** + * Create an instance of {@link NumberToDollars } + * + */ + public NumberToDollars createNumberToDollars() { + return new NumberToDollars(); + } + + /** + * Create an instance of {@link NumberToDollarsResponse } + * + */ + public NumberToDollarsResponse createNumberToDollarsResponse() { + return new NumberToDollarsResponse(); + } + +} diff --git a/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/package-info.java b/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/package-info.java new file mode 100644 index 0000000..b123579 --- /dev/null +++ b/NumberConversion/target/generated-sources/cxf/fr/insa/soap/wsdltojava/package-info.java @@ -0,0 +1,2 @@ +@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.dataaccess.com/webservicesserver/", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +package fr.insa.soap.wsdltojava; diff --git a/RestProject/.classpath b/RestProject/.classpath new file mode 100644 index 0000000..3122b27 --- /dev/null +++ b/RestProject/.classpath @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/RestProject/.project b/RestProject/.project new file mode 100644 index 0000000..26f0a60 --- /dev/null +++ b/RestProject/.project @@ -0,0 +1,37 @@ + + + RestProject + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.wst.validation.validationbuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jem.workbench.JavaEMFNature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + org.eclipse.wst.common.project.facet.core.nature + org.eclipse.wst.jsdt.core.jsNature + + diff --git a/RestProject/.settings/.jsdtscope b/RestProject/.settings/.jsdtscope new file mode 100644 index 0000000..e4a0c2d --- /dev/null +++ b/RestProject/.settings/.jsdtscope @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/RestProject/.settings/org.eclipse.core.resources.prefs b/RestProject/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..abdea9a --- /dev/null +++ b/RestProject/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,4 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/main/resources=UTF-8 +encoding/=UTF-8 diff --git a/RestProject/.settings/org.eclipse.jdt.core.prefs b/RestProject/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..532e4e5 --- /dev/null +++ b/RestProject/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,10 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 +org.eclipse.jdt.core.compiler.compliance=17 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=17 diff --git a/RestProject/.settings/org.eclipse.m2e.core.prefs b/RestProject/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/RestProject/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/RestProject/.settings/org.eclipse.wst.common.component b/RestProject/.settings/org.eclipse.wst.common.component new file mode 100644 index 0000000..1ed78bd --- /dev/null +++ b/RestProject/.settings/org.eclipse.wst.common.component @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/RestProject/.settings/org.eclipse.wst.common.project.facet.core.xml b/RestProject/.settings/org.eclipse.wst.common.project.facet.core.xml new file mode 100644 index 0000000..9d34ed1 --- /dev/null +++ b/RestProject/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/RestProject/.settings/org.eclipse.wst.jsdt.ui.superType.container b/RestProject/.settings/org.eclipse.wst.jsdt.ui.superType.container new file mode 100644 index 0000000..3bd5d0a --- /dev/null +++ b/RestProject/.settings/org.eclipse.wst.jsdt.ui.superType.container @@ -0,0 +1 @@ +org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file diff --git a/RestProject/.settings/org.eclipse.wst.jsdt.ui.superType.name b/RestProject/.settings/org.eclipse.wst.jsdt.ui.superType.name new file mode 100644 index 0000000..05bd71b --- /dev/null +++ b/RestProject/.settings/org.eclipse.wst.jsdt.ui.superType.name @@ -0,0 +1 @@ +Window \ No newline at end of file diff --git a/RestProject/.settings/org.eclipse.wst.validation.prefs b/RestProject/.settings/org.eclipse.wst.validation.prefs new file mode 100644 index 0000000..04cad8c --- /dev/null +++ b/RestProject/.settings/org.eclipse.wst.validation.prefs @@ -0,0 +1,2 @@ +disabled=06target +eclipse.preferences.version=1 diff --git a/RestProject/pom.xml b/RestProject/pom.xml new file mode 100644 index 0000000..815da57 --- /dev/null +++ b/RestProject/pom.xml @@ -0,0 +1,92 @@ + + + 4.0.0 + + fr.insa.rest + RestProject + war + 0.0.1-SNAPSHOT + RestProject + + + RestProject + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + true + + 17 + 17 + + + + org.apache.maven.plugins + maven-war-plugin + 3.4.0 + + + + + + + + + org.glassfish.jersey + jersey-bom + ${jersey.version} + pom + import + + + + + + + org.glassfish.jersey.containers + jersey-container-servlet-core + + + + + org.glassfish.jersey.inject + jersey-hk2 + + + + org.glassfish.jersey.media + jersey-media-json-binding + + + + org.glassfish.jersey.archetypes + jersey-quickstart-webapp + 4.0.0-M1 + + + jakarta.servlet + jakarta.servlet-api + 5.0.0 + provided + + + + + + + + + 4.0.0-M1 + UTF-8 + 3.4.0 + + diff --git a/RestProject/src/main/java/fr/insa/rest/RestProject/Binome.java b/RestProject/src/main/java/fr/insa/rest/RestProject/Binome.java new file mode 100644 index 0000000..f213e59 --- /dev/null +++ b/RestProject/src/main/java/fr/insa/rest/RestProject/Binome.java @@ -0,0 +1,18 @@ +package fr.insa.rest.RestProject; + +public class Binome { + private String nom; + private String prenom; + public String getPrenom() { + return prenom; + } + public void setPrenom(String prenom) { + this.prenom = prenom; + } + public String getNom() { + return nom; + } + public void setNom(String nom) { + this.nom = nom; + } +} diff --git a/RestProject/src/main/java/fr/insa/rest/RestProject/Comparator.java b/RestProject/src/main/java/fr/insa/rest/RestProject/Comparator.java new file mode 100644 index 0000000..6643850 --- /dev/null +++ b/RestProject/src/main/java/fr/insa/rest/RestProject/Comparator.java @@ -0,0 +1,41 @@ +package fr.insa.rest.RestProject; + +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; + +@Path("comparator") +public class Comparator { + @GET + @Produces(MediaType.TEXT_PLAIN) + public String sayHello() { + return "Bonjour"; + } + + @GET + @Path("longeur/{chaine}") + @Produces(MediaType.TEXT_PLAIN) + public int getLongeur(@PathParam("chaine") String chaine) { + return chaine.length(); + } + + @GET + @Path("longeurDouble") + @Produces(MediaType.TEXT_PLAIN) + public int getLongeurDouble(@QueryParam("chaine") String chaine) { + return chaine.length() * 2; + } + + @PUT + @Path("/{idEtudiant}") + @Consumes(MediaType.TEXT_PLAIN) + public int updateEtudiant(@PathParam("idEtudiant") int id) { + System.out.println("mise à jour réussie!"); + return id; + } +} diff --git a/RestProject/src/main/java/fr/insa/rest/RestProject/Etudiant.java b/RestProject/src/main/java/fr/insa/rest/RestProject/Etudiant.java new file mode 100644 index 0000000..9f3d6e2 --- /dev/null +++ b/RestProject/src/main/java/fr/insa/rest/RestProject/Etudiant.java @@ -0,0 +1,55 @@ +package fr.insa.rest.RestProject; + +import java.util.ArrayList; + +public class Etudiant { + private int id; + private String nom; + private String prenom; + + private Binome binome; + + private Stage stage; + private ArrayList links = new ArrayList(); + + public int getId() { + return id; + } + public void setId(int id) { + this.id = id; + } + public ArrayList getLinks() { + return links; + } + public Stage getStage() { + return stage; + } + public void setStage(Stage stage) { + this.stage = stage; + } + public String getNom() { + return nom; + } + public void setNom(String nom) { + this.nom = nom; + } + public String getPrenom() { + return prenom; + } + public void setPrenom(String prenom) { + this.prenom = prenom; + } + public Binome getBinome() { + return binome; + } + public void setBinome(Binome binome) { + this.binome = binome; + } + public void addLink(String uri, String rel, String methode) { + Link newLink = new Link(); + newLink.setUri(uri); + newLink.setRel(rel); + newLink.setMethode(methode); + links.add(newLink); + } +} diff --git a/RestProject/src/main/java/fr/insa/rest/RestProject/EtudiantRessource.java b/RestProject/src/main/java/fr/insa/rest/RestProject/EtudiantRessource.java new file mode 100644 index 0000000..98d75ff --- /dev/null +++ b/RestProject/src/main/java/fr/insa/rest/RestProject/EtudiantRessource.java @@ -0,0 +1,48 @@ +package fr.insa.rest.RestProject; + +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.UriInfo; + +@Path("etudiant") +public class EtudiantRessource { + @GET + @Produces(MediaType.APPLICATION_JSON) + public Etudiant getEtudiant(@Context UriInfo uriInfo) { + Etudiant etudiant = new Etudiant(); + etudiant.setNom("N"); + etudiant.setPrenom("G"); + etudiant.addLink(getUriforSelf(uriInfo, etudiant), "self", "GET"); + etudiant.addLink(getUriforStage(uriInfo), "Stage", "GET"); + return etudiant; + } + + @POST + @Path("/{idEtudiant}") + @Consumes(MediaType.APPLICATION_JSON) + public void addEtudiant(Etudiant etudNouv) { + System.out.println("Ajout de l'étudiant " + etudNouv.getNom() + " " + etudNouv.getPrenom() + " réussie !"); + System.out.println("Son binome est " + etudNouv.getBinome().getPrenom() + " " + etudNouv.getBinome().getNom()); + } + + private String getUriforStage(UriInfo uriInfo) { + String url = uriInfo.getBaseUriBuilder() + .path(StageRessource.class) + .build(null) + .toString(); + return url; + } + private String getUriforSelf(UriInfo uriInfo, Etudiant etudiant) { + String url = uriInfo.getBaseUriBuilder() + .path(EtudiantRessource.class) + .path(Long.toString(etudiant.getId())) + .build(null) + .toString(); + return url; + } +} diff --git a/RestProject/src/main/java/fr/insa/rest/RestProject/Link.java b/RestProject/src/main/java/fr/insa/rest/RestProject/Link.java new file mode 100644 index 0000000..8b84b2c --- /dev/null +++ b/RestProject/src/main/java/fr/insa/rest/RestProject/Link.java @@ -0,0 +1,26 @@ +package fr.insa.rest.RestProject; + +public class Link { + private String uri; + private String rel; + private String methode; + + public String getUri() { + return uri; + } + public void setUri(String uri) { + this.uri = uri; + } + public String getRel() { + return rel; + } + public void setRel(String rel) { + this.rel = rel; + } + public String getMethode() { + return methode; + } + public void setMethode(String methode) { + this.methode = methode; + } +} diff --git a/RestProject/src/main/java/fr/insa/rest/RestProject/MyResource.java b/RestProject/src/main/java/fr/insa/rest/RestProject/MyResource.java new file mode 100644 index 0000000..1bab31e --- /dev/null +++ b/RestProject/src/main/java/fr/insa/rest/RestProject/MyResource.java @@ -0,0 +1,25 @@ +package fr.insa.rest.RestProject; + +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; + +/** + * Root resource (exposed at "myresource" path) + */ +@Path("myresource") +public class MyResource { + + /** + * Method handling HTTP GET requests. The returned object will be sent + * to the client as "text/plain" media type. + * + * @return String that will be returned as a text/plain response. + */ + @GET + @Produces(MediaType.TEXT_PLAIN) + public String getIt() { + return "Got it!"; + } +} diff --git a/RestProject/src/main/java/fr/insa/rest/RestProject/Stage.java b/RestProject/src/main/java/fr/insa/rest/RestProject/Stage.java new file mode 100644 index 0000000..2947bd6 --- /dev/null +++ b/RestProject/src/main/java/fr/insa/rest/RestProject/Stage.java @@ -0,0 +1,26 @@ +package fr.insa.rest.RestProject; + +public class Stage { + private int evaluation; + private String competences; + private int annee; + + public int getEvaluation() { + return evaluation; + } + public void setEvaluation(int evaluation) { + this.evaluation = evaluation; + } + public String getCompetences() { + return competences; + } + public void setCompetences(String competences) { + this.competences = competences; + } + public int getAnnee() { + return annee; + } + public void setAnnee(int annee) { + this.annee = annee; + } +} diff --git a/RestProject/src/main/java/fr/insa/rest/RestProject/StageRessource.java b/RestProject/src/main/java/fr/insa/rest/RestProject/StageRessource.java new file mode 100644 index 0000000..a1c5708 --- /dev/null +++ b/RestProject/src/main/java/fr/insa/rest/RestProject/StageRessource.java @@ -0,0 +1,20 @@ +package fr.insa.rest.RestProject; + +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; + +@Path("stage") +public class StageRessource { + + @GET + @Produces(MediaType.APPLICATION_JSON) + public Stage getStage(int idEtudiant) { + Stage stage = new Stage(); + stage.setEvaluation(16);; + stage.setCompetences("SOA, Rest"); + stage.setAnnee(2024); + return stage; + } +} diff --git a/RestProject/src/main/webapp/WEB-INF/web.xml b/RestProject/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..01940ae --- /dev/null +++ b/RestProject/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,18 @@ + + + + + Jersey Web Application + org.glassfish.jersey.servlet.ServletContainer + + jersey.config.server.provider.packages + fr.insa.rest.RestProject + + 1 + + + Jersey Web Application + /webapi/* + + diff --git a/RestProject/src/main/webapp/index.jsp b/RestProject/src/main/webapp/index.jsp new file mode 100644 index 0000000..bfead03 --- /dev/null +++ b/RestProject/src/main/webapp/index.jsp @@ -0,0 +1,10 @@ + + +

Jersey RESTful Web Application!

+

Jersey resource

+

Comparator

+

Etudiant

+

Visit Project Jersey website

+ for more information on Jersey! + + diff --git a/RestProject/target/classes/fr/insa/rest/RestProject/Binome.class b/RestProject/target/classes/fr/insa/rest/RestProject/Binome.class new file mode 100644 index 0000000..996216e Binary files /dev/null and b/RestProject/target/classes/fr/insa/rest/RestProject/Binome.class differ diff --git a/RestProject/target/classes/fr/insa/rest/RestProject/Comparator.class b/RestProject/target/classes/fr/insa/rest/RestProject/Comparator.class new file mode 100644 index 0000000..91e4a5f Binary files /dev/null and b/RestProject/target/classes/fr/insa/rest/RestProject/Comparator.class differ diff --git a/RestProject/target/classes/fr/insa/rest/RestProject/Etudiant.class b/RestProject/target/classes/fr/insa/rest/RestProject/Etudiant.class new file mode 100644 index 0000000..36c92b2 Binary files /dev/null and b/RestProject/target/classes/fr/insa/rest/RestProject/Etudiant.class differ diff --git a/RestProject/target/classes/fr/insa/rest/RestProject/EtudiantRessource.class b/RestProject/target/classes/fr/insa/rest/RestProject/EtudiantRessource.class new file mode 100644 index 0000000..2997fc6 Binary files /dev/null and b/RestProject/target/classes/fr/insa/rest/RestProject/EtudiantRessource.class differ diff --git a/RestProject/target/classes/fr/insa/rest/RestProject/Link.class b/RestProject/target/classes/fr/insa/rest/RestProject/Link.class new file mode 100644 index 0000000..d5bfae5 Binary files /dev/null and b/RestProject/target/classes/fr/insa/rest/RestProject/Link.class differ diff --git a/RestProject/target/classes/fr/insa/rest/RestProject/MyResource.class b/RestProject/target/classes/fr/insa/rest/RestProject/MyResource.class new file mode 100644 index 0000000..61bd3d4 Binary files /dev/null and b/RestProject/target/classes/fr/insa/rest/RestProject/MyResource.class differ diff --git a/RestProject/target/classes/fr/insa/rest/RestProject/Stage.class b/RestProject/target/classes/fr/insa/rest/RestProject/Stage.class new file mode 100644 index 0000000..04cba90 Binary files /dev/null and b/RestProject/target/classes/fr/insa/rest/RestProject/Stage.class differ diff --git a/RestProject/target/classes/fr/insa/rest/RestProject/StageRessource.class b/RestProject/target/classes/fr/insa/rest/RestProject/StageRessource.class new file mode 100644 index 0000000..d2a794e Binary files /dev/null and b/RestProject/target/classes/fr/insa/rest/RestProject/StageRessource.class differ diff --git a/RestProject/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF b/RestProject/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF new file mode 100644 index 0000000..3cbb63e --- /dev/null +++ b/RestProject/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF @@ -0,0 +1,4 @@ +Manifest-Version: 1.0 +Build-Jdk-Spec: 22 +Created-By: Maven Integration for Eclipse + diff --git a/RestProject/target/m2e-wtp/web-resources/META-INF/maven/fr.insa.rest/RestProject/pom.properties b/RestProject/target/m2e-wtp/web-resources/META-INF/maven/fr.insa.rest/RestProject/pom.properties new file mode 100644 index 0000000..e367448 --- /dev/null +++ b/RestProject/target/m2e-wtp/web-resources/META-INF/maven/fr.insa.rest/RestProject/pom.properties @@ -0,0 +1,7 @@ +#Generated by Maven Integration for Eclipse +#Wed Nov 06 09:23:58 CET 2024 +artifactId=RestProject +groupId=fr.insa.rest +m2e.projectLocation=/home/nbillard/eclipse-workspace/RestProject +m2e.projectName=RestProject +version=0.0.1-SNAPSHOT diff --git a/RestProject/target/m2e-wtp/web-resources/META-INF/maven/fr.insa.rest/RestProject/pom.xml b/RestProject/target/m2e-wtp/web-resources/META-INF/maven/fr.insa.rest/RestProject/pom.xml new file mode 100644 index 0000000..815da57 --- /dev/null +++ b/RestProject/target/m2e-wtp/web-resources/META-INF/maven/fr.insa.rest/RestProject/pom.xml @@ -0,0 +1,92 @@ + + + 4.0.0 + + fr.insa.rest + RestProject + war + 0.0.1-SNAPSHOT + RestProject + + + RestProject + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + true + + 17 + 17 + + + + org.apache.maven.plugins + maven-war-plugin + 3.4.0 + + + + + + + + + org.glassfish.jersey + jersey-bom + ${jersey.version} + pom + import + + + + + + + org.glassfish.jersey.containers + jersey-container-servlet-core + + + + + org.glassfish.jersey.inject + jersey-hk2 + + + + org.glassfish.jersey.media + jersey-media-json-binding + + + + org.glassfish.jersey.archetypes + jersey-quickstart-webapp + 4.0.0-M1 + + + jakarta.servlet + jakarta.servlet-api + 5.0.0 + provided + + + + + + + + + 4.0.0-M1 + UTF-8 + 3.4.0 + + diff --git a/Servers/.project b/Servers/.project new file mode 100644 index 0000000..0fa764d --- /dev/null +++ b/Servers/.project @@ -0,0 +1,11 @@ + + + Servers + + + + + + + + diff --git a/Servers/.settings/org.eclipse.core.resources.prefs b/Servers/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/Servers/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/Servers/.settings/org.eclipse.wst.server.core.prefs b/Servers/.settings/org.eclipse.wst.server.core.prefs new file mode 100644 index 0000000..484f7b0 --- /dev/null +++ b/Servers/.settings/org.eclipse.wst.server.core.prefs @@ -0,0 +1,3 @@ +#Tue Oct 08 15:03:23 CEST 2024 +eclipse.preferences.version=1 +org.eclipse.wst.server.core.isServerProject=true diff --git a/Servers/Tomcat v10.1 Server at localhost-config/catalina.policy b/Servers/Tomcat v10.1 Server at localhost-config/catalina.policy new file mode 100644 index 0000000..5eb4118 --- /dev/null +++ b/Servers/Tomcat v10.1 Server at localhost-config/catalina.policy @@ -0,0 +1,263 @@ +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// ============================================================================ +// catalina.policy - Security Policy Permissions for Tomcat +// +// This file contains a default set of security policies to be enforced (by the +// JVM) when Catalina is executed with the "-security" option. In addition +// to the permissions granted here, the following additional permissions are +// granted to each web application: +// +// * Read access to the web application's document root directory +// * Read, write and delete access to the web application's working directory +// ============================================================================ + + +// ========== SYSTEM CODE PERMISSIONS ========================================= + + +// These permissions apply to javac +grant codeBase "file:${java.home}/lib/-" { + permission java.security.AllPermission; +}; + +// These permissions apply to all shared system extensions +grant codeBase "file:${java.home}/jre/lib/ext/-" { + permission java.security.AllPermission; +}; + +// These permissions apply to javac when ${java.home} points at $JAVA_HOME/jre +grant codeBase "file:${java.home}/../lib/-" { + permission java.security.AllPermission; +}; + +// These permissions apply to all shared system extensions when +// ${java.home} points at $JAVA_HOME/jre +grant codeBase "file:${java.home}/lib/ext/-" { + permission java.security.AllPermission; +}; + +// This permission is required when using javac to compile JSPs +grant codeBase "jrt:/jdk.compiler" { + permission java.security.AllPermission; +}; + + +// ========== CATALINA CODE PERMISSIONS ======================================= + +// These permissions apply to the daemon code +grant codeBase "file:${catalina.home}/bin/commons-daemon.jar" { + permission java.security.AllPermission; +}; + +// These permissions apply to the logging API +// Note: If tomcat-juli.jar is in ${catalina.base} and not in ${catalina.home}, +// update this section accordingly. +// grant codeBase "file:${catalina.base}/bin/tomcat-juli.jar" {..} +grant codeBase "file:${catalina.home}/bin/tomcat-juli.jar" { + permission java.io.FilePermission + "${java.home}${file.separator}lib${file.separator}logging.properties", "read"; + + permission java.io.FilePermission + "${catalina.base}${file.separator}conf${file.separator}logging.properties", "read"; + permission java.io.FilePermission + "${catalina.base}${file.separator}logs", "read, write"; + permission java.io.FilePermission + "${catalina.base}${file.separator}logs${file.separator}*", "read, write, delete"; + + permission java.lang.RuntimePermission "shutdownHooks"; + permission java.lang.RuntimePermission "getClassLoader"; + permission java.lang.RuntimePermission "setContextClassLoader"; + + permission java.lang.management.ManagementPermission "monitor"; + + permission java.util.logging.LoggingPermission "control"; + + permission java.util.PropertyPermission "java.util.logging.config.class", "read"; + permission java.util.PropertyPermission "java.util.logging.config.file", "read"; + permission java.util.PropertyPermission "org.apache.juli.AsyncMaxRecordCount", "read"; + permission java.util.PropertyPermission "org.apache.juli.AsyncOverflowDropType", "read"; + permission java.util.PropertyPermission "org.apache.juli.ClassLoaderLogManager.debug", "read"; + permission java.util.PropertyPermission "catalina.base", "read"; + + // Note: To enable per context logging configuration, permit read access to + // the appropriate file. Be sure that the logging configuration is + // secure before enabling such access. + // E.g. for the examples web application (uncomment and unwrap + // the following to be on a single line): + // permission java.io.FilePermission "${catalina.base}${file.separator} + // webapps${file.separator}examples${file.separator}WEB-INF + // ${file.separator}classes${file.separator}logging.properties", "read"; +}; + +// These permissions apply to the server startup code +grant codeBase "file:${catalina.home}/bin/bootstrap.jar" { + permission java.security.AllPermission; +}; + +// These permissions apply to the servlet API classes +// and those that are shared across all class loaders +// located in the "lib" directory +grant codeBase "file:${catalina.home}/lib/-" { + permission java.security.AllPermission; +}; + + +// If using a per instance lib directory, i.e. ${catalina.base}/lib, +// then the following permission will need to be uncommented +// grant codeBase "file:${catalina.base}/lib/-" { +// permission java.security.AllPermission; +// }; + + +// ========== WEB APPLICATION PERMISSIONS ===================================== + + +// These permissions are granted by default to all web applications +// In addition, a web application will be given a read FilePermission +// for all files and directories in its document root. +grant { + // Required for JNDI lookup of named JDBC DataSource's and + // javamail named MimePart DataSource used to send mail + permission java.util.PropertyPermission "java.home", "read"; + permission java.util.PropertyPermission "java.naming.*", "read"; + permission java.util.PropertyPermission "javax.sql.*", "read"; + + // OS Specific properties to allow read access + permission java.util.PropertyPermission "os.name", "read"; + permission java.util.PropertyPermission "os.version", "read"; + permission java.util.PropertyPermission "os.arch", "read"; + permission java.util.PropertyPermission "file.separator", "read"; + permission java.util.PropertyPermission "path.separator", "read"; + permission java.util.PropertyPermission "line.separator", "read"; + + // JVM properties to allow read access + permission java.util.PropertyPermission "java.version", "read"; + permission java.util.PropertyPermission "java.vendor", "read"; + permission java.util.PropertyPermission "java.vendor.url", "read"; + permission java.util.PropertyPermission "java.class.version", "read"; + permission java.util.PropertyPermission "java.specification.version", "read"; + permission java.util.PropertyPermission "java.specification.vendor", "read"; + permission java.util.PropertyPermission "java.specification.name", "read"; + + permission java.util.PropertyPermission "java.vm.specification.version", "read"; + permission java.util.PropertyPermission "java.vm.specification.vendor", "read"; + permission java.util.PropertyPermission "java.vm.specification.name", "read"; + permission java.util.PropertyPermission "java.vm.version", "read"; + permission java.util.PropertyPermission "java.vm.vendor", "read"; + permission java.util.PropertyPermission "java.vm.name", "read"; + + // Required for OpenJMX + permission java.lang.RuntimePermission "getAttribute"; + + // Allow read of JAXP compliant XML parser debug + permission java.util.PropertyPermission "jaxp.debug", "read"; + + // All JSPs need to be able to read this package + permission java.lang.RuntimePermission "accessClassInPackage.org.apache.tomcat"; + + // Precompiled JSPs need access to these packages. + permission java.lang.RuntimePermission "accessClassInPackage.org.apache.jasper.el"; + permission java.lang.RuntimePermission "accessClassInPackage.org.apache.jasper.runtime"; + permission java.lang.RuntimePermission + "accessClassInPackage.org.apache.jasper.runtime.*"; + + // Applications using WebSocket need to be able to access these packages + permission java.lang.RuntimePermission "accessClassInPackage.org.apache.tomcat.websocket"; + permission java.lang.RuntimePermission "accessClassInPackage.org.apache.tomcat.websocket.server"; +}; + + +// The Manager application needs access to the following packages to support the +// session display functionality. It also requires the custom Tomcat +// DeployXmlPermission to enable the use of META-INF/context.xml +// These settings support the following configurations: +// - default CATALINA_HOME == CATALINA_BASE +// - CATALINA_HOME != CATALINA_BASE, per instance Manager in CATALINA_BASE +// - CATALINA_HOME != CATALINA_BASE, shared Manager in CATALINA_HOME +grant codeBase "file:${catalina.base}/webapps/manager/-" { + permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina"; + permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.ha.session"; + permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.manager"; + permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.manager.util"; + permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.util"; + permission org.apache.catalina.security.DeployXmlPermission "manager"; +}; +grant codeBase "file:${catalina.home}/webapps/manager/-" { + permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina"; + permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.ha.session"; + permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.manager"; + permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.manager.util"; + permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.util"; + permission org.apache.catalina.security.DeployXmlPermission "manager"; +}; + +// The Host Manager application needs the custom Tomcat DeployXmlPermission to +// enable the use of META-INF/context.xml +// These settings support the following configurations: +// - default CATALINA_HOME == CATALINA_BASE +// - CATALINA_HOME != CATALINA_BASE, per instance Host Manager in CATALINA_BASE +// - CATALINA_HOME != CATALINA_BASE, shared Host Manager in CATALINA_HOME +grant codeBase "file:${catalina.base}/webapps/host-manager/-" { + permission org.apache.catalina.security.DeployXmlPermission "host-manager"; +}; +grant codeBase "file:${catalina.home}/webapps/host-manager/-" { + permission org.apache.catalina.security.DeployXmlPermission "host-manager"; +}; + + +// You can assign additional permissions to particular web applications by +// adding additional "grant" entries here, based on the code base for that +// application, /WEB-INF/classes/, or /WEB-INF/lib/ jar files. +// +// Different permissions can be granted to JSP pages, classes loaded from +// the /WEB-INF/classes/ directory, all jar files in the /WEB-INF/lib/ +// directory, or even to individual jar files in the /WEB-INF/lib/ directory. +// +// For instance, assume that the standard "examples" application +// included a JDBC driver that needed to establish a network connection to the +// corresponding database and used the scrape taglib to get the weather from +// the NOAA web server. You might create a "grant" entries like this: +// +// The permissions granted to the context root directory apply to JSP pages. +// grant codeBase "file:${catalina.base}/webapps/examples/-" { +// permission java.net.SocketPermission "dbhost.mycompany.com:5432", "connect"; +// permission java.net.SocketPermission "*.noaa.gov:80", "connect"; +// }; +// +// The permissions granted to the context WEB-INF/classes directory +// grant codeBase "file:${catalina.base}/webapps/examples/WEB-INF/classes/-" { +// }; +// +// The permission granted to your JDBC driver +// grant codeBase "jar:file:${catalina.base}/webapps/examples/WEB-INF/lib/driver.jar!/-" { +// permission java.net.SocketPermission "dbhost.mycompany.com:5432", "connect"; +// }; +// The permission granted to the scrape taglib +// grant codeBase "jar:file:${catalina.base}/webapps/examples/WEB-INF/lib/scrape.jar!/-" { +// permission java.net.SocketPermission "*.noaa.gov:80", "connect"; +// }; + +// To grant permissions for web applications using packed WAR files, use the +// Tomcat specific WAR url scheme. +// +// The permissions granted to the entire web application +// grant codeBase "war:file:${catalina.base}/webapps/examples.war*/-" { +// }; +// +// The permissions granted to a specific JAR +// grant codeBase "war:file:${catalina.base}/webapps/examples.war*/WEB-INF/lib/foo.jar" { +// }; diff --git a/Servers/Tomcat v10.1 Server at localhost-config/catalina.properties b/Servers/Tomcat v10.1 Server at localhost-config/catalina.properties new file mode 100644 index 0000000..def5959 --- /dev/null +++ b/Servers/Tomcat v10.1 Server at localhost-config/catalina.properties @@ -0,0 +1,222 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# +# List of comma-separated packages that start with or equal this string +# will cause a security exception to be thrown when +# passed to checkPackageAccess unless the +# corresponding RuntimePermission ("accessClassInPackage."+package) has +# been granted. +package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.jasper.,org.apache.tomcat. +# +# List of comma-separated packages that start with or equal this string +# will cause a security exception to be thrown when +# passed to checkPackageDefinition unless the +# corresponding RuntimePermission ("defineClassInPackage."+package) has +# been granted. +# +# by default, no packages are restricted for definition, and none of +# the class loaders supplied with the JDK call checkPackageDefinition. +# +package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,\ +org.apache.jasper.,org.apache.naming.,org.apache.tomcat. + +# +# +# List of comma-separated paths defining the contents of the "common" +# classloader. Prefixes should be used to define what is the repository type. +# Path may be relative to the CATALINA_HOME or CATALINA_BASE path or absolute. +# If left as blank,the JVM system loader will be used as Catalina's "common" +# loader. +# Examples: +# "foo": Add this folder as a class repository +# "foo/*.jar": Add all the JARs of the specified folder as class +# repositories +# "foo/bar.jar": Add bar.jar as a class repository +# +# Note: Values are enclosed in double quotes ("...") in case either the +# ${catalina.base} path or the ${catalina.home} path contains a comma. +# Because double quotes are used for quoting, the double quote character +# may not appear in a path. +common.loader="${catalina.base}/lib","${catalina.base}/lib/*.jar","${catalina.home}/lib","${catalina.home}/lib/*.jar" + +# +# List of comma-separated paths defining the contents of the "server" +# classloader. Prefixes should be used to define what is the repository type. +# Path may be relative to the CATALINA_HOME or CATALINA_BASE path or absolute. +# If left as blank, the "common" loader will be used as Catalina's "server" +# loader. +# Examples: +# "foo": Add this folder as a class repository +# "foo/*.jar": Add all the JARs of the specified folder as class +# repositories +# "foo/bar.jar": Add bar.jar as a class repository +# +# Note: Values may be enclosed in double quotes ("...") in case either the +# ${catalina.base} path or the ${catalina.home} path contains a comma. +# Because double quotes are used for quoting, the double quote character +# may not appear in a path. +server.loader= + +# +# List of comma-separated paths defining the contents of the "shared" +# classloader. Prefixes should be used to define what is the repository type. +# Path may be relative to the CATALINA_BASE path or absolute. If left as blank, +# the "common" loader will be used as Catalina's "shared" loader. +# Examples: +# "foo": Add this folder as a class repository +# "foo/*.jar": Add all the JARs of the specified folder as class +# repositories +# "foo/bar.jar": Add bar.jar as a class repository +# Please note that for single jars, e.g. bar.jar, you need the URL form +# starting with file:. +# +# Note: Values may be enclosed in double quotes ("...") in case either the +# ${catalina.base} path or the ${catalina.home} path contains a comma. +# Because double quotes are used for quoting, the double quote character +# may not appear in a path. +shared.loader= + +# Default list of JAR files that should not be scanned using the JarScanner +# functionality. This is typically used to scan JARs for configuration +# information. JARs that do not contain such information may be excluded from +# the scan to speed up the scanning process. This is the default list. JARs on +# this list are excluded from all scans. The list must be a comma separated list +# of JAR file names. +# The list of JARs to skip may be over-ridden at a Context level for individual +# scan types by configuring a JarScanner with a nested JarScanFilter. +# The JARs listed below include: +# - Tomcat Bootstrap JARs +# - Tomcat API JARs +# - Catalina JARs +# - Jasper JARs +# - Tomcat JARs +# - Common non-Tomcat JARs +# - Test JARs (JUnit, Cobertura and dependencies) +tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\ +annotations-api.jar,\ +ant-junit*.jar,\ +ant-launcher*.jar,\ +ant*.jar,\ +asm-*.jar,\ +aspectj*.jar,\ +bcel*.jar,\ +biz.aQute.bnd*.jar,\ +bootstrap.jar,\ +catalina-ant.jar,\ +catalina-ha.jar,\ +catalina-ssi.jar,\ +catalina-storeconfig.jar,\ +catalina-tribes.jar,\ +catalina.jar,\ +cglib-*.jar,\ +cobertura-*.jar,\ +commons-beanutils*.jar,\ +commons-codec*.jar,\ +commons-collections*.jar,\ +commons-compress*.jar,\ +commons-daemon.jar,\ +commons-dbcp*.jar,\ +commons-digester*.jar,\ +commons-fileupload*.jar,\ +commons-httpclient*.jar,\ +commons-io*.jar,\ +commons-lang*.jar,\ +commons-logging*.jar,\ +commons-math*.jar,\ +commons-pool*.jar,\ +derby-*.jar,\ +dom4j-*.jar,\ +easymock-*.jar,\ +ecj-*.jar,\ +el-api.jar,\ +geronimo-spec-jaxrpc*.jar,\ +h2*.jar,\ +ha-api-*.jar,\ +hamcrest-*.jar,\ +hibernate*.jar,\ +httpclient*.jar,\ +icu4j-*.jar,\ +jakartaee-migration-*.jar,\ +jasper-el.jar,\ +jasper.jar,\ +jaspic-api.jar,\ +jaxb-*.jar,\ +jaxen-*.jar,\ +jaxws-rt-*.jar,\ +jdom-*.jar,\ +jetty-*.jar,\ +jmx-tools.jar,\ +jmx.jar,\ +jsp-api.jar,\ +jstl.jar,\ +jta*.jar,\ +junit-*.jar,\ +junit.jar,\ +log4j*.jar,\ +mail*.jar,\ +objenesis-*.jar,\ +oraclepki.jar,\ +org.hamcrest.core_*.jar,\ +org.junit_*.jar,\ +oro-*.jar,\ +servlet-api-*.jar,\ +servlet-api.jar,\ +slf4j*.jar,\ +taglibs-standard-spec-*.jar,\ +tagsoup-*.jar,\ +tomcat-api.jar,\ +tomcat-coyote.jar,\ +tomcat-coyote-ffm.jar,\ +tomcat-dbcp.jar,\ +tomcat-i18n-*.jar,\ +tomcat-jdbc.jar,\ +tomcat-jni.jar,\ +tomcat-juli-adapters.jar,\ +tomcat-juli.jar,\ +tomcat-util-scan.jar,\ +tomcat-util.jar,\ +tomcat-websocket.jar,\ +tools.jar,\ +unboundid-ldapsdk-*.jar,\ +websocket-api.jar,\ +websocket-client-api.jar,\ +wsdl4j*.jar,\ +xercesImpl.jar,\ +xml-apis.jar,\ +xmlParserAPIs-*.jar,\ +xmlParserAPIs.jar,\ +xom-*.jar + +# Default list of JAR files that should be scanned that overrides the default +# jarsToSkip list above. This is typically used to include a specific JAR that +# has been excluded by a broad file name pattern in the jarsToSkip list. +# The list of JARs to scan may be over-ridden at a Context level for individual +# scan types by configuring a JarScanner with a nested JarScanFilter. +tomcat.util.scan.StandardJarScanFilter.jarsToScan=\ +log4j-taglib*.jar,\ +log4j-jakarta-web*.jar,\ +log4javascript*.jar,\ +slf4j-taglib*.jar + +# String cache configuration. +tomcat.util.buf.StringCache.byte.enabled=true +#tomcat.util.buf.StringCache.char.enabled=true +#tomcat.util.buf.StringCache.trainThreshold=500000 +#tomcat.util.buf.StringCache.cacheSize=5000 + +# Disable use of some privilege blocks Tomcat doesn't need since calls to the +# code in question are always already inside a privilege block +org.apache.el.GET_CLASSLOADER_USE_PRIVILEGED=false diff --git a/Servers/Tomcat v10.1 Server at localhost-config/context.xml b/Servers/Tomcat v10.1 Server at localhost-config/context.xml new file mode 100644 index 0000000..0378399 --- /dev/null +++ b/Servers/Tomcat v10.1 Server at localhost-config/context.xml @@ -0,0 +1,29 @@ + + + + + + WEB-INF/web.xml + WEB-INF/tomcat-web.xml + ${catalina.base}/conf/web.xml + + + + \ No newline at end of file diff --git a/Servers/Tomcat v10.1 Server at localhost-config/server.xml b/Servers/Tomcat v10.1 Server at localhost-config/server.xml new file mode 100644 index 0000000..f26a4e9 --- /dev/null +++ b/Servers/Tomcat v10.1 Server at localhost-config/server.xml @@ -0,0 +1,148 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Servers/Tomcat v10.1 Server at localhost-config/tomcat-users.xml b/Servers/Tomcat v10.1 Server at localhost-config/tomcat-users.xml new file mode 100644 index 0000000..009a485 --- /dev/null +++ b/Servers/Tomcat v10.1 Server at localhost-config/tomcat-users.xml @@ -0,0 +1,52 @@ + + + + + + + \ No newline at end of file diff --git a/Servers/Tomcat v10.1 Server at localhost-config/web.xml b/Servers/Tomcat v10.1 Server at localhost-config/web.xml new file mode 100644 index 0000000..5177226 --- /dev/null +++ b/Servers/Tomcat v10.1 Server at localhost-config/web.xml @@ -0,0 +1,4747 @@ + + + + + + + + + + + + + + + + UTF-8 + UTF-8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + default + org.apache.catalina.servlets.DefaultServlet + + debug + 0 + + + listings + false + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jsp + org.apache.jasper.servlet.JspServlet + + fork + false + + + xpoweredBy + false + + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + default + / + + + + + jsp + *.jsp + *.jspx + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 30 + + + + + + + + + + + + + 123 + application/vnd.lotus-1-2-3 + + + 3dml + text/vnd.in3d.3dml + + + 3ds + image/x-3ds + + + 3g2 + video/3gpp2 + + + 3gp + video/3gpp + + + 7z + application/x-7z-compressed + + + aab + application/x-authorware-bin + + + aac + audio/x-aac + + + aam + application/x-authorware-map + + + aas + application/x-authorware-seg + + + abs + audio/x-mpeg + + + abw + application/x-abiword + + + ac + application/pkix-attr-cert + + + acc + application/vnd.americandynamics.acc + + + ace + application/x-ace-compressed + + + acu + application/vnd.acucobol + + + acutc + application/vnd.acucorp + + + adp + audio/adpcm + + + aep + application/vnd.audiograph + + + afm + application/x-font-type1 + + + afp + application/vnd.ibm.modcap + + + ahead + application/vnd.ahead.space + + + ai + application/postscript + + + aif + audio/x-aiff + + + aifc + audio/x-aiff + + + aiff + audio/x-aiff + + + aim + application/x-aim + + + air + application/vnd.adobe.air-application-installer-package+zip + + + ait + application/vnd.dvb.ait + + + ami + application/vnd.amiga.ami + + + anx + application/annodex + + + apk + application/vnd.android.package-archive + + + appcache + text/cache-manifest + + + application + application/x-ms-application + + + apr + application/vnd.lotus-approach + + + arc + application/x-freearc + + + art + image/x-jg + + + asc + application/pgp-signature + + + asf + video/x-ms-asf + + + asm + text/x-asm + + + aso + application/vnd.accpac.simply.aso + + + asx + video/x-ms-asf + + + atc + application/vnd.acucorp + + + atom + application/atom+xml + + + atomcat + application/atomcat+xml + + + atomsvc + application/atomsvc+xml + + + atx + application/vnd.antix.game-component + + + au + audio/basic + + + avi + video/x-msvideo + + + avx + video/x-rad-screenplay + + + aw + application/applixware + + + axa + audio/annodex + + + axv + video/annodex + + + azf + application/vnd.airzip.filesecure.azf + + + azs + application/vnd.airzip.filesecure.azs + + + azw + application/vnd.amazon.ebook + + + bat + application/x-msdownload + + + bcpio + application/x-bcpio + + + bdf + application/x-font-bdf + + + bdm + application/vnd.syncml.dm+wbxml + + + bed + application/vnd.realvnc.bed + + + bh2 + application/vnd.fujitsu.oasysprs + + + bin + application/octet-stream + + + blb + application/x-blorb + + + blorb + application/x-blorb + + + bmi + application/vnd.bmi + + + bmp + image/bmp + + + body + text/html + + + book + application/vnd.framemaker + + + box + application/vnd.previewsystems.box + + + boz + application/x-bzip2 + + + bpk + application/octet-stream + + + btif + image/prs.btif + + + bz + application/x-bzip + + + bz2 + application/x-bzip2 + + + c + text/x-c + + + c11amc + application/vnd.cluetrust.cartomobile-config + + + c11amz + application/vnd.cluetrust.cartomobile-config-pkg + + + c4d + application/vnd.clonk.c4group + + + c4f + application/vnd.clonk.c4group + + + c4g + application/vnd.clonk.c4group + + + c4p + application/vnd.clonk.c4group + + + c4u + application/vnd.clonk.c4group + + + cab + application/vnd.ms-cab-compressed + + + caf + audio/x-caf + + + cap + application/vnd.tcpdump.pcap + + + car + application/vnd.curl.car + + + cat + application/vnd.ms-pki.seccat + + + cb7 + application/x-cbr + + + cba + application/x-cbr + + + cbr + application/x-cbr + + + cbt + application/x-cbr + + + cbz + application/x-cbr + + + cc + text/x-c + + + cct + application/x-director + + + ccxml + application/ccxml+xml + + + cdbcmsg + application/vnd.contact.cmsg + + + cdf + application/x-cdf + + + cdkey + application/vnd.mediastation.cdkey + + + cdmia + application/cdmi-capability + + + cdmic + application/cdmi-container + + + cdmid + application/cdmi-domain + + + cdmio + application/cdmi-object + + + cdmiq + application/cdmi-queue + + + cdx + chemical/x-cdx + + + cdxml + application/vnd.chemdraw+xml + + + cdy + application/vnd.cinderella + + + cer + application/pkix-cert + + + cfs + application/x-cfs-compressed + + + cgm + image/cgm + + + chat + application/x-chat + + + chm + application/vnd.ms-htmlhelp + + + chrt + application/vnd.kde.kchart + + + cif + chemical/x-cif + + + cii + application/vnd.anser-web-certificate-issue-initiation + + + cil + application/vnd.ms-artgalry + + + cla + application/vnd.claymore + + + class + application/java + + + clkk + application/vnd.crick.clicker.keyboard + + + clkp + application/vnd.crick.clicker.palette + + + clkt + application/vnd.crick.clicker.template + + + clkw + application/vnd.crick.clicker.wordbank + + + clkx + application/vnd.crick.clicker + + + clp + application/x-msclip + + + cmc + application/vnd.cosmocaller + + + cmdf + chemical/x-cmdf + + + cml + chemical/x-cml + + + cmp + application/vnd.yellowriver-custom-menu + + + cmx + image/x-cmx + + + cod + application/vnd.rim.cod + + + com + application/x-msdownload + + + conf + text/plain + + + cpio + application/x-cpio + + + cpp + text/x-c + + + cpt + application/mac-compactpro + + + crd + application/x-mscardfile + + + crl + application/pkix-crl + + + crt + application/x-x509-ca-cert + + + cryptonote + application/vnd.rig.cryptonote + + + csh + application/x-csh + + + csml + chemical/x-csml + + + csp + application/vnd.commonspace + + + css + text/css + + + cst + application/x-director + + + csv + text/csv + + + cu + application/cu-seeme + + + curl + text/vnd.curl + + + cww + application/prs.cww + + + cxt + application/x-director + + + cxx + text/x-c + + + dae + model/vnd.collada+xml + + + daf + application/vnd.mobius.daf + + + dart + application/vnd.dart + + + dataless + application/vnd.fdsn.seed + + + davmount + application/davmount+xml + + + dbk + application/docbook+xml + + + dcr + application/x-director + + + dcurl + text/vnd.curl.dcurl + + + dd2 + application/vnd.oma.dd2+xml + + + ddd + application/vnd.fujixerox.ddd + + + deb + application/x-debian-package + + + def + text/plain + + + deploy + application/octet-stream + + + der + application/x-x509-ca-cert + + + dfac + application/vnd.dreamfactory + + + dgc + application/x-dgc-compressed + + + dib + image/bmp + + + dic + text/x-c + + + dir + application/x-director + + + dis + application/vnd.mobius.dis + + + dist + application/octet-stream + + + distz + application/octet-stream + + + djv + image/vnd.djvu + + + djvu + image/vnd.djvu + + + dll + application/x-msdownload + + + dmg + application/x-apple-diskimage + + + dmp + application/vnd.tcpdump.pcap + + + dms + application/octet-stream + + + dna + application/vnd.dna + + + doc + application/msword + + + docm + application/vnd.ms-word.document.macroenabled.12 + + + docx + application/vnd.openxmlformats-officedocument.wordprocessingml.document + + + dot + application/msword + + + dotm + application/vnd.ms-word.template.macroenabled.12 + + + dotx + application/vnd.openxmlformats-officedocument.wordprocessingml.template + + + dp + application/vnd.osgi.dp + + + dpg + application/vnd.dpgraph + + + dra + audio/vnd.dra + + + dsc + text/prs.lines.tag + + + dssc + application/dssc+der + + + dtb + application/x-dtbook+xml + + + dtd + application/xml-dtd + + + dts + audio/vnd.dts + + + dtshd + audio/vnd.dts.hd + + + dump + application/octet-stream + + + dv + video/x-dv + + + dvb + video/vnd.dvb.file + + + dvi + application/x-dvi + + + dwf + model/vnd.dwf + + + dwg + image/vnd.dwg + + + dxf + image/vnd.dxf + + + dxp + application/vnd.spotfire.dxp + + + dxr + application/x-director + + + ecelp4800 + audio/vnd.nuera.ecelp4800 + + + ecelp7470 + audio/vnd.nuera.ecelp7470 + + + ecelp9600 + audio/vnd.nuera.ecelp9600 + + + ecma + application/ecmascript + + + edm + application/vnd.novadigm.edm + + + edx + application/vnd.novadigm.edx + + + efif + application/vnd.picsel + + + ei6 + application/vnd.pg.osasli + + + elc + application/octet-stream + + + emf + application/x-msmetafile + + + eml + message/rfc822 + + + emma + application/emma+xml + + + emz + application/x-msmetafile + + + eol + audio/vnd.digital-winds + + + eot + application/vnd.ms-fontobject + + + eps + application/postscript + + + epub + application/epub+zip + + + es3 + application/vnd.eszigno3+xml + + + esa + application/vnd.osgi.subsystem + + + esf + application/vnd.epson.esf + + + et3 + application/vnd.eszigno3+xml + + + etx + text/x-setext + + + eva + application/x-eva + + + evy + application/x-envoy + + + exe + application/octet-stream + + + exi + application/exi + + + ext + application/vnd.novadigm.ext + + + ez + application/andrew-inset + + + ez2 + application/vnd.ezpix-album + + + ez3 + application/vnd.ezpix-package + + + f + text/x-fortran + + + f4v + video/x-f4v + + + f77 + text/x-fortran + + + f90 + text/x-fortran + + + fbs + image/vnd.fastbidsheet + + + fcdt + application/vnd.adobe.formscentral.fcdt + + + fcs + application/vnd.isac.fcs + + + fdf + application/vnd.fdf + + + fe_launch + application/vnd.denovo.fcselayout-link + + + fg5 + application/vnd.fujitsu.oasysgp + + + fgd + application/x-director + + + fh + image/x-freehand + + + fh4 + image/x-freehand + + + fh5 + image/x-freehand + + + fh7 + image/x-freehand + + + fhc + image/x-freehand + + + fig + application/x-xfig + + + flac + audio/flac + + + fli + video/x-fli + + + flo + application/vnd.micrografx.flo + + + flv + video/x-flv + + + flw + application/vnd.kde.kivio + + + flx + text/vnd.fmi.flexstor + + + fly + text/vnd.fly + + + fm + application/vnd.framemaker + + + fnc + application/vnd.frogans.fnc + + + for + text/x-fortran + + + fpx + image/vnd.fpx + + + frame + application/vnd.framemaker + + + fsc + application/vnd.fsc.weblaunch + + + fst + image/vnd.fst + + + ftc + application/vnd.fluxtime.clip + + + fti + application/vnd.anser-web-funds-transfer-initiation + + + fvt + video/vnd.fvt + + + fxp + application/vnd.adobe.fxp + + + fxpl + application/vnd.adobe.fxp + + + fzs + application/vnd.fuzzysheet + + + g2w + application/vnd.geoplan + + + g3 + image/g3fax + + + g3w + application/vnd.geospace + + + gac + application/vnd.groove-account + + + gam + application/x-tads + + + gbr + application/rpki-ghostbusters + + + gca + application/x-gca-compressed + + + gdl + model/vnd.gdl + + + geo + application/vnd.dynageo + + + gex + application/vnd.geometry-explorer + + + ggb + application/vnd.geogebra.file + + + ggs + application/vnd.geogebra.slides + + + ggt + application/vnd.geogebra.tool + + + ghf + application/vnd.groove-help + + + gif + image/gif + + + gim + application/vnd.groove-identity-message + + + gml + application/gml+xml + + + gmx + application/vnd.gmx + + + gnumeric + application/x-gnumeric + + + gph + application/vnd.flographit + + + gpx + application/gpx+xml + + + gqf + application/vnd.grafeq + + + gqs + application/vnd.grafeq + + + gram + application/srgs + + + gramps + application/x-gramps-xml + + + gre + application/vnd.geometry-explorer + + + grv + application/vnd.groove-injector + + + grxml + application/srgs+xml + + + gsf + application/x-font-ghostscript + + + gtar + application/x-gtar + + + gtm + application/vnd.groove-tool-message + + + gtw + model/vnd.gtw + + + gv + text/vnd.graphviz + + + gxf + application/gxf + + + gxt + application/vnd.geonext + + + gz + application/x-gzip + + + h + text/x-c + + + h261 + video/h261 + + + h263 + video/h263 + + + h264 + video/h264 + + + hal + application/vnd.hal+xml + + + hbci + application/vnd.hbci + + + hdf + application/x-hdf + + + hh + text/x-c + + + hlp + application/winhlp + + + hpgl + application/vnd.hp-hpgl + + + hpid + application/vnd.hp-hpid + + + hps + application/vnd.hp-hps + + + hqx + application/mac-binhex40 + + + htc + text/x-component + + + htke + application/vnd.kenameaapp + + + htm + text/html + + + html + text/html + + + hvd + application/vnd.yamaha.hv-dic + + + hvp + application/vnd.yamaha.hv-voice + + + hvs + application/vnd.yamaha.hv-script + + + i2g + application/vnd.intergeo + + + icc + application/vnd.iccprofile + + + ice + x-conference/x-cooltalk + + + icm + application/vnd.iccprofile + + + ico + image/x-icon + + + ics + text/calendar + + + ief + image/ief + + + ifb + text/calendar + + + ifm + application/vnd.shana.informed.formdata + + + iges + model/iges + + + igl + application/vnd.igloader + + + igm + application/vnd.insors.igm + + + igs + model/iges + + + igx + application/vnd.micrografx.igx + + + iif + application/vnd.shana.informed.interchange + + + imp + application/vnd.accpac.simply.imp + + + ims + application/vnd.ms-ims + + + in + text/plain + + + ink + application/inkml+xml + + + inkml + application/inkml+xml + + + install + application/x-install-instructions + + + iota + application/vnd.astraea-software.iota + + + ipfix + application/ipfix + + + ipk + application/vnd.shana.informed.package + + + irm + application/vnd.ibm.rights-management + + + irp + application/vnd.irepository.package+xml + + + iso + application/x-iso9660-image + + + itp + application/vnd.shana.informed.formtemplate + + + ivp + application/vnd.immervision-ivp + + + ivu + application/vnd.immervision-ivu + + + jad + text/vnd.sun.j2me.app-descriptor + + + jam + application/vnd.jam + + + jar + application/java-archive + + + java + text/x-java-source + + + jisp + application/vnd.jisp + + + jlt + application/vnd.hp-jlyt + + + jnlp + application/x-java-jnlp-file + + + joda + application/vnd.joost.joda-archive + + + jpe + image/jpeg + + + jpeg + image/jpeg + + + jpg + image/jpeg + + + jpgm + video/jpm + + + jpgv + video/jpeg + + + jpm + video/jpm + + + js + text/javascript + + + jsf + text/plain + + + json + application/json + + + jsonml + application/jsonml+json + + + jspf + text/plain + + + kar + audio/midi + + + karbon + application/vnd.kde.karbon + + + kfo + application/vnd.kde.kformula + + + kia + application/vnd.kidspiration + + + kml + application/vnd.google-earth.kml+xml + + + kmz + application/vnd.google-earth.kmz + + + kne + application/vnd.kinar + + + knp + application/vnd.kinar + + + kon + application/vnd.kde.kontour + + + kpr + application/vnd.kde.kpresenter + + + kpt + application/vnd.kde.kpresenter + + + kpxx + application/vnd.ds-keypoint + + + ksp + application/vnd.kde.kspread + + + ktr + application/vnd.kahootz + + + ktx + image/ktx + + + ktz + application/vnd.kahootz + + + kwd + application/vnd.kde.kword + + + kwt + application/vnd.kde.kword + + + lasxml + application/vnd.las.las+xml + + + latex + application/x-latex + + + lbd + application/vnd.llamagraphics.life-balance.desktop + + + lbe + application/vnd.llamagraphics.life-balance.exchange+xml + + + les + application/vnd.hhe.lesson-player + + + lha + application/x-lzh-compressed + + + link66 + application/vnd.route66.link66+xml + + + list + text/plain + + + list3820 + application/vnd.ibm.modcap + + + listafp + application/vnd.ibm.modcap + + + lnk + application/x-ms-shortcut + + + log + text/plain + + + lostxml + application/lost+xml + + + lrf + application/octet-stream + + + lrm + application/vnd.ms-lrm + + + ltf + application/vnd.frogans.ltf + + + lvp + audio/vnd.lucent.voice + + + lwp + application/vnd.lotus-wordpro + + + lzh + application/x-lzh-compressed + + + m13 + application/x-msmediaview + + + m14 + application/x-msmediaview + + + m1v + video/mpeg + + + m21 + application/mp21 + + + m2a + audio/mpeg + + + m2v + video/mpeg + + + m3a + audio/mpeg + + + m3u + audio/x-mpegurl + + + m3u8 + application/vnd.apple.mpegurl + + + m4a + audio/mp4 + + + m4b + audio/mp4 + + + m4r + audio/mp4 + + + m4u + video/vnd.mpegurl + + + m4v + video/mp4 + + + ma + application/mathematica + + + mac + image/x-macpaint + + + mads + application/mads+xml + + + mag + application/vnd.ecowin.chart + + + maker + application/vnd.framemaker + + + man + text/troff + + + mar + application/octet-stream + + + mathml + application/mathml+xml + + + mb + application/mathematica + + + mbk + application/vnd.mobius.mbk + + + mbox + application/mbox + + + mc1 + application/vnd.medcalcdata + + + mcd + application/vnd.mcd + + + mcurl + text/vnd.curl.mcurl + + + mdb + application/x-msaccess + + + mdi + image/vnd.ms-modi + + + me + text/troff + + + mesh + model/mesh + + + meta4 + application/metalink4+xml + + + metalink + application/metalink+xml + + + mets + application/mets+xml + + + mfm + application/vnd.mfmp + + + mft + application/rpki-manifest + + + mgp + application/vnd.osgeo.mapguide.package + + + mgz + application/vnd.proteus.magazine + + + mid + audio/midi + + + midi + audio/midi + + + mie + application/x-mie + + + mif + application/x-mif + + + mime + message/rfc822 + + + mj2 + video/mj2 + + + mjp2 + video/mj2 + + + mjs + text/javascript + + + mk3d + video/x-matroska + + + mka + audio/x-matroska + + + mks + video/x-matroska + + + mkv + video/x-matroska + + + mlp + application/vnd.dolby.mlp + + + mmd + application/vnd.chipnuts.karaoke-mmd + + + mmf + application/vnd.smaf + + + mmr + image/vnd.fujixerox.edmics-mmr + + + mng + video/x-mng + + + mny + application/x-msmoney + + + mobi + application/x-mobipocket-ebook + + + mods + application/mods+xml + + + mov + video/quicktime + + + movie + video/x-sgi-movie + + + mp1 + audio/mpeg + + + mp2 + audio/mpeg + + + mp21 + application/mp21 + + + mp2a + audio/mpeg + + + mp3 + audio/mpeg + + + mp4 + video/mp4 + + + mp4a + audio/mp4 + + + mp4s + application/mp4 + + + mp4v + video/mp4 + + + mpa + audio/mpeg + + + mpc + application/vnd.mophun.certificate + + + mpe + video/mpeg + + + mpeg + video/mpeg + + + mpega + audio/x-mpeg + + + mpg + video/mpeg + + + mpg4 + video/mp4 + + + mpga + audio/mpeg + + + mpkg + application/vnd.apple.installer+xml + + + mpm + application/vnd.blueice.multipass + + + mpn + application/vnd.mophun.application + + + mpp + application/vnd.ms-project + + + mpt + application/vnd.ms-project + + + mpv2 + video/mpeg2 + + + mpy + application/vnd.ibm.minipay + + + mqy + application/vnd.mobius.mqy + + + mrc + application/marc + + + mrcx + application/marcxml+xml + + + ms + text/troff + + + mscml + application/mediaservercontrol+xml + + + mseed + application/vnd.fdsn.mseed + + + mseq + application/vnd.mseq + + + msf + application/vnd.epson.msf + + + msh + model/mesh + + + msi + application/x-msdownload + + + msl + application/vnd.mobius.msl + + + msty + application/vnd.muvee.style + + + mts + model/vnd.mts + + + mus + application/vnd.musician + + + musicxml + application/vnd.recordare.musicxml+xml + + + mvb + application/x-msmediaview + + + mwf + application/vnd.mfer + + + mxf + application/mxf + + + mxl + application/vnd.recordare.musicxml + + + mxml + application/xv+xml + + + mxs + application/vnd.triscape.mxs + + + mxu + video/vnd.mpegurl + + + n-gage + application/vnd.nokia.n-gage.symbian.install + + + n3 + text/n3 + + + nb + application/mathematica + + + nbp + application/vnd.wolfram.player + + + nc + application/x-netcdf + + + ncx + application/x-dtbncx+xml + + + nfo + text/x-nfo + + + ngdat + application/vnd.nokia.n-gage.data + + + nitf + application/vnd.nitf + + + nlu + application/vnd.neurolanguage.nlu + + + nml + application/vnd.enliven + + + nnd + application/vnd.noblenet-directory + + + nns + application/vnd.noblenet-sealer + + + nnw + application/vnd.noblenet-web + + + npx + image/vnd.net-fpx + + + nsc + application/x-conference + + + nsf + application/vnd.lotus-notes + + + ntf + application/vnd.nitf + + + nzb + application/x-nzb + + + oa2 + application/vnd.fujitsu.oasys2 + + + oa3 + application/vnd.fujitsu.oasys3 + + + oas + application/vnd.fujitsu.oasys + + + obd + application/x-msbinder + + + obj + application/x-tgif + + + oda + application/oda + + + + odb + application/vnd.oasis.opendocument.database + + + + odc + application/vnd.oasis.opendocument.chart + + + + odf + application/vnd.oasis.opendocument.formula + + + odft + application/vnd.oasis.opendocument.formula-template + + + + odg + application/vnd.oasis.opendocument.graphics + + + + odi + application/vnd.oasis.opendocument.image + + + + odm + application/vnd.oasis.opendocument.text-master + + + + odp + application/vnd.oasis.opendocument.presentation + + + + ods + application/vnd.oasis.opendocument.spreadsheet + + + + odt + application/vnd.oasis.opendocument.text + + + oga + audio/ogg + + + ogg + audio/ogg + + + ogv + video/ogg + + + + ogx + application/ogg + + + omdoc + application/omdoc+xml + + + onepkg + application/onenote + + + onetmp + application/onenote + + + onetoc + application/onenote + + + onetoc2 + application/onenote + + + opf + application/oebps-package+xml + + + opml + text/x-opml + + + oprc + application/vnd.palm + + + opus + audio/ogg + + + org + application/vnd.lotus-organizer + + + osf + application/vnd.yamaha.openscoreformat + + + osfpvg + application/vnd.yamaha.openscoreformat.osfpvg+xml + + + otc + application/vnd.oasis.opendocument.chart-template + + + otf + font/otf + + + + otg + application/vnd.oasis.opendocument.graphics-template + + + + oth + application/vnd.oasis.opendocument.text-web + + + oti + application/vnd.oasis.opendocument.image-template + + + + otp + application/vnd.oasis.opendocument.presentation-template + + + + ots + application/vnd.oasis.opendocument.spreadsheet-template + + + + ott + application/vnd.oasis.opendocument.text-template + + + oxps + application/oxps + + + oxt + application/vnd.openofficeorg.extension + + + p + text/x-pascal + + + p10 + application/pkcs10 + + + p12 + application/x-pkcs12 + + + p7b + application/x-pkcs7-certificates + + + p7c + application/pkcs7-mime + + + p7m + application/pkcs7-mime + + + p7r + application/x-pkcs7-certreqresp + + + p7s + application/pkcs7-signature + + + p8 + application/pkcs8 + + + pas + text/x-pascal + + + paw + application/vnd.pawaafile + + + pbd + application/vnd.powerbuilder6 + + + pbm + image/x-portable-bitmap + + + pcap + application/vnd.tcpdump.pcap + + + pcf + application/x-font-pcf + + + pcl + application/vnd.hp-pcl + + + pclxl + application/vnd.hp-pclxl + + + pct + image/pict + + + pcurl + application/vnd.curl.pcurl + + + pcx + image/x-pcx + + + pdb + application/vnd.palm + + + pdf + application/pdf + + + pfa + application/x-font-type1 + + + pfb + application/x-font-type1 + + + pfm + application/x-font-type1 + + + pfr + application/font-tdpfr + + + pfx + application/x-pkcs12 + + + pgm + image/x-portable-graymap + + + pgn + application/x-chess-pgn + + + pgp + application/pgp-encrypted + + + pic + image/pict + + + pict + image/pict + + + pkg + application/octet-stream + + + pki + application/pkixcmp + + + pkipath + application/pkix-pkipath + + + plb + application/vnd.3gpp.pic-bw-large + + + plc + application/vnd.mobius.plc + + + plf + application/vnd.pocketlearn + + + pls + audio/x-scpls + + + pml + application/vnd.ctc-posml + + + png + image/png + + + pnm + image/x-portable-anymap + + + pnt + image/x-macpaint + + + portpkg + application/vnd.macports.portpkg + + + pot + application/vnd.ms-powerpoint + + + potm + application/vnd.ms-powerpoint.template.macroenabled.12 + + + potx + application/vnd.openxmlformats-officedocument.presentationml.template + + + ppam + application/vnd.ms-powerpoint.addin.macroenabled.12 + + + ppd + application/vnd.cups-ppd + + + ppm + image/x-portable-pixmap + + + pps + application/vnd.ms-powerpoint + + + ppsm + application/vnd.ms-powerpoint.slideshow.macroenabled.12 + + + ppsx + application/vnd.openxmlformats-officedocument.presentationml.slideshow + + + ppt + application/vnd.ms-powerpoint + + + pptm + application/vnd.ms-powerpoint.presentation.macroenabled.12 + + + pptx + application/vnd.openxmlformats-officedocument.presentationml.presentation + + + pqa + application/vnd.palm + + + prc + application/x-mobipocket-ebook + + + pre + application/vnd.lotus-freelance + + + prf + application/pics-rules + + + ps + application/postscript + + + psb + application/vnd.3gpp.pic-bw-small + + + psd + image/vnd.adobe.photoshop + + + psf + application/x-font-linux-psf + + + pskcxml + application/pskc+xml + + + ptid + application/vnd.pvi.ptid1 + + + pub + application/x-mspublisher + + + pvb + application/vnd.3gpp.pic-bw-var + + + pwn + application/vnd.3m.post-it-notes + + + pya + audio/vnd.ms-playready.media.pya + + + pyv + video/vnd.ms-playready.media.pyv + + + qam + application/vnd.epson.quickanime + + + qbo + application/vnd.intu.qbo + + + qfx + application/vnd.intu.qfx + + + qps + application/vnd.publishare-delta-tree + + + qt + video/quicktime + + + qti + image/x-quicktime + + + qtif + image/x-quicktime + + + qwd + application/vnd.quark.quarkxpress + + + qwt + application/vnd.quark.quarkxpress + + + qxb + application/vnd.quark.quarkxpress + + + qxd + application/vnd.quark.quarkxpress + + + qxl + application/vnd.quark.quarkxpress + + + qxt + application/vnd.quark.quarkxpress + + + ra + audio/x-pn-realaudio + + + ram + audio/x-pn-realaudio + + + rar + application/x-rar-compressed + + + ras + image/x-cmu-raster + + + rcprofile + application/vnd.ipunplugged.rcprofile + + + rdf + application/rdf+xml + + + rdz + application/vnd.data-vision.rdz + + + rep + application/vnd.businessobjects + + + res + application/x-dtbresource+xml + + + rgb + image/x-rgb + + + rif + application/reginfo+xml + + + rip + audio/vnd.rip + + + ris + application/x-research-info-systems + + + rl + application/resource-lists+xml + + + rlc + image/vnd.fujixerox.edmics-rlc + + + rld + application/resource-lists-diff+xml + + + rm + application/vnd.rn-realmedia + + + rmi + audio/midi + + + rmp + audio/x-pn-realaudio-plugin + + + rms + application/vnd.jcp.javame.midlet-rms + + + rmvb + application/vnd.rn-realmedia-vbr + + + rnc + application/relax-ng-compact-syntax + + + roa + application/rpki-roa + + + roff + text/troff + + + rp9 + application/vnd.cloanto.rp9 + + + rpss + application/vnd.nokia.radio-presets + + + rpst + application/vnd.nokia.radio-preset + + + rq + application/sparql-query + + + rs + application/rls-services+xml + + + rsd + application/rsd+xml + + + rss + application/rss+xml + + + rtf + application/rtf + + + rtx + text/richtext + + + s + text/x-asm + + + s3m + audio/s3m + + + saf + application/vnd.yamaha.smaf-audio + + + sbml + application/sbml+xml + + + sc + application/vnd.ibm.secure-container + + + scd + application/x-msschedule + + + scm + application/vnd.lotus-screencam + + + scq + application/scvp-cv-request + + + scs + application/scvp-cv-response + + + scurl + text/vnd.curl.scurl + + + sda + application/vnd.stardivision.draw + + + sdc + application/vnd.stardivision.calc + + + sdd + application/vnd.stardivision.impress + + + sdkd + application/vnd.solent.sdkm+xml + + + sdkm + application/vnd.solent.sdkm+xml + + + sdp + application/sdp + + + sdw + application/vnd.stardivision.writer + + + see + application/vnd.seemail + + + seed + application/vnd.fdsn.seed + + + sema + application/vnd.sema + + + semd + application/vnd.semd + + + semf + application/vnd.semf + + + ser + application/java-serialized-object + + + setpay + application/set-payment-initiation + + + setreg + application/set-registration-initiation + + + sfd-hdstx + application/vnd.hydrostatix.sof-data + + + sfs + application/vnd.spotfire.sfs + + + sfv + text/x-sfv + + + sgi + image/sgi + + + sgl + application/vnd.stardivision.writer-global + + + sgm + text/sgml + + + sgml + text/sgml + + + sh + application/x-sh + + + shar + application/x-shar + + + shf + application/shf+xml + + + + sid + image/x-mrsid-image + + + sig + application/pgp-signature + + + sil + audio/silk + + + silo + model/mesh + + + sis + application/vnd.symbian.install + + + sisx + application/vnd.symbian.install + + + sit + application/x-stuffit + + + sitx + application/x-stuffitx + + + skd + application/vnd.koan + + + skm + application/vnd.koan + + + skp + application/vnd.koan + + + skt + application/vnd.koan + + + sldm + application/vnd.ms-powerpoint.slide.macroenabled.12 + + + sldx + application/vnd.openxmlformats-officedocument.presentationml.slide + + + slt + application/vnd.epson.salt + + + sm + application/vnd.stepmania.stepchart + + + smf + application/vnd.stardivision.math + + + smi + application/smil+xml + + + smil + application/smil+xml + + + smv + video/x-smv + + + smzip + application/vnd.stepmania.package + + + snd + audio/basic + + + snf + application/x-font-snf + + + so + application/octet-stream + + + spc + application/x-pkcs7-certificates + + + spf + application/vnd.yamaha.smaf-phrase + + + spl + application/x-futuresplash + + + spot + text/vnd.in3d.spot + + + spp + application/scvp-vp-response + + + spq + application/scvp-vp-request + + + spx + audio/ogg + + + sql + application/x-sql + + + src + application/x-wais-source + + + srt + application/x-subrip + + + sru + application/sru+xml + + + srx + application/sparql-results+xml + + + ssdl + application/ssdl+xml + + + sse + application/vnd.kodak-descriptor + + + ssf + application/vnd.epson.ssf + + + ssml + application/ssml+xml + + + st + application/vnd.sailingtracker.track + + + stc + application/vnd.sun.xml.calc.template + + + std + application/vnd.sun.xml.draw.template + + + stf + application/vnd.wt.stf + + + sti + application/vnd.sun.xml.impress.template + + + stk + application/hyperstudio + + + stl + application/vnd.ms-pki.stl + + + str + application/vnd.pg.format + + + stw + application/vnd.sun.xml.writer.template + + + sub + text/vnd.dvb.subtitle + + + sus + application/vnd.sus-calendar + + + susp + application/vnd.sus-calendar + + + sv4cpio + application/x-sv4cpio + + + sv4crc + application/x-sv4crc + + + svc + application/vnd.dvb.service + + + svd + application/vnd.svd + + + svg + image/svg+xml + + + svgz + image/svg+xml + + + swa + application/x-director + + + swf + application/x-shockwave-flash + + + swi + application/vnd.aristanetworks.swi + + + sxc + application/vnd.sun.xml.calc + + + sxd + application/vnd.sun.xml.draw + + + sxg + application/vnd.sun.xml.writer.global + + + sxi + application/vnd.sun.xml.impress + + + sxm + application/vnd.sun.xml.math + + + sxw + application/vnd.sun.xml.writer + + + t + text/troff + + + t3 + application/x-t3vm-image + + + taglet + application/vnd.mynfc + + + tao + application/vnd.tao.intent-module-archive + + + tar + application/x-tar + + + tcap + application/vnd.3gpp2.tcap + + + tcl + application/x-tcl + + + teacher + application/vnd.smart.teacher + + + tei + application/tei+xml + + + teicorpus + application/tei+xml + + + tex + application/x-tex + + + texi + application/x-texinfo + + + texinfo + application/x-texinfo + + + text + text/plain + + + tfi + application/thraud+xml + + + tfm + application/x-tex-tfm + + + tga + image/x-tga + + + thmx + application/vnd.ms-officetheme + + + tif + image/tiff + + + tiff + image/tiff + + + tmo + application/vnd.tmobile-livetv + + + torrent + application/x-bittorrent + + + tpl + application/vnd.groove-tool-template + + + tpt + application/vnd.trid.tpt + + + tr + text/troff + + + tra + application/vnd.trueapp + + + trm + application/x-msterminal + + + tsd + application/timestamped-data + + + tsv + text/tab-separated-values + + + ttc + font/collection + + + ttf + font/ttf + + + ttl + text/turtle + + + twd + application/vnd.simtech-mindmapper + + + twds + application/vnd.simtech-mindmapper + + + txd + application/vnd.genomatix.tuxedo + + + txf + application/vnd.mobius.txf + + + txt + text/plain + + + u32 + application/x-authorware-bin + + + udeb + application/x-debian-package + + + ufd + application/vnd.ufdl + + + ufdl + application/vnd.ufdl + + + ulw + audio/basic + + + ulx + application/x-glulx + + + umj + application/vnd.umajin + + + unityweb + application/vnd.unity + + + uoml + application/vnd.uoml+xml + + + uri + text/uri-list + + + uris + text/uri-list + + + urls + text/uri-list + + + ustar + application/x-ustar + + + utz + application/vnd.uiq.theme + + + uu + text/x-uuencode + + + uva + audio/vnd.dece.audio + + + uvd + application/vnd.dece.data + + + uvf + application/vnd.dece.data + + + uvg + image/vnd.dece.graphic + + + uvh + video/vnd.dece.hd + + + uvi + image/vnd.dece.graphic + + + uvm + video/vnd.dece.mobile + + + uvp + video/vnd.dece.pd + + + uvs + video/vnd.dece.sd + + + uvt + application/vnd.dece.ttml+xml + + + uvu + video/vnd.uvvu.mp4 + + + uvv + video/vnd.dece.video + + + uvva + audio/vnd.dece.audio + + + uvvd + application/vnd.dece.data + + + uvvf + application/vnd.dece.data + + + uvvg + image/vnd.dece.graphic + + + uvvh + video/vnd.dece.hd + + + uvvi + image/vnd.dece.graphic + + + uvvm + video/vnd.dece.mobile + + + uvvp + video/vnd.dece.pd + + + uvvs + video/vnd.dece.sd + + + uvvt + application/vnd.dece.ttml+xml + + + uvvu + video/vnd.uvvu.mp4 + + + uvvv + video/vnd.dece.video + + + uvvx + application/vnd.dece.unspecified + + + uvvz + application/vnd.dece.zip + + + uvx + application/vnd.dece.unspecified + + + uvz + application/vnd.dece.zip + + + vcard + text/vcard + + + vcd + application/x-cdlink + + + vcf + text/x-vcard + + + vcg + application/vnd.groove-vcard + + + vcs + text/x-vcalendar + + + vcx + application/vnd.vcx + + + vis + application/vnd.visionary + + + viv + video/vnd.vivo + + + vob + video/x-ms-vob + + + vor + application/vnd.stardivision.writer + + + vox + application/x-authorware-bin + + + vrml + model/vrml + + + vsd + application/vnd.visio + + + vsf + application/vnd.vsf + + + vss + application/vnd.visio + + + vst + application/vnd.visio + + + vsw + application/vnd.visio + + + vtu + model/vnd.vtu + + + vxml + application/voicexml+xml + + + w3d + application/x-director + + + wad + application/x-doom + + + wasm + application/wasm + + + wav + audio/x-wav + + + wax + audio/x-ms-wax + + + + wbmp + image/vnd.wap.wbmp + + + wbs + application/vnd.criticaltools.wbs+xml + + + wbxml + application/vnd.wap.wbxml + + + wcm + application/vnd.ms-works + + + wdb + application/vnd.ms-works + + + wdp + image/vnd.ms-photo + + + weba + audio/webm + + + webm + video/webm + + + webp + image/webp + + + wg + application/vnd.pmi.widget + + + wgt + application/widget + + + wks + application/vnd.ms-works + + + wm + video/x-ms-wm + + + wma + audio/x-ms-wma + + + wmd + application/x-ms-wmd + + + wmf + application/x-msmetafile + + + + wml + text/vnd.wap.wml + + + + wmlc + application/vnd.wap.wmlc + + + + wmls + text/vnd.wap.wmlscript + + + + wmlsc + application/vnd.wap.wmlscriptc + + + wmv + video/x-ms-wmv + + + wmx + video/x-ms-wmx + + + wmz + application/x-msmetafile + + + woff + font/woff + + + woff2 + font/woff2 + + + wpd + application/vnd.wordperfect + + + wpl + application/vnd.ms-wpl + + + wps + application/vnd.ms-works + + + wqd + application/vnd.wqd + + + wri + application/x-mswrite + + + wrl + model/vrml + + + wsdl + application/wsdl+xml + + + wspolicy + application/wspolicy+xml + + + wtb + application/vnd.webturbo + + + wvx + video/x-ms-wvx + + + x32 + application/x-authorware-bin + + + x3d + model/x3d+xml + + + x3db + model/x3d+binary + + + x3dbz + model/x3d+binary + + + x3dv + model/x3d+vrml + + + x3dvz + model/x3d+vrml + + + x3dz + model/x3d+xml + + + xaml + application/xaml+xml + + + xap + application/x-silverlight-app + + + xar + application/vnd.xara + + + xbap + application/x-ms-xbap + + + xbd + application/vnd.fujixerox.docuworks.binder + + + xbm + image/x-xbitmap + + + xdf + application/xcap-diff+xml + + + xdm + application/vnd.syncml.dm+xml + + + xdp + application/vnd.adobe.xdp+xml + + + xdssc + application/dssc+xml + + + xdw + application/vnd.fujixerox.docuworks + + + xenc + application/xenc+xml + + + xer + application/patch-ops-error+xml + + + xfdf + application/vnd.adobe.xfdf + + + xfdl + application/vnd.xfdl + + + xht + application/xhtml+xml + + + xhtml + application/xhtml+xml + + + xhvml + application/xv+xml + + + xif + image/vnd.xiff + + + xla + application/vnd.ms-excel + + + xlam + application/vnd.ms-excel.addin.macroenabled.12 + + + xlc + application/vnd.ms-excel + + + xlf + application/x-xliff+xml + + + xlm + application/vnd.ms-excel + + + xls + application/vnd.ms-excel + + + xlsb + application/vnd.ms-excel.sheet.binary.macroenabled.12 + + + xlsm + application/vnd.ms-excel.sheet.macroenabled.12 + + + xlsx + application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + + + xlt + application/vnd.ms-excel + + + xltm + application/vnd.ms-excel.template.macroenabled.12 + + + xltx + application/vnd.openxmlformats-officedocument.spreadsheetml.template + + + xlw + application/vnd.ms-excel + + + xm + audio/xm + + + xml + application/xml + + + xo + application/vnd.olpc-sugar + + + xop + application/xop+xml + + + xpi + application/x-xpinstall + + + xpl + application/xproc+xml + + + xpm + image/x-xpixmap + + + xpr + application/vnd.is-xpr + + + xps + application/vnd.ms-xpsdocument + + + xpw + application/vnd.intercon.formnet + + + xpx + application/vnd.intercon.formnet + + + xsl + application/xml + + + xslt + application/xslt+xml + + + xsm + application/vnd.syncml+xml + + + xspf + application/xspf+xml + + + xul + application/vnd.mozilla.xul+xml + + + xvm + application/xv+xml + + + xvml + application/xv+xml + + + xwd + image/x-xwindowdump + + + xyz + chemical/x-xyz + + + xz + application/x-xz + + + yang + application/yang + + + yin + application/yin+xml + + + z + application/x-compress + + + z1 + application/x-zmachine + + + z2 + application/x-zmachine + + + z3 + application/x-zmachine + + + z4 + application/x-zmachine + + + z5 + application/x-zmachine + + + z6 + application/x-zmachine + + + z7 + application/x-zmachine + + + z8 + application/x-zmachine + + + zaz + application/vnd.zzazz.deck+xml + + + zip + application/zip + + + zir + application/vnd.zul + + + zirz + application/vnd.zul + + + zmm + application/vnd.handheld-entertainment+xml + + + + + + + + + + + + + + + + + + index.html + index.htm + index.jsp + + + \ No newline at end of file diff --git a/TestRest/.classpath b/TestRest/.classpath new file mode 100644 index 0000000..3122b27 --- /dev/null +++ b/TestRest/.classpath @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TestRest/.project b/TestRest/.project new file mode 100644 index 0000000..f57861a --- /dev/null +++ b/TestRest/.project @@ -0,0 +1,37 @@ + + + TestRest + + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.wst.validation.validationbuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jem.workbench.JavaEMFNature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + org.eclipse.wst.common.project.facet.core.nature + org.eclipse.wst.jsdt.core.jsNature + + diff --git a/TestRest/.settings/.jsdtscope b/TestRest/.settings/.jsdtscope new file mode 100644 index 0000000..e4a0c2d --- /dev/null +++ b/TestRest/.settings/.jsdtscope @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/TestRest/.settings/org.eclipse.core.resources.prefs b/TestRest/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..29abf99 --- /dev/null +++ b/TestRest/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,6 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/main/resources=UTF-8 +encoding//src/test/java=UTF-8 +encoding//src/test/resources=UTF-8 +encoding/=UTF-8 diff --git a/TestRest/.settings/org.eclipse.jdt.core.prefs b/TestRest/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..532e4e5 --- /dev/null +++ b/TestRest/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,10 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 +org.eclipse.jdt.core.compiler.compliance=17 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=17 diff --git a/TestRest/.settings/org.eclipse.m2e.core.prefs b/TestRest/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/TestRest/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/TestRest/.settings/org.eclipse.wst.common.component b/TestRest/.settings/org.eclipse.wst.common.component new file mode 100644 index 0000000..460a443 --- /dev/null +++ b/TestRest/.settings/org.eclipse.wst.common.component @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/TestRest/.settings/org.eclipse.wst.common.project.facet.core.xml b/TestRest/.settings/org.eclipse.wst.common.project.facet.core.xml new file mode 100644 index 0000000..4005144 --- /dev/null +++ b/TestRest/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/TestRest/.settings/org.eclipse.wst.jsdt.ui.superType.container b/TestRest/.settings/org.eclipse.wst.jsdt.ui.superType.container new file mode 100644 index 0000000..3bd5d0a --- /dev/null +++ b/TestRest/.settings/org.eclipse.wst.jsdt.ui.superType.container @@ -0,0 +1 @@ +org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file diff --git a/TestRest/.settings/org.eclipse.wst.jsdt.ui.superType.name b/TestRest/.settings/org.eclipse.wst.jsdt.ui.superType.name new file mode 100644 index 0000000..05bd71b --- /dev/null +++ b/TestRest/.settings/org.eclipse.wst.jsdt.ui.superType.name @@ -0,0 +1 @@ +Window \ No newline at end of file diff --git a/TestRest/.settings/org.eclipse.wst.validation.prefs b/TestRest/.settings/org.eclipse.wst.validation.prefs new file mode 100644 index 0000000..04cad8c --- /dev/null +++ b/TestRest/.settings/org.eclipse.wst.validation.prefs @@ -0,0 +1,2 @@ +disabled=06target +eclipse.preferences.version=1 diff --git a/TestRest/pom.xml b/TestRest/pom.xml new file mode 100644 index 0000000..908814b --- /dev/null +++ b/TestRest/pom.xml @@ -0,0 +1,97 @@ + + + 4.0.0 + + fr.insa.rest + TestRest + war + 0.0.1-SNAPSHOT + RestProject + + + RestProject + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + true + + 17 + 17 + + + + org.apache.maven.plugins + maven-war-plugin + 3.4.0 + + + + + + + + + org.glassfish.jersey + jersey-bom + ${jersey.version} + pom + import + + + + + + + + org.glassfish.jersey.inject + jersey-hk2 + + + + + + + org.glassfish.jersey.media + jersey-media-json-binding + + + + org.glassfish.jersey.core + jersey-client + 4.0.0-M1 + + + + + + 4.0.0-M1 + UTF-8 + 3.4.0 + + diff --git a/TestRest/src/main/java/fr/insa/rest/TestRest/ClientRest.java b/TestRest/src/main/java/fr/insa/rest/TestRest/ClientRest.java new file mode 100644 index 0000000..97399ae --- /dev/null +++ b/TestRest/src/main/java/fr/insa/rest/TestRest/ClientRest.java @@ -0,0 +1,13 @@ +package fr.insa.rest.TestRest; + +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.Response; + +public class ClientRest { + public static void main(String [] args) { + Client client = ClientBuilder.newClient(); + Response response = client.target("http://localhost:8080/RestProject/webapi/comparator/longeur/Toulllllouse").request().get(); + System.out.println(response.readEntity(String.class)); + } +} diff --git a/TestRest/target/classes/fr/insa/rest/TestRest/ClientRest.class b/TestRest/target/classes/fr/insa/rest/TestRest/ClientRest.class new file mode 100644 index 0000000..3490992 Binary files /dev/null and b/TestRest/target/classes/fr/insa/rest/TestRest/ClientRest.class differ diff --git a/TestRest/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF b/TestRest/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF new file mode 100644 index 0000000..3cbb63e --- /dev/null +++ b/TestRest/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF @@ -0,0 +1,4 @@ +Manifest-Version: 1.0 +Build-Jdk-Spec: 22 +Created-By: Maven Integration for Eclipse + diff --git a/TestRest/target/m2e-wtp/web-resources/META-INF/maven/fr.insa.rest/TestRest/pom.properties b/TestRest/target/m2e-wtp/web-resources/META-INF/maven/fr.insa.rest/TestRest/pom.properties new file mode 100644 index 0000000..a8801c0 --- /dev/null +++ b/TestRest/target/m2e-wtp/web-resources/META-INF/maven/fr.insa.rest/TestRest/pom.properties @@ -0,0 +1,7 @@ +#Generated by Maven Integration for Eclipse +#Fri Oct 18 12:10:22 CEST 2024 +artifactId=TestRest +groupId=fr.insa.rest +m2e.projectLocation=/home/nbillard/eclipse-workspace/TestRest +m2e.projectName=TestRest +version=0.0.1-SNAPSHOT diff --git a/TestRest/target/m2e-wtp/web-resources/META-INF/maven/fr.insa.rest/TestRest/pom.xml b/TestRest/target/m2e-wtp/web-resources/META-INF/maven/fr.insa.rest/TestRest/pom.xml new file mode 100644 index 0000000..908814b --- /dev/null +++ b/TestRest/target/m2e-wtp/web-resources/META-INF/maven/fr.insa.rest/TestRest/pom.xml @@ -0,0 +1,97 @@ + + + 4.0.0 + + fr.insa.rest + TestRest + war + 0.0.1-SNAPSHOT + RestProject + + + RestProject + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + true + + 17 + 17 + + + + org.apache.maven.plugins + maven-war-plugin + 3.4.0 + + + + + + + + + org.glassfish.jersey + jersey-bom + ${jersey.version} + pom + import + + + + + + + + org.glassfish.jersey.inject + jersey-hk2 + + + + + + + org.glassfish.jersey.media + jersey-media-json-binding + + + + org.glassfish.jersey.core + jersey-client + 4.0.0-M1 + + + + + + 4.0.0-M1 + UTF-8 + 3.4.0 + +