@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8"?>
<project default="-deploy-ant" basedir=".">
<target name="-init-cl-deployment-env" if="deploy.ant.enabled">
<property file="${deploy.ant.properties.file}" />
<available file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" property="sun.web.present"/>
<available file="${deploy.ant.docbase.dir}/WEB-INF/glassfish-web.xml" property="glassfish.web.present"/>
<available file="${deploy.ant.resource.dir}" property="has.setup"/>
<tempfile prefix="gfv3" property="gfv3.password.file" destdir="${java.io.tmpdir}"/> <!-- do not forget to delete this! -->
<echo message="AS_ADMIN_PASSWORD=${gfv3.password}" file="${gfv3.password.file}"/>
</target>

<target name="-parse-sun-web" depends="-init-cl-deployment-env" if="sun.web.present">
<tempfile prefix="gfv3" property="temp.sun.web" destdir="${java.io.tmpdir}"/>
<copy file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" tofile="${temp.sun.web}"/>
<!-- The doctype triggers resolution which can fail -->
<replace file="${temp.sun.web}">
<replacetoken><![CDATA[<!DOCTYPE]]></replacetoken>
<replacevalue><![CDATA[<!-- <!DOCTYPE]]></replacevalue>
</replace>
<replace file="${temp.sun.web}">
<replacetoken><![CDATA[<sun-web-app]]></replacetoken>
<replacevalue><![CDATA[--> <sun-web-app]]></replacevalue>
</replace>
<xmlproperty file="${temp.sun.web}" validate="false">
</xmlproperty>
<delete file="${temp.sun.web}"/>
<condition property="deploy.ant.client.url" value="${gfv3.url}${sun-web-app.context-root}" else="${gfv3.url}/${ant.project.name}">
<isset property="sun-web-app.context-root"/>
</condition>
<condition property="deploy.context.root.argument" value="&amp;contextroot=${sun-web-app.context-root}" else="/${ant.project.name}">
<isset property="sun-web-app.context-root"/>
</condition>
</target>
<target name="-parse-glassfish-web" depends="-init-cl-deployment-env" if="glassfish.web.present">
<tempfile prefix="gfv3" property="temp.gf.web" destdir="${java.io.tmpdir}"/>
<copy file="${deploy.ant.docbase.dir}/WEB-INF/glassfish-web.xml" tofile="${temp.gf.web}"/>
<!-- The doctype triggers resolution which can fail -->
<replace file="${temp.gf.web}">
<replacetoken><![CDATA[<!DOCTYPE]]></replacetoken>
<replacevalue><![CDATA[<!-- <!DOCTYPE]]></replacevalue>
</replace>
<replace file="${temp.gf.web}">
<replacetoken><![CDATA[<glassfish-web-app]]></replacetoken>
<replacevalue><![CDATA[--> <glassfish-web-app]]></replacevalue>
</replace>
<xmlproperty file="${temp.gf.web}" validate="false">
</xmlproperty>
<delete file="${temp.gf.web}"/>
<condition property="deploy.ant.client.url" value="${gfv3.url}${glassfish-web-app.context-root}" else="${gfv3.url}/${ant.project.name}">
<isset property="glassfish-web-app.context-root"/>
</condition>
<condition property="deploy.context.root.argument" value="&amp;contextroot=${glassfish-web-app.context-root}" else="/${ant.project.name}">
<isset property="glassfish-web-app.context-root"/>
</condition>
</target>
<target name="-no-parse-sun-web" depends="-init-cl-deployment-env" unless="sun.web.present">
<property name="deploy.context.root.argument" value=""/>
</target>
<target name="-add-resources" depends="-init-cl-deployment-env" if="has.setup">
<tempfile prefix="gfv3" property="gfv3.resources.dir" destdir="${java.io.tmpdir}"/>
<mkdir dir="${gfv3.resources.dir}"/>
<mkdir dir="${gfv3.resources.dir}/META-INF"/>
<copy todir="${gfv3.resources.dir}/META-INF">
<fileset dir="${deploy.ant.resource.dir}"/>
</copy>
<jar destfile="${deploy.ant.archive}" update="true">
<fileset dir="${gfv3.resources.dir}"/>
</jar>
<delete dir="${gfv3.resources.dir}"/>
</target>
<target name="-deploy-ant" depends="-parse-glassfish-web, -parse-sun-web, -no-parse-sun-web,-add-resources" if="deploy.ant.enabled">
<antcall target="-deploy-without-pw"/>
<antcall target="-deploy-with-pw"/>
</target>

<target name="-deploy-without-pw" unless="gfv3.password">
<echo message="Deploying ${deploy.ant.archive}"/>
<tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/> <!-- do not forget to delete this! -->
<property name="full.deploy.ant.archive" location="${deploy.ant.archive}"/>
<get src="${gfv3.admin.url}/__asadmin/deploy?path=${full.deploy.ant.archive}${deploy.context.root.argument}&amp;force=true&amp;name=${ant.project.name}"
dest="${gfv3.results.file}"/>
<delete file="${gfv3.results.file}"/>
</target>
<target name="-deploy-with-pw" if="gfv3.password">
<echo message="Deploying ${deploy.ant.archive}"/>
<tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/> <!-- do not forget to delete this! -->
<property name="full.deploy.ant.archive" location="${deploy.ant.archive}"/>
<get username="${gfv3.username}" password="${gfv3.password}" src="${gfv3.admin.url}/__asadmin/deploy?path=${full.deploy.ant.archive}${deploy.context.root.argument}&amp;force=true&amp;name=${ant.project.name}"
dest="${gfv3.results.file}"/>
<delete file="${gfv3.results.file}"/>
</target>
<target name="-undeploy-ant" depends="-init-cl-deployment-env" if="deploy.ant.enabled">
<antcall target="-undeploy-without-pw"/>
<antcall target="-undeploy-with-pw"/>
</target>

<target name="-undeploy-without-pw" unless="gfv3.password">
<echo message="Undeploying ${deploy.ant.archive}"/>
<tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/> <!-- do not forget to delete this! -->
<get src="${gfv3.admin.url}/__asadmin/undeploy?name=${ant.project.name}"
dest="${gfv3.results.file}"/>
<delete file="${gfv3.results.file}"/>
</target>
<target name="-undeploy-with-pw" if="gfv3.password">
<echo message="Undeploying ${deploy.ant.archive}"/>
<tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/> <!-- do not forget to delete this! -->
<get username="${gfv3.username}" password="${gfv3.password}" src="${gfv3.admin.url}/__asadmin/undeploy?name=${ant.project.name}"
dest="${gfv3.results.file}"/>
<delete file="${gfv3.results.file}"/>
</target>
</project>

Large diffs are not rendered by default.

@@ -0,0 +1,5 @@
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=4c7a5e0e
nbproject/build-impl.xml.script.CRC32=234ced5f
nbproject/build-impl.xml.stylesheet.CRC32=99ea4b56@1.68.1.1
@@ -0,0 +1,7 @@
deploy.ant.properties.file=C:\\Users\\Foxlight\\AppData\\Roaming\\NetBeans\\8.0.2\\config\\GlassFishEE6\\Properties\\gfv3-538518709.properties
j2ee.platform.is.jsr109=true
j2ee.server.domain=C:/Users/Foxlight/AppData/Roaming/NetBeans/8.0.2/config/GF_4.1/domain1
j2ee.server.home=C:/Program Files/glassfish-4.1/glassfish
j2ee.server.instance=[C:\\Program Files\\glassfish-4.1\\glassfish;C:\\Program Files\\glassfish-4.1\\glassfish\\domains\\domain1]deployer:gfv3ee6:localhost:4848
j2ee.server.middleware=C:/Program Files/glassfish-4.1
user.properties.file=C:\\Users\\Foxlight\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/C:/Users/Foxlight/Documents/NetBeansProjects/ProjetAmosse/src/java/service/AbstractFacade.java</file>
<file>file:/C:/Users/Foxlight/Documents/NetBeansProjects/ProjetAmosse/src/conf/MANIFEST.MF</file>
<file>file:/C:/Users/Foxlight/Documents/NetBeansProjects/ProjetAmosse/src/conf/persistence.xml</file>
<file>file:/C:/Users/Foxlight/Documents/NetBeansProjects/ProjetAmosse/src/java/Entities/Utilisateur.java</file>
<file>file:/C:/Users/Foxlight/Documents/NetBeansProjects/ProjetAmosse/src/java/service/UtilisateurFacadeREST.java</file>
<file>file:/C:/Users/Foxlight/Documents/NetBeansProjects/ProjetAmosse/setup/sun-resources.xml</file>
<file>file:/C:/Users/Foxlight/Documents/NetBeansProjects/ProjetAmosse/src/java/config/RequestFilter.java</file>
<file>file:/C:/Users/Foxlight/Documents/NetBeansProjects/ProjetAmosse/src/java/Entities/Commentaire.java</file>
<file>file:/C:/Users/Foxlight/Documents/NetBeansProjects/ProjetAmosse/src/java/Entities/Roles.java</file>
<file>file:/C:/Users/Foxlight/Documents/NetBeansProjects/ProjetAmosse/web/WEB-INF/web.xml</file>
<file>file:/C:/Users/Foxlight/Documents/NetBeansProjects/ProjetAmosse/src/java/Entities/Status.java</file>
<file>file:/C:/Users/Foxlight/Documents/NetBeansProjects/ProjetAmosse/src/java/config/ApplicationConfig.java</file>
<file>file:/C:/Users/Foxlight/Documents/NetBeansProjects/ProjetAmosse/src/java/config/initDB.java</file>
<file>file:/C:/Users/Foxlight/Documents/NetBeansProjects/ProjetAmosse/web/index.jsp</file>
<file>file:/C:/Users/Foxlight/Documents/NetBeansProjects/ProjetAmosse/src/java/Entities/StatusUtilisateur.java</file>
<file>file:/C:/Users/Foxlight/Documents/NetBeansProjects/ProjetAmosse/src/java/service/RolesFacadeREST.java</file>
<file>file:/C:/Users/Foxlight/Documents/NetBeansProjects/ProjetAmosse/src/java/service/ArticleFacadeREST.java</file>
<file>file:/C:/Users/Foxlight/Documents/NetBeansProjects/ProjetAmosse/web/WEB-INF/sun-web.xml</file>
<file>file:/C:/Users/Foxlight/Documents/NetBeansProjects/ProjetAmosse/src/java/Entities/Article.java</file>
<file>file:/C:/Users/Foxlight/Documents/NetBeansProjects/ProjetAmosse/src/java/service/CommentaireFacadeREST.java</file>
</group>
</open-files>
</project-private>
@@ -0,0 +1,137 @@
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
#
# Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
#
# Oracle and Java are registered trademarks of Oracle and/or its affiliates.
# Other names may be trademarks of their respective owners.
#
# The contents of this file are subject to the terms of either the GNU
# General Public License Version 2 only ("GPL") or the Common
# Development and Distribution License("CDDL") (collectively, the
# "License"). You may not use this file except in compliance with the
# License. You can obtain a copy of the License at
# http://www.netbeans.org/cddl-gplv2.html
# or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
# specific language governing permissions and limitations under the
# License. When distributing the software, include this License Header
# Notice in each file and include the License file at
# nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the GPL Version 2 section of the License file that
# accompanied this code. If applicable, add the following below the
# License Header, with the fields enclosed by brackets [] replaced by
# your own identifying information:
# "Portions Copyrighted [year] [name of copyright owner]"
#
# Contributor(s):
#
# The Original Software is NetBeans. The Initial Developer of the Original
# Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
# Microsystems, Inc. All Rights Reserved.
#
# If you wish your version of this file to be governed by only the CDDL
# or only the GPL Version 2, indicate your decision by adding
# "[Contributor] elects to include this software in this distribution
# under the [CDDL or GPL Version 2] license." If you do not indicate a
# single choice of license, a recipient has the option to distribute
# your version of this file under either the CDDL, the GPL Version 2 or
# to extend the choice of license to its licensees as provided above.
# However, if you add GPL Version 2 code and therefore, elected the GPL
# Version 2 license, then the option applies only if the new code is
# made subject to such option by the copyright holder.
#

annotation.processing.enabled=true
annotation.processing.enabled.in.editor=true
annotation.processing.processor.options=-Aeclipselink.canonicalmodel.use_static_factory=false
annotation.processing.processors.list=
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
build.classes.dir=${build.web.dir}/WEB-INF/classes
build.classes.excludes=**/*.java,**/*.form
build.dir=build
build.generated.dir=${build.dir}/generated
build.generated.sources.dir=${build.dir}/generated-sources
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
build.web.dir=${build.dir}/web
build.web.excludes=${build.classes.excludes}
client.urlPart=/resources/helloWorld
compile.jsps=false
conf.dir=${source.root}/conf
debug.classpath=${build.classes.dir}:${javac.classpath}
debug.client=false
debug.server=false
debug.test.classpath=\
${run.test.classpath}
display.browser=true
dist.dir=dist
dist.ear.war=${dist.dir}/${war.ear.name}
dist.javadoc.dir=${dist.dir}/javadoc
dist.war=${dist.dir}/${war.name}
endorsed.classpath=
excludes=
includes=**
j2ee.compile.on.save=true
j2ee.copy.static.files.on.save=true
j2ee.deploy.on.save=true
j2ee.platform=1.6-web
j2ee.platform.classpath=${j2ee.server.home}/modules/endorsed/javax.annotation-api.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/bean-validator.jar:${j2ee.server.home}/modules/javax.batch-api.jar:${j2ee.server.home}/modules/javax.ejb-api.jar:${j2ee.server.home}/modules/javax.el.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent-api.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent.jar:${j2ee.server.home}/modules/javax.enterprise.deploy-api.jar:${j2ee.server.home}/modules/javax.faces.jar:${j2ee.server.home}/modules/javax.inject.jar:${j2ee.server.home}/modules/javax.interceptor-api.jar:${j2ee.server.home}/modules/javax.jms-api.jar:${j2ee.server.home}/modules/javax.json.jar:${j2ee.server.home}/modules/javax.mail.jar:${j2ee.server.home}/modules/javax.management.j2ee-api.jar:${j2ee.server.home}/modules/javax.persistence.jar:${j2ee.server.home}/modules/javax.resource-api.jar:${j2ee.server.home}/modules/javax.security.auth.message-api.jar:${j2ee.server.home}/modules/javax.security.jacc-api.jar:${j2ee.server.home}/modules/javax.servlet-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl.jar:${j2ee.server.home}/modules/javax.transaction-api.jar:${j2ee.server.home}/modules/javax.websocket-api.jar:${j2ee.server.home}/modules/javax.ws.rs-api.jar:${j2ee.server.home}/modules/javax.xml.registry-api.jar:${j2ee.server.home}/modules/javax.xml.rpc-api.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/weld-osgi-bundle.jar:${j2ee.server.middleware}/mq/lib/jaxm-api.jar
j2ee.platform.embeddableejb.classpath=${j2ee.server.home}/lib/embedded/glassfish-embedded-static-shell.jar
j2ee.platform.wscompile.classpath=${j2ee.server.home}/modules/webservices-osgi.jar
j2ee.platform.wsgen.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar
j2ee.platform.wsimport.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar
j2ee.platform.wsit.classpath=
j2ee.server.type=gfv3ee6
jar.compress=false
javac.classpath=
# Space-separated list of extra javac options
javac.compilerargs=
javac.debug=true
javac.deprecation=false
javac.processorpath=\
${javac.classpath}:\
${libs.eclipselink.classpath}:\
${libs.eclipselinkmodelgen.classpath}
javac.source=1.5
javac.target=1.5
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}
javac.test.processorpath=${javac.test.classpath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=${source.encoding}
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.preview=true
javadoc.private=false
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
jspcompilation.classpath=${jspc.classpath}:${javac.classpath}
lib.dir=${web.docbase.dir}/WEB-INF/lib
persistence.xml.dir=${conf.dir}
platform.active=default_platform
resource.dir=setup
rest.support.on=true
rest.config.type=user
run.test.classpath=\
${javac.test.classpath}:\
${build.test.classes.dir}
# Space-separated list of JVM arguments used when running class with main method
# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value):
runmain.jvmargs=
source.encoding=UTF-8
source.root=src
src.dir=${source.root}/java
test.src.dir=test
war.content.additional=
war.ear.name=ProjetAmosse.war
war.name=ProjetAmosse.war
war.package=false
web.docbase.dir=web
webinf.dir=web/WEB-INF
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
Oracle and Java are registered trademarks of Oracle and/or its affiliates.
Other names may be trademarks of their respective owners.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common
Development and Distribution License("CDDL") (collectively, the
"License"). You may not use this file except in compliance with the
License. You can obtain a copy of the License at
http://www.netbeans.org/cddl-gplv2.html
or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
specific language governing permissions and limitations under the
License. When distributing the software, include this License Header
Notice in each file and include the License file at
nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
particular file as subject to the "Classpath" exception as provided
by Oracle in the GPL Version 2 section of the License file that
accompanied this code. If applicable, add the following below the
License Header, with the fields enclosed by brackets [] replaced by
your own identifying information:
"Portions Copyrighted [year] [name of copyright owner]"
Contributor(s):
The Original Software is NetBeans. The Initial Developer of the Original
Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
Microsystems, Inc. All Rights Reserved.
If you wish your version of this file to be governed by only the CDDL
or only the GPL Version 2, indicate your decision by adding
"[Contributor] elects to include this software in this distribution
under the [CDDL or GPL Version 2] license." If you do not indicate a
single choice of license, a recipient has the option to distribute
your version of this file under either the CDDL, the GPL Version 2 or
to extend the choice of license to its licensees as provided above.
However, if you add GPL Version 2 code and therefore, elected the GPL
Version 2 license, then the option applies only if the new code is
made subject to such option by the copyright holder.
-->
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.web.project</type>
<configuration>
<buildExtensions xmlns="http://www.netbeans.org/ns/ant-build-extender/1">
<extension file="rest-build.xml" id="rest.2"/>
</buildExtensions>
<data xmlns="http://www.netbeans.org/ns/web-project/3">
<name>ProjetAmosse</name>
<minimum-ant-version>1.6.5</minimum-ant-version>
<web-module-libraries/>
<web-module-additional-libraries/>
<source-roots>
<root id="src.dir"/>
</source-roots>
<test-roots>
<root id="test.src.dir"/>
</test-roots>
</data>
</configuration>
</project>
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
*** GENERATED - DO NOT EDIT ***
-->
<project name="HelloWorld-rest-build" basedir=".." xmlns:webproject3="http://www.netbeans.org/ns/web-project/3" xmlns:webproject2="http://www.netbeans.org/ns/web-project/2" xmlns:webproject1="http://www.netbeans.org/ns/web-project/1" xmlns:jaxrs="http://www.netbeans.org/ns/jax-rs/1">
<target name="-check-trim">
<condition property="do.trim">
<and>
<isset property="client.urlPart"/>
<length string="${client.urlPart}" when="greater" length="0"/>
</and>
</condition>
</target>
<target name="-trim-url" if="do.trim">
<pathconvert pathsep="/" property="rest.base.url">
<propertyset>
<propertyref name="client.url"/>
</propertyset>
<globmapper from="*${client.urlPart}" to="*/"/>
</pathconvert>
</target>
<target name="-spare-url" unless="do.trim">
<property name="rest.base.url" value="${client.url}"/>
</target>
<target name="test-restbeans" depends="run-deploy,-init-display-browser,-check-trim,-trim-url,-spare-url">
<xmlproperty file="${webinf.dir}/web.xml"/>
<replace file="${restbeans.test.file}" token="${base.url.token}" value="${rest.base.url}||${web-app.servlet-mapping.servlet-name}||${web-app.servlet-mapping.url-pattern}"/>
<condition property="do.browse-url">
<istrue value="${display.browser}"/>
</condition>
<antcall target="browse-url"/>
</target>
<target name="browse-url" if="do.browse-url">
<nbbrowse url="${restbeans.test.url}"/>
</target>
</project>
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE resources PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Resource Definitions //EN" "http://www.sun.com/software/appserver/dtds/sun-resources_1_3.dtd">
<resources>
<jdbc-resource enabled="true" jndi-name="jdbc/azerty" object-type="user" pool-name="connectionPool">
<description/>
</jdbc-resource>
<jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="auto-commit" datasource-classname="org.apache.derby.jdbc.ClientDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="connectionPool" non-transactional-connections="false" pool-resize-quantity="2" res-type="javax.sql.DataSource" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">
<property name="URL" value="jdbc:derby://localhost:1527/ProjetService2"/>
<property name="serverName" value="localhost"/>
<property name="PortNumber" value="1527"/>
<property name="DatabaseName" value="ProjetService2"/>
<property name="User" value="root"/>
<property name="Password" value="root"/>
</jdbc-connection-pool>
</resources>
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
<persistence-unit name="ProjetAmossePU" transaction-type="JTA">
<jta-data-source>jdbc/azerty</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/>
</properties>
</persistence-unit>
</persistence>
@@ -0,0 +1,196 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Entities;

import java.io.Serializable;
import java.util.List;
import static javax.persistence.CascadeType.ALL;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
*
* @author Foxlight
*/
@Entity
@XmlRootElement
public class Article implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String titre;
private String motCles;
private Boolean publierActif;
// http://stackoverflow.com/questions/35190467/increase-the-size-of-elements-in-a-elementcollection
@Column(length=10000)
private String contenu;
private byte[] photo;
private float positionLongitude;
private float positionLatitude;
private String positionNom;
private Status status;
@ManyToOne
private Utilisateur utilisateur;
//http://stackoverflow.com/questions/9108224/can-someone-please-explain-mappedby-in-hibernate
@OneToMany(cascade=ALL, mappedBy = "article")
private List<Commentaire> commentaire;


/**
* CONSTRUCTEUR
*/
public Article() {};

public Article(String titre, String motCles, Boolean publierActif, String contenu, byte[] photo,
float posLon,float posLat,String posNom, Status status, Utilisateur utilisateur ) {
this.titre = titre;
this.motCles = motCles;
this.publierActif = publierActif;
this.contenu = contenu;
this.photo = photo;
this.positionLongitude = posLon;
this.positionLatitude = posLat;
this.positionNom = posNom;
this.status = status;
this.utilisateur = utilisateur;
}

/**
* GETTEUR
* SETTEUR
*/

public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}

@Override
public int hashCode() {
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
}

@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof Article)) {
return false;
}
Article other = (Article) object;
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
}

@Override
public String toString() {
return "Entities.Article[ id=" + id + " ]";
}

public String getTitre() {
return titre;
}

public void setTitre(String titre) {
this.titre = titre;
}

public String getMotCles() {
return motCles;
}

public void setMotCles(String motCles) {
this.motCles = motCles;
}

public Boolean getPublier_actif() {
return publierActif;
}

public void setPublier_actif(Boolean publierActif) {
this.publierActif = publierActif;
}

public String getContenu() {
return contenu;
}

public void setContenu(String contenu) {
this.contenu = contenu;
}

public byte[] getPhoto() {
return photo;
}

public void setPhoto(byte[] photo) {
this.photo = photo;
}

public float getPositionLongitude() {
return positionLongitude;
}

public void setPositionLongitude(float positionLongitude) {
this.positionLongitude = positionLongitude;
}

public float getPositionLatitude() {
return positionLatitude;
}

public void setPositionLatitude(float positionLatitude) {
this.positionLatitude = positionLatitude;
}

public String getPositionNom() {
return positionNom;
}

public void setPositionNom(String positionNom) {
this.positionNom = positionNom;
}

public Status getStatus() {
return status;
}

public void setStatus(Status status) {
this.status = status;
}

public Utilisateur getUtilisateur() {
return utilisateur;
}

public void setUtilisateur(Utilisateur utilisateur) {
this.utilisateur = utilisateur;
}

@XmlTransient
public List<Commentaire> getCommentaire() {
return commentaire;
}

public void setCommentaire(List<Commentaire> commentaire) {
this.commentaire = commentaire;
}

}
@@ -0,0 +1,120 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Entities;

import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.xml.bind.annotation.XmlRootElement;

/**
*
* @author Foxlight
*/
@Entity
@XmlRootElement
public class Commentaire implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String commentaire;
@Temporal(javax.persistence.TemporalType.DATE)
private Calendar dateCommentaire;
@ManyToOne
private Utilisateur utilisateur;
@ManyToOne
private Article article;

/**
* CONSTRUCTEUR
*/
public Commentaire() {};

public Commentaire(String commentaire, Calendar dateCommentaire, Utilisateur utilisateur, Article article) {
this.commentaire = commentaire;
this.dateCommentaire = dateCommentaire;
this.utilisateur = utilisateur;
this.article = article;

}

/**
* GETTEUR
* SETTEUR
*/
public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}

@Override
public int hashCode() {
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
}

@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof Commentaire)) {
return false;
}
Commentaire other = (Commentaire) object;
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
}

@Override
public String toString() {
return "Entities.Commentaire[ id=" + id + " ]";
}

public String getCommentaire() {
return commentaire;
}

public void setCommentaire(String commentaire) {
this.commentaire = commentaire;
}

public Calendar getDateCommentaire() {
return dateCommentaire;
}

public void setDateCommentaire(Calendar dateCommentaire) {
this.dateCommentaire = dateCommentaire;
}

public Utilisateur getUtilisateur() {
return utilisateur;
}

public void setUtilisateur(Utilisateur utilisateur) {
this.utilisateur = utilisateur;
}

public Article getArticle() {
return article;
}

public void setArticle(Article article) {
this.article = article;
}

}
@@ -0,0 +1,110 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Entities;

import java.io.Serializable;
import java.util.List;
import static javax.persistence.CascadeType.ALL;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
*
* @author Foxlight
*/
@Entity
@XmlRootElement
public class Roles implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String nom;

@OneToMany(cascade=ALL, mappedBy = "role")
private List<Utilisateur> listeUtilisateurs;
private String description;


/**
* CONSTRUCTEUR
*/
public Roles(){};

public Roles(String nom, String description) {
this.nom = nom;
this.description = description;

}

/**
* GETTEUR
* SETTEUR
*/
public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}

@Override
public int hashCode() {
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
}

@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof Roles)) {
return false;
}
Roles other = (Roles) object;
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
}

@Override
public String toString() {
return "Entities.Roles[ id=" + id + " ]";
}

public String getNom() {
return nom;
}

public void setNom(String nom) {
this.nom = nom;
}

public String getDescription() {
return description;
}

public void setDescription(String description) {
this.description = description;
}

@XmlTransient
public List<Utilisateur> getListeUtilisateurs() {
return listeUtilisateurs;
}

public void setListeUtilisateurs(List<Utilisateur> listeUtilisateurs) {
this.listeUtilisateurs = listeUtilisateurs;
}

}
@@ -0,0 +1,15 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Entities;
/**
*
* @author Foxlight
*/
public enum Status {
PUBLIER,
REPORTERABUSIF,
ATTENTEVALIDATION;
}
@@ -0,0 +1,16 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Entities;


/**
*
* @author Foxlight
*/
public enum StatusUtilisateur {
ACTIF,
INACTIF;
}
@@ -0,0 +1,196 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Entities;

import java.io.Serializable;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.List;
import static javax.persistence.CascadeType.ALL;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Temporal;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
*
* @author Foxlight
*/
@Entity
@XmlRootElement
public class Utilisateur implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String prenom;
private String nom;
private String info;
private byte[] photo;
private String nomUtilisateur;
private String motDePasse;
private StatusUtilisateur status;
@Temporal(javax.persistence.TemporalType.DATE)
private Calendar derninereConnection;
@OneToMany(cascade=ALL, mappedBy = "utilisateur")
public List<Article> article;
@OneToMany(cascade=ALL, mappedBy = "utilisateur")
public List<Commentaire> listeCommentaires;
@ManyToOne
public Roles role;


/**
* CONSTRUCTEUR
*/
public Utilisateur() {};

public Utilisateur(String prenom, String nom, String info,
byte[] photo, String nomUtilisateur, String motDePasse, StatusUtilisateur statusUtilisateur, Roles role) {
this.prenom = prenom;
this.nom = nom;
this.info = info;
this.nomUtilisateur = nomUtilisateur;
this.motDePasse = motDePasse;
this.status = statusUtilisateur;
this.role = role;

}

/**
* GETTEUR
* SETTEUR
*/
public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}

@Override
public int hashCode() {
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
}

@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof Utilisateur)) {
return false;
}
Utilisateur other = (Utilisateur) object;
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
}

@Override
public String toString() {
return "Entities.Utilisateur[ id=" + id + " ]";
}

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;
}

public String getInfo() {
return info;
}

public void setInfo(String info) {
this.info = info;
}

public byte[] getPhoto() {
return photo;
}

public void setPhoto(byte[] photo) {
this.photo = photo;
}

public String getNomUtilisateur() {
return nomUtilisateur;
}

public void setNomUtilisateur(String nomUtilisateur) {
this.nomUtilisateur = nomUtilisateur;
}

public String getMotDePasse() {
return motDePasse;
}

public void setMotDePasse(String motDePasse) {
this.motDePasse = motDePasse;
}

public Calendar getDerninereConnection() {
return derninereConnection;
}

public void setDerninereConnection(Calendar derninereConnection) {
this.derninereConnection = derninereConnection;
}

public StatusUtilisateur getStatus() {
return status;
}

public void setStatus(StatusUtilisateur status) {
this.status = status;
}

@XmlTransient
public List<Article> getArticle() {
return article;
}

public void setArticle(List<Article> article) {
this.article = article;
}

@XmlTransient
public List<Commentaire> getListeCommentaires() {
return listeCommentaires;
}

public void setListeCommentaires(List<Commentaire> listeCommentaires) {
this.listeCommentaires = listeCommentaires;
}

public Roles getRole() {
return role;
}

public void setRole(Roles role) {
this.role = role;
}

}
@@ -0,0 +1,72 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2013 Oracle and/or its affiliates. All rights reserved.
*
* Oracle and Java are registered trademarks of Oracle and/or its affiliates.
* Other names may be trademarks of their respective owners.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common
* Development and Distribution License("CDDL") (collectively, the
* "License"). You may not use this file except in compliance with the
* License. You can obtain a copy of the License at
* http://www.netbeans.org/cddl-gplv2.html
* or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
* specific language governing permissions and limitations under the
* License. When distributing the software, include this License Header
* Notice in each file and include the License file at
* nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the GPL Version 2 section of the License file that
* accompanied this code. If applicable, add the following below the
* License Header, with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* Contributor(s):
*
* The Original Software is NetBeans. The Initial Developer of the Original
* Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
* Microsystems, Inc. All Rights Reserved.
*
* If you wish your version of this file to be governed by only the CDDL
* or only the GPL Version 2, indicate your decision by adding
* "[Contributor] elects to include this software in this distribution
* under the [CDDL or GPL Version 2] license." If you do not indicate a
* single choice of license, a recipient has the option to distribute
* your version of this file under either the CDDL, the GPL Version 2 or
* to extend the choice of license to its licensees as provided above.
* However, if you add GPL Version 2 code and therefore, elected the GPL
* Version 2 license, then the option applies only if the new code is
* made subject to such option by the copyright holder.
*/
package config;

import java.util.Set;
import javax.ws.rs.core.Application;

@javax.ws.rs.ApplicationPath("resources")
public class ApplicationConfig extends Application {
@Override
public Set<Class<?>> getClasses() {
Set<Class<?>> resources = new java.util.HashSet<Class<?>>();
addRestResourceClasses(resources);
return resources;
}

/**
* Do not modify addRestResourceClasses() method.
* It is automatically populated with
* all resources defined in the project.
* If required, comment out calling this method in getClasses().
*/
private void addRestResourceClasses(Set<Class<?>> resources) {
System.err.println("COUCOCUCOCUOCUCUOcUOCUCOUCOCUCOCUCOCUCOU");
resources.add(service.ArticleFacadeREST.class);
resources.add(service.CommentaireFacadeREST.class);
resources.add(service.RolesFacadeREST.class);
resources.add(service.UtilisateurFacadeREST.class);
resources.add(config.RequestFilter.class);
}
}
@@ -0,0 +1,26 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package config;

import java.io.IOException;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerResponseContext;
import javax.ws.rs.container.ContainerResponseFilter;

/**
*
* @author fork
*/
public class RequestFilter implements ContainerResponseFilter{

@Override
public void filter(ContainerRequestContext requestContext, ContainerResponseContext response) {
response.getHeaders().putSingle("Access-Control-Allow-Origin", "*");
response.getHeaders().putSingle("Access-Control-Allow-Methods", "OPTIONS, GET, POST, PUT, DELETE");
response.getHeaders().putSingle("Access-Control-Allow-Headers", "Content-Type");
}

}
@@ -0,0 +1,132 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package config;

import javax.ejb.Singleton;
import javax.ejb.Startup;
import Entities.Article;
import Entities.Commentaire;
import Entities.Roles;
import Entities.Status;
import Entities.StatusUtilisateur;
import Entities.Utilisateur;
import java.util.Calendar;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import service.ArticleFacadeREST;
import service.CommentaireFacadeREST;
import service.RolesFacadeREST;
import service.UtilisateurFacadeREST;

/**
*
* @author Drakoun
*/
@Singleton
@Startup
public class initDB {
@EJB
private UtilisateurFacadeREST facadeUtilisateur;
@EJB
private ArticleFacadeREST facadeArticle;
@EJB
private RolesFacadeREST facadeRoles;
@EJB
private CommentaireFacadeREST facadeCommentaire;

@PostConstruct
public void remplirBaseAvecDonneesDeTest() {
Roles admin = new Roles("Administrateur","L'administrateur a le rôle de gérer les comptes utilisateur ainsi que les publications");
Roles membre = new Roles("Membre","Les membres du blog peuvent créer et commenter des articles");
//Roles moderateur = new Roles("Modérateur","Les modérateurs du blog peuvent supprimer le message d'un commentaire"); ce serait cool de le faire, mais pas le temps
facadeRoles.create(admin);
facadeRoles.create(membre);
byte[] photo = null;
Utilisateur admin1 = new Utilisateur("David","Boccara","Développeur coté serveur",photo,"drakoun","drakoun",StatusUtilisateur.ACTIF,admin);
Utilisateur admin2 = new Utilisateur("Lorris","Spugna","Développeur coté client",photo,"fork","fork",StatusUtilisateur.ACTIF,admin);
Utilisateur membre1 = new Utilisateur("Jean-Michel","Crapaud","C'est lui il est dans la river",photo,"jm","jm",StatusUtilisateur.ACTIF,membre);
facadeUtilisateur.create(admin1);
facadeUtilisateur.create(admin2);
facadeUtilisateur.create(membre1);
String ar = "<div><p>La Faille de l’invocateur a vu s’enchaîner les matchs de la phase de groupe pendant trois semaines. Il est temps de "
+ "revenir sur leurs parcours respectifs et sur la suite de la compétition.</p><p>Depuis le 30 janvier, les six meilleures"
+ " équipes de France sont en course pour le titre de champion national. Huit journées ont permis à chacune d’entre elles "
+ "d’affronter l’ensemble de ses adversaires, dans le but d’engranger un maximum de victoires et de se positionner dans le haut du "
+ "classement final. Des parcours très différents selon les équipes, dont voici un résumé.</p><h2>Le parcours des équipes</h2><p><strong>"
+ "Millenium et Team-LDLC au dessus du lot</strong></p><p>Finalistes de l’édition 2016, les équipes "
+ "<a target=\"_blank\" href=\"http://eu.lolesports.com/fr/equipe/millenium\">Millenium</a>&nbsp;et"
+ " <a target=\"_blank\" href=\"http://eu.lolesports.com/fr/equipe/team-ldlc\">Team-LDLC</a> se sont"
+ " imposées assez logiquement dans cette phase de groupe, respectivement première et deuxième au classement."
+ " Mais à l’inverse du Challenge France 2016, où Team-LDLC avait remporté ses 5 matchs de poule, c’est cette fois-ci "
+ "Millenium qui termine sur le score de 5 à 0.</p><p>Leur match, joué en ouverture du <strong>Challenge France 2017</strong>,"
+ " a montré un niveau de jeu excellent et s’est terminé sur un score de 2 à 1 pour Millenium. Nul doute que ces 2 équipes vont"
+ " tout faire pour se retrouver à nouveau et nous offrir&nbsp;une finale d’anthologie.</p><p><strong>Un trio difficile à "
+ "départager</strong></p><p>Les nouveaux arrivants sous les couleurs de <strong>GamersOrigin</strong> sont entrés en trombe"
+ " dans la compétition, s’imposant face à Grosbill Esport et Oserv Esport. S’ils ont failli accrocher la Team-LDLC, ils s'inclineront"
+ "finalement sur <a target=\"_blank\" "
+ "href=\"http://eu.lolesports.com/fr/challenge-france/french_2017_winter/match/2017-02-06/team-ldlc-vs-gamers-origin\">le score "
+ "de 2 à 1</a>.</p><p>Côté <a target=\"_blank\" href=\"http://eu.lolesports.com/fr/equipe/oserv-esport\">Oserv Esport</a>, les outsiders "
+ "de la compétition, <a target=\"_blank\" "
+ "href=\"http://eu.lolesports.com/fr/challenge-france/french_2017_winter/match/2017-02-08/oserv-esport-vs-grosbill-esport\">une "
+ "victoire 2 à 0 face à Grosbill</a> a permis de remettre les joueurs en course. Le match contre E-Corp n’aura finalement pas lieu "
+ "suite à un problème technique d’un des joueurs, ce qui déclarera l’équipe de Brosak forfait.</p><p>Par conséquent, <a target=\"_blank\""
+ " href=\"http://eu.lolesports.com/fr/equipe/ecorp-gentle\">E-Corp Gentle</a>, qui a remporté ses matchs contre Grosbill et "
+ "GamersOrigin,&nbsp;terminera également la phase de groupe avec deux victoires&nbsp;et trois défaites.</p><p><strong>La déception "
+ "Grosbill Esport</strong></p><p>Troisième du Challenge France 2016, "
+ "les <a target=\"_blank\" href=\"http://eu.lolesports.com/fr/equipe/grosbill-esport\">Grosbill Esport</a> n'ont pas brillé "
+ "sur cette édition. En effet, ils n’auront pas su prendre l'avantage face à leurs adversaires et terminent la phase de groupe"
+ " avec 5 défaites,en dernière position.</p><p><strong>Les patchs 7.1 et 7.2</strong> ont provoqué nombreux changements sur la"
+ " scène compétitive et c’est peut-être l’une des explications de cette performance en dessous des attentes de la communauté. Le"
+ " sursaut lors de l'avant-dernière journée, où ils ont accroché "
+ "<a target=\"_blank\" href=\"http://eu.lolesports.com/fr/challenge-france/french_2017_winter/match/2017-02-13/grosbill-esport-vs-gamers-origin\">une manche aux GamersOrigin</a>, n’aura malheureusement"
+ " pas suffit.</p><h2>Départager les équipes : l'épreuve des Tie-Break</h2><p>Les équipes <strong>E-Corp Gentle</strong>, "
+ "<strong>Oserv Esport</strong> et <strong>GamersOrigin</strong> ont&nbsp;donc dû passer l’épreuve du Tie-Break (BO1) pour être "
+ "départagées. En une manche, chaque club s’est affronté et contre toute attente, l'équipe d'Eyrho s'est imposée face à ses deux adversaires."
+ " Oserv Esport a donc sécurisé la première place en demi-finale.</p><p>GamersOrigin et E-Corp Gentle ont donc joué un ultime match, et c'est "
+ "le groupe de Shemek qui s'est imposé. Les <strong>E-Corp Gentle</strong> terminent <strong>5e du Challenge France</strong>, tandis que GamersOrigin "
+ "rejoint Millenium, Team-LDLC et Oserv Esport en demi-finales.&nbsp;</p><img sizes=\"(max-width: 767px) 700px, (min-width: 768px) and (max-width: 1023px)"
+ " 940px, (min-width: 1024px) 940px\" alt=\"classement-fin-groupe-cflol17\" srcset=\"https://eu.lolesports.com/darkroom/200/199a5c6da066656b9f35e4cccfd5244a:cd3ef3186e135fdf180dfcadfbbd6010 200w, https://eu.lolesports.com/darkroom/245/199a5c6da066656b9f35e4cccfd5244a:e3f0be7b7478babf10f932cbfad145db 245w, https://eu.lolesports.com/darkroom/315/199a5c6da066656b9f35e4cccfd5244a:fee7ee9a113e675fefb4ccbd022ce338 315w, https://eu.lolesports.com/darkroom/430/199a5c6da066656b9f35e4cccfd5244a:b2bfbbbd0e47c5f197ae0025c8936145 430w, https://eu.lolesports.com/darkroom/640/199a5c6da066656b9f35e4cccfd5244a:5ad8676b53bdb60f8e074b2cc75f3964 640w, "
+ "https://eu.lolesports.com/darkroom/940/199a5c6da066656b9f35e4cccfd5244a:0af1baa9be3605ca43ba6b742c84771f 940w\"><h2>Les demi-finales "
+ "du Challenge France</h2><p>Les 4 équipes encore en lice vont s’affronter <strong>mardi 22 et mercredi 23 février</strong> dans un nouveau"
+ " format, puisque ce sont maintenant <strong>3 manches</strong> qu’il faudra remporter (BO5) pour obtenir son ticket vers la grande finale du "
+ "<strong>Challenge France 2017</strong>.</p><img sizes=\"(max-width: 767px) 700px, (min-width: 768px) and (max-width: 1023px) 940px, (min-width: 1024px) "
+ "940px\" alt=\"bracket-final-cflol17\" srcset=\"https://eu.lolesports.com/darkroom/200/29c1906935bffdf545cf0a6b1c92607d:aec1c088cf94cdb9327350b4c8dfe178 200w,"
+ " https://eu.lolesports.com/darkroom/245/29c1906935bffdf545cf0a6b1c92607d:388c2a1fb6f35595d67bc4d81771e104 245w, https://eu.lolesports.com/darkroom/315/29c1"
+ "906935bffdf545cf0a6b1c92607d:4bed27191fb61a3e338c0fac8c9810d7 315w, https://eu.lolesports.com/darkroom/430/29c190"
+ "6935bffdf545cf0a6b1c92607d:929153279f2ebc01d01dd23d8dec2699 430w, https://eu.lolesports.com/darkroom/640/29c19069"
+ "35bffdf545cf0a6b1c92607d:8fb55fa01cf26def7013d39e0897d7d2 640w, https://eu.lolesports.com/darkroom/940/29c1906935bf"
+ "fdf545cf0a6b1c92607d:d7b5f57ff8de4d5a5fdc557fbafdc55f 940w\"><h2>Rejoignez-nous pour la grande finale à Lyon</h2><p>L"
+ "a finale du Challenge France, qui couronnera la meilleure équipe League of Legends du pays, aura lieu à Lyon <a target="
+ "\"_blank\" href=\"http://eu.lolesports.com/fr/articles/finale-challengefrance-lyon\">en ouverture de la Lyon e-Sport #10"
+ "</a>. Si vous souhaitez participer au spectacle, réservez dès à présent votre billet sur la billetterie prévue à cet eff"
+ "et.</p><p>Sont prévus au programme&nbsp;<strong>de nombreux commentateurs et analystes</strong>, une&nbsp;<strong>grande "
+ "scène professionnelle et des écrans géants</strong>&nbsp;pour ne rien rater du match et bien d’autres&nbsp;<strong>animat"
+ "ions&nbsp;</strong>autour du jeu, pour que la soirée soit inoubliable ! On espère vous voir nombreux !</p><p>Source : <a t"
+ "arget=\"_blank\" href=\"http://eu.lolesports.com/fr/articles/bilan-phase-groupe-challenge-france-2017\">http://eu.lolesport"
+ "s.com/fr/articles/bilan-phase-groupe-challenge-france-2017</a></p></div>";

float lat = -1;
float longi = -1;
String posNom = null;
Article article = new Article("LES QUATRE DEMI-FINALISTES DE LA COUPE DE FRANCE", "#LoL #ChallengeFrance",
true, ar,photo,lat,longi,posNom,Status.PUBLIER,admin1);
String ar2 = "<div><p>Vous pouvez désormais utiliser l'outil d'entraînement sur le serveur euw !</p><p><iframe width=\"640\" height=\"360\" src=\"https://www.youtube.com/embed/iujphqj4O9o\" frameborder=\"0\" allowfullscreen></iframe></p><p>Source : <a target=\\\"_blank\\\" href=\\\"http://euw.leagueoflegends.com/fr\">http://euw.leagueoflegends.com/fr</a> <a target=\\\"_blank\\\" href=\\\"https://www.youtube.com/watch?v=iujphqj4O9o&feature=youtu.be\">https://www.youtube.com/watch?v=iujphqj4O9o&feature=youtu.be</a></p></div>";

Article article2 = new Article("L'outil d'entraînement est disponible !", "#LoL #entraînement #enfin", true,ar2,photo,lat,longi,posNom, Status.PUBLIER, admin2);
facadeArticle.create(article);
facadeArticle.create(article2);
Calendar c = Calendar.getInstance();
c.add(Calendar.DAY_OF_MONTH, -2);
Commentaire c1 = new Commentaire("C'est Millenium qui va gagner la coupe ! A Quand l'entrée en LCS EU ?", c, membre1, article);
c.add(Calendar.DAY_OF_MONTH, -2);
Commentaire c2 = new Commentaire("Trololol on peut enfin faire n'importe quoi sans devoir lancer une vraie partie", c, admin2, article2);
c.add(Calendar.DAY_OF_MONTH, -1);c.add(Calendar.HOUR_OF_DAY, -2);
Commentaire c3 = new Commentaire("LA DOMINGO !!!", c, admin1, article2);
facadeCommentaire.create(c1);
facadeCommentaire.create(c2);
facadeCommentaire.create(c3);
}
}
@@ -0,0 +1,63 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package service;

import java.util.List;
import javax.persistence.EntityManager;

/**
*
* @author Foxlight
*/
public abstract class AbstractFacade<T> {
private Class<T> entityClass;

public AbstractFacade(Class<T> entityClass) {
this.entityClass = entityClass;
}

protected abstract EntityManager getEntityManager();

public void create(T entity) {
getEntityManager().persist(entity);
}

public void edit(T entity) {
getEntityManager().merge(entity);
}

public void remove(T entity) {
getEntityManager().remove(getEntityManager().merge(entity));
}

public T find(Object id) {
return getEntityManager().find(entityClass, id);
}

public List<T> findAll() {
javax.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery();
cq.select(cq.from(entityClass));
return getEntityManager().createQuery(cq).getResultList();
}

public List<T> findRange(int[] range) {
javax.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery();
cq.select(cq.from(entityClass));
javax.persistence.Query q = getEntityManager().createQuery(cq);
q.setMaxResults(range[1] - range[0] + 1);
q.setFirstResult(range[0]);
return q.getResultList();
}

public int count() {
javax.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery();
javax.persistence.criteria.Root<T> rt = cq.from(entityClass);
cq.select(getEntityManager().getCriteriaBuilder().count(rt));
javax.persistence.Query q = getEntityManager().createQuery(cq);
return ((Long) q.getSingleResult()).intValue();
}

}
@@ -0,0 +1,89 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package service;

import Entities.Article;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;

/**
*
* @author Foxlight
*/
@Stateless
@Path("article")
public class ArticleFacadeREST extends AbstractFacade<Article> {
@PersistenceContext(unitName = "ProjetAmossePU")
private EntityManager em;

public ArticleFacadeREST() {
super(Article.class);
}

@POST
@Override
@Consumes({"application/xml", "application/json"})
public void create(Article entity) {
super.create(entity);
}

@PUT
@Path("{id}")
@Consumes({"application/xml", "application/json"})
public void edit(@PathParam("id") Long id, Article entity) {
super.edit(entity);
}

@DELETE
@Path("{id}")
public void remove(@PathParam("id") Long id) {
super.remove(super.find(id));
}

@GET
@Path("{id}")
@Produces({"application/xml", "application/json"})
public Article find(@PathParam("id") Long id) {
return super.find(id);
}

@GET
@Override
@Produces({"application/xml", "application/json"})
public List<Article> findAll() {
return super.findAll();
}

@GET
@Path("{from}/{to}")
@Produces({"application/xml", "application/json"})
public List<Article> findRange(@PathParam("from") Integer from, @PathParam("to") Integer to) {
return super.findRange(new int[]{from, to});
}

@GET
@Path("count")
@Produces("text/plain")
public String countREST() {
return String.valueOf(super.count());
}

@Override
protected EntityManager getEntityManager() {
return em;
}

}
@@ -0,0 +1,89 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package service;

import Entities.Commentaire;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;

/**
*
* @author Foxlight
*/
@Stateless
@Path("commentaire")
public class CommentaireFacadeREST extends AbstractFacade<Commentaire> {
@PersistenceContext(unitName = "ProjetAmossePU")
private EntityManager em;

public CommentaireFacadeREST() {
super(Commentaire.class);
}

@POST
@Override
@Consumes({"application/xml", "application/json"})
public void create(Commentaire entity) {
super.create(entity);
}

@PUT
@Path("{id}")
@Consumes({"application/xml", "application/json"})
public void edit(@PathParam("id") Long id, Commentaire entity) {
super.edit(entity);
}

@DELETE
@Path("{id}")
public void remove(@PathParam("id") Long id) {
super.remove(super.find(id));
}

@GET
@Path("{id}")
@Produces({"application/xml", "application/json"})
public Commentaire find(@PathParam("id") Long id) {
return super.find(id);
}

@GET
@Override
@Produces({"application/xml", "application/json"})
public List<Commentaire> findAll() {
return super.findAll();
}

@GET
@Path("{from}/{to}")
@Produces({"application/xml", "application/json"})
public List<Commentaire> findRange(@PathParam("from") Integer from, @PathParam("to") Integer to) {
return super.findRange(new int[]{from, to});
}

@GET
@Path("count")
@Produces("text/plain")
public String countREST() {
return String.valueOf(super.count());
}

@Override
protected EntityManager getEntityManager() {
return em;
}

}
@@ -0,0 +1,89 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package service;

import Entities.Roles;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;

/**
*
* @author Foxlight
*/
@Stateless
@Path("roles")
public class RolesFacadeREST extends AbstractFacade<Roles> {
@PersistenceContext(unitName = "ProjetAmossePU")
private EntityManager em;

public RolesFacadeREST() {
super(Roles.class);
}

@POST
@Override
@Consumes({"application/xml", "application/json"})
public void create(Roles entity) {
super.create(entity);
}

@PUT
@Path("{id}")
@Consumes({"application/xml", "application/json"})
public void edit(@PathParam("id") Long id, Roles entity) {
super.edit(entity);
}

@DELETE
@Path("{id}")
public void remove(@PathParam("id") Long id) {
super.remove(super.find(id));
}

@GET
@Path("{id}")
@Produces({"application/xml", "application/json"})
public Roles find(@PathParam("id") Long id) {
return super.find(id);
}

@GET
@Override
@Produces({"application/xml", "application/json"})
public List<Roles> findAll() {
return super.findAll();
}

@GET
@Path("{from}/{to}")
@Produces({"application/xml", "application/json"})
public List<Roles> findRange(@PathParam("from") Integer from, @PathParam("to") Integer to) {
return super.findRange(new int[]{from, to});
}

@GET
@Path("count")
@Produces("text/plain")
public String countREST() {
return String.valueOf(super.count());
}

@Override
protected EntityManager getEntityManager() {
return em;
}

}
@@ -0,0 +1,89 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package service;

import Entities.Utilisateur;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;

/**
*
* @author Foxlight
*/
@Stateless
@Path("utilisateur")
public class UtilisateurFacadeREST extends AbstractFacade<Utilisateur> {
@PersistenceContext(unitName = "ProjetAmossePU")
private EntityManager em;

public UtilisateurFacadeREST() {
super(Utilisateur.class);
}

@POST
@Override
@Consumes({"application/xml", "application/json"})
public void create(Utilisateur entity) {
super.create(entity);
}

@PUT
@Path("{id}")
@Consumes({"application/xml", "application/json"})
public void edit(@PathParam("id") Long id, Utilisateur entity) {
super.edit(entity);
}

@DELETE
@Path("{id}")
public void remove(@PathParam("id") Long id) {
super.remove(super.find(id));
}

@GET
@Path("{id}")
@Produces({"application/xml", "application/json"})
public Utilisateur find(@PathParam("id") Long id) {
return super.find(id);
}

@GET
@Override
@Produces({"application/xml", "application/json"})
public List<Utilisateur> findAll() {
return super.findAll();
}

@GET
@Path("{from}/{to}")
@Produces({"application/xml", "application/json"})
public List<Utilisateur> findRange(@PathParam("from") Integer from, @PathParam("to") Integer to) {
return super.findRange(new int[]{from, to});
}

@GET
@Path("count")
@Produces("text/plain")
public String countREST() {
return String.valueOf(super.count());
}

@Override
protected EntityManager getEntityManager() {
return em;
}

}
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
Oracle and Java are registered trademarks of Oracle and/or its affiliates.
Other names may be trademarks of their respective owners.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common
Development and Distribution License("CDDL") (collectively, the
"License"). You may not use this file except in compliance with the
License. You can obtain a copy of the License at
http://www.netbeans.org/cddl-gplv2.html
or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
specific language governing permissions and limitations under the
License. When distributing the software, include this License Header
Notice in each file and include the License file at
nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
particular file as subject to the "Classpath" exception as provided
by Oracle in the GPL Version 2 section of the License file that
accompanied this code. If applicable, add the following below the
License Header, with the fields enclosed by brackets [] replaced by
your own identifying information:
"Portions Copyrighted [year] [name of copyright owner]"
Contributor(s):
The Original Software is NetBeans. The Initial Developer of the Original
Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
Microsystems, Inc. All Rights Reserved.
If you wish your version of this file to be governed by only the CDDL
or only the GPL Version 2, indicate your decision by adding
"[Contributor] elects to include this software in this distribution
under the [CDDL or GPL Version 2] license." If you do not indicate a
single choice of license, a recipient has the option to distribute
your version of this file under either the CDDL, the GPL Version 2 or
to extend the choice of license to its licensees as provided above.
However, if you add GPL Version 2 code and therefore, elected the GPL
Version 2 license, then the option applies only if the new code is
made subject to such option by the copyright holder.
-->
<sun-web-app error-url="">
<context-root>/ProjetAmosse</context-root>
<class-loader delegate="true"/>
<jsp-config>
<property name="keepgenerated" value="true">
<description>Keep a copy of the generated servlet class' java code.</description>
</property>
</jsp-config>
</sun-web-app>
@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
Oracle and Java are registered trademarks of Oracle and/or its affiliates.
Other names may be trademarks of their respective owners.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common
Development and Distribution License("CDDL") (collectively, the
"License"). You may not use this file except in compliance with the
License. You can obtain a copy of the License at
http://www.netbeans.org/cddl-gplv2.html
or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
specific language governing permissions and limitations under the
License. When distributing the software, include this License Header
Notice in each file and include the License file at
nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
particular file as subject to the "Classpath" exception as provided
by Oracle in the GPL Version 2 section of the License file that
accompanied this code. If applicable, add the following below the
License Header, with the fields enclosed by brackets [] replaced by
your own identifying information:
"Portions Copyrighted [year] [name of copyright owner]"
Contributor(s):
The Original Software is NetBeans. The Initial Developer of the Original
Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
Microsystems, Inc. All Rights Reserved.
If you wish your version of this file to be governed by only the CDDL
or only the GPL Version 2, indicate your decision by adding
"[Contributor] elects to include this software in this distribution
under the [CDDL or GPL Version 2] license." If you do not indicate a
single choice of license, a recipient has the option to distribute
your version of this file under either the CDDL, the GPL Version 2 or
to extend the choice of license to its licensees as provided above.
However, if you add GPL Version 2 code and therefore, elected the GPL
Version 2 license, then the option applies only if the new code is
made subject to such option by the copyright holder.
-->
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>faces/index.xhtml</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
@@ -0,0 +1,57 @@
<%--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
Oracle and Java are registered trademarks of Oracle and/or its affiliates.
Other names may be trademarks of their respective owners.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common
Development and Distribution License("CDDL") (collectively, the
"License"). You may not use this file except in compliance with the
License. You can obtain a copy of the License at
http://www.netbeans.org/cddl-gplv2.html
or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
specific language governing permissions and limitations under the
License. When distributing the software, include this License Header
Notice in each file and include the License file at
nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
particular file as subject to the "Classpath" exception as provided
by Oracle in the GPL Version 2 section of the License file that
accompanied this code. If applicable, add the following below the
License Header, with the fields enclosed by brackets [] replaced by
your own identifying information:
"Portions Copyrighted [year] [name of copyright owner]"
Contributor(s):
The Original Software is NetBeans. The Initial Developer of the Original
Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
Microsystems, Inc. All Rights Reserved.
If you wish your version of this file to be governed by only the CDDL
or only the GPL Version 2, indicate your decision by adding
"[Contributor] elects to include this software in this distribution
under the [CDDL or GPL Version 2] license." If you do not indicate a
single choice of license, a recipient has the option to distribute
your version of this file under either the CDDL, the GPL Version 2 or
to extend the choice of license to its licensees as provided above.
However, if you add GPL Version 2 code and therefore, elected the GPL
Version 2 license, then the option applies only if the new code is
made subject to such option by the copyright holder.
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
BOUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
</body>
</html>