Compare commits
36 commits
3545112960
...
31a06d807e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31a06d807e | ||
|
|
8c3a3c66f7 | ||
|
|
c4e5f8c1cd | ||
|
|
51c81a61e3 | ||
| d916a66bed | |||
| ceef4a3427 | |||
| 08b8c01c67 | |||
| 7926d36bb6 | |||
| d16aa90ff6 | |||
| a4a8e4fddf | |||
| eca1850e47 | |||
| 2273a9f8e8 | |||
| 6f72142e16 | |||
| 4f47290542 | |||
| 7103a2b584 | |||
| f56866329d | |||
| 142a9e021c | |||
| 2724606830 | |||
| c31ecd984e | |||
|
|
61e74c0a13 | ||
| 1b03263509 | |||
| 2098a9972e | |||
| 85f6e0f465 | |||
| ed271e903e | |||
| 30f977636b | |||
| 4ec0611d3b | |||
| 6708097153 | |||
| 70072c694c | |||
|
|
5681fcfceb | ||
|
|
a6b25652b7 | ||
| 9fe8dd70d5 | |||
| 9ad9d34a91 | |||
| 032ab6520c | |||
|
|
c3d61ca196 | ||
|
|
e6b7722471 | ||
|
|
f0de008617 |
3
.idea/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
9
.idea/ChatApp-AL-NM.iml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
4
.idea/misc.xml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="13" project-jdk-type="JavaSDK" />
|
||||
</project>
|
||||
8
.idea/modules.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/ChatApp-AL-NM.iml" filepath="$PROJECT_DIR$/.idea/ChatApp-AL-NM.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
6
.idea/vcs.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
|
Before Width: | Height: | Size: 187 KiB |
|
Before Width: | Height: | Size: 196 KiB |
BIN
Conception/Class diagram/V1/MVC _ClassDiagram.png
Normal file
|
After Width: | Height: | Size: 182 KiB |
BIN
Conception/Class diagram/Version_Finale/Controller.png
Normal file
|
After Width: | Height: | Size: 168 KiB |
BIN
Conception/Class diagram/Version_Finale/Model.png
Normal file
|
After Width: | Height: | Size: 173 KiB |
BIN
Conception/Class diagram/Version_Finale/Protocol.png
Normal file
|
After Width: | Height: | Size: 230 KiB |
BIN
Conception/Class diagram/Version_Finale/View.png
Normal file
|
After Width: | Height: | Size: 249 KiB |
|
Before Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 83 KiB |
|
Before Width: | Height: | Size: 42 KiB |
BIN
Conception/Sequence diagram/Modification_Pseudonyme.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 57 KiB |
BIN
Conception/Sequence diagram/Réduction_agent.png
Normal file
|
After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 149 KiB |
BIN
Conception/Sequence diagram/clavardage.png
Normal file
|
After Width: | Height: | Size: 145 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
Before Width: | Height: | Size: 199 KiB |
BIN
Conception/State Machine Diagram/Main.png
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
Conception/State Machine Diagram/Pseudo.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
Conception/State Machine Diagram/Reduction_agent.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
|
|
@ -1,6 +1,10 @@
|
|||
<component name="ArtifactManager">
|
||||
<artifact type="jar" name="chatapp">
|
||||
<output-path>$PROJECT_DIR$/out/artifacts/chatapp</output-path>
|
||||
<root id="archive" name="chatapp.jar" />
|
||||
<root id="archive" name="chatapp.jar">
|
||||
<element id="directory" name="META-INF">
|
||||
<element id="file-copy" path="$PROJECT_DIR$/src/main/resources/META-INF/MANIFEST.MF" />
|
||||
</element>
|
||||
</root>
|
||||
</artifact>
|
||||
</component>
|
||||
29
Implementation/chatapp/.idea/artifacts/chatapp_jar.xml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<component name="ArtifactManager">
|
||||
<artifact type="jar" name="chatapp:jar">
|
||||
<output-path>$PROJECT_DIR$/out/artifacts/chatapp_jar</output-path>
|
||||
<root id="archive" name="chatapp.jar">
|
||||
<element id="directory" name="META-INF">
|
||||
<element id="file-copy" path="$PROJECT_DIR$/src/resources/META-INF/MANIFEST.MF" />
|
||||
</element>
|
||||
<element id="library" level="project" name="Gradle: com.google.protobuf:protobuf-java:3.11.4" />
|
||||
<element id="library" level="project" name="Gradle: mysql:mysql-connector-java:8.0.22" />
|
||||
<element id="library" level="project" name="Gradle: org.apiguardian:apiguardian-api:1.1.0" />
|
||||
<element id="library" level="project" name="Gradle: org.junit.jupiter:junit-jupiter-api:5.6.0" />
|
||||
<element id="library" level="project" name="Gradle: org.junit.jupiter:junit-jupiter-engine:5.6.0" />
|
||||
<element id="library" level="project" name="Gradle: org.junit.platform:junit-platform-commons:1.6.0" />
|
||||
<element id="library" level="project" name="Gradle: org.junit.platform:junit-platform-engine:1.6.0" />
|
||||
<element id="library" level="project" name="Gradle: org.openjfx:javafx-base:11.0.2" />
|
||||
<element id="library" level="project" name="Gradle: org.openjfx:javafx-base:win:11.0.2" />
|
||||
<element id="library" level="project" name="Gradle: org.openjfx:javafx-controls:11.0.2" />
|
||||
<element id="library" level="project" name="Gradle: org.openjfx:javafx-controls:win:11.0.2" />
|
||||
<element id="library" level="project" name="Gradle: org.openjfx:javafx-fxml:win:11.0.2" />
|
||||
<element id="library" level="project" name="Gradle: org.openjfx:javafx-graphics:11.0.2" />
|
||||
<element id="library" level="project" name="Gradle: org.openjfx:javafx-graphics:linux:11.0.2" />
|
||||
<element id="library" level="project" name="Gradle: org.openjfx:javafx-graphics:mac:11.0.2" />
|
||||
<element id="library" level="project" name="Gradle: org.openjfx:javafx-graphics:win:11.0.2" />
|
||||
<element id="library" level="project" name="Gradle: org.opentest4j:opentest4j:1.2.0" />
|
||||
<element id="library" level="project" name="lib" />
|
||||
<element id="library" level="project" name="mysql-connector-java-8.0.22" />
|
||||
</root>
|
||||
</artifact>
|
||||
</component>
|
||||
20
Implementation/chatapp/.idea/artifacts/chatapp_main_jar.xml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<component name="ArtifactManager">
|
||||
<artifact type="jar" name="chatapp.main:jar">
|
||||
<output-path>$PROJECT_DIR$/out/artifacts/chatapp_main_jar</output-path>
|
||||
<root id="archive" name="chatapp.main.jar">
|
||||
<element id="module-output" name="chatapp.main" />
|
||||
<element id="extracted-dir" path="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-controls/11.0.2/6c763707769c18adce406904c771c2ad1fcc370b/javafx-controls-11.0.2-win.jar" path-in-jar="/" />
|
||||
<element id="extracted-dir" path="$USER_HOME$/.gradle/caches/modules-2/files-2.1/mysql/mysql-connector-java/8.0.22/ec8bfce16c8bd18d6cb598b1147aa145be1408f/mysql-connector-java-8.0.22.jar" path-in-jar="/" />
|
||||
<element id="extracted-dir" path="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-graphics/11.0.2/ef4c34f0ca77cd99100b76c2ccf1dce383572bb1/javafx-graphics-11.0.2-linux.jar" path-in-jar="/" />
|
||||
<element id="extracted-dir" path="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-graphics/11.0.2/e522eb4ea422eceeee207b1c266ba3db19b2343a/javafx-graphics-11.0.2.jar" path-in-jar="/" />
|
||||
<element id="extracted-dir" path="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.protobuf/protobuf-java/3.11.4/7ec0925cc3aef0335bbc7d57edfd42b0f86f8267/protobuf-java-3.11.4.jar" path-in-jar="/" />
|
||||
<element id="extracted-dir" path="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-controls/11.0.2/4ab633cf1eea60f76e2ae9905aedac862da88b08/javafx-controls-11.0.2.jar" path-in-jar="/" />
|
||||
<element id="extracted-dir" path="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-base/11.0.2/1852e57b8cf9a9b6488c33605bccd5d06ff210e1/javafx-base-11.0.2-win.jar" path-in-jar="/" />
|
||||
<element id="extracted-dir" path="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-graphics/11.0.2/c1d99ae5bc48e7173f4514a941d27d8f8c972c71/javafx-graphics-11.0.2-mac.jar" path-in-jar="/" />
|
||||
<element id="extracted-dir" path="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-fxml/11.0.2/b3242e4c031558574de2a1da685bb5fcdbb8a530/javafx-fxml-11.0.2-win.jar" path-in-jar="/" />
|
||||
<element id="extracted-dir" path="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-base/11.0.2/7fb2e4a8528ec9e434a9ac9ee98b39af79e6dcb8/javafx-base-11.0.2.jar" path-in-jar="/" />
|
||||
<element id="extracted-dir" path="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-graphics/11.0.2/20459ea2cf714942bcbeb78a7f70ba3531dc1a44/javafx-graphics-11.0.2-win.jar" path-in-jar="/" />
|
||||
<element id="artifact" artifact-name="chatapp" />
|
||||
</root>
|
||||
</artifact>
|
||||
</component>
|
||||
|
|
@ -1,10 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="FrameworkDetectionExcludesConfiguration">
|
||||
<file type="web" url="file://$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="JavadocGenerationManager">
|
||||
<option name="OUTPUT_DIRECTORY" value="$PROJECT_DIR$/../../Javadoc" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="false" project-jdk-name="13" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="13" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'application'
|
||||
id 'com.github.johnrengelman.shadow' version '6.1.0'
|
||||
id 'org.openjfx.javafxplugin' version '0.0.9'
|
||||
id 'org.beryx.jlink' version '2.15.1'
|
||||
}
|
||||
|
|
@ -21,6 +22,7 @@ javafx {
|
|||
|
||||
|
||||
dependencies {
|
||||
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
|
||||
compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.22'
|
||||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
|
||||
|
|
@ -41,4 +43,14 @@ jlink {
|
|||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes "Main-Class": "chatapp.Launcher"
|
||||
}
|
||||
|
||||
from {
|
||||
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.RadioButton?>
|
||||
<?import javafx.scene.control.TextField?>
|
||||
<?import javafx.scene.control.ToggleGroup?>
|
||||
<?import javafx.scene.layout.AnchorPane?>
|
||||
<?import javafx.scene.layout.ColumnConstraints?>
|
||||
<?import javafx.scene.layout.GridPane?>
|
||||
|
|
@ -24,24 +26,34 @@
|
|||
</Text>
|
||||
</children>
|
||||
</HBox>
|
||||
<HBox alignment="CENTER" prefHeight="304.0" prefWidth="600.0" style="-fx-background-color: #3299a8;">
|
||||
<HBox alignment="CENTER" prefHeight="304.0" prefWidth="598.0" style="-fx-background-color: #3299a8;">
|
||||
<children>
|
||||
<GridPane alignment="CENTER" prefHeight="302.0" prefWidth="279.0">
|
||||
<GridPane alignment="CENTER" prefHeight="275.0" prefWidth="448.0">
|
||||
<columnConstraints>
|
||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
||||
</columnConstraints>
|
||||
<rowConstraints>
|
||||
<RowConstraints maxHeight="254.19998168945312" minHeight="10.0" prefHeight="123.19998779296876" vgrow="SOMETIMES" />
|
||||
<RowConstraints maxHeight="217.80000152587894" minHeight="10.0" prefHeight="107.20001220703125" vgrow="SOMETIMES" />
|
||||
<RowConstraints maxHeight="254.19998168945312" minHeight="10.0" prefHeight="111.80001831054688" vgrow="SOMETIMES" />
|
||||
<RowConstraints maxHeight="217.80000152587894" minHeight="10.0" prefHeight="69.39998168945314" vgrow="SOMETIMES" />
|
||||
<RowConstraints maxHeight="217.80000152587894" minHeight="10.0" prefHeight="33.60002441406249" vgrow="SOMETIMES" />
|
||||
<RowConstraints maxHeight="217.80000152587894" minHeight="10.0" prefHeight="27.400000000000034" vgrow="SOMETIMES" />
|
||||
<RowConstraints maxHeight="217.80000152587894" minHeight="10.0" prefHeight="79.39999999999998" vgrow="SOMETIMES" />
|
||||
</rowConstraints>
|
||||
<children>
|
||||
<TextField fx:id="pseudonyme" prefHeight="26.0" prefWidth="447.0" promptText="Pseudonyme" GridPane.columnSpan="2" />
|
||||
<Button fx:id="connexionButton" alignment="CENTER" contentDisplay="CENTER" mnemonicParsing="false" onAction="#connexion" prefHeight="38.0" prefWidth="287.0" style="-fx-background-color: #b0c926;" text="Connexion" textFill="#3299a8" GridPane.columnSpan="2" GridPane.rowIndex="1">
|
||||
<TextField fx:id="pseudonyme" prefHeight="26.0" prefWidth="447.0" promptText="Pseudonyme" GridPane.columnSpan="3" />
|
||||
<Button fx:id="connexionButton" alignment="CENTER" contentDisplay="CENTER" mnemonicParsing="false" onAction="#connexion" prefHeight="38.0" prefWidth="453.0" style="-fx-background-color: #b0c926;" text="Connexion" textFill="#3299a8" GridPane.columnSpan="3" GridPane.rowIndex="1">
|
||||
<font>
|
||||
<Font name="OCR A Extended" size="27.0" />
|
||||
</font>
|
||||
</Button>
|
||||
<RadioButton fx:id="remoteButton" mnemonicParsing="false" selected="true" text="Connexion distante" GridPane.columnIndex="1" GridPane.rowIndex="3">
|
||||
<toggleGroup>
|
||||
<ToggleGroup fx:id="lieu" />
|
||||
</toggleGroup>
|
||||
</RadioButton>
|
||||
<RadioButton fx:id="localButton" mnemonicParsing="false" text="Connexion locale" toggleGroup="$lieu" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
||||
</children>
|
||||
</GridPane>
|
||||
</children>
|
||||
|
|
|
|||
|
|
@ -1,24 +1,23 @@
|
|||
chatapp/Launcher.java
|
||||
chatapp.Launcher
|
||||
chatapp/View/Clavardage.java
|
||||
chatapp.View.Clavardage
|
||||
chatapp.View.Clavardage$1
|
||||
chatapp/View/DemarrerSession.java
|
||||
chatapp.View.DemarrerSession
|
||||
chatapp/Protocol/RunnerEcouteUDP.java
|
||||
chatapp.Protocol.RunnerEcouteUDP
|
||||
chatapp/Model/Utilisateur.java
|
||||
chatapp.Model.Utilisateur
|
||||
chatapp/View/View_Utilisateurs.java
|
||||
chatapp.View.View_Utilisateurs
|
||||
chatapp/View/ChangementPseudo.java
|
||||
chatapp.View.ChangementPseudo
|
||||
chatapp/Model/MessageHorodate.java
|
||||
chatapp.Model.MessageHorodate
|
||||
chatapp/Model/ListUtilisateurs.java
|
||||
chatapp.Model.ListUtilisateurs
|
||||
chatapp/View/DemarrerSession.java
|
||||
chatapp.View.DemarrerSession
|
||||
chatapp/View/FenetreSession.java
|
||||
chatapp.View.FenetreSession
|
||||
chatapp/View/View_Menu.java
|
||||
chatapp.View.View_Menu
|
||||
chatapp/View/ConnexionScreen.java
|
||||
chatapp.View.ConnexionScreen
|
||||
chatapp/View/ChangementPseudo.java
|
||||
chatapp.View.ChangementPseudo
|
||||
chatapp/View/View_Utilisateurs.java
|
||||
chatapp.View.View_Utilisateurs
|
||||
chatapp/Protocol/RunnerEcouteTCP.java
|
||||
chatapp.Protocol.RunnerEcouteTCP
|
||||
chatapp/Protocol/UDPEchange.java
|
||||
|
|
@ -28,12 +27,14 @@ chatapp/Controller/ChatApp.java
|
|||
chatapp.Controller.ChatApp
|
||||
chatapp/Main.java
|
||||
chatapp.Main
|
||||
chatapp/View/Clavardage.java
|
||||
chatapp.View.Clavardage
|
||||
chatapp.View.Clavardage$1
|
||||
chatapp/Model/DataBase.java
|
||||
chatapp.Model.DataBase
|
||||
chatapp/Protocol/SessionClavardage.java
|
||||
chatapp.Protocol.SessionClavardage
|
||||
chatapp/View/FenetreSession.java
|
||||
chatapp.View.FenetreSession
|
||||
chatapp.View.FenetreSession$1
|
||||
chatapp/View/ConnexionScreen.java
|
||||
chatapp.View.ConnexionScreen
|
||||
chatapp/Protocol/RunnerEcouteUDP.java
|
||||
chatapp.Protocol.RunnerEcouteUDP
|
||||
chatapp/Protocol/HttpEchange.java
|
||||
chatapp.Protocol.HttpEchange
|
||||
|
|
|
|||
|
|
@ -3,74 +3,119 @@ package chatapp.Controller;
|
|||
import chatapp.Model.DataBase;
|
||||
import chatapp.Model.ListUtilisateurs;
|
||||
import chatapp.Model.Utilisateur;
|
||||
import chatapp.Protocol.RunnerEcouteTCP;
|
||||
import chatapp.Protocol.RunnerEcouteUDP;
|
||||
import chatapp.Protocol.SessionClavardage;
|
||||
import chatapp.Protocol.UDPEchange;
|
||||
import chatapp.Protocol.*;
|
||||
import javafx.application.Application;
|
||||
import javafx.application.Platform;
|
||||
import org.json.simple.JSONObject;
|
||||
import org.json.simple.parser.JSONParser;
|
||||
import org.json.simple.parser.ParseException;
|
||||
|
||||
import java.beans.PropertyChangeEvent;
|
||||
import java.beans.PropertyChangeListener;
|
||||
import java.io.FileReader;
|
||||
import java.io.IOException;
|
||||
import java.net.InetAddress;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* <p> Controller de l'application. C'est par cette méthode que chaque connexion et chaque session sont entamees
|
||||
* Les differents attributs sont:
|
||||
* actifsUsers: qui est la liste des utilisateurs actifs actuellement et connus par l'application
|
||||
* me: qui est l'instance de la classe Utilisateur représentant l'utilisateur se connectant via cette instance de chatapp
|
||||
* main: l'application de l'interface graphique qui s'occupe d'instancier chatapp
|
||||
* runnerEcouteTCP: instance de runnerEcouteTCP, Thread permettant de recevoir des demandes de clavardage
|
||||
* runnerEcouteUDP: instance de runnerEcouteUDP; Thread permettant de communiquer en UDP pour recevoir les demandes de connexion, deconnexion, changements de pseudo et leurs réponses associées
|
||||
* connecte: booleen indiquant si l'on est connecte sur le reseau ou non
|
||||
* db: instance permettant de se connecter à la base de donnees centralisee
|
||||
* </p>
|
||||
* <p> Controller de l'application. C'est par cette méthode que chaque connexion et chaque session sont entamées.
|
||||
* <br>Les différents attributs sont:
|
||||
* <br> - actifsUsers: qui est la liste des utilisateurs actifs actuellement et connus par l'application
|
||||
* <br> - me: qui est l'instance de la classe Utilisateur représentant l'utilisateur se connectant via cette instance de chatapp
|
||||
* <br> - main: l'application de l'interface graphique qui s'occupe d'instancier chatapp
|
||||
* <br> - runnerEcouteTCP: instance de runnerEcouteTCP, Thread permettant de recevoir des demandes de clavardage
|
||||
* <br> - runnerEcouteUDP: instance de runnerEcouteUDP; Thread permettant de communiquer en UDP pour recevoir les demandes de connexion, deconnexion, changements de pseudo et leurs réponses associées
|
||||
* <br> - connecte: booleen indiquant si l'on est connecté sur le reseau ou non
|
||||
* <br> - db: instance permettant de se connecter à la base de donnees centralisée
|
||||
* </p>
|
||||
*/
|
||||
public class ChatApp implements PropertyChangeListener {
|
||||
|
||||
/* Liste des utilisateurs actifs */
|
||||
private ListUtilisateurs actifUsers ;
|
||||
|
||||
/* TRUE si l'utilisateur est externe au reseau FALSE s'il est interne */
|
||||
private boolean isExterne;
|
||||
|
||||
private HttpEchange externeEchange;
|
||||
|
||||
/* ChatApp est associe a un utilisateur */
|
||||
private Utilisateur me;
|
||||
|
||||
/* ChatApp est associe a une application qui le lance et que chatapp doit fermer a la fin */
|
||||
private Application main;
|
||||
|
||||
/* Instance de ChatApp */
|
||||
private static ChatApp chatapp = null;
|
||||
|
||||
/* Gérer les multiples connexions en TCP. */
|
||||
private RunnerEcouteTCP runnerEcouteTCP;
|
||||
|
||||
/* Gérer les multiples connexions en UDP. */
|
||||
private RunnerEcouteUDP runnerEcouteUDP;
|
||||
|
||||
/* TRUE si l'utilisateur est connecte au reseau FALSE sinon */
|
||||
private boolean connecte;
|
||||
|
||||
/* Acces a la base de donnée */
|
||||
private DataBase db;
|
||||
|
||||
/* Variable stockant les communications grâce aux IDs des utilisateurs */
|
||||
public ArrayList<String> listeCommunication = new ArrayList<>();
|
||||
|
||||
/* Variable stockant le backslash nécessaire pour creer l'adresse du fichier json */
|
||||
public static String FILE_SEPARATOR = System.getProperty("file.separator");
|
||||
|
||||
|
||||
|
||||
private JSONObject configJSON;
|
||||
|
||||
/**
|
||||
* <p> Getter : Connecte
|
||||
* <br> Permet de savoir si l'on est connecté</p>
|
||||
* @return TRUE si connecté FALSE sinon
|
||||
*/
|
||||
public boolean isConnecte() {
|
||||
return connecte;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Constructeur de l'application de chat</p>
|
||||
*
|
||||
* @param pseudo Pseudo de l'utilisateur
|
||||
* @param port Port de communication
|
||||
* @param main L'Application main
|
||||
*/
|
||||
public ChatApp(String pseudo, Integer port, Application main){
|
||||
this.actifUsers = new ListUtilisateurs() ;
|
||||
// Recuperer adresse IP de l'utilisateur
|
||||
InetAddress ip = UDPEchange.getCurrentIp();
|
||||
InetAddress ip = UDPEchange.getCurrentIp(); // Recuperer adresse IP de l'utilisateur
|
||||
this.me = new Utilisateur(pseudo,port,ip);
|
||||
this.actifUsers.addList(getMe());
|
||||
|
||||
this.main = main;
|
||||
this.db= DataBase.getInstance();
|
||||
|
||||
this.connecte=false;
|
||||
|
||||
String path = System.getProperty("user.dir")+ FILE_SEPARATOR + "config.json";
|
||||
System.out.println("Path is : "+path);
|
||||
JSONParser jsonP = new JSONParser();
|
||||
try {
|
||||
this.configJSON = (JSONObject) jsonP.parse(new FileReader(path));
|
||||
} catch (IOException e) {
|
||||
System.out.println("Fichier JSON non trouvable");
|
||||
e.printStackTrace();
|
||||
} catch (ParseException e) {
|
||||
System.out.println("Fichier JSON mal formé");
|
||||
e.printStackTrace();
|
||||
}
|
||||
this.externeEchange = new HttpEchange(this);
|
||||
this.db= DataBase.getInstance(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Methode permettant de créer qu'une seule instance de chatapp</p>
|
||||
* @param pseudo le pseudonyme que l'on souhaite donner à l'utilisateur
|
||||
* @param port le port auquel on souhaite receptionner les requêtees UDP
|
||||
* @param main le stage de l'interface graphique qui crée l'instance
|
||||
* @return une instance de chatapp
|
||||
* @param pseudo Le pseudonyme que l'on souhaite donner à l'utilisateur
|
||||
* @param port Le port auquel on souhaite réceptionner les requêtees UDP
|
||||
* @param main Le stage de l'interface graphique qui crée l'instance
|
||||
* @return Une instance de chatapp
|
||||
*/
|
||||
public static synchronized ChatApp getInstance(String pseudo, Integer port, Application main){
|
||||
if (chatapp == null) {
|
||||
|
|
@ -80,33 +125,66 @@ public class ChatApp implements PropertyChangeListener {
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return recupere l'instance de chatapp qui a ete creee au prealable
|
||||
* <p> Methode permettant de récupérer l'instance de chatapp qui a ete créée au préalable</p>
|
||||
* @return L'instance de chatapp
|
||||
*/
|
||||
public static ChatApp getInstance(){
|
||||
return chatapp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*public void majHistorique2(MessageHorodate mh, String pseudo) {
|
||||
Historique h = getMapHistorique().get(pseudo);
|
||||
//h.addMessage(mh);
|
||||
getMapHistorique().put(h.getUser2().getPseudo(),h);
|
||||
}*/
|
||||
|
||||
/**
|
||||
* <p>Methode appelée pour modifier le pseudo et fait appel a la fonction adequate selon que l'on est en interne ou en externe</p>
|
||||
* @param nouveau Nouveau pseudo avec lequel on souhaite se renommer
|
||||
* @return TRUE si la modification du pseudo a réussi, FALSE sinon
|
||||
* @throws IOException
|
||||
*/
|
||||
public boolean modifierPseudo(String nouveau) throws IOException{
|
||||
if(this.isExterne()){
|
||||
return this.modifierPseudoExterne(nouveau);
|
||||
}
|
||||
else{
|
||||
return modifierPseudoInterne(nouveau);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Modification du pseudo de l'utilisateur
|
||||
* Envoie en broadcast ses informations utilisateurs et son nouveau pseudo</p>
|
||||
*
|
||||
* @param nouveau correspond au nouveau pseudo
|
||||
* @return False si modiferPseudo a echoue, True sinon
|
||||
* <p>Modification du pseudo de l'utilisateur en EXTERNE.
|
||||
* <br>Envoie ses informations utilisateurs et son nouveau pseudo au serveur de présence.</p>
|
||||
* @param nouveau Le nouveau pseudo
|
||||
* @return False si modiferPseudo a échoué, True sinon
|
||||
*/
|
||||
public Boolean modifierPseudo(String nouveau) throws IOException {
|
||||
// Message que l'on envoie à tous les utilisateurs actifs
|
||||
private boolean modifierPseudoExterne(String nouveau) {
|
||||
boolean reussi = false;
|
||||
try {
|
||||
if(externeEchange.sendPost("Pseudo " + nouveau)){
|
||||
reussi = true ;
|
||||
this.getMe().setPseudo(nouveau);
|
||||
db.majPseudo(this.me.getId(),nouveau);
|
||||
System.out.println("Changement pseudo accepte, nouvelle liste des utilisateurs actifs:");
|
||||
this.getActifUsers().afficherListeUtilisateurs();
|
||||
}
|
||||
else{
|
||||
System.out.println("Echec changement de pseudo");
|
||||
}
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return reussi;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Modification du pseudo de l'utilisateur en INTERNE
|
||||
* <br> Envoie en broadcast ses informations utilisateurs et son nouveau pseudo</p>
|
||||
* @param nouveau Le Nouveau pseudo
|
||||
* @return False si modiferPseudo a échoué, True sinon
|
||||
*/
|
||||
public Boolean modifierPseudoInterne(String nouveau) throws IOException {
|
||||
// Message que l'on envoie à tous les utilisateurs actifs
|
||||
String broadcastMessage = "Demande Modification Pseudo\n" + this.getMe().toString() + "\n" + nouveau + "\n";
|
||||
UDPEchange.EnvoiBroadcast(broadcastMessage);
|
||||
UDPEchange.envoiBroadcast(broadcastMessage);
|
||||
try {
|
||||
Thread.sleep(2000);
|
||||
/* L'utilisateur doit attendre la reponse de tous les utilisateurs connectes
|
||||
|
|
@ -116,10 +194,10 @@ public class ChatApp implements PropertyChangeListener {
|
|||
e.printStackTrace();
|
||||
}
|
||||
if (UDPEchange.getPseudoValide()) {
|
||||
System.out.println("Modification pseudo reussie");
|
||||
System.out.println("Modification pseudo reussi");
|
||||
//Envoi un msg en broadcast a tout les utilisateurs pour les prevenir de son nouveau pseudo//
|
||||
broadcastMessage = "Modification pseudo reussie\n" + this.getMe().toString() + "\n" + nouveau + "\n";
|
||||
UDPEchange.EnvoiBroadcast(broadcastMessage);
|
||||
broadcastMessage = "Modification pseudo reussi\n" + this.getMe().toString() + "\n" + nouveau + "\n";
|
||||
UDPEchange.envoiBroadcast(broadcastMessage);
|
||||
//-------Change son propre nom d'utilisateur-------//
|
||||
this.getActifUsers().modifierList(this.getMe().getPseudo(), nouveau);
|
||||
this.getMe().setPseudo(nouveau);
|
||||
|
|
@ -131,49 +209,66 @@ public class ChatApp implements PropertyChangeListener {
|
|||
else
|
||||
{
|
||||
System.out.println("Echec Modification pseudo");
|
||||
UDPEchange.setPseudoValide(true);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Méthode permettant d'appeler la fonction de connexion adequate selon que l'on est en externe ou en interne</p>
|
||||
* @param pseudo Le pseudo avec lequel l'on souhaite se connecter
|
||||
* @return True si la connexion a ete autorisée, false sinon
|
||||
* @throws IOException
|
||||
*/
|
||||
public boolean connexion(String pseudo) throws IOException{
|
||||
if(this.isExterne()){
|
||||
try {
|
||||
System.out.println("Demande de connexion distante");
|
||||
return this.connexionExterne(pseudo);
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
else{
|
||||
return connexionInterne(pseudo);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Méthode appelée lors de la connexion de l'utilisateur en EXTERNE.
|
||||
* <br> Va prévenir le serveur de présence de l'arrivée de l'utilisateur </p>
|
||||
* @param pseudo Le pseudonyme avec lequel l'utilisateur souhaite se connecter
|
||||
* @return False si Connexion a échoué, True sinon
|
||||
* @throws IOException
|
||||
*/
|
||||
private boolean connexionExterne(String pseudo) throws IOException, InterruptedException{
|
||||
this.me.setPseudo(pseudo);
|
||||
if(externeEchange.sendPost("Connexion")){
|
||||
this.connecte=true;
|
||||
this.db.ajoutUtilisateurs(this.me.getId(),pseudo);
|
||||
this.db.majUtilisateursActifs(true,this.me.getId());
|
||||
return true;
|
||||
}
|
||||
else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* <p>Methode appelee lors de la connexion d'un nouvel utilisateur.
|
||||
* Il va prevenir les utilisateurs du reseau de son arrivee.</p>
|
||||
* @return False si Connexion a echoue, True sinon
|
||||
*/
|
||||
public Boolean connexion() throws IOException {
|
||||
// Message que l'on envoie à tous les utilisateurs actifs
|
||||
String broadcastMessage = "Connexion\n" + this.getMe().toString() ;
|
||||
UDPEchange.EnvoiBroadcast(broadcastMessage);
|
||||
try {
|
||||
Thread.sleep(2000); // L'utilisateur doit attendre la reponse de tous les utilisateurs connectes
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
if (UDPEchange.getConnecte()) {
|
||||
System.out.println("Connexion reussie");
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
System.out.println("Connexion echoue");
|
||||
UDPEchange.setConnecte(true);
|
||||
return false ;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Methode appelee lors de la connexion de l'utilisateur, va prevenir les autres
|
||||
* utlisateurs du reseau de l'arrivee de l'utilisateur sur celui-ci</p>
|
||||
* @param pseudo le pseudonyme avec lequel l'utilisateur souhaite se connecter
|
||||
* @return False si Connexion a echoue, True sinon
|
||||
* <p>Méthode appelée lors de la connexion de l'utilisateur en INTERNE,
|
||||
* <br> Va prevenir les autres utlisateurs du réseau de l'arrivée de l'utilisateur sur celui-ci</p>
|
||||
* @param pseudo Le pseudonyme avec lequel l'utilisateur souhaite se connecter
|
||||
* @return False si Connexion a échoué, True sinon
|
||||
* @throws IOException
|
||||
*/
|
||||
public Boolean connexion(String pseudo) throws IOException {
|
||||
// Message que l'on envoie à tous les utilisateurs actifs
|
||||
public Boolean connexionInterne(String pseudo) throws IOException {
|
||||
// Message que l'on envoie à tous les utilisateurs actifs
|
||||
this.me.setPseudo(pseudo);
|
||||
String broadcastMessage = "Connexion\n" + this.getMe().toString() ;
|
||||
UDPEchange.EnvoiBroadcast(broadcastMessage);
|
||||
UDPEchange.envoiBroadcast(broadcastMessage);
|
||||
try {
|
||||
Thread.sleep(2000); // L'utilisateur doit attendre la reponse de tous les utilisateurs connectes
|
||||
} catch (InterruptedException e) {
|
||||
|
|
@ -195,8 +290,8 @@ public class ChatApp implements PropertyChangeListener {
|
|||
}
|
||||
|
||||
/**
|
||||
* <p>Lance un thread pour ecouter les requetes TCP
|
||||
* Informe le pcs que chatapp ecoute les notifications qu'il envoie</p>
|
||||
* <p>Lance un thread pour écouter les requêtes TCP
|
||||
* <br> Informe le pcs que chatapp écoute les notifications qu'il envoie</p>
|
||||
*/
|
||||
public void activerEcouteTCP(){
|
||||
this.runnerEcouteTCP = new RunnerEcouteTCP(this);
|
||||
|
|
@ -204,8 +299,8 @@ public class ChatApp implements PropertyChangeListener {
|
|||
}
|
||||
|
||||
/**
|
||||
* <p>Demarre une session de clavardage avec l'utilisateur dont le pseudo est entre en parametre</p>
|
||||
* @param pseudo le pseudo de l'utilisateur avec lequel on souhaite communiquer
|
||||
* <p>Démarre une session de clavardage avec l'utilisateur dont le pseudo est entré en parametre</p>
|
||||
* @param pseudo Le pseudo de l'utilisateur avec lequel on souhaite communiquer
|
||||
*/
|
||||
public void demarrerSession(String pseudo){
|
||||
Utilisateur u2 = this.actifUsers.getPseudoList(pseudo);
|
||||
|
|
@ -214,21 +309,67 @@ public class ChatApp implements PropertyChangeListener {
|
|||
}
|
||||
|
||||
/**
|
||||
* <p>Lance le thread pour receptionner les requetes UDP</p>
|
||||
* <p>Lance le thread pour réceptionner les requetes UDP</p>
|
||||
*/
|
||||
public void activerEcouteUDP(){
|
||||
this.runnerEcouteUDP = new RunnerEcouteUDP(this);
|
||||
this.runnerEcouteUDP.start();
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Methode appelee lors de la deconnexion de l'utilisateur.
|
||||
* Il va prevenir les utilisateurs du reseau de son depart.</p>
|
||||
* <p>Méthode appelée lors de la déconnexion de l'utilisateur.
|
||||
* <br>La methode va appeler la fonction adequate selon que l'on est en interne ou en externe</p>
|
||||
* @throws IOException
|
||||
*/
|
||||
public void deconnexion() throws IOException{
|
||||
if(this.isExterne()){
|
||||
this.deconnexionExterne();
|
||||
}
|
||||
else{
|
||||
deconnexionInterne();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Methode appelee lors de la deconnexion en EXTERNE de l'utilisateur.
|
||||
* <br>Il va prévenir le serveur de présence de son depart.</p>
|
||||
*
|
||||
*/
|
||||
public void deconnexion() throws IOException {
|
||||
// Message que l'on envoie à tous les utilisateurs actifs
|
||||
private void deconnexionExterne() throws IOException{
|
||||
System.out.println("Deconnexion lancee");
|
||||
boolean deco = false;
|
||||
try {
|
||||
deco = externeEchange.sendPost("Deconnexion");
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
if(deco){
|
||||
System.out.print("Deconnexion reussie");
|
||||
}
|
||||
else{
|
||||
System.out.println("Deconnexion echouee");
|
||||
}
|
||||
db.majUtilisateursActifs(false,this.me.getId());
|
||||
this.connecte=false;
|
||||
try {
|
||||
main.stop();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
Platform.exit();
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* <p>Methode appelee lors de la deconnexion en INTERNE de l'utilisateur.
|
||||
* <br>Il va prevenir les utilisateurs du reseau de son depart.</p>
|
||||
* @throws IOException
|
||||
*/
|
||||
public void deconnexionInterne() throws IOException {
|
||||
// Message que l'on envoie à tous les utilisateurs actifs
|
||||
String broadcastMessage = "Deconnexion\n" + this.getMe().toString() ;
|
||||
UDPEchange.EnvoiBroadcast(broadcastMessage);
|
||||
UDPEchange.envoiBroadcast(broadcastMessage);
|
||||
db.majUtilisateursActifs(false,this.me.getId());
|
||||
this.connecte=false;
|
||||
try {
|
||||
|
|
@ -241,58 +382,25 @@ public class ChatApp implements PropertyChangeListener {
|
|||
}
|
||||
|
||||
/**
|
||||
* Getter
|
||||
* @return Utilisateur associee a ChatApp
|
||||
* Getter : Chatapp
|
||||
* @return Utilisateur associée a ChatApp
|
||||
*/
|
||||
public Utilisateur getMe() {
|
||||
return me;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter
|
||||
* @return Liste des utilisateurs actifs associee a ChatApp
|
||||
* Getter : actifUsers (Liste des utilisateurs actifs)
|
||||
* @return Liste des utilisateurs actifs associée a ChatApp
|
||||
*/
|
||||
public ListUtilisateurs getActifUsers() {
|
||||
return actifUsers;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*public static void main (String[] args) throws IOException {
|
||||
ChatApp app = new ChatApp(args[0],Integer.parseInt(args[1]),this.app) ;
|
||||
System.out.println("On lance le chatapp");
|
||||
|
||||
|
||||
ExecutorService execUDP = Executors.newFixedThreadPool(1000);
|
||||
execUDP.submit(new RunnerEcouteUDP(app));
|
||||
try {
|
||||
app.connexion();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
ExecutorService execTCP = Executors.newFixedThreadPool(1000);
|
||||
System.out.println("On lance l'écoute TCP de chatapp");
|
||||
execTCP.submit(new RunnerEcouteTCP(app));
|
||||
try {
|
||||
Thread.sleep(5000);
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
if(app.getMe().getPseudo().equals("Marvel")) {
|
||||
app.getHist("Doudou").afficher10derniers();
|
||||
System.out.println("Tentative de connexion avec Doudou");
|
||||
TCPEchange.demarrerSession(app, app.actifUsers.getPseudoList("Doudou"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}*/
|
||||
|
||||
/**
|
||||
* <p>Handler des differents evenements que chatapp ecoute</p>
|
||||
* @param evt l'evenement qui a ete indique par le pcs
|
||||
* <p>Handler des différents évenements que chatapp écoute</p>
|
||||
* @param evt L'évenement qui a ete indiqué par le pcs
|
||||
*/
|
||||
@Override
|
||||
public void propertyChange(PropertyChangeEvent evt) {
|
||||
|
|
@ -305,16 +413,62 @@ public class ChatApp implements PropertyChangeListener {
|
|||
}
|
||||
|
||||
/**
|
||||
* <p>Permet de recuperer stage de l'interface graphique qui a cree l'instance</p>
|
||||
* @return le stage de l'interface graphique qui a cree l'instance
|
||||
* <p> Getter : Main
|
||||
* Permet de récuperer stage de l'interface graphique qui a crée l'instance
|
||||
* </p>
|
||||
* @return Le stage de l'interface graphique qui a crée l'instance
|
||||
*/
|
||||
public Application getMain() {
|
||||
return main;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Permet de recuperer la base de donnee associee</p>
|
||||
* @return la base de donnee associee
|
||||
* <p> Getter : BDD
|
||||
* <br> Permet de récuperer la base de donnee associée
|
||||
* </p>
|
||||
* @return La base de donnee associée
|
||||
*/
|
||||
public DataBase getDb(){return this.db;}
|
||||
|
||||
/**
|
||||
* <p> Getter : Externe
|
||||
* <br> Permet de savoir si on est en externe ou en interne</p>
|
||||
* @return TRUE si Externe FALSE sinon
|
||||
*/
|
||||
public boolean isExterne() {
|
||||
return isExterne;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p> Setter : Externe
|
||||
* <br> Permet de définir si on est un utilisateur externe ou non</p>
|
||||
* @param externe TRUE si Externe FALSE sinon
|
||||
*/
|
||||
public void setExterne(boolean externe) {
|
||||
isExterne = externe;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Un utilisateur ne peut pas ouvrir plusieurs sessions de clavardage avec le même utilisateur.
|
||||
* <br> Cette methode compare les communications en cours pour retourner une liste d'utilisateurs avec
|
||||
* lesquels les communications sont possibles
|
||||
* </p>
|
||||
* @return Une liste d'utilisateurs avec lesquels il peut communiquer
|
||||
*/
|
||||
public ArrayList<Utilisateur> createListeCommunicationPossible(){
|
||||
ArrayList<Utilisateur> communication = new ArrayList<>();
|
||||
for ( Utilisateur element : this.actifUsers.getActifUsers()){
|
||||
if ( ! this.listeCommunication.contains(element.getId())){
|
||||
communication.add(element);
|
||||
}
|
||||
}
|
||||
return communication;
|
||||
}
|
||||
|
||||
|
||||
public JSONObject getConfigJSON() {
|
||||
return configJSON;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,14 +4,16 @@ import chatapp.Controller.ChatApp;
|
|||
import javafx.application.Application;
|
||||
import javafx.application.Platform;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.geometry.Rectangle2D;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.stage.Screen;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Cette classe extends Application.
|
||||
* <br> Elle va permettre de faire le lien avec JavaFX.
|
||||
*/
|
||||
public class Main extends Application {
|
||||
|
||||
/* Instance de ChatApp */
|
||||
ChatApp chatapp;
|
||||
|
||||
/**
|
||||
|
|
@ -21,7 +23,6 @@ public class Main extends Application {
|
|||
*/
|
||||
@Override
|
||||
public void start(Stage primaryStage) throws Exception {
|
||||
Rectangle2D tailleEcran = Screen.getPrimary().getBounds();
|
||||
this.chatapp = ChatApp.getInstance("Null",1234,this);
|
||||
FXMLLoader fichier = new FXMLLoader(getClass().getResource("/fenetres/ConnexionScreen.fxml"));
|
||||
Scene scene1 = new Scene(fichier.load(),600,400);
|
||||
|
|
@ -29,15 +30,10 @@ public class Main extends Application {
|
|||
primaryStage.setTitle("ChatApp");
|
||||
primaryStage.setMinWidth(600);
|
||||
primaryStage.setMinHeight(400);
|
||||
//primaryStage.setMaxWidth(600);
|
||||
//primaryStage.setMaxHeight(400);
|
||||
/*primaryStage.setMaxWidth(tailleEcran.getWidth());
|
||||
primaryStage.setMaxHeight(tailleEcran.getHeight());*/
|
||||
primaryStage.show();
|
||||
primaryStage.centerOnScreen();
|
||||
chatapp.activerEcouteTCP();
|
||||
chatapp.activerEcouteUDP();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -48,8 +44,7 @@ public class Main extends Application {
|
|||
public void stop() throws Exception {
|
||||
if(chatapp.isConnecte()){
|
||||
chatapp.deconnexion();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
super.stop();
|
||||
Platform.exit();
|
||||
System.exit(0);
|
||||
|
|
|
|||
|
|
@ -1,46 +1,60 @@
|
|||
package chatapp.Model;
|
||||
|
||||
import chatapp.Controller.ChatApp;
|
||||
|
||||
import java.sql.*;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Classe representant la Base de données.
|
||||
* Classe représentant la Base de données.
|
||||
* Celle-ci stocke la liste des utilisateurs ainsi que les échanges entre eux
|
||||
* </p>
|
||||
* Format de la table Utilisateurs
|
||||
* <br> +--------+-------------+---------+---------------------+
|
||||
* <br> | ID | Pseudo | Actif | Date d'inscription |
|
||||
* <br> +--------+-------------+---------+---------------------+
|
||||
* <br> - Id : Correspond à l'ID de l'utilisateur
|
||||
* <br> - Pseudo : Dernier Pseudo utilisé pour cet ID, va etre remplacé par le pseudo actuel avec majPseudo
|
||||
* <br> - Date d'inscription : Comme son nom l'indique le jour de l'inscription de cet utilisateur
|
||||
* <br> - Actif : Boolean indiquant si l'utilisateur est actif
|
||||
* <br>
|
||||
* <br> Chaque communication entres utilisateurs sera stockée dans une table de la forme
|
||||
* <br> +--------------+--------+---------+--------------+
|
||||
* <br> | Destinataire | Source | Message | Date d'envoi |
|
||||
* <br> +--------------+--------+---------+--------------+
|
||||
* <br> - Destinataire : Id du destinataire du message
|
||||
* <br> - Source : Id de celui qui envoie le message
|
||||
* <br> - Message : Msg envoyé
|
||||
* <br> - Date d'envoi : Date a laquelle Source a envoyé le message à destinataire
|
||||
*/
|
||||
public class DataBase {
|
||||
private final String DBurl = "jdbc:mysql://srv-bdens.insa-toulouse.fr:3306/tp_servlet_006?" ;
|
||||
|
||||
/* URL pour accéder à la BDD */
|
||||
private String dBurl = "jdbc:mysql://srv-bdens.insa-toulouse.fr:3306/tp_servlet_006?" ;
|
||||
|
||||
/* Connection avec la BDD */
|
||||
private Connection connection = null;
|
||||
private final String login = "tp_servlet_006";
|
||||
private final String pswd = "baePh9ei";
|
||||
|
||||
/* Login pour se connecter à la BDD */
|
||||
private String login = "tp_servlet_006";
|
||||
|
||||
/*Format de la table Utilisateurs
|
||||
+--------+-------------+---------+---------------------+
|
||||
| ID | Pseudo | Actif | Date d'inscription |
|
||||
+--------+-------------+---------+---------------------+
|
||||
Id correspond à l'addresse IP
|
||||
Pseudo : Dernier Pseudo utilisé pour cette adresse IP, va etre remplacé par le pseudo actuel avec majPseudo
|
||||
Date d'inscription comme son nom l'indique le jour de l'inscription de cette utilisateur
|
||||
Actif est un boolean indicant si l'utilisateur est actif
|
||||
/* Mdp pour se connecter à la BDD */
|
||||
private String pswd = "baePh9ei";
|
||||
|
||||
Chaque communication entres utilisateurs sera stocké dans une table de la forme
|
||||
+------------------+-----------+---------------+---------------+
|
||||
| Destinataire | Source | Message | Date d'envoi |
|
||||
+--------+---------------------+---------------+---------------+
|
||||
Destinataire -> Id du destinataire du message
|
||||
Source -> Id de celui qui envoie le message
|
||||
Message -> Msg envoye
|
||||
Date d'envoie -> Date a laquelle Source a envoye le message a destinataire
|
||||
*/
|
||||
private ChatApp chatapp;
|
||||
|
||||
private static final DataBase instance = null; // Singleton
|
||||
/* Singleton */
|
||||
private static final DataBase instance = null;
|
||||
|
||||
/**
|
||||
* Constructeur de la database
|
||||
* On installe le driver et on établit la connection.
|
||||
* <br> On installe le driver et on établit la connection.
|
||||
*/
|
||||
public DataBase() {
|
||||
public DataBase(ChatApp chatapp) {
|
||||
this.chatapp = chatapp;
|
||||
this.login = (String) chatapp.getConfigJSON().get("BaseDeDonnesLogin");
|
||||
this.pswd = (String) chatapp.getConfigJSON().get("BaseDeDonneesMDP");
|
||||
this.dBurl = (String) chatapp.getConfigJSON().get("BaseDeDonnesURL");
|
||||
try {
|
||||
//Besoin d'installer le driver JDBC entre java IDE et le system DBMS pour faire un pont entre les deux
|
||||
Class.forName("com.mysql.cj.jdbc.Driver");
|
||||
|
|
@ -55,7 +69,10 @@ public class DataBase {
|
|||
//this.connection = DriverManager.getConnection("jdbc:mysql://localhost/POO_AL_NM?allowPublicKeyRetrieval=true&useSSL=false", "root", "1234");
|
||||
// Auriane : DECOMMENTER CETTE LIGNE
|
||||
//this.connection = DriverManager.getConnection("jdbc:mysql://localhost:8889/POO_AL_NM?allowPublicKeyRetrieval=true&useSSL=false", "root", "root");
|
||||
this.connection = DriverManager.getConnection(this.DBurl,login,pswd);
|
||||
System.out.println(this.dBurl);
|
||||
System.out.println(this.pswd);
|
||||
System.out.println(this.login);
|
||||
this.connection = DriverManager.getConnection(this.dBurl,this.login,this.pswd);
|
||||
System.out.println("Connexion Etablie");
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
|
|
@ -65,39 +82,39 @@ public class DataBase {
|
|||
|
||||
/**
|
||||
* Méthode permettant de renvoyer une instance de la classe DataBase
|
||||
* @return Retourne l'instance du singleton DataBase.
|
||||
* @return L'instance du singleton DataBase.
|
||||
*/
|
||||
public static DataBase getInstance() {
|
||||
public static DataBase getInstance(ChatApp chatapp) {
|
||||
synchronized (DataBase.class) {
|
||||
return new DataBase();
|
||||
return new DataBase(chatapp);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Methode permettant de creer une table pour stocker les messages entre deux utilisateurs
|
||||
* @param ID1 Id du premier utilisateur
|
||||
* @param ID2 Id du second utilisateur
|
||||
* Methode permettant de créer une table pour stocker les messages entre deux utilisateurs
|
||||
* @param iD1 Id du premier utilisateur
|
||||
* @param iD2 Id du second utilisateur
|
||||
*/
|
||||
public void CreationTableHistorique(String ID1 , String ID2) {
|
||||
public void creationTableHistorique(String iD1 , String iD2) {
|
||||
// Pour eviter d'avoir les tables en double
|
||||
String petit;
|
||||
String grand;
|
||||
int comparaison = ID1.compareTo(ID2);
|
||||
int comparaison = iD1.compareTo(iD2);
|
||||
if (comparaison < 0) {
|
||||
petit = ID1;
|
||||
grand = ID2 ;
|
||||
petit = iD1;
|
||||
grand = iD2 ;
|
||||
}
|
||||
else {
|
||||
petit = ID2;
|
||||
grand = ID1 ;
|
||||
petit = iD2;
|
||||
grand = iD1 ;
|
||||
}
|
||||
String nomTable = "Chat_" + petit + "_" + grand ;
|
||||
String Requete = "CREATE TABLE IF NOT EXISTS`" + nomTable +"` (\n" + "`Destinataire` varchar(100) NOT NULL,\n" + " `Source` varchar(100) NOT NULL,\n" + " `Envoi` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n" + " `Message` text NOT NULL\n" + ") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ;";
|
||||
System.out.println(Requete);
|
||||
PreparedStatement Ps = null ;
|
||||
String requete = "CREATE TABLE IF NOT EXISTS`" + nomTable +"` (\n" + "`Destinataire` varchar(100) NOT NULL,\n" + " `Source` varchar(100) NOT NULL,\n" + " `Envoi` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n" + " `Message` text NOT NULL\n" + ") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ;";
|
||||
System.out.println(requete);
|
||||
PreparedStatement ps = null ;
|
||||
//Statement est utilisé pour envoyer une requete SQL à la base de donnee
|
||||
try {
|
||||
Ps = connection.prepareStatement(Requete);
|
||||
ps = connection.prepareStatement(requete);
|
||||
System.out.println("Statement cree");
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
|
|
@ -105,8 +122,8 @@ public class DataBase {
|
|||
}
|
||||
//Execute la donnée SQL statement passe en parametre
|
||||
try {
|
||||
assert Ps != null;
|
||||
Ps.executeUpdate();
|
||||
assert ps != null;
|
||||
ps.executeUpdate();
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
System.out.println(" Echec executeUpdate ");
|
||||
|
|
@ -114,18 +131,18 @@ public class DataBase {
|
|||
}
|
||||
|
||||
/**
|
||||
* Methode permettant de mettre a jour le pseudo d'un utilisateur en fonction de son ID dans la base de donnee
|
||||
* @param ID Id de l'utilisateur qui vient de changer de pseudo
|
||||
* @param Pseudo Nouveau Pseudo de l'utilisateur
|
||||
* Méthode permettant de mettre a jour le pseudo d'un utilisateur en fonction de son ID dans la base de donnee
|
||||
* @param iD Id de l'utilisateur qui vient de changer de pseudo
|
||||
* @param pseudo Nouveau Pseudo de l'utilisateur
|
||||
*/
|
||||
public void majPseudo( String ID , String Pseudo) {
|
||||
public void majPseudo( String iD , String pseudo) {
|
||||
String requete= "UPDATE `Utilisateurs` SET `Pseudo`=? WHERE id=?";
|
||||
PreparedStatement Ps = null ;
|
||||
PreparedStatement ps = null ;
|
||||
//Statement est utilisé pour envoyer une requete SQL à la base de donnee
|
||||
try {
|
||||
Ps = connection.prepareStatement(requete);
|
||||
Ps.setString(1, Pseudo); // ? n°1 devient la valeur contenu dans Pseudo
|
||||
Ps.setString(2, ID); // ? n°2 devient la valeur contenu dans ID
|
||||
ps = connection.prepareStatement(requete);
|
||||
ps.setString(1, pseudo); // ? n°1 devient la valeur contenu dans Pseudo
|
||||
ps.setString(2, iD); // ? n°2 devient la valeur contenu dans ID
|
||||
System.out.println("Statement cree");
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
|
|
@ -133,8 +150,8 @@ public class DataBase {
|
|||
}
|
||||
//Execute la donnée SQL statement passe en parametre
|
||||
try {
|
||||
assert Ps != null;
|
||||
Ps.executeUpdate();
|
||||
assert ps != null;
|
||||
ps.executeUpdate();
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
System.out.println(" Echec executeUpdate ");
|
||||
|
|
@ -144,32 +161,32 @@ public class DataBase {
|
|||
|
||||
|
||||
/**
|
||||
* Methode permettant de mettre a jour le pseudo d'un utilisateur en fonction de son ID dans la base de donnee
|
||||
* @param IDdest Id de l'utilisateur Destinataire du message
|
||||
* @param IDsrc Id de celui qui envoi le message
|
||||
* @param Msg Message envoye entre les deux utilisateurs
|
||||
* Méthode permettant de mettre a jour le pseudo d'un utilisateur en fonction de son ID dans la base de donnée
|
||||
* @param iDdest Id de l'utilisateur Destinataire du message
|
||||
* @param iDsrc Id de celui qui envoi le message
|
||||
* @param msg Message envoye entre les deux utilisateurs
|
||||
*/
|
||||
public void ajoutHistorique(String IDdest , String IDsrc, String Msg) {
|
||||
public void ajoutHistorique(String iDdest , String iDsrc, String msg) {
|
||||
String petit;
|
||||
String grand;
|
||||
int comparaison = IDdest.compareTo(IDsrc);
|
||||
int comparaison = iDdest.compareTo(iDsrc);
|
||||
if (comparaison < 0) {
|
||||
petit = IDdest;
|
||||
grand = IDsrc ;
|
||||
petit = iDdest;
|
||||
grand = iDsrc ;
|
||||
}
|
||||
else {
|
||||
petit = IDsrc;
|
||||
grand = IDdest ;
|
||||
petit = iDsrc;
|
||||
grand = iDdest ;
|
||||
}
|
||||
String nomTable = "Chat_" + petit + "_" + grand ;
|
||||
String requete= "INSERT INTO `"+ nomTable +"`(`Destinataire`, `Source`, `Message`) VALUES ( ? , ? , ?)";
|
||||
PreparedStatement Ps = null ;
|
||||
PreparedStatement ps = null ;
|
||||
//Statement est utilisé pour envoyer une requete SQL à la base de donnee
|
||||
try {
|
||||
Ps = connection.prepareStatement(requete);
|
||||
Ps.setString(1, IDdest); // ? n°1 devient la valeur contenu dans IDdest
|
||||
Ps.setString(2, IDsrc); // ? n°2 devient la valeur contenu dans IDsrc
|
||||
Ps.setString(3, Msg); // ? n°3 devient la valeur contenu dans Msg
|
||||
ps = connection.prepareStatement(requete);
|
||||
ps.setString(1, iDdest); // ? n°1 devient la valeur contenu dans IDdest
|
||||
ps.setString(2, iDsrc); // ? n°2 devient la valeur contenu dans IDsrc
|
||||
ps.setString(3, msg); // ? n°3 devient la valeur contenu dans Msg
|
||||
//La date de l'envoi n'a pas besoin d'être renseigné, elle est automatique
|
||||
System.out.println("Statement cree");
|
||||
} catch (SQLException e) {
|
||||
|
|
@ -178,8 +195,8 @@ public class DataBase {
|
|||
}
|
||||
//Execute la donnée SQL statement passe en parametre
|
||||
try {
|
||||
assert Ps != null;
|
||||
Ps.executeUpdate();
|
||||
assert ps != null;
|
||||
ps.executeUpdate();
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
System.out.println(" Echec executeUpdate ");
|
||||
|
|
@ -188,24 +205,24 @@ public class DataBase {
|
|||
|
||||
|
||||
/**
|
||||
* Methode permettant d'ajouter un utilisateur dans la base de donnée si celui-ci n'existe pas deja
|
||||
* @param ID Id de l'utilisateur que l'on veut rajouter
|
||||
* @param Pseudo pseudo actuelle de l'utilisateur
|
||||
* Méthode permettant d'ajouter un utilisateur dans la base de donnée si celui-ci n'existe pas déjà
|
||||
* @param iD Id de l'utilisateur que l'on veut rajouter
|
||||
* @param pseudo Pseudo actuelle de l'utilisateur
|
||||
*/
|
||||
public void ajoutUtilisateurs(String ID , String Pseudo ) {
|
||||
if(this.idExiste(ID)){
|
||||
this.majPseudo(ID, Pseudo);
|
||||
public void ajoutUtilisateurs(String iD , String pseudo ) {
|
||||
if(this.idExiste(iD)){
|
||||
this.majPseudo(iD, pseudo);
|
||||
}
|
||||
else {
|
||||
// L'utilisateur n'existe pas , on va le rajouter.
|
||||
System.out.println("On rajoute l'utilisateur " + Pseudo);
|
||||
System.out.println("On rajoute l'utilisateur " + pseudo);
|
||||
String requete = "INSERT INTO `Utilisateurs` (`ID`, `Pseudo`, `Actif`) VALUES ( ? , ? , '1')";
|
||||
PreparedStatement Ps = null;
|
||||
PreparedStatement ps = null;
|
||||
//Statement est utilisé pour envoyer une requete SQL à la base de donnee
|
||||
try {
|
||||
Ps = connection.prepareStatement(requete);
|
||||
Ps.setString(1, ID); // ? n°1 devient la valeur contenu dans ID
|
||||
Ps.setString(2, Pseudo); // ? n°2 devient la valeur contenu dans Pseudo
|
||||
ps = connection.prepareStatement(requete);
|
||||
ps.setString(1, iD); // ? n°1 devient la valeur contenu dans ID
|
||||
ps.setString(2, pseudo); // ? n°2 devient la valeur contenu dans Pseudo
|
||||
System.out.println("Statement cree");
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
|
|
@ -213,8 +230,8 @@ public class DataBase {
|
|||
}
|
||||
//Execute la donnée SQL statement passe en parametre
|
||||
try {
|
||||
assert Ps != null;
|
||||
Ps.executeUpdate();
|
||||
assert ps != null;
|
||||
ps.executeUpdate();
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
System.out.println(" Echec executeUpdate ");
|
||||
|
|
@ -223,9 +240,9 @@ public class DataBase {
|
|||
}
|
||||
|
||||
/**
|
||||
* Methode permettant de mettre a jour les utilisateurs actuellement actif
|
||||
* @param Id Id de l'utilisateur qui vient de se connecter ou deconnecter
|
||||
* @param Connecte Boolean true si il est connecte , false sinon
|
||||
* Méthode permettant de mettre a jour les utilisateurs actuellement actif
|
||||
* @param Id Id de l'utilisateur qui vient de se connecter ou déconnecter
|
||||
* @param Connecte Boolean true si il est connecté , false sinon
|
||||
*/
|
||||
public void majUtilisateursActifs(Boolean Connecte, String Id) {
|
||||
String requete= "UPDATE `Utilisateurs` SET `Actif`=? WHERE id=?";
|
||||
|
|
@ -252,24 +269,24 @@ public class DataBase {
|
|||
}
|
||||
|
||||
/**
|
||||
* Methode permettant de recuperer les N derniers messages envoyés entre 2 utilisateurs
|
||||
* @param ID Utilisateur associé a ChatApp
|
||||
* @param IDdestinataire Celui avec qui correspond ID
|
||||
* @param N le nombre de messages souhaités
|
||||
* Méthode permettant de récupérer les N derniers messages envoyés entre 2 utilisateurs
|
||||
* @param iD Utilisateur associé a ChatApp
|
||||
* @param iDdestinataire Celui avec qui correspond ID
|
||||
* @param n Le nombre de messages souhaités
|
||||
* @return Les N derniers Messages
|
||||
*/
|
||||
public String recupNMsg(String ID, String IDdestinataire, int N) {
|
||||
StringBuilder Msg = new StringBuilder();
|
||||
public String recupNMsg(String iD, String iDdestinataire, int n) {
|
||||
StringBuilder msg = new StringBuilder();
|
||||
String petit;
|
||||
String grand;
|
||||
int comparaison = ID.compareTo(IDdestinataire);
|
||||
int comparaison = iD.compareTo(iDdestinataire);
|
||||
if (comparaison < 0) {
|
||||
petit = ID;
|
||||
grand = IDdestinataire;
|
||||
petit = iD;
|
||||
grand = iDdestinataire;
|
||||
}
|
||||
else {
|
||||
petit = IDdestinataire;
|
||||
grand = ID ;
|
||||
petit = iDdestinataire;
|
||||
grand = iD ;
|
||||
}
|
||||
String nomTable = "Chat_" + petit + "_" + grand ;
|
||||
String requete = "SELECT * FROM `"+ nomTable +"`";
|
||||
|
|
@ -286,23 +303,23 @@ public class DataBase {
|
|||
} catch (SQLException throwables) {
|
||||
throwables.printStackTrace();
|
||||
}
|
||||
Integer Taille = tailleBDD(nomTable);
|
||||
if(Taille < N ){
|
||||
N = Taille ;
|
||||
Integer taille = tailleBDD(nomTable);
|
||||
if(taille < n ){
|
||||
n = taille ;
|
||||
}
|
||||
for(int i = 0 ; i < N; i++){
|
||||
for(int i = 0 ; i < n; i++){
|
||||
try {
|
||||
assert rs != null;
|
||||
if( rs.next()){
|
||||
String IDSource = rs.getString("Source");
|
||||
String Envoi = rs.getTimestamp("Envoi").toString();
|
||||
String Message = rs.getString("Message");
|
||||
if (IDSource.equals(ID)) Msg.append("Moi (").append(Envoi).append(") : ").append(Message);
|
||||
String iDSource = rs.getString("Source");
|
||||
String envoi = rs.getTimestamp("Envoi").toString();
|
||||
String message = rs.getString("Message");
|
||||
if (iDSource.equals(iD)) msg.append("Moi (").append(envoi).append(") : ").append(message);
|
||||
else {
|
||||
String PseudoSource = getPseudo(IDSource) ;
|
||||
Msg.append(PseudoSource).append(" (").append(Envoi).append(") : ").append(Message);
|
||||
String pseudoSource = getPseudo(iDSource) ;
|
||||
msg.append(pseudoSource).append(" (").append(envoi).append(") : ").append(message);
|
||||
}
|
||||
Msg.append('\n');
|
||||
msg.append('\n');
|
||||
}
|
||||
// MSG de la forme :
|
||||
// Source (Date) : Texte
|
||||
|
|
@ -310,16 +327,16 @@ public class DataBase {
|
|||
throwables.printStackTrace();
|
||||
}
|
||||
}
|
||||
return Msg.toString();
|
||||
return msg.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Methode permettant de recuperer le pseudo actuel d'un utilisateur en fonction de son ID
|
||||
* Méthode permettant de récupérer le pseudo actuel d'un utilisateur en fonction de son ID
|
||||
* @param idSource Id de l'utilsateur dont on veut connaitre le pseudo
|
||||
* @return Pseudo
|
||||
* @return Pseudo actuel
|
||||
*/
|
||||
private String getPseudo(String idSource) {
|
||||
String Pseudo = "" ;
|
||||
String pseudo = "" ;
|
||||
String requete= "SELECT * FROM `Utilisateurs` WHERE `ID` LIKE '" + idSource + "'";
|
||||
Statement stmt = null;
|
||||
ResultSet rs = null ;
|
||||
|
|
@ -337,34 +354,34 @@ public class DataBase {
|
|||
try {
|
||||
assert rs != null;
|
||||
if (rs.next()){
|
||||
Pseudo = rs.getString("Pseudo") ;
|
||||
pseudo = rs.getString("Pseudo") ;
|
||||
}
|
||||
} catch (SQLException throwables) {
|
||||
throwables.printStackTrace();
|
||||
}
|
||||
return Pseudo ;
|
||||
return pseudo ;
|
||||
}
|
||||
|
||||
/**
|
||||
* Methode permettant de recuperer les messages d'une plage de donnée [deb,fin] envoyés entre 2 utilisateurs
|
||||
* @param ID Utilisateur associé a ChatApp
|
||||
* @param IDdestinataire Celui avec qui correspond ID
|
||||
* Méthode permettant de récupérer les messages d'une plage de donnée [deb,fin] envoyés entre 2 utilisateurs
|
||||
* @param iD Utilisateur associé a ChatApp
|
||||
* @param iDdestinataire Celui avec qui correspond ID
|
||||
* @param deb On veut les messages à partir de l'indice deb
|
||||
* @param fin On veut les messages jusqu'a l'indice fin
|
||||
* @return Les messages d'une plage de donnée [deb,fin]
|
||||
*/
|
||||
public String recupMsg(String ID, String IDdestinataire, int deb , int fin) {
|
||||
StringBuilder Msg = new StringBuilder();
|
||||
public String recupMsg(String iD, String iDdestinataire, int deb , int fin) {
|
||||
StringBuilder msg = new StringBuilder();
|
||||
String petit;
|
||||
String grand;
|
||||
int comparaison = ID.compareTo(IDdestinataire);
|
||||
int comparaison = iD.compareTo(iDdestinataire);
|
||||
if (comparaison < 0) {
|
||||
petit = ID;
|
||||
grand = IDdestinataire;
|
||||
petit = iD;
|
||||
grand = iDdestinataire;
|
||||
}
|
||||
else {
|
||||
petit = IDdestinataire;
|
||||
grand = ID ;
|
||||
petit = iDdestinataire;
|
||||
grand = iD ;
|
||||
}
|
||||
String nomTable = "Chat_" + petit + "_" + grand ;
|
||||
String requete = "SELECT * FROM `"+ nomTable+"`";
|
||||
|
|
@ -381,25 +398,25 @@ public class DataBase {
|
|||
} catch (SQLException throwables) {
|
||||
throwables.printStackTrace();
|
||||
}
|
||||
Integer Taille = tailleBDD(nomTable);
|
||||
if(Taille < fin ){
|
||||
fin = Taille ;
|
||||
Integer taille = tailleBDD(nomTable);
|
||||
if(taille < fin ){
|
||||
fin = taille ;
|
||||
}
|
||||
for(int i = 0 ; i < fin; i++){
|
||||
try {
|
||||
assert rs != null;
|
||||
if( rs.next()){
|
||||
String IDSource = rs.getString("Source");
|
||||
String Envoi = rs.getTimestamp("Envoi").toString();
|
||||
String Message = rs.getString("Message");
|
||||
String iDSource = rs.getString("Source");
|
||||
String envoi = rs.getTimestamp("Envoi").toString();
|
||||
String message = rs.getString("Message");
|
||||
if (i >= deb) {
|
||||
if (IDSource.equals(ID)) {
|
||||
Msg.append("Moi (").append(Envoi).append(") : ").append(Message);
|
||||
if (iDSource.equals(iD)) {
|
||||
msg.append("Moi (").append(envoi).append(") : ").append(message);
|
||||
} else {
|
||||
String PseudoSource = getPseudo(IDSource);
|
||||
Msg.append(PseudoSource).append(" (").append(Envoi).append(") : ").append(Message);
|
||||
String PseudoSource = getPseudo(iDSource);
|
||||
msg.append(PseudoSource).append(" (").append(envoi).append(") : ").append(message);
|
||||
}
|
||||
Msg.append('\n');
|
||||
msg.append('\n');
|
||||
}
|
||||
}
|
||||
} catch (SQLException throwables) {
|
||||
|
|
@ -407,16 +424,16 @@ public class DataBase {
|
|||
}
|
||||
}
|
||||
|
||||
return Msg.toString();
|
||||
return msg.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Cette méthode sert à recuperer la taille d'un base de donnée
|
||||
* Cette méthode sert à récupérer la taille d'un base de donnée
|
||||
* @param nomTable Nom de la table de donnée dont on veut récuperer le nom
|
||||
* @return Taille de la BDD
|
||||
*/
|
||||
public Integer tailleBDD(String nomTable) {
|
||||
Integer Taille = 0 ;
|
||||
Integer taille = 0 ;
|
||||
String requete = "SELECT * FROM `"+nomTable+ "`";
|
||||
Statement stmt = null;
|
||||
ResultSet rs = null ;
|
||||
|
|
@ -438,20 +455,20 @@ public class DataBase {
|
|||
} catch (SQLException throwables) {
|
||||
throwables.printStackTrace();
|
||||
}
|
||||
Taille++; // on incremente Taille pour chaque solution trouvée
|
||||
taille++; // on incremente Taille pour chaque solution trouvée
|
||||
}
|
||||
return Taille;
|
||||
return taille;
|
||||
}
|
||||
|
||||
/**
|
||||
* Methode permettant de savoir si un utilisateur existe dans la base de donnée 'Utilisateurs'
|
||||
* @param ID On recherche l'utilisateur dont l'ID est ID
|
||||
* @param iD On recherche l'utilisateur dont l'ID est ID
|
||||
* @return True si l'utilisateur existe , False sinon
|
||||
*/
|
||||
public boolean idExiste(String ID){
|
||||
public boolean idExiste(String iD){
|
||||
boolean existe = false ;
|
||||
// Verification que l'utilisateur n'existe pas
|
||||
String requete = "SELECT * FROM `Utilisateurs` WHERE `ID` LIKE '" + ID +"'";
|
||||
String requete = "SELECT * FROM `Utilisateurs` WHERE `ID` LIKE '" + iD +"'";
|
||||
Statement stmt;
|
||||
ResultSet rs = null ;
|
||||
try {
|
||||
|
|
@ -470,18 +487,24 @@ public class DataBase {
|
|||
return existe;
|
||||
}
|
||||
|
||||
public String getNomTable(Utilisateur U1, Utilisateur U2){
|
||||
/**
|
||||
* Méthode permettant de récupérer le nom de la table où sont stockés les messages de 2 utilisateurs.
|
||||
* @param u1 Un des 2 utilisateurs
|
||||
* @param u2 Le second utilisateur
|
||||
* @return Le nom de la table des historiques
|
||||
*/
|
||||
public String getNomTable(Utilisateur u1, Utilisateur u2){
|
||||
String petit;
|
||||
String grand;
|
||||
int comparaison;
|
||||
comparaison = U1.getId().compareTo(U2.getId());
|
||||
comparaison = u1.getId().compareTo(u2.getId());
|
||||
if (comparaison < 0) {
|
||||
petit = U1.getId();
|
||||
grand = U2.getId();
|
||||
petit = u1.getId();
|
||||
grand = u2.getId();
|
||||
}
|
||||
else {
|
||||
petit = U2.getId() ;
|
||||
grand = U1.getId() ;
|
||||
petit = u2.getId() ;
|
||||
grand = u1.getId() ;
|
||||
}
|
||||
return "Chat_" + petit + "_" + grand ;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,16 +1,17 @@
|
|||
package chatapp.Model;
|
||||
|
||||
|
||||
import java.net.InetAddress;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Classe representant La liste des utilisateurs actifs, stockée localement
|
||||
* Classe représentant la liste des utilisateurs actifs, stockée localement.
|
||||
* </p>
|
||||
*/
|
||||
public class ListUtilisateurs {
|
||||
|
||||
// On conserve dans cette liste tout les utilisateurs actuellement actifs
|
||||
/* On conserve dans cette liste tout les utilisateurs actuellement actifs */
|
||||
private ArrayList<Utilisateur> actifUsers ;
|
||||
|
||||
/**
|
||||
|
|
@ -22,17 +23,18 @@ public class ListUtilisateurs {
|
|||
|
||||
/**
|
||||
* Ajouter des utilisateurs actifs dans l'attribut liste 'actifUsers'
|
||||
* @param u on va rajouter cet utilisateur dans la liste
|
||||
* @param u On va rajouter cet utilisateur dans la liste
|
||||
*/
|
||||
public void addList(Utilisateur u) {
|
||||
if((verifierUnicite(u.getPseudo()))) {
|
||||
public synchronized void addList(Utilisateur u) {
|
||||
if (! this.appartient(u)){
|
||||
this.actifUsers.add(u);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Recuperer un utilisateur a partir de son pseudo
|
||||
* Récupérer un utilisateur à partir de son pseudo.
|
||||
* @param pseudo Pseudo de l'utilisateur que l'on souhaite retrouver
|
||||
* @return L'utilisateur associé à ce pseudo
|
||||
*/
|
||||
public Utilisateur getPseudoList(String pseudo) {
|
||||
for(Utilisateur elem: this.actifUsers)
|
||||
|
|
@ -45,8 +47,10 @@ public class ListUtilisateurs {
|
|||
}
|
||||
|
||||
/**
|
||||
* Recuperer un utilisateur a partir de son addresse IP
|
||||
* @param ip adresse IP de l'utilisateur que l'on souhaite retrouver
|
||||
* Récupérer un utilisateur à partir de son addresse IP
|
||||
* @param ip Adresse IP de l'utilisateur que l'on souhaite retrouver
|
||||
* @return L'utilisateur associé à l'adresse IP
|
||||
* @throws Exception No such user with this IP address
|
||||
*/
|
||||
public Utilisateur getIPList(InetAddress ip) throws Exception {
|
||||
for(Utilisateur elem: this.actifUsers)
|
||||
|
|
@ -59,10 +63,26 @@ public class ListUtilisateurs {
|
|||
}
|
||||
|
||||
/**
|
||||
* Supprimer de la liste des utilisateurs actifs 'actifUsers' un certain utilisateur
|
||||
* @param u on va supprimer cet utilisateur dans la liste
|
||||
* Récupérer un utilisateur à partir de son ID
|
||||
* @param iD L'ID de l'utilisateur que l'on souhaite retrouver
|
||||
* @return L'utilisateur associé à l'adresse ID
|
||||
* @throws Exception No such user with this ID
|
||||
*/
|
||||
public void supprimerList(Utilisateur u) {
|
||||
public Utilisateur getIDList(String iD) throws Exception {
|
||||
for(Utilisateur elem: this.actifUsers)
|
||||
{
|
||||
if (elem.getId().equals(iD) ) {
|
||||
return elem ;
|
||||
}
|
||||
}
|
||||
throw new Exception("No such user with this ID") ;
|
||||
}
|
||||
|
||||
/**
|
||||
* Supprimer de la liste des utilisateurs actifs 'actifUsers' un certain utilisateur
|
||||
* @param u On va supprimer cet utilisateur dans la liste
|
||||
*/
|
||||
public synchronized void supprimerList(Utilisateur u) {
|
||||
boolean Sup = false ;
|
||||
for(Utilisateur elem: this.actifUsers)
|
||||
{
|
||||
|
|
@ -70,6 +90,7 @@ public class ListUtilisateurs {
|
|||
this.actifUsers.remove(elem);
|
||||
Sup = true ;
|
||||
this.afficherListeUtilisateurs();
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!Sup) {
|
||||
|
|
@ -79,35 +100,45 @@ public class ListUtilisateurs {
|
|||
|
||||
/**
|
||||
* Modifier le pseudo d'un utilisateur dans la liste des utilisateurs actifs 'actifUsers'
|
||||
* @param ancien correspond au pseudo remplacer
|
||||
* @param nouveau correspond au nouveau pseudo
|
||||
* @param ancien Pseudo à remplacer
|
||||
* @param nouveau Nouveau pseudo
|
||||
*/
|
||||
public void modifierList(String ancien , String nouveau) {
|
||||
public synchronized void modifierList(String ancien , String nouveau) {
|
||||
for(Utilisateur elem: this.actifUsers)
|
||||
{
|
||||
if (ancien.equals( elem.getPseudo() ) ) {
|
||||
this.actifUsers.remove(elem);
|
||||
elem.setPseudo(nouveau);
|
||||
this.addList(elem);
|
||||
break ;
|
||||
}
|
||||
}
|
||||
this.afficherListeUtilisateurs();
|
||||
}
|
||||
|
||||
/**
|
||||
* Methode permettant de savoir si un utilisateur est contenu dans la liste 'actifUsers'
|
||||
* @param u on souhait savoir si cette utilisateur appartient a la liste
|
||||
* @return True si il appartient, false sinon
|
||||
* Méthode permettant de savoir si un utilisateur est contenu dans la liste 'actifUsers'
|
||||
* @param u On souhaite savoir si cet utilisateur appartient a la liste
|
||||
* @return True si il appartient, False sinon
|
||||
*/
|
||||
public Boolean appartient(Utilisateur u) {
|
||||
return this.actifUsers.contains(u);
|
||||
boolean appartient = false ;
|
||||
for(Utilisateur elem: this.actifUsers)
|
||||
{
|
||||
if (elem.getId().equals(u.getId())) {
|
||||
appartient = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
System.out.println("Test appartient : " + appartient);
|
||||
return appartient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Verifie qu'aucun autre utilisateur ne possede le meme pseudo
|
||||
* @param pseudo on va supprimer cet utilisateur dans la liste
|
||||
* @return True si aucun utilisateur de la liste possede ce pseudo, false sinon
|
||||
* Vérifie qu'aucun autre utilisateur ne posséde le meme pseudo
|
||||
* @param pseudo Pseudo dont on veut vérifier l'unicité
|
||||
* @return True si aucun utilisateur de la liste possède ce pseudo, False sinon
|
||||
*/
|
||||
public Boolean verifierUnicite(String pseudo) {
|
||||
for(Utilisateur elem: this.actifUsers)
|
||||
|
|
@ -120,7 +151,7 @@ public class ListUtilisateurs {
|
|||
}
|
||||
|
||||
/**
|
||||
* Methode affichant la liste des utilisateurs actifs
|
||||
* Méthode affichant la liste des utilisateurs actifs
|
||||
*/
|
||||
public void afficherListeUtilisateurs() {
|
||||
System.out.println ("Liste des utilisateurs actifs : ");
|
||||
|
|
@ -133,7 +164,7 @@ public class ListUtilisateurs {
|
|||
}
|
||||
|
||||
/**
|
||||
* Getter
|
||||
* Getter : ActifUsers (liste des utilisateurs actifs)
|
||||
* @return La liste des utilisateurs actifs
|
||||
*/
|
||||
public ArrayList<Utilisateur> getActifUsers(){
|
||||
|
|
|
|||
|
|
@ -7,36 +7,51 @@ import java.util.Date;
|
|||
|
||||
/**
|
||||
* <p>
|
||||
* Classe representant les messages envoyes en TCP lors d'une session de clavardage.
|
||||
* Un message Horodate est compose d'un destintaire, d'une source , d'un message et d'une date d'envoie.
|
||||
* Classe représentant les messages envoyés en TCP lors d'une session de clavardage.
|
||||
* <br> Un message Horodaté est composé :
|
||||
* <br> - d'un destintaire,
|
||||
* <br> - d'une source,
|
||||
* <br> - d'un message,
|
||||
* <br> - d'une date d'envoi.
|
||||
* </p>
|
||||
*/
|
||||
public class MessageHorodate implements Serializable {
|
||||
/* Un message est toujours adressé à un destinataire */
|
||||
private Utilisateur destinataire ;
|
||||
|
||||
/* Un message est toujours associé à un utilisateur source */
|
||||
private Utilisateur source ;
|
||||
|
||||
/* La date d'horodatage du message */
|
||||
private Date dateHorodatage ;
|
||||
private int type; // 0 = debut de la communication, 1= message de communication, 2 = fin de la communicataion
|
||||
|
||||
/* Le type d'un messge : 0 = debut de la communication, 1= message de communication, 2 = fin de la communicataion */
|
||||
private int type;
|
||||
|
||||
/* Le corps du message */
|
||||
private String Message;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Constructeur , le message va etre horodate
|
||||
* Constructeur , le message va etre horodaté
|
||||
* @param destinataire - Destinataire du message
|
||||
* @param source - Source du message
|
||||
* @param Message - Message envoye
|
||||
* @param message - Message envoyé
|
||||
* @param type - Le type du message
|
||||
* </p>
|
||||
*/
|
||||
public MessageHorodate(Utilisateur destinataire, Utilisateur source, String Message, int type) {
|
||||
public MessageHorodate(Utilisateur destinataire, Utilisateur source, String message, int type) {
|
||||
this.setDestinataire(destinataire) ;
|
||||
this.setSource(source) ;
|
||||
this.setMessage(Message) ;
|
||||
this.setMessage(message) ;
|
||||
this.setDateHorodatage(new Date());
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter: Date d'horodatage
|
||||
* On modifie le date d'horodatage
|
||||
* <br> On modifie le date d'horodatage
|
||||
* @param d La nouvelle date d'horodatage
|
||||
*/
|
||||
public void setDate(Date d) {
|
||||
this.setDateHorodatage(d);
|
||||
|
|
@ -44,24 +59,24 @@ public class MessageHorodate implements Serializable {
|
|||
|
||||
/**
|
||||
* <p>
|
||||
* Permet de creer une representation string du message
|
||||
* @return Les differents attributs de la classe sous forme de string
|
||||
* Permet de créer une représentation string du message
|
||||
* @return Les différents attributs de la classe sous forme de string
|
||||
* </p>
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
String Msg = "";
|
||||
Msg += ("Destinataire::" + this.getDestinataire() + "\n") ;
|
||||
Msg += ("Source::" + this.getSource()+ "\n") ;
|
||||
Msg += ("Type::"+ this.type+ "\n");
|
||||
Msg += ("Date::" + this.dateToString() + "\n") ;
|
||||
Msg += ("Message::" + this.getMessage() + "\n" );
|
||||
return Msg ;
|
||||
String msg = "";
|
||||
msg += ("Destinataire::" + this.getDestinataire() + "\n") ;
|
||||
msg += ("Source::" + this.getSource()+ "\n") ;
|
||||
msg += ("Type::"+ this.type+ "\n");
|
||||
msg += ("Date::" + this.dateToString() + "\n") ;
|
||||
msg += ("Message::" + this.getMessage() + "\n" );
|
||||
return msg ;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Permet de creer une representation string de la date d'horodatage
|
||||
* Permet de créer une représentation string de la date d'horodatage
|
||||
* @return La date d'horodatage du message en format yyyy/MM/dd HH:mm:ss
|
||||
* </p>
|
||||
*/
|
||||
|
|
@ -73,7 +88,8 @@ public class MessageHorodate implements Serializable {
|
|||
|
||||
/**
|
||||
* <p>
|
||||
* Permet de re creer un message horodate a partir d'un string
|
||||
* Permet de re créer un message horodaté à partir d'un string
|
||||
* @param s Le message permettant de re créer un msg horodaté
|
||||
* @return un messageHorodate
|
||||
* </p>
|
||||
*/
|
||||
|
|
@ -102,7 +118,8 @@ public class MessageHorodate implements Serializable {
|
|||
|
||||
/**
|
||||
* Setter: Utilisateur Source
|
||||
* On modifie l'utilisateur source
|
||||
* <br> On modifie l'utilisateur source
|
||||
* @param source Le nouvel utilisateur source
|
||||
*/
|
||||
public void setSource(Utilisateur source) {
|
||||
this.source = source;
|
||||
|
|
@ -118,7 +135,8 @@ public class MessageHorodate implements Serializable {
|
|||
|
||||
/**
|
||||
* Setter: Utilisateur Destinataire
|
||||
* On modifie l'utilisateur Destinataire
|
||||
* <br> On modifie l'utilisateur Destinataire
|
||||
* @param destinataire Le nouveau destinataire
|
||||
*/
|
||||
public void setDestinataire(Utilisateur destinataire) {
|
||||
this.destinataire = destinataire;
|
||||
|
|
@ -134,7 +152,8 @@ public class MessageHorodate implements Serializable {
|
|||
|
||||
/**
|
||||
* Setter: Message envoye
|
||||
* On modifie le message envoye
|
||||
* <br> On modifie le message envoyé
|
||||
* @param message Nouveau message
|
||||
*/
|
||||
public void setMessage(String message) {
|
||||
Message = message;
|
||||
|
|
@ -149,7 +168,8 @@ public class MessageHorodate implements Serializable {
|
|||
}
|
||||
/**
|
||||
* Setter: 'Type' du message horodate
|
||||
* On modifie l'integer 'Type'
|
||||
* <br> On modifie l'integer 'Type'
|
||||
* @param Type Nouveau type
|
||||
*/
|
||||
public void setType(int Type) {
|
||||
this.type = type;
|
||||
|
|
@ -165,7 +185,8 @@ public class MessageHorodate implements Serializable {
|
|||
|
||||
/**
|
||||
* Setter: Date d'horodatage
|
||||
* On modifie le date.
|
||||
* <br> On modifie le date.
|
||||
* @param dateHorodatage Nouvelle date d'horodatage
|
||||
*/
|
||||
public void setDateHorodatage(Date dateHorodatage) {
|
||||
this.dateHorodatage = dateHorodatage;
|
||||
|
|
|
|||
|
|
@ -6,23 +6,36 @@ import java.net.UnknownHostException;
|
|||
|
||||
/**
|
||||
* <p>
|
||||
* Classe representant un Utilisateur
|
||||
* Un Utilisateur est associe avec un pseudo, un numero de port, une addresse IP ainsi qu'un ID.
|
||||
* Classe representant un Utilisateur.
|
||||
* <br> Un Utilisateur est associé avec :
|
||||
* <br> - un pseudo,
|
||||
* <br> - un numéro de port,
|
||||
* <br> - une addresse IP
|
||||
* <br> - un ID.
|
||||
* </p>
|
||||
*/
|
||||
public class Utilisateur {
|
||||
|
||||
/* Un utilisateur possede un pseudo unique */
|
||||
private String pseudo ;
|
||||
|
||||
/* Un port (utilisé lors de nos premiers tests pour tester le broadcast) */
|
||||
private Integer port;
|
||||
|
||||
/* Un utilisateur est associé à une adresse IP */
|
||||
private final InetAddress ip ;
|
||||
|
||||
/* Chaque utilisateur possede un ID unique */
|
||||
private final String id ;
|
||||
|
||||
Integer TAILLE_MAX = 5;
|
||||
/* La taille maximum d'un ID */
|
||||
Integer TAILLE_MAX = 10;
|
||||
|
||||
/**
|
||||
* Constructeur : Utilisateur
|
||||
* @param pseudo Le pseudo associe
|
||||
* @param port
|
||||
* @param ip
|
||||
* Constructeur : Utilisateur (3 paramètres)
|
||||
* @param pseudo Le pseudo associé
|
||||
* @param port Le port
|
||||
* @param ip L'adresse IP
|
||||
*/
|
||||
public Utilisateur(String pseudo,Integer port, InetAddress ip ){
|
||||
this.setPseudo(pseudo) ;
|
||||
|
|
@ -34,29 +47,74 @@ public class Utilisateur {
|
|||
this.id = aux ;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructeur : Utilisateur (4 paramètres)
|
||||
* @param pseudo Le pseudo associé
|
||||
* @param port Le port
|
||||
* @param ip L'adresse IP
|
||||
* @param id L'id
|
||||
*/
|
||||
public Utilisateur(String pseudo,Integer port, InetAddress ip , String id){
|
||||
this.setPseudo(pseudo) ;
|
||||
this.setPort(port);
|
||||
this.ip = ip ;
|
||||
this.id = id ;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter Pseudo
|
||||
* @return Le pseudo de l'utilisateur
|
||||
*/
|
||||
public String getPseudo() {
|
||||
return pseudo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter Pseudo
|
||||
* @param pseudo Le nouveau pseudo que l'on souhaite
|
||||
*/
|
||||
public void setPseudo(String pseudo) {
|
||||
this.pseudo = pseudo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter Port
|
||||
* @return Le numéro de port de l'utilisateur
|
||||
*/
|
||||
public Integer getPort() {
|
||||
return port;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter Port
|
||||
* @param port Le nouveau numéro de port
|
||||
*/
|
||||
public void setPort(Integer port) {
|
||||
this.port = port;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter IP
|
||||
* @return L'adresse IP de l'utilisateur
|
||||
*/
|
||||
public InetAddress getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter ID
|
||||
* @return L'ID de l'utilisateur
|
||||
*/
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Méthode permettant de convertir un objet Utilisateur en String
|
||||
* <br> Format du string :
|
||||
* <br> pseudo ___ | port ___ | ip ___ | id ___ | ( '___' sont à remplacer par les valeurs réels)
|
||||
* @return L'utilisateur sous forme de String
|
||||
*/
|
||||
@Override
|
||||
public String toString(){
|
||||
String s = "";
|
||||
|
|
@ -67,6 +125,11 @@ public class Utilisateur {
|
|||
return s;
|
||||
}
|
||||
|
||||
/**
|
||||
* Méthode permettant de convertir un string en Utilisateur
|
||||
* @param s Le paramètre String a transformé
|
||||
* @return Un utilisateur
|
||||
*/
|
||||
public static Utilisateur stringToUtilisateur(String s) {
|
||||
String name;
|
||||
Integer port = 0;
|
||||
|
|
@ -79,14 +142,18 @@ public class Utilisateur {
|
|||
id=mots[10];
|
||||
Utilisateur user = null;
|
||||
try {
|
||||
user = new Utilisateur(name,port,InetAddress.getByName(ip.split("/")[1]));
|
||||
user = new Utilisateur(name,port,InetAddress.getByName(ip.split("/")[1]), id);
|
||||
} catch (UnknownHostException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return user;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Méthode permettant de comparer deux utilisateurs entre eux grace à leur ID.
|
||||
* @param u L'utilisateur avec lequel on veut être comparer.
|
||||
* @return True si ils ont le même ID, False sinon.
|
||||
*/
|
||||
public Boolean equals(Utilisateur u) {
|
||||
return this.getId().equals( u.getId() ) ;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,165 @@
|
|||
package chatapp.Protocol;
|
||||
|
||||
import chatapp.Controller.ChatApp;
|
||||
import chatapp.Model.Utilisateur;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URI;
|
||||
import java.net.http.HttpClient;
|
||||
import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.HashMap;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Classe representant les échanges HTTP entre un utilisateur distant et le servlet.
|
||||
* </p>
|
||||
*/
|
||||
public class HttpEchange {
|
||||
|
||||
/* URL de notre serveur de presence */
|
||||
private String url = "http://192.168.1.72:8080/Server_AL_NM/";
|
||||
// private String url = "https://srv-gei-tomcat.insa-toulouse.fr/Server_AL_NM/";
|
||||
//private String url = "https://srv-gei-tomcat.insa-toulouse.fr/Server_AL_NM/";
|
||||
/* True si l'utilisateur peut se connecter avec ce nom d'utilisateur , False sinon */
|
||||
private static boolean connecte = false;
|
||||
|
||||
/* Une instance de chatapp */
|
||||
private ChatApp chatapp;
|
||||
|
||||
/**
|
||||
* <p> Constructeur de la classe HttpEchange</p>
|
||||
* @param chatapp La methode prend toujours en argument un paramètre chatApp associé à un utilisateur.
|
||||
*/
|
||||
public HttpEchange(ChatApp chatapp){
|
||||
this.chatapp = chatapp;
|
||||
this.url = (String) chatapp.getConfigJSON().get("ServeurURL");
|
||||
}
|
||||
|
||||
/**
|
||||
* <p> Cette méthode permet de communiquer avec le servlet grâce à des requetes http de type Post.</p>
|
||||
* @param type Le type de message ("Connexion", "Changement de pseudo" , "Deconnexion") ainsi que les parametres associés
|
||||
* @return True ou False selon la réponse a chaque type de message envoyé.
|
||||
* @throws IOException
|
||||
* @throws InterruptedException
|
||||
*/
|
||||
public boolean sendPost(String type) throws IOException, InterruptedException{
|
||||
boolean reussi = false ;
|
||||
/*---------------------------------CONNEXION---------------------------------*/
|
||||
if (type.equals("Connexion")){
|
||||
System.out.println("Tentative de connexion distante");
|
||||
HttpClient client = HttpClient.newHttpClient();
|
||||
String requestBody = "Connexion\n" + this.chatapp.getMe().toString() ;
|
||||
HttpRequest request = HttpRequest.newBuilder()
|
||||
.uri(URI.create(url))
|
||||
.POST(HttpRequest.BodyPublishers.ofString(requestBody))
|
||||
.build();
|
||||
|
||||
HttpResponse<String> response = client.send(request,
|
||||
HttpResponse.BodyHandlers.ofString());
|
||||
|
||||
/* Partie réponse du servlet */
|
||||
if(response.body().equals("")){
|
||||
System.out.println("Reponse recue vide");
|
||||
}
|
||||
else {
|
||||
switch (response.body().split("\n")[0]){
|
||||
case "Reponse Connexion":
|
||||
reussi = Boolean.parseBoolean(response.body().split("\n")[1]);
|
||||
System.out.println("Connexion acceptee");
|
||||
int max = response.body().split("\n").length ;
|
||||
if (max > 2 ){
|
||||
for (int i = 2 ; i < max ; i++){
|
||||
String suite = response.body().split("\n")[i];
|
||||
// Le server nous envoie les utilisateurs connectés en local ou à distance
|
||||
if (!suite.equals("")){
|
||||
System.out.println(suite);
|
||||
this.chatapp.getActifUsers().addList(Utilisateur.stringToUtilisateur(suite));
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
System.out.println("Erreur dans le format de la réponse reçue");
|
||||
}
|
||||
}
|
||||
}
|
||||
/*---------------------------------DECONNEXION---------------------------------*/
|
||||
else if(type.equals("Deconnexion")){
|
||||
System.out.println("Tentative de deconnexion distante");
|
||||
HttpClient client = HttpClient.newHttpClient();
|
||||
String requestBody = "Deconnexion\n" + this.chatapp.getMe().toString() ;
|
||||
HttpRequest request = HttpRequest.newBuilder()
|
||||
.uri(URI.create(url))
|
||||
.POST(HttpRequest.BodyPublishers.ofString(requestBody))
|
||||
.build();
|
||||
|
||||
HttpResponse<String> response = client.send(request,
|
||||
HttpResponse.BodyHandlers.ofString());
|
||||
|
||||
/* Partie réponse du servlet */
|
||||
if(response.body().equals("")){
|
||||
System.out.println("Reponse recue vide");
|
||||
}
|
||||
else {
|
||||
System.out.println(response.body());
|
||||
if(response.body().contains("Deconnexion")){
|
||||
reussi = true;
|
||||
System.out.println("Deconnexion acceptee");
|
||||
}
|
||||
}
|
||||
}
|
||||
/*---------------------------------PSEUDO---------------------------------*/
|
||||
/*---------------------------Le nouveau pseudo----------------------------*/
|
||||
else if(type.contains("Pseudo")){
|
||||
String nouveau = type.split(" ")[1];
|
||||
System.out.println("Tentative de modification de pseudo d'un hote distant");
|
||||
HttpClient client = HttpClient.newHttpClient();
|
||||
String requestBody = "Pseudo\n" + this.chatapp.getMe().toString() + "\n" + nouveau;
|
||||
HttpRequest request = HttpRequest.newBuilder()
|
||||
.uri(URI.create(url))
|
||||
.POST(HttpRequest.BodyPublishers.ofString(requestBody))
|
||||
.build();
|
||||
|
||||
HttpResponse<String> response = client.send(request,
|
||||
HttpResponse.BodyHandlers.ofString());
|
||||
|
||||
/* Partie réponse du servlet */
|
||||
if(response.body().equals("")){
|
||||
System.out.println("Reponse recue vide");
|
||||
}
|
||||
else {
|
||||
System.out.println(response.body());
|
||||
switch (response.body().split("\n")[0]) {
|
||||
case "Reponse Pseudo":
|
||||
reussi = Boolean.parseBoolean(response.body().split("\n")[1]);
|
||||
System.out.println("Connexion acceptee");
|
||||
break;
|
||||
default:
|
||||
System.out.println("Erreur dans le format de la réponse reçue");
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
System.out.println("Erreur de type");
|
||||
}
|
||||
return reussi;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Getter : Connecte
|
||||
* @return Le boolean connecté (True s'il peut se connecter avec ce nom d'utilisateur , False sinon)
|
||||
*/
|
||||
public static Boolean getConnecte() {
|
||||
return connecte;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter : Connecte
|
||||
* @param value La nouvelle valeur du boolean de connexion
|
||||
*/
|
||||
public static void setConnecte(Boolean value) {
|
||||
connecte = value ;
|
||||
}
|
||||
}
|
||||
|
|
@ -11,14 +11,17 @@ import java.util.ArrayList;
|
|||
/**
|
||||
* <p>
|
||||
* Classe permettant de gérer les multiples connexions en TCP.
|
||||
* Extend la classe Thread.
|
||||
* <br> Extend la classe Thread.
|
||||
* </p>
|
||||
*/
|
||||
public class RunnerEcouteTCP extends Thread {
|
||||
/* Une instance de ChaAapp */
|
||||
public ChatApp app ;
|
||||
|
||||
private PropertyChangeSupport pcs;
|
||||
// on conserve les sessions actives dans un attribut liste
|
||||
private ArrayList<SessionClavardage> ListeSessions = new ArrayList<>();
|
||||
|
||||
/* on conserve les sessions actives dans un attribut liste */
|
||||
private ArrayList<SessionClavardage> listeSessions = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* Constructeur
|
||||
|
|
@ -31,8 +34,8 @@ public class RunnerEcouteTCP extends Thread {
|
|||
}
|
||||
|
||||
/**
|
||||
* Permet aux classes qui appelle cette methode de connecter un PropertyChangeListener au PropertyChangeSupport
|
||||
* @param pcl le propertyChangeListener qui va ecouter les evenements du propertyChangeSupport associe
|
||||
* Permet aux classes qui appellent cette methode de connecter un PropertyChangeListener au PropertyChangeSupport
|
||||
* @param pcl Le propertyChangeListener qui va ecouter les evenements du propertyChangeSupport associe
|
||||
*/
|
||||
public void addPropertyChangeListener(PropertyChangeListener pcl) {
|
||||
this.pcs.addPropertyChangeListener("NouvelleSession",pcl);
|
||||
|
|
@ -40,7 +43,7 @@ public class RunnerEcouteTCP extends Thread {
|
|||
|
||||
/**
|
||||
* <p>
|
||||
* Methode pour qu'un objet de la classe ChatApp soit constamment en a l'ecoute de potentielles connexions
|
||||
* Methode pour qu'un objet de la classe ChatApp soit constamment en a l'écoute de potentielles connexions
|
||||
* @param app L'utilisateur en ecoute de potentielles communications
|
||||
* </p>
|
||||
*/
|
||||
|
|
@ -54,7 +57,7 @@ public class RunnerEcouteTCP extends Thread {
|
|||
System.out.println("Attente Session de clavardage");
|
||||
Socket link = ss.accept(); // Blocante
|
||||
SessionClavardage session = new SessionClavardage(link,app);
|
||||
this.ListeSessions.add(session);
|
||||
this.listeSessions.add(session);
|
||||
pcs.firePropertyChange("NouvelleSession",false,true);
|
||||
}
|
||||
}
|
||||
|
|
@ -64,25 +67,25 @@ public class RunnerEcouteTCP extends Thread {
|
|||
}
|
||||
|
||||
/**
|
||||
* Methode permettant d'ajouter une session active dans la liste 'ListeSessions'
|
||||
* Méthode permettant d'ajouter une session active dans la liste 'ListeSessions'
|
||||
* @param session Session Active que l'on souhaite rajouter
|
||||
*/
|
||||
public void addSession(SessionClavardage session){
|
||||
this.ListeSessions.add(session);
|
||||
this.listeSessions.add(session);
|
||||
pcs.firePropertyChange("NouvelleSession",false,true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Methode permettant de recupere la derniere session de clavardage creee dans 'ListeSessions'
|
||||
* Méthode permettant de recupérer la derniere session de clavardage créée dans 'ListeSessions'
|
||||
* @return Premiere Session Active
|
||||
*/
|
||||
public SessionClavardage getSessionClavardage() {
|
||||
return(this.ListeSessions.remove(0));
|
||||
return(this.listeSessions.remove(0));
|
||||
}
|
||||
|
||||
/**
|
||||
* Methode qui vient ecraser la méthode run de la classe Thread.
|
||||
* La méthode 'ecouteTCP' est appele.
|
||||
* Méthode qui vient écraser la méthode run de la classe Thread.
|
||||
* La méthode 'ecouteTCP' est appelé.
|
||||
*/
|
||||
@Override
|
||||
public void run() {
|
||||
|
|
|
|||
|
|
@ -5,22 +5,22 @@ import chatapp.Controller.ChatApp;
|
|||
/**
|
||||
* <p>
|
||||
* Classe permettant de gérer les multiples connexions en UDP.
|
||||
* Extend la classe Thread.
|
||||
* <br> Extend la classe Thread.
|
||||
* </p>
|
||||
*/
|
||||
public class RunnerEcouteUDP extends Thread {
|
||||
ChatApp app ;
|
||||
/**
|
||||
* Constructeur
|
||||
* @param app Un RunnerEcouteUDP est toujours associé a une application de Chat
|
||||
* @param app Un RunnerEcouteUDP est toujours associé à une application de Chat
|
||||
*/
|
||||
public RunnerEcouteUDP(ChatApp app) {
|
||||
this.app = app ;
|
||||
}
|
||||
|
||||
/**
|
||||
* Methode qui vient ecraser la méthode run de la classe Thread.
|
||||
* La méthode 'ecouteUDP' est appele.
|
||||
* Méthode qui vient ecraser la méthode run de la classe Thread.
|
||||
* <br> La méthode 'ecouteUDP' est appelé.
|
||||
*/
|
||||
@Override
|
||||
public void run() {
|
||||
|
|
|
|||
|
|
@ -1,73 +1,79 @@
|
|||
package chatapp.Protocol;
|
||||
|
||||
import java.beans.PropertyChangeListener;
|
||||
import java.beans.PropertyChangeSupport;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.ObjectInputStream;
|
||||
import java.io.ObjectOutputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.net.Socket;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import chatapp.Controller.ChatApp;
|
||||
import chatapp.Model.DataBase;
|
||||
import chatapp.Model.MessageHorodate;
|
||||
import chatapp.Model.Utilisateur;
|
||||
import chatapp.View.FenetreSession;
|
||||
import javafx.application.Platform;
|
||||
|
||||
import java.beans.PropertyChangeListener;
|
||||
import java.beans.PropertyChangeSupport;
|
||||
import java.io.IOException;
|
||||
import java.io.ObjectInputStream;
|
||||
import java.io.ObjectOutputStream;
|
||||
import java.net.Socket;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Classe représentant une session de clavrdage.
|
||||
* La classe hérite de la classe Thread et dispose de 2 constructeurs selon que l'on initie une demande de session ou que l'on recoit une demande.
|
||||
* Elle possède en attribut:
|
||||
* link: la socket associée à la session de clavardage
|
||||
* u2: l'utilisateur avec lequel on communique
|
||||
* out: le flux de donnees sortant
|
||||
* in: le flux de donnees entrant
|
||||
* pcs: Le PropertyChangeSupport permettant d'envoyer les notifications de MessageRecu et de FindeSession
|
||||
* derniersMsg: la liste temporaire des derniers messages recus
|
||||
* Classe représentant une session de clavardage.
|
||||
* <br> La classe hérite de la classe Thread et dispose de 2 constructeurs selon que l'on initie une demande de session ou que l'on recoit une demande.
|
||||
* <br> Elle possède en attribut:
|
||||
* <br> - link : la socket associée à la session de clavardage
|
||||
* <br> - app : L'instance de chatapp
|
||||
* <br> - u2: l'utilisateur avec lequel on communique
|
||||
* <br> - out: le flux de donnees sortant
|
||||
* <br> - in: le flux de donnees entrant
|
||||
* <br> - pcs: Le PropertyChangeSupport permettant d'envoyer les notifications de MessageRecu et de FindeSession
|
||||
* <br> - derniersMsg: la liste temporaire des derniers messages recus
|
||||
* </p>
|
||||
*/
|
||||
public class SessionClavardage extends Thread {
|
||||
|
||||
/* la socket associée à la session de clavardage */
|
||||
private Socket link;
|
||||
|
||||
/* L'instance de chatapp */
|
||||
private ChatApp app;
|
||||
|
||||
/* l'utilisateur avec lequel on communique */
|
||||
private Utilisateur u2;
|
||||
|
||||
/* le flux de donnees sortant */
|
||||
private ObjectOutputStream out;
|
||||
|
||||
/* le flux de donnees entrant */
|
||||
private ObjectInputStream in;
|
||||
|
||||
/* Le PropertyChangeSupport permettant d'envoyer les notifications de MessageRecu et de FindeSession */
|
||||
private PropertyChangeSupport pcs;
|
||||
private ArrayList<MessageHorodate> derniersMsg; // on met temporairement les derniers msgs pour éviter les pb de synchro inter-threads
|
||||
private int SessionID;
|
||||
|
||||
/* On met temporairement les derniers msgs pour éviter les pb de synchro inter-threads */
|
||||
private ArrayList<MessageHorodate> derniersMsg;
|
||||
|
||||
/**
|
||||
* <p> Ce constructeur crée une session de clavardage quand on recoit une requete</p>
|
||||
* @param link la socket associee a la requete TCP que l'on a recu
|
||||
* @param app l'instance de chatapp
|
||||
* @param link La socket associee a la requete TCP que l'on a recu
|
||||
* @param app L'instance de chatapp
|
||||
*/
|
||||
public SessionClavardage(Socket link, ChatApp app) {
|
||||
this.setLink(link);
|
||||
this.setApp(app);
|
||||
try {
|
||||
this.setU2(app.getActifUsers().getIPList(link.getInetAddress()));
|
||||
this.setOut(new ObjectOutputStream(link.getOutputStream()));
|
||||
this.setIn(new ObjectInputStream(link.getInputStream()));
|
||||
}catch(Exception e) {
|
||||
e.getStackTrace();
|
||||
}
|
||||
this.derniersMsg = new ArrayList<MessageHorodate>();
|
||||
this.SessionID = 2;
|
||||
Platform.runLater( () ->
|
||||
new FenetreSession(this)
|
||||
);
|
||||
this.derniersMsg = new ArrayList<>();
|
||||
this.pcs = new PropertyChangeSupport(this);
|
||||
this.start();
|
||||
}
|
||||
|
||||
/**
|
||||
* <p> Le constructeur associe a l'envoi d'une requete TCP, lorsque que l'on veut initier une session de clavardage avec un utilisateur connecte</p>
|
||||
* @param u2 l'utilisateur avec qui l'on souhaite démarrer une session de clavardage
|
||||
* @param app l'instance de chataap associee
|
||||
* @param u2 L'utilisateur avec qui l'on souhaite démarrer une session de clavardage
|
||||
* @param app L'instance de chataap associee
|
||||
*/
|
||||
public SessionClavardage(Utilisateur u2, ChatApp app) {
|
||||
this.setU2(u2);
|
||||
|
|
@ -81,9 +87,10 @@ public class SessionClavardage extends Thread {
|
|||
|
||||
e.printStackTrace();
|
||||
}
|
||||
this.derniersMsg = new ArrayList<MessageHorodate>();
|
||||
this.derniersMsg = new ArrayList<>();
|
||||
this.pcs = new PropertyChangeSupport(this);
|
||||
this.start();
|
||||
this.initierSession();
|
||||
Platform.runLater( () ->
|
||||
new FenetreSession(this)
|
||||
);
|
||||
|
|
@ -91,7 +98,7 @@ public class SessionClavardage extends Thread {
|
|||
|
||||
/**
|
||||
* Permet aux PropertyChangeListener de s'abonner aux notifications des evenements
|
||||
* @param pcl le PropertyListener qui souhaite s'abonner sur ce PropertyChangeSupport
|
||||
* @param pcl Le PropertyListener qui souhaite s'abonner sur ce PropertyChangeSupport
|
||||
*/
|
||||
public void addPropertyChangeListener(PropertyChangeListener pcl){
|
||||
this.pcs.addPropertyChangeListener("MessageRecu",pcl);
|
||||
|
|
@ -106,20 +113,39 @@ public class SessionClavardage extends Thread {
|
|||
try {
|
||||
getOut().writeObject(msgh.toString());
|
||||
} catch (IOException e) {
|
||||
//e.printStackTrace();
|
||||
e.printStackTrace();
|
||||
}
|
||||
finally {
|
||||
try {
|
||||
link.close();
|
||||
} catch (IOException e) {
|
||||
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <p> Methode permettant d'initier une session de clavardage et de prevenir l'autre utilisateur du debut de la session</p>
|
||||
*/
|
||||
public void initierSession(){
|
||||
String isExterne = "false";
|
||||
if(this.app.isExterne()){
|
||||
isExterne="true"; // on indiquera dans le message si l'on est externe ou interne
|
||||
}
|
||||
System.out.println("Ajout d'un utilisateur dans communication");
|
||||
app.listeCommunication.add(getU2().getId());
|
||||
System.out.println(app.listeCommunication.size());
|
||||
MessageHorodate msgh = new MessageHorodate(getU2(),getApp().getMe(),isExterne,3);
|
||||
try {
|
||||
getOut().writeObject(msgh.toString());
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Methode transformant prenant un string pour le transmettre sous la forme d'un message horodate a l'utilisateur distant
|
||||
* @param msg le texte du message a envoyer
|
||||
* @param msg Le texte du message à envoyer
|
||||
*/
|
||||
public void envoiMsg(String msg) {
|
||||
MessageHorodate msgh = new MessageHorodate(getU2(),getApp().getMe(),msg,1);
|
||||
|
|
@ -134,8 +160,8 @@ public class SessionClavardage extends Thread {
|
|||
|
||||
/**
|
||||
* <p> Methode permettant de recuperer le dernier message recu qui a ete mis dans la liste des messages recus.
|
||||
* Utilisee par l'interface graphique qui a ete avertie grace au PropertyChangeSupport</p>
|
||||
* @return le dernier message horodate recu
|
||||
* <br> Utilisée par l'interface graphique qui a ete avertie grace au PropertyChangeSupport</p>
|
||||
* @return Le dernier message horodate recu
|
||||
*/
|
||||
public MessageHorodate getDernierMsg() {
|
||||
return this.derniersMsg.remove(0);
|
||||
|
|
@ -146,19 +172,21 @@ public class SessionClavardage extends Thread {
|
|||
* <p> Methode lancee par le thread, permet de receptionner les messages horodates recus et d'agir en conséquence selon le type de message recu</p>
|
||||
*/
|
||||
public void run() {
|
||||
String plaintext = null;
|
||||
String plaintext;
|
||||
MessageHorodate msg = null;
|
||||
System.out.println("Session demarre");
|
||||
app.getDb().CreationTableHistorique(app.getMe().getId(), u2.getId());
|
||||
app.getDb().creationTableHistorique(app.getMe().getId(), u2.getId());
|
||||
while(true) {
|
||||
try {
|
||||
plaintext = (String) getIn().readObject();
|
||||
System.out.println("Message reçu");
|
||||
msg = MessageHorodate.stringToMessageHorodate(plaintext);
|
||||
|
||||
System.out.println(msg.getMessage());
|
||||
} catch (ClassNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
} catch (IOException e) {
|
||||
pcs.firePropertyChange("FinDeLaSession", false, true);
|
||||
app.listeCommunication.remove(u2.getId());
|
||||
break;
|
||||
}
|
||||
if(msg.getType() == 2) {
|
||||
|
|
@ -168,92 +196,93 @@ public class SessionClavardage extends Thread {
|
|||
} catch (IOException e) {
|
||||
break;
|
||||
}
|
||||
app.listeCommunication.remove(u2.getId());
|
||||
break;
|
||||
}
|
||||
else if(msg.getType() == 3) {
|
||||
System.out.println("Session Initiee");
|
||||
this.u2 = msg.getSource() ;
|
||||
app.listeCommunication.add(u2.getId());
|
||||
Platform.runLater( () ->
|
||||
new FenetreSession(this)
|
||||
);
|
||||
}
|
||||
else{
|
||||
derniersMsg.add(msg);
|
||||
pcs.firePropertyChange("MessageRecu",false,true);
|
||||
|
||||
pcs.firePropertyChange("MessageRecu",false,true);}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter
|
||||
* @return le flux d'ecriture des messages sortant
|
||||
* Getter : Out
|
||||
* @return Le flux d'ecriture des messages sortant
|
||||
*/
|
||||
public ObjectOutputStream getOut() {
|
||||
return out;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter
|
||||
* @param out le flux d'ecriture des messages sortant
|
||||
* Setter : Out
|
||||
* @param out Le flux d'ecriture des messages sortant
|
||||
*/
|
||||
public void setOut(ObjectOutputStream out) {
|
||||
this.out = out;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter
|
||||
* @return le flux de lecture des messages entrant
|
||||
* Getter : In
|
||||
* @return Le flux de lecture des messages entrant
|
||||
*/
|
||||
public ObjectInputStream getIn() {
|
||||
return in;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter
|
||||
* @param in le flux de lecture des messages entrant
|
||||
* Setter : In
|
||||
* @param in Le flux de lecture des messages entrant
|
||||
*/
|
||||
public void setIn(ObjectInputStream in) {
|
||||
this.in = in;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter
|
||||
* @param link la Socket asscciee a la connexion TCP et donc a la session
|
||||
* Setter : Link
|
||||
* @param link La Socket asscciee a la connexion TCP et donc a la session
|
||||
*/
|
||||
public void setLink(Socket link) {
|
||||
this.link = link;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter
|
||||
* @return l'instance de chatApp
|
||||
* Getter : chatApp
|
||||
* @return L'instance de chatApp
|
||||
*/
|
||||
public ChatApp getApp() {
|
||||
return app;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter
|
||||
* @param app l'instance de chatApp
|
||||
* Setter : chatApp
|
||||
* @param app L'instance de chatApp
|
||||
*/
|
||||
public void setApp(ChatApp app) {
|
||||
this.app = app;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter
|
||||
* @return l'utilisateur avec lequel on communique
|
||||
* Getter : Utilisateur 2
|
||||
* @return L'utilisateur avec lequel on communique
|
||||
*/
|
||||
public Utilisateur getU2() {
|
||||
return u2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter
|
||||
* @param u2 l'utilisateur avec lequel on communique
|
||||
* Setter : Utilisateur 2
|
||||
* @param u2 L'utilisateur avec lequel on communique
|
||||
*/
|
||||
public void setU2(Utilisateur u2) {
|
||||
this.u2 = u2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter
|
||||
* @return SessionID
|
||||
*/
|
||||
public int getSessionID() {
|
||||
return SessionID;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,25 +19,24 @@ import chatapp.Controller.*;
|
|||
import chatapp.Model.*;
|
||||
/**
|
||||
* <p>
|
||||
* Classe representant les echanges UDP entre utilisateurs.
|
||||
* Classe representant les échanges UDP entre utilisateurs.
|
||||
* </p>
|
||||
*/
|
||||
public class UDPEchange {
|
||||
|
||||
/* True si l'utilisateur peut se connecter avec ce nom d'utilisateur , False sinon */
|
||||
private static Boolean Connecte = true;
|
||||
// True si l'utilisateur peut se connecter avec ce nom d'utilisateur , False sinon
|
||||
|
||||
private static Boolean EcouteEnCours = false;
|
||||
/**
|
||||
* Getter
|
||||
* @return le boolean connecte (True s'il peut se connecter avec ce nom d'utilisateur , False sinon)
|
||||
* Getter : Connecte
|
||||
* @return Le boolean connecte (True s'il peut se connecter avec ce nom d'utilisateur , False sinon)
|
||||
*/
|
||||
public static Boolean getConnecte() {
|
||||
return Connecte;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter
|
||||
* Setter : Connecte
|
||||
* @param value La nouvelle valeur du boolean de connexion
|
||||
*/
|
||||
public static void setConnecte(Boolean value) {
|
||||
|
|
@ -48,27 +47,27 @@ public class UDPEchange {
|
|||
// True si l'utilisateur a (ou demande) un pseudo valide , False sinon
|
||||
|
||||
/**
|
||||
* Getter
|
||||
* @return le boolean PseudoValide (True s'il peut utiliser ce pseudo , False sinon)
|
||||
* Getter : Pseudo Valide
|
||||
* @return Le boolean PseudoValide (True s'il peut utiliser ce pseudo , False sinon)
|
||||
*/
|
||||
public static Boolean getPseudoValide() {
|
||||
return PseudoValide;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter
|
||||
* Setter : PseudoValise
|
||||
* @param value La nouvelle valeur du boolean concernant le pseudo valide
|
||||
*/
|
||||
public static void setPseudoValide(Boolean value) {
|
||||
PseudoValide = value ;
|
||||
}
|
||||
|
||||
|
||||
/**<p>
|
||||
* Permet de recuperer l'adresse de l'hote sur le reseau au format IPv4.
|
||||
* Si plusieurs adresses sont disponibles (plusieurs cartes réseaux), choisit la premiere trouvee
|
||||
* Getter : Ip
|
||||
* <br>Permet de recuperer l'adresse de l'hote sur le reseau au format IPv4.
|
||||
* <br> Si plusieurs adresses sont disponibles (plusieurs cartes réseaux), choisit la premiere trouvée
|
||||
* </p>
|
||||
* @return l'adresse IP au format IPv4
|
||||
* @return L'adresse IP au format IPv4
|
||||
*/
|
||||
public static InetAddress getCurrentIp() {
|
||||
try {
|
||||
|
|
@ -92,16 +91,17 @@ public class UDPEchange {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Méthode permettant d'envoyer un message à tout les utilisateurs
|
||||
* a l'aide du protocole UDP
|
||||
* Méthode permettant d'envoyer un message à tout les utilisateurs à l'aide du protocole UDP
|
||||
* </p>
|
||||
* @param broadcastMessage correspond au message a transmettre aux utilisateurs
|
||||
* @param broadcastMessage Message à transmettre aux utilisateurs
|
||||
* @throws IOException
|
||||
*/
|
||||
public static void EnvoiBroadcast(String broadcastMessage) throws IOException {
|
||||
public static void envoiBroadcast(String broadcastMessage) throws IOException {
|
||||
int port = 1234 ;
|
||||
// Envoie en broadcast à tous les utilsateurs
|
||||
// Envoie en broadcast à tous les utilisateurs
|
||||
for (InetAddress broadcastAddr : listAllBroadcastAddresses()) {
|
||||
DatagramSocket socket = new DatagramSocket();
|
||||
socket.setBroadcast(true);
|
||||
|
|
@ -121,13 +121,11 @@ public class UDPEchange {
|
|||
|
||||
/**
|
||||
* <p>
|
||||
* Methode permettant la reception de messages d'utilisateurs
|
||||
* a l'aide du protocole UDP
|
||||
* Methode permettant la reception de messages d'utilisateurs à l'aide du protocole UDP
|
||||
* </p>
|
||||
* @param app L'application de chat de l'utilisateur qui receptionne le message
|
||||
*/
|
||||
public static void ecouteUDP(ChatApp app)
|
||||
{
|
||||
public static void ecouteUDP(ChatApp app) {
|
||||
DatagramSocket socket = null;
|
||||
ExecutorService exec = Executors.newFixedThreadPool(1000);
|
||||
try {
|
||||
|
|
@ -145,7 +143,7 @@ public class UDPEchange {
|
|||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
// Un thread est lance à chaque reception d'un message
|
||||
// Un thread est lance à chaque reception d'un message
|
||||
System.out.println("Message recu!");
|
||||
exec.submit(new RunnerUDP(data,app));
|
||||
}
|
||||
|
|
@ -153,29 +151,32 @@ public class UDPEchange {
|
|||
|
||||
/**
|
||||
* <p>
|
||||
* Methode permettant d'envoyer un message a utilisateur en particulier
|
||||
* Méthode permettant d'envoyer un message a utilisateur en particulier
|
||||
* a l'aide du protocole UDP
|
||||
* </p>
|
||||
* @param Adress l'addresse de l'utilisateur
|
||||
* @param Message correspond au message à transmettre a l'utilisateur
|
||||
* @param address L'adresse IP de l'utilisateur
|
||||
* @param message Message message à transmettre a l'utilisateur
|
||||
* @throws IOException
|
||||
*/
|
||||
public static void envoiUnicast( InetAddress Adress , String Message ) throws IOException {
|
||||
DatagramSocket socket = new DatagramSocket();
|
||||
byte[]buffer = Message.getBytes();
|
||||
DatagramPacket packet = new DatagramPacket( buffer, buffer.length, Adress, 1234 );
|
||||
socket.send(packet);
|
||||
socket.close();
|
||||
System.out.println("***********Message envoye***********");
|
||||
System.out.println("Dest Ip: " + Adress.toString());
|
||||
System.out.println("Dest port: " + String.valueOf(1234));
|
||||
System.out.println("Contenu: ");
|
||||
System.out.println(Message);
|
||||
System.out.println("************************************");
|
||||
public static void envoiUnicast( InetAddress address , String message ) throws IOException {
|
||||
if (ChatApp.getInstance().isConnecte()){
|
||||
DatagramSocket socket = new DatagramSocket();
|
||||
byte[]buffer = message.getBytes();
|
||||
DatagramPacket packet = new DatagramPacket( buffer, buffer.length, address, 1234 );
|
||||
socket.send(packet);
|
||||
socket.close();
|
||||
System.out.println("***********Message envoye***********");
|
||||
System.out.println("Dest Ip: " + address.toString());
|
||||
System.out.println("Dest port: " + String.valueOf(1234));
|
||||
System.out.println("Contenu: ");
|
||||
System.out.println(message);
|
||||
System.out.println("************************************");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Methode permettant de recuperer la liste des adresses de broadcast, chacune associer à une interface de la machine
|
||||
* Methode permettant de recuperer la liste des adresses de broadcast, chacune associer à une interface de la machine
|
||||
* </p>
|
||||
*/
|
||||
static List<InetAddress> listAllBroadcastAddresses() throws SocketException {
|
||||
|
|
@ -204,13 +205,18 @@ public class UDPEchange {
|
|||
/**
|
||||
* <p>
|
||||
* Classe implementant l'interface Runnable.
|
||||
* Contient les traitements a executer dans un thread lancer par des methodes de la class UDPEchange
|
||||
* <br> Contient les traitements a executer dans un thread lancer par des méthodes de la class UDPEchange
|
||||
* </p>
|
||||
*/
|
||||
class RunnerUDP implements Runnable {
|
||||
final DatagramPacket data ;
|
||||
ChatApp app ;
|
||||
|
||||
/**
|
||||
* Constructeur RunnerUDP
|
||||
* @param data Un datagramPacket
|
||||
* @param app Instance de chatapp
|
||||
*/
|
||||
public RunnerUDP(DatagramPacket data, ChatApp app) {
|
||||
this.data= data;
|
||||
this.app = app ;
|
||||
|
|
@ -219,7 +225,7 @@ class RunnerUDP implements Runnable {
|
|||
/**
|
||||
* <p>
|
||||
* Methode qui redefinie les traitements qui seront executes dans le thread:
|
||||
* Met à jour la liste des utilisateurs actifs
|
||||
* <br> Met à jour la liste des utilisateurs actifs
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
|
|
@ -247,10 +253,14 @@ class RunnerUDP implements Runnable {
|
|||
reponse += "false\n";
|
||||
}
|
||||
else {
|
||||
System.out.println("Ajout d'un nouvel utilisateur dans la liste des Utilisateurs");
|
||||
( app.getActifUsers() ).addList(u);
|
||||
reponse += "true\n";
|
||||
|
||||
if(!u.getPseudo().equals("root")){
|
||||
System.out.println("Ajout d'un nouvel utilisateur dans la liste des Utilisateurs");
|
||||
( app.getActifUsers() ).addList(u);
|
||||
reponse += "true\n";
|
||||
}
|
||||
else{
|
||||
System.out.println("Non ajout de root dans la liste");
|
||||
}
|
||||
}
|
||||
reponse += app.getMe().toString();
|
||||
|
||||
|
|
@ -271,11 +281,27 @@ class RunnerUDP implements Runnable {
|
|||
//*******************************************************************************************************
|
||||
|
||||
if (Type.equals("Reponse Connexion")) { // Un utilisateur te repond suite à ta demande de connexion
|
||||
|
||||
if((received.split("\n")[1]).equals("true")) {
|
||||
Utilisateur u = Utilisateur.stringToUtilisateur(received.split("\n")[2]);
|
||||
app.getActifUsers().addList(u);
|
||||
app.getActifUsers().afficherListeUtilisateurs();
|
||||
Utilisateur u = Utilisateur.stringToUtilisateur(received.split("\n")[2]);
|
||||
if(!u.getPseudo().equals("root")) { // on ajoute jamais root c'est le server
|
||||
app.getActifUsers().addList(u);
|
||||
app.getActifUsers().afficherListeUtilisateurs();
|
||||
}
|
||||
else{
|
||||
System.out.println("Le serveur nous a repondu");
|
||||
int max = received.split("\n").length ;
|
||||
if (max > 3 ){
|
||||
for (int i = 3 ; i < max ; i++){
|
||||
String suite = received.split("\n")[i];
|
||||
// Le server nous envoie les utilisateurs connectés en local ou à distance
|
||||
if (!suite.equals("")){
|
||||
app.getActifUsers().addList(Utilisateur.stringToUtilisateur(suite));
|
||||
System.out.println("root m'a transmis les infos de l'utilisateur " +Utilisateur.stringToUtilisateur(suite).toString() );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
System.out.println("Pseudo deja pris");
|
||||
|
|
@ -290,19 +316,19 @@ class RunnerUDP implements Runnable {
|
|||
//*******************************************************************************************************************
|
||||
|
||||
if (Type.equals("Demande Modification Pseudo")) {
|
||||
Utilisateur Source = Utilisateur.stringToUtilisateur(received.split("\n")[1]);
|
||||
if (! Source.equals(this.app.getMe())) { // On envoit en broadcast mais on ne souhaite pas recevoir de message de nous même
|
||||
Utilisateur source = Utilisateur.stringToUtilisateur(received.split("\n")[1]);
|
||||
if (! source.equals(this.app.getMe())) { // On envoit en broadcast mais on ne souhaite pas recevoir de message de nous même
|
||||
String nouveau = received.split("\n")[2] ;
|
||||
String Message = "";
|
||||
String message = "";
|
||||
if(( app.getActifUsers() ).verifierUnicite(nouveau)) {
|
||||
Message = "Bon Choix Pseudo\n" + nouveau ;
|
||||
message = "Bon Choix Pseudo\n" + nouveau ;
|
||||
}
|
||||
else {
|
||||
Message = "Mauvais Choix Pseudo\n" ;
|
||||
message = "Mauvais Choix Pseudo\n" ;
|
||||
}
|
||||
System.out.println(Message);
|
||||
System.out.println(message);
|
||||
try {
|
||||
UDPEchange.envoiUnicast(Source.getIp(),Message);
|
||||
UDPEchange.envoiUnicast(source.getIp(),message);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
@ -315,15 +341,18 @@ class RunnerUDP implements Runnable {
|
|||
//************************************************************************************************************
|
||||
|
||||
if (Type.equals("Modification pseudo reussi")) {
|
||||
Utilisateur Source = Utilisateur.stringToUtilisateur(received.split("\n")[1]);
|
||||
if (! Source.equals(this.app.getMe())) { // On envoit en broadcast mais on ne souhaite pas recevoir de message de nous même
|
||||
Utilisateur source = Utilisateur.stringToUtilisateur(received.split("\n")[1]);
|
||||
if (! source.equals(this.app.getMe())) { // On envoit en broadcast mais on ne souhaite pas recevoir de message de nous même
|
||||
String nouveau = received.split("\n")[2] ;
|
||||
if(app.getActifUsers().appartient(Source)) { // On verifie d'abord que Source appartient bien a la liste des utilisateurs actifs
|
||||
app.getActifUsers().modifierList(Source.getPseudo(), nouveau);
|
||||
}
|
||||
{
|
||||
System.out.println("Je rentre ici");
|
||||
if(app.getActifUsers().appartient(source)) { // On verifie d'abord que Source appartient bien a la liste des utilisateurs actifs
|
||||
System.out.println(source.getPseudo() + " va etre changer en : " + nouveau);
|
||||
app.getActifUsers().modifierList(source.getPseudo(), nouveau);
|
||||
} else {
|
||||
System.out.println(source.getPseudo() + " va etre ajouter en : " + nouveau);
|
||||
// Suite a une perte d'un message lors d'une connexion l'utilisateur Source n'apparait pas dans la liste
|
||||
app.getActifUsers().addList(Source);
|
||||
source.setPseudo(nouveau);
|
||||
app.getActifUsers().addList(source);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -356,9 +385,15 @@ class RunnerUDP implements Runnable {
|
|||
if (Type.equals("Deconnexion")) {
|
||||
( app.getActifUsers() ).supprimerList(Utilisateur.stringToUtilisateur(received.split("\n")[1]));
|
||||
}
|
||||
|
||||
//*********************************************************************************************************
|
||||
//*********************************************************************************************************
|
||||
//*******************************Connexion d'un utilisateur externe****************************************
|
||||
//*********************************************************************************************************
|
||||
//*********************************************************************************************************
|
||||
if (Type.equals("Connexion Externe")) {
|
||||
Utilisateur nouveau = Utilisateur.stringToUtilisateur(received.split("\n")[1]);
|
||||
app.getActifUsers().addList(nouveau);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,12 +41,9 @@ public class ChangementPseudo {
|
|||
@FXML // fx:id="MenuButton"
|
||||
private Button MenuButton; // Value injected by FXMLLoader
|
||||
|
||||
/* Une instance de chatApp */
|
||||
private ChatApp chatApp;
|
||||
@FXML
|
||||
void nouveauPseudo(ActionEvent event) {
|
||||
|
||||
}
|
||||
|
||||
private int MaxLength=10;
|
||||
|
||||
@FXML
|
||||
/**
|
||||
|
|
@ -74,21 +71,29 @@ public class ChangementPseudo {
|
|||
*/
|
||||
void validerPseudo(ActionEvent event) {
|
||||
boolean pseudoOK = false;
|
||||
try {
|
||||
pseudoOK = chatApp.modifierPseudo(pseudonyme.getText());
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
if(pseudoOK){
|
||||
this.retourMenu(null);
|
||||
}
|
||||
else{
|
||||
if (pseudonyme.getText().length() > MaxLength) {
|
||||
Alert alert = new Alert(Alert.AlertType.INFORMATION);
|
||||
alert.setTitle("Changement pseudo");
|
||||
alert.setTitle("Connexion");
|
||||
// Header Text: null
|
||||
alert.setHeaderText(null);
|
||||
alert.setContentText("Echec de Connexion: le pseudo "+pseudonyme.getText()+" est deja pris");
|
||||
alert.setContentText("Echec de Connexion: le pseudo entre fait plus de " + MaxLength + " caracteres");
|
||||
alert.showAndWait();
|
||||
} else {
|
||||
try {
|
||||
pseudoOK = chatApp.modifierPseudo(pseudonyme.getText());
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
if (pseudoOK) {
|
||||
this.retourMenu(null);
|
||||
} else {
|
||||
Alert alert = new Alert(Alert.AlertType.INFORMATION);
|
||||
alert.setTitle("Changement pseudo");
|
||||
// Header Text: null
|
||||
alert.setHeaderText(null);
|
||||
alert.setContentText("Echec de Connexion: le pseudo " + pseudonyme.getText() + " est deja pris");
|
||||
alert.showAndWait();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -100,6 +105,5 @@ public class ChangementPseudo {
|
|||
chatApp = ChatApp.getInstance();
|
||||
pseudonyme1.setText(chatApp.getMe().getPseudo());
|
||||
this.validationButton.setDefaultButton(true);
|
||||
//System.out.println(this.validationButton.isDefaultButton());
|
||||
}
|
||||
}
|
||||
|
|
@ -9,7 +9,6 @@ import java.text.SimpleDateFormat;
|
|||
import java.util.Date;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import chatapp.Controller.ChatApp;
|
||||
import chatapp.Model.MessageHorodate;
|
||||
import chatapp.Model.Utilisateur;
|
||||
import chatapp.Protocol.SessionClavardage;
|
||||
|
|
@ -52,9 +51,15 @@ public class Clavardage implements Initializable, PropertyChangeListener {
|
|||
|
||||
@FXML // fx:id="MenuButton"
|
||||
|
||||
/* L'utilisateur destinataire */
|
||||
private Utilisateur u2;
|
||||
|
||||
/* Une session de clavardage */
|
||||
private SessionClavardage session;
|
||||
|
||||
/* Le nom de la table dans la BDD stockant l'historique des messages */
|
||||
private String nomTable;
|
||||
|
||||
@FXML
|
||||
/**
|
||||
* <p>Handler gerant l'envoi du message contenu dans le TextField AEnvoyer et sur pression du bouton EnvoyerButton</p>
|
||||
|
|
@ -75,8 +80,8 @@ public class Clavardage implements Initializable, PropertyChangeListener {
|
|||
|
||||
|
||||
/**
|
||||
* Setter
|
||||
* @param session la session a associer a la classe
|
||||
* Setter : Session
|
||||
* @param session La session a associer a la classe
|
||||
*/
|
||||
public void setSession(SessionClavardage session) {
|
||||
this.session = session;
|
||||
|
|
@ -87,8 +92,8 @@ public class Clavardage implements Initializable, PropertyChangeListener {
|
|||
|
||||
/**
|
||||
* <p>Handler des differents evenements auxquels s'est abonne le PropertyChangeListener
|
||||
* La classe est informee lorsque la session recoit un message ou lorsque la session se termine </p>
|
||||
* @param evt l'evenement informe par le pcs
|
||||
* <br> La classe est informee lorsque la session recoit un message ou lorsque la session se termine </p>
|
||||
* @param evt L'evenement informe par le pcs
|
||||
*/
|
||||
@Override
|
||||
public void propertyChange(PropertyChangeEvent evt) {
|
||||
|
|
@ -115,6 +120,10 @@ public class Clavardage implements Initializable, PropertyChangeListener {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter : Session
|
||||
* @return La session de Clavardage
|
||||
*/
|
||||
public SessionClavardage getSession(){
|
||||
return session;
|
||||
}
|
||||
|
|
@ -131,7 +140,7 @@ public class Clavardage implements Initializable, PropertyChangeListener {
|
|||
}
|
||||
|
||||
/**
|
||||
* <p> Permet de recepurer plus de messages stoces dans la database en appuyant sur le bouton plusButton</p>
|
||||
* <p> Permet de recupérer plus de messages stoces dans la database en appuyant sur le bouton plusButton</p>
|
||||
* @param actionEvent L'utilisateur a appuye sur le bouton plus pour obtenir tout l'utilisateur
|
||||
*/
|
||||
public void ajouterMessagesHistorique(ActionEvent actionEvent) {
|
||||
|
|
|
|||
|
|
@ -24,12 +24,20 @@ import javafx.stage.Stage;
|
|||
*/
|
||||
public class ConnexionScreen {
|
||||
|
||||
/* Bouton de connexion */
|
||||
public Button connexionButton;
|
||||
|
||||
/* Zone de texte où inserer le pseudonyme souhaité */
|
||||
public TextField pseudonyme;
|
||||
|
||||
/* RadioButton : l'utilisateur est distant */
|
||||
public RadioButton remoteButton;
|
||||
|
||||
/* RadioButton : l'utilisateur est local */
|
||||
public RadioButton localButton;
|
||||
|
||||
private int MaxLength = 10;
|
||||
|
||||
@FXML // ResourceBundle that was given to the FXMLLoader
|
||||
private ResourceBundle resources;
|
||||
|
||||
|
|
@ -38,19 +46,34 @@ public class ConnexionScreen {
|
|||
|
||||
@FXML // This method is called by the FXMLLoader when initialization is complete
|
||||
void initialize() {
|
||||
connexionButton.setDefaultButton(true);
|
||||
|
||||
connexionButton.setDefaultButton(true); // Appuyer sur entrée equivaut a cliquer sur le bouton de connexion
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Handler permettant de lancer la connexion avec le pseudonyme contenu dans le TextField pseudonyme en appuyant sur le connexionButton
|
||||
* <p>
|
||||
* Handler permettant de lancer la connexion avec le pseudonyme contenu dans le TextField pseudonyme en appuyant sur le connexionButton
|
||||
* </p>
|
||||
* @param actionEvent L'utilisateur vient d'appuyer sur le bouton connexion
|
||||
*/
|
||||
public void connexion(ActionEvent actionEvent) {
|
||||
Boolean connexion = false;
|
||||
if(this.localButton.isSelected()) {
|
||||
if (this.localButton.isSelected()) {
|
||||
// PARTIE CONNEXION LOCALE
|
||||
ChatApp.getInstance().setExterne(false);
|
||||
} else {
|
||||
// PARTIE CONNEXION DISTANTE
|
||||
ChatApp.getInstance().setExterne(true);
|
||||
}
|
||||
if (pseudonyme.getText().length() > MaxLength) {
|
||||
Alert alert = new Alert(Alert.AlertType.INFORMATION);
|
||||
alert.setTitle("Connexion");
|
||||
// Header Text: null
|
||||
alert.setHeaderText(null);
|
||||
alert.setContentText("Echec de Connexion: le pseudo entre fait plus de " + MaxLength + " caracteres");
|
||||
alert.showAndWait();
|
||||
} else {
|
||||
|
||||
|
||||
try {
|
||||
connexion = ChatApp.getInstance().connexion(pseudonyme.getText());
|
||||
} catch (IOException e) {
|
||||
|
|
@ -76,8 +99,5 @@ public class ConnexionScreen {
|
|||
stage.show();
|
||||
}
|
||||
}
|
||||
else{
|
||||
// PARTIE CONNEXION DISTANTE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ package chatapp.View;
|
|||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import chatapp.Controller.ChatApp;
|
||||
|
|
@ -38,6 +39,8 @@ public class DemarrerSession {
|
|||
|
||||
@FXML // fx:id="MenuButton"
|
||||
private Button MenuButton; // Value injected by FXMLLoader
|
||||
|
||||
/* Instance de chatApp */
|
||||
private ChatApp chatApp;
|
||||
|
||||
/**
|
||||
|
|
@ -45,9 +48,7 @@ public class DemarrerSession {
|
|||
* @param event L'utilisateur vient de selectionner un utilisateur
|
||||
*/
|
||||
@FXML
|
||||
void demarrerSessionAvec(ActionEvent event) {
|
||||
chatApp.demarrerSession(choixContact.getValue());
|
||||
}
|
||||
void demarrerSessionAvec(ActionEvent event) { chatApp.demarrerSession(choixContact.getValue()); }
|
||||
|
||||
/**
|
||||
* <p> Handler permettant de retourner au menu principal sur pression du MenuButton</p>
|
||||
|
|
@ -73,10 +74,9 @@ public class DemarrerSession {
|
|||
@FXML // This method is called by the FXMLLoader when initialization is complete
|
||||
void initialize() {
|
||||
this.chatApp = ChatApp.getInstance();
|
||||
ListUtilisateurs utils = chatApp.getActifUsers();
|
||||
for(Utilisateur u : utils.getActifUsers()){
|
||||
ArrayList<Utilisateur> Com = chatApp.createListeCommunicationPossible();
|
||||
for(Utilisateur u : Com ){
|
||||
choixContact.getItems().add(u.getPseudo());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,22 +1,18 @@
|
|||
package chatapp.View;
|
||||
|
||||
import chatapp.Protocol.SessionClavardage;
|
||||
import javafx.event.EventHandler;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Parent;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.stage.Stage;
|
||||
import javafx.stage.WindowEvent;
|
||||
|
||||
import java.beans.PropertyChangeListener;
|
||||
import java.io.IOException;
|
||||
/**
|
||||
* <p>
|
||||
* Classe permettant d'ouvrir une nouvelle fenetre afin de clavarder avec un utilisateur.
|
||||
* </p>
|
||||
*/
|
||||
public class FenetreSession extends Stage {
|
||||
SessionClavardage session;
|
||||
|
||||
/**
|
||||
* <p> Permet l'ouverture de la fenetre associee a la session de clavardage</p>
|
||||
* @param session Un objet FenetreSession est attribué avec un objet de type SessionClavardage
|
||||
|
|
@ -26,24 +22,16 @@ public class FenetreSession extends Stage {
|
|||
try{
|
||||
Parent rootchat = fichier.load();
|
||||
Clavardage controller = fichier.getController();
|
||||
System.out.println("Session id "+session.getSessionID());
|
||||
//controller.printsalut();
|
||||
controller.setSession(session);
|
||||
Scene scene1 = null;
|
||||
Scene scene1;
|
||||
scene1 = new Scene(rootchat,600,400);
|
||||
this.setScene(scene1);
|
||||
this.setTitle("Session avec "+session.getU2().getPseudo());
|
||||
this.setMinWidth(600);
|
||||
this.setMinHeight(400);
|
||||
//this.setMaxWidth(600);
|
||||
//this.setMaxHeight(400);
|
||||
this.show();
|
||||
this.centerOnScreen();
|
||||
this.setOnCloseRequest(new EventHandler<WindowEvent>() {
|
||||
public void handle(WindowEvent we) {
|
||||
session.arretSession();
|
||||
}
|
||||
});
|
||||
this.setOnCloseRequest(we -> session.arretSession());
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,7 @@
|
|||
package chatapp.View;
|
||||
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import chatapp.Controller.ChatApp;
|
||||
import javafx.application.Platform;
|
||||
import javafx.event.ActionEvent;
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
|
|
@ -15,21 +10,37 @@ import javafx.scene.Scene;
|
|||
import javafx.scene.control.MenuItem;
|
||||
import javafx.scene.text.Text;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Classe representant la page d'acceuil. Elle est composé d'un menu en haut a gauche.
|
||||
* Classe representant la page d'accueil. Elle est composé d'un menu en haut a gauche.
|
||||
* Au centre un petit message "Bienvenue" suivi du pseudo de l'utilisateur est affiché.
|
||||
* </p>
|
||||
*/
|
||||
public class View_Menu {
|
||||
|
||||
/* Le pseudo de l'utilisateur */
|
||||
public Text pseudonyme;
|
||||
|
||||
/* Choix dans la bar de menu : Connaitre les utilisateurs actifs */
|
||||
public MenuItem utilsActifsButton;
|
||||
|
||||
/* Choix dans la bar de menu : Demarrer une session de clavardage */
|
||||
public MenuItem demarrerSessionButton;
|
||||
|
||||
/* Choix dans la bar de menu : Changer de pseudo */
|
||||
public MenuItem changerPseudoButton;
|
||||
|
||||
@FXML // ResourceBundle that was given to the FXMLLoader
|
||||
private ResourceBundle resources;
|
||||
|
||||
/* Une instance de chatApp */
|
||||
private ChatApp chatapp;
|
||||
|
||||
@FXML // URL location of the FXML file that was given to the FXMLLoader
|
||||
private URL location;
|
||||
|
||||
|
|
@ -97,9 +108,6 @@ public class View_Menu {
|
|||
public void deconnexion(ActionEvent actionEvent) {
|
||||
try {
|
||||
chatapp.deconnexion();
|
||||
/*chatapp.getMain().stop();
|
||||
Platform.exit();
|
||||
System.exit(0);*/
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
} catch (Exception e) {
|
||||
|
|
|
|||
|
|
@ -22,8 +22,12 @@ import javafx.stage.Stage;
|
|||
*/
|
||||
public class View_Utilisateurs {
|
||||
|
||||
/* La zone d'affichage des utilisateurs actifs */
|
||||
public TextArea ListeUtilisateurs;
|
||||
|
||||
/* Bouton de retour au menu */
|
||||
public Button MenuButton;
|
||||
|
||||
@FXML // ResourceBundle that was given to the FXMLLoader
|
||||
private ResourceBundle resources;
|
||||
|
||||
|
|
@ -33,14 +37,11 @@ public class View_Utilisateurs {
|
|||
@FXML // This method is called by the FXMLLoader when initialization is complete
|
||||
void initialize() {
|
||||
ListUtilisateurs utilisateurs = ChatApp.getInstance().getActifUsers();
|
||||
|
||||
ListeUtilisateurs.setText("");
|
||||
for(Utilisateur elem : utilisateurs.getActifUsers()) {
|
||||
ListeUtilisateurs.appendText( " - " +elem.getPseudo() + '\n');
|
||||
}
|
||||
ListeUtilisateurs.setEditable(false);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
63
Implementation/src/Model/Historique.java
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
package src.Controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Classe permettant de sauvegarder les échanges entre deux utilisateurs
|
||||
* </p>
|
||||
*/
|
||||
public class Historique {
|
||||
private Utilisateur User1;
|
||||
private Utilisateur User2;
|
||||
// Liste conservant les differents échanges
|
||||
private ArrayList<MessageHorodate> HistoriqueHorodate ;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Constructeur : un historique sauvegarde les echanges entre
|
||||
* User1 et User2
|
||||
* @param User1 - un utilisateur
|
||||
* @param User2 - un second utilisateur
|
||||
* </p>
|
||||
*/
|
||||
public Historique(Utilisateur User1, Utilisateur User2) {
|
||||
this.User1 = User1;
|
||||
this.User2 = User2;
|
||||
this.HistoriqueHorodate = new ArrayList<MessageHorodate>();
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* On ajoute un message échangé dans la liste 'HistoriqueHorodate'
|
||||
*
|
||||
* @param mh - le message horodate échangé
|
||||
* </p>
|
||||
*/
|
||||
public void addMessage(MessageHorodate mh) {
|
||||
this.HistoriqueHorodate.add(mh);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* getter pour recuperer le second utilisateur
|
||||
* </p>
|
||||
*/
|
||||
public Utilisateur getUser2() {
|
||||
return User2;
|
||||
}
|
||||
|
||||
public void afficher10derniers() {
|
||||
System.out.println("Demarrage de l'affichage partiel de l'historique");
|
||||
System.out.println("Il y a actuellement " + HistoriqueHorodate.size() +" elements dans l'historique");
|
||||
int n =10;
|
||||
if(HistoriqueHorodate.size()<=10) {
|
||||
n = HistoriqueHorodate.size();
|
||||
}
|
||||
for(int i = 0; i<n;i++) {
|
||||
String exp = HistoriqueHorodate.get(i).getSource().getPseudo();
|
||||
String payload = HistoriqueHorodate.get(i).getMessage();
|
||||
System.out.println(exp+" : "+payload);
|
||||
}
|
||||
}
|
||||
}
|
||||
125
Implementation/src/Model/ListUtilisateurs.java
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
package src.Controller;
|
||||
|
||||
import java.net.InetAddress;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class ListUtilisateurs {
|
||||
|
||||
private ArrayList<Utilisateur> actifUsers ;
|
||||
|
||||
public ListUtilisateurs() {
|
||||
this.actifUsers = new ArrayList<Utilisateur>() ;
|
||||
}
|
||||
/**
|
||||
* Ajouter des utilisateurs actifs dans l'attribut liste 'actifUsers'
|
||||
*
|
||||
* @param u on va rajouter cet utilisateur dans la liste
|
||||
*/
|
||||
public void addList(Utilisateur u) {
|
||||
if((verifierUnicite(u.getPseudo()))) {
|
||||
this.actifUsers.add(u);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Recuperer un utilisateur à partir de son pseudo
|
||||
*
|
||||
* @param pseudo Pseudo de l'utilisateur que l'on souhaite retrouver
|
||||
*/
|
||||
public Utilisateur getPseudoList(String pseudo) {
|
||||
for(Utilisateur elem: this.actifUsers)
|
||||
{
|
||||
if (elem.getPseudo().equals(pseudo) ) {
|
||||
return elem ;
|
||||
}
|
||||
}
|
||||
return null ;
|
||||
}
|
||||
|
||||
public Utilisateur getIPList(InetAddress ip) throws Exception {
|
||||
for(Utilisateur elem: this.actifUsers)
|
||||
{
|
||||
if (elem.getIp().equals(ip) ) {
|
||||
return elem ;
|
||||
}
|
||||
}
|
||||
throw new Exception("No such user with this IP address") ;
|
||||
}
|
||||
|
||||
/**
|
||||
* Supprimer de la liste des utilisateurs actifs 'actifUsers' un certain utilisateur
|
||||
*
|
||||
* @param u on va supprimer cet utilisateur dans la liste
|
||||
*/
|
||||
public void supprimerList(Utilisateur u) {
|
||||
Boolean Sup = false ;
|
||||
for(Utilisateur elem: this.actifUsers)
|
||||
{
|
||||
if (elem.equals(u) ) {
|
||||
this.actifUsers.remove(elem);
|
||||
Sup = true ;
|
||||
this.afficherListeUtilisateurs();
|
||||
}
|
||||
}
|
||||
if (!Sup) {
|
||||
System.out.println("Tentative de retirer un objet non contenu dans la liste");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Modifie le nom d'un utilisateur dans la liste des utilisateurs actifs 'actifUsers'
|
||||
*
|
||||
* @param ancien correspond au pseudo remplacer
|
||||
* @param nouveau correspond au nouveau pseudo
|
||||
*/
|
||||
public void modifierList(String ancien , String nouveau) {
|
||||
for(Utilisateur elem: this.actifUsers)
|
||||
{
|
||||
if (ancien.equals( elem.getPseudo() ) ) {
|
||||
this.actifUsers.remove(elem);
|
||||
elem.setPseudo(nouveau);;
|
||||
this.addList(elem);
|
||||
|
||||
}
|
||||
}
|
||||
this.afficherListeUtilisateurs();
|
||||
}
|
||||
|
||||
public Boolean appartient(Utilisateur u) {
|
||||
return this.actifUsers.contains(u);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Verifie qu'aucun autre utilisateur ne possède le même pseudo
|
||||
*
|
||||
* @param u on va supprimer cet utilisateur dans la liste
|
||||
*/
|
||||
public Boolean verifierUnicite(String pseudo) {
|
||||
for(Utilisateur elem: this.actifUsers)
|
||||
{
|
||||
if (pseudo.equals( elem.getPseudo() ) ) {
|
||||
return false ;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Méthode affichant la liste des utilisateurs actifs
|
||||
*
|
||||
*/
|
||||
public String afficherListeUtilisateurs() {
|
||||
System.out.println ("Liste des utilisateurs actifs : ");
|
||||
String Utilisateur = "" ;
|
||||
for(Utilisateur elem: this.actifUsers)
|
||||
{
|
||||
System.out.println (elem.toString());
|
||||
Utilisateur += (elem + "\n");
|
||||
}
|
||||
return Utilisateur;
|
||||
}
|
||||
}
|
||||
142
Implementation/src/Model/MessageHorodate.java
Normal file
|
|
@ -0,0 +1,142 @@
|
|||
package src.Controller;
|
||||
|
||||
import java.text.DateFormat;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.io.Serializable;
|
||||
/**
|
||||
* <p>
|
||||
* Classe representant les messages envoyés en TCP lors d'une session de clavardage
|
||||
* </p>
|
||||
*/
|
||||
public class MessageHorodate implements Serializable {
|
||||
private Utilisateur destinataire ;
|
||||
private Utilisateur source ;
|
||||
private Date dateHorodatage ;
|
||||
private int type; // 0 = debut de la communication, 1= message de communication, 2 = fin de la communicataion
|
||||
private String Message;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Constructeur , le message va etre horodate
|
||||
* @param destinataire - Destinataire du message
|
||||
* @param source - Source du message
|
||||
* @param Message - Message envoye
|
||||
* </p>
|
||||
*/
|
||||
public MessageHorodate(Utilisateur destinataire, Utilisateur source, String Message, int type) {
|
||||
this.setDestinataire(destinataire) ;
|
||||
this.setSource(source) ;
|
||||
this.setMessage(Message) ;
|
||||
this.setDateHorodatage(new Date());
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public void setDate(Date d) {
|
||||
this.setDateHorodatage(d);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* permet de creer une representation string du message
|
||||
* @return Les differents attributs de la classe sous forme de string
|
||||
* </p>
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
String Msg = "";
|
||||
Msg += ("Destinataire::" + this.getDestinataire() + "\n") ;
|
||||
Msg += ("Source::" + this.getSource()+ "\n") ;
|
||||
Msg += ("Type::"+ this.type+ "\n");
|
||||
Msg += ("Date::" + this.dateToString() + "\n") ;
|
||||
Msg += ("Message::" + this.getMessage() + "\n" );
|
||||
return Msg ;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* permet de creer une representation string de la date d'horodatage
|
||||
* @return La date d'horodatage du message en format yyyy/MM/dd HH:mm:ss
|
||||
* </p>
|
||||
*/
|
||||
public String dateToString() {
|
||||
DateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
|
||||
return format.format(this.getDateHorodatage());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Permet de re creer un message horodate a partir d'un string
|
||||
* @return un messageHorodate
|
||||
* </p>
|
||||
*/
|
||||
public static MessageHorodate stringToMessageHorodate(String s) {
|
||||
|
||||
String mots[] = s.split("\n");
|
||||
Utilisateur destinataire = Utilisateur.stringToUtilisateur(mots[0].split("::")[1]);
|
||||
Utilisateur source = Utilisateur.stringToUtilisateur(mots[1].split("::")[1]);
|
||||
int type = Integer.parseInt(mots[2].split("::")[1]);
|
||||
DateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
|
||||
Date date = new Date();
|
||||
/*try {
|
||||
date = format.parse(mots[3].split("::")[1]);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
String payload = "";
|
||||
for(int i=4; i< mots.length; i++) {
|
||||
if(mots[i].startsWith("Message::")) {
|
||||
mots[i]=mots[i].split("::")[1];
|
||||
}
|
||||
payload += mots[i]+"\n";
|
||||
}
|
||||
|
||||
MessageHorodate mh = new MessageHorodate(destinataire, source, payload, type);
|
||||
//mh.setDate(date);
|
||||
|
||||
return mh ;
|
||||
}
|
||||
|
||||
public Utilisateur getSource() {
|
||||
return source;
|
||||
}
|
||||
|
||||
public void setSource(Utilisateur source) {
|
||||
this.source = source;
|
||||
}
|
||||
|
||||
public Utilisateur getDestinataire() {
|
||||
return destinataire;
|
||||
}
|
||||
|
||||
public void setDestinataire(Utilisateur destinataire) {
|
||||
this.destinataire = destinataire;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return Message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
Message = message;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(int Type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Date getDateHorodatage() {
|
||||
return dateHorodatage;
|
||||
}
|
||||
|
||||
public void setDateHorodatage(Date dateHorodatage) {
|
||||
this.dateHorodatage = dateHorodatage;
|
||||
}
|
||||
|
||||
}
|
||||
77
Implementation/src/Model/Utilisateur.java
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
package src.Controller;
|
||||
|
||||
import java.net.InetAddress;
|
||||
import java.net.UnknownHostException;
|
||||
|
||||
public class Utilisateur extends Object {
|
||||
|
||||
private String pseudo ;
|
||||
private Integer port;
|
||||
private InetAddress ip ;
|
||||
private String id ;
|
||||
|
||||
public Utilisateur(String pseudo,Integer port, InetAddress ip ){
|
||||
this.setPseudo(pseudo) ;
|
||||
this.setPort(port);
|
||||
this.ip = ip ;
|
||||
this.id = ip.getHostName() ;
|
||||
}
|
||||
|
||||
public String getPseudo() {
|
||||
return pseudo;
|
||||
}
|
||||
|
||||
public void setPseudo(String pseudo) {
|
||||
this.pseudo = pseudo;
|
||||
}
|
||||
|
||||
public Integer getPort() {
|
||||
return port;
|
||||
}
|
||||
|
||||
public void setPort(Integer port) {
|
||||
this.port = port;
|
||||
}
|
||||
|
||||
public InetAddress getIp() {
|
||||
return ip;
|
||||
}
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString(){
|
||||
String s = "";
|
||||
s+="pseudo " + this.pseudo + " | ";
|
||||
s+="port " + (this.port).toString() + " | ";
|
||||
s+="ip " + (this.ip).toString() + " | ";
|
||||
s+="id " + (this.id).toString() + " | ";
|
||||
return s;
|
||||
}
|
||||
|
||||
public static Utilisateur stringToUtilisateur(String s) {
|
||||
String name = "";
|
||||
Integer port = 0;
|
||||
String ip = "" ;
|
||||
String id = "";
|
||||
String mots[] = s.split(" ");
|
||||
name=mots[1];
|
||||
port=Integer.parseInt(mots[4]);
|
||||
ip=mots[7];
|
||||
id=mots[10];
|
||||
Utilisateur user = null;
|
||||
try {
|
||||
user = new Utilisateur(name,port,InetAddress.getByName(ip.split("/")[1]));
|
||||
} catch (UnknownHostException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return user;
|
||||
}
|
||||
|
||||
|
||||
public Boolean equals(Utilisateur u) {
|
||||
return this.getId().equals( u.getId() ) ;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>All Classes</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="class index">
|
||||
<meta name="generator" content="javadoc/AllClassesIndexWriter">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
|
|
@ -110,7 +110,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<td class="colFirst"><a href="chatapp/Model/DataBase.html" title="class in chatapp.Model">DataBase</a></td>
|
||||
<th class="colLast" scope="row">
|
||||
<div class="block">
|
||||
Classe representant la Base de données.</div>
|
||||
Classe représentant la Base de données.</div>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i5">
|
||||
|
|
@ -128,71 +128,79 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
</th>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i7">
|
||||
<td class="colFirst"><a href="chatapp/Protocol/HttpEchange.html" title="class in chatapp.Protocol">HttpEchange</a></td>
|
||||
<th class="colLast" scope="row">
|
||||
<div class="block">
|
||||
Classe representant les échanges HTTP entre un utilisateur distant et le servlet.</div>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="altColor" id="i8">
|
||||
<td class="colFirst"><a href="chatapp/Launcher.html" title="class in chatapp">Launcher</a></td>
|
||||
<th class="colLast" scope="row"> </th>
|
||||
</tr>
|
||||
<tr class="altColor" id="i8">
|
||||
<tr class="rowColor" id="i9">
|
||||
<td class="colFirst"><a href="chatapp/Model/ListUtilisateurs.html" title="class in chatapp.Model">ListUtilisateurs</a></td>
|
||||
<th class="colLast" scope="row">
|
||||
<div class="block">
|
||||
Classe representant La liste des utilisateurs actifs, stockée localement</div>
|
||||
Classe représentant la liste des utilisateurs actifs, stockée localement.</div>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i9">
|
||||
<td class="colFirst"><a href="chatapp/Main.html" title="class in chatapp">Main</a></td>
|
||||
<th class="colLast" scope="row"> </th>
|
||||
</tr>
|
||||
<tr class="altColor" id="i10">
|
||||
<td class="colFirst"><a href="chatapp/Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></td>
|
||||
<td class="colFirst"><a href="chatapp/Main.html" title="class in chatapp">Main</a></td>
|
||||
<th class="colLast" scope="row">
|
||||
<div class="block">
|
||||
Classe representant les messages envoyes en TCP lors d'une session de clavardage.</div>
|
||||
<div class="block">Cette classe extends Application.</div>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i11">
|
||||
<td class="colFirst"><a href="chatapp/Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></td>
|
||||
<th class="colLast" scope="row">
|
||||
<div class="block">
|
||||
Classe représentant les messages envoyés en TCP lors d'une session de clavardage.</div>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="altColor" id="i12">
|
||||
<td class="colFirst"><a href="chatapp/Protocol/RunnerEcouteTCP.html" title="class in chatapp.Protocol">RunnerEcouteTCP</a></td>
|
||||
<th class="colLast" scope="row">
|
||||
<div class="block">
|
||||
Classe permettant de gérer les multiples connexions en TCP.</div>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="altColor" id="i12">
|
||||
<tr class="rowColor" id="i13">
|
||||
<td class="colFirst"><a href="chatapp/Protocol/RunnerEcouteUDP.html" title="class in chatapp.Protocol">RunnerEcouteUDP</a></td>
|
||||
<th class="colLast" scope="row">
|
||||
<div class="block">
|
||||
Classe permettant de gérer les multiples connexions en UDP.</div>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i13">
|
||||
<tr class="altColor" id="i14">
|
||||
<td class="colFirst"><a href="chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></td>
|
||||
<th class="colLast" scope="row">
|
||||
<div class="block">
|
||||
Classe représentant une session de clavrdage.</div>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="altColor" id="i14">
|
||||
<td class="colFirst"><a href="chatapp/Protocol/UDPEchange.html" title="class in chatapp.Protocol">UDPEchange</a></td>
|
||||
<th class="colLast" scope="row">
|
||||
<div class="block">
|
||||
Classe representant les echanges UDP entre utilisateurs.</div>
|
||||
Classe représentant une session de clavardage.</div>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i15">
|
||||
<td class="colFirst"><a href="chatapp/Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></td>
|
||||
<td class="colFirst"><a href="chatapp/Protocol/UDPEchange.html" title="class in chatapp.Protocol">UDPEchange</a></td>
|
||||
<th class="colLast" scope="row">
|
||||
<div class="block">
|
||||
Classe representant un Utilisateur
|
||||
Un Utilisateur est associe avec un pseudo, un numero de port, une addresse IP ainsi qu'un ID.</div>
|
||||
Classe representant les échanges UDP entre utilisateurs.</div>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="altColor" id="i16">
|
||||
<td class="colFirst"><a href="chatapp/View/View_Menu.html" title="class in chatapp.View">View_Menu</a></td>
|
||||
<td class="colFirst"><a href="chatapp/Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></td>
|
||||
<th class="colLast" scope="row">
|
||||
<div class="block">
|
||||
Classe representant la page d'acceuil.</div>
|
||||
Classe representant un Utilisateur.</div>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i17">
|
||||
<td class="colFirst"><a href="chatapp/View/View_Menu.html" title="class in chatapp.View">View_Menu</a></td>
|
||||
<th class="colLast" scope="row">
|
||||
<div class="block">
|
||||
Classe representant la page d'accueil.</div>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="altColor" id="i18">
|
||||
<td class="colFirst"><a href="chatapp/View/View_Utilisateurs.html" title="class in chatapp.View">View_Utilisateurs</a></td>
|
||||
<th class="colLast" scope="row">
|
||||
<div class="block">
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>All Packages</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="package index">
|
||||
<meta name="generator" content="javadoc/AllPackagesIndexWriter">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>ChatApp</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.Controller, class: ChatApp">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
<script type="text/javascript" src="../../script-dir/jquery-ui.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration">
|
||||
<script type="text/javascript">var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":9,"i9":9,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10};
|
||||
<script type="text/javascript">var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":9,"i10":9,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10};
|
||||
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
||||
var altColor = "altColor";
|
||||
var rowColor = "rowColor";
|
||||
|
|
@ -57,13 +57,13 @@ loadScripts(document, 'script');</script>
|
|||
<ul class="subNavList">
|
||||
<li>Summary: </li>
|
||||
<li>Nested | </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#field.summary">Field</a> | </li>
|
||||
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||
<li><a href="#method.summary">Method</a></li>
|
||||
</ul>
|
||||
<ul class="subNavList">
|
||||
<li>Detail: </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#field.detail">Field</a> | </li>
|
||||
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||
<li><a href="#method.detail">Method</a></li>
|
||||
</ul>
|
||||
|
|
@ -104,19 +104,46 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<pre>public class <span class="typeNameLabel">ChatApp</span>
|
||||
extends java.lang.Object
|
||||
implements java.beans.PropertyChangeListener</pre>
|
||||
<div class="block"><p> Controller de l'application. C'est par cette méthode que chaque connexion et chaque session sont entamees
|
||||
Les differents attributs sont:
|
||||
actifsUsers: qui est la liste des utilisateurs actifs actuellement et connus par l'application
|
||||
me: qui est l'instance de la classe Utilisateur représentant l'utilisateur se connectant via cette instance de chatapp
|
||||
main: l'application de l'interface graphique qui s'occupe d'instancier chatapp
|
||||
runnerEcouteTCP: instance de runnerEcouteTCP, Thread permettant de recevoir des demandes de clavardage
|
||||
runnerEcouteUDP: instance de runnerEcouteUDP; Thread permettant de communiquer en UDP pour recevoir les demandes de connexion, deconnexion, changements de pseudo et leurs réponses associées
|
||||
connecte: booleen indiquant si l'on est connecte sur le reseau ou non
|
||||
db: instance permettant de se connecter à la base de donnees centralisee
|
||||
</p></div>
|
||||
<div class="block"><p> Controller de l'application. C'est par cette méthode que chaque connexion et chaque session sont entamées.
|
||||
<br>Les différents attributs sont:
|
||||
<br> - actifsUsers: qui est la liste des utilisateurs actifs actuellement et connus par l'application
|
||||
<br> - me: qui est l'instance de la classe Utilisateur représentant l'utilisateur se connectant via cette instance de chatapp
|
||||
<br> - main: l'application de l'interface graphique qui s'occupe d'instancier chatapp
|
||||
<br> - runnerEcouteTCP: instance de runnerEcouteTCP, Thread permettant de recevoir des demandes de clavardage
|
||||
<br> - runnerEcouteUDP: instance de runnerEcouteUDP; Thread permettant de communiquer en UDP pour recevoir les demandes de connexion, deconnexion, changements de pseudo et leurs réponses associées
|
||||
<br> - connecte: booleen indiquant si l'on est connecté sur le reseau ou non
|
||||
<br> - db: instance permettant de se connecter à la base de donnees centralisée
|
||||
</p></div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="blockList">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<li class="blockList">
|
||||
<section class="fieldSummary"><a id="field.summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2>Field Summary</h2>
|
||||
<div class="memberSummary">
|
||||
<table>
|
||||
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Modifier and Type</th>
|
||||
<th class="colSecond" scope="col">Field</th>
|
||||
<th class="colLast" scope="col">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>java.util.ArrayList<java.lang.String></code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#listeCommunication">listeCommunication</a></span></code></th>
|
||||
<td class="colLast"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li class="blockList">
|
||||
<section class="constructorSummary"><a id="constructor.summary">
|
||||
|
|
@ -168,67 +195,77 @@ javafx.application.Application main)</code></th>
|
|||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#activerEcouteTCP()">activerEcouteTCP</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Lance un thread pour ecouter les requetes TCP
|
||||
Informe le pcs que chatapp ecoute les notifications qu'il envoie</div>
|
||||
<div class="block">Lance un thread pour écouter les requêtes TCP
|
||||
<br> Informe le pcs que chatapp écoute les notifications qu'il envoie</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i1">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#activerEcouteUDP()">activerEcouteUDP</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Lance le thread pour receptionner les requetes UDP</div>
|
||||
<div class="block">Lance le thread pour réceptionner les requetes UDP</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i2">
|
||||
<td class="colFirst"><code>java.lang.Boolean</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#connexion()">connexion</a></span>()</code></th>
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#connexion(java.lang.String)">connexion</a></span>​(java.lang.String pseudo)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Methode appelee lors de la connexion d'un nouvel utilisateur.</div>
|
||||
<div class="block">Méthode permettant d'appeler la fonction de connexion adequate selon que l'on est en externe ou en interne</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i3">
|
||||
<td class="colFirst"><code>java.lang.Boolean</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#connexion(java.lang.String)">connexion</a></span>​(java.lang.String pseudo)</code></th>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#connexionInterne(java.lang.String)">connexionInterne</a></span>​(java.lang.String pseudo)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Methode appelee lors de la connexion de l'utilisateur, va prevenir les autres
|
||||
utlisateurs du reseau de l'arrivee de l'utilisateur sur celui-ci</div>
|
||||
<div class="block">Méthode appelée lors de la connexion de l'utilisateur en INTERNE,
|
||||
<br> Va prevenir les autres utlisateurs du réseau de l'arrivée de l'utilisateur sur celui-ci</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i4">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#deconnexion()">deconnexion</a></span>()</code></th>
|
||||
<td class="colFirst"><code>java.util.ArrayList<<a href="../Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a>></code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createListeCommunicationPossible()">createListeCommunicationPossible</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Methode appelee lors de la deconnexion de l'utilisateur.</div>
|
||||
<div class="block">
|
||||
Un utilisateur ne peut pas ouvrir plusieurs sessions de clavardage avec le même utilisateur.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i5">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#demarrerSession(java.lang.String)">demarrerSession</a></span>​(java.lang.String pseudo)</code></th>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#deconnexion()">deconnexion</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Demarre une session de clavardage avec l'utilisateur dont le pseudo est entre en parametre</div>
|
||||
<div class="block">Méthode appelée lors de la déconnexion de l'utilisateur.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i6">
|
||||
<td class="colFirst"><code><a href="../Model/ListUtilisateurs.html" title="class in chatapp.Model">ListUtilisateurs</a></code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getActifUsers()">getActifUsers</a></span>()</code></th>
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#deconnexionInterne()">deconnexionInterne</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Getter</div>
|
||||
<div class="block">Methode appelee lors de la deconnexion en INTERNE de l'utilisateur.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i7">
|
||||
<td class="colFirst"><code><a href="../Model/DataBase.html" title="class in chatapp.Model">DataBase</a></code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDb()">getDb</a></span>()</code></th>
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#demarrerSession(java.lang.String)">demarrerSession</a></span>​(java.lang.String pseudo)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Permet de recuperer la base de donnee associee</div>
|
||||
<div class="block">Démarre une session de clavardage avec l'utilisateur dont le pseudo est entré en parametre</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i8">
|
||||
<td class="colFirst"><code>static <a href="ChatApp.html" title="class in chatapp.Controller">ChatApp</a></code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getInstance()">getInstance</a></span>()</code></th>
|
||||
<td class="colLast"> </td>
|
||||
<td class="colFirst"><code><a href="../Model/ListUtilisateurs.html" title="class in chatapp.Model">ListUtilisateurs</a></code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getActifUsers()">getActifUsers</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Getter : actifUsers (Liste des utilisateurs actifs)</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i9">
|
||||
<td class="colFirst"><code>static <a href="ChatApp.html" title="class in chatapp.Controller">ChatApp</a></code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getInstance()">getInstance</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block"> Methode permettant de récupérer l'instance de chatapp qui a ete créée au préalable</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i10">
|
||||
<td class="colFirst"><code>static <a href="ChatApp.html" title="class in chatapp.Controller">ChatApp</a></code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getInstance(java.lang.String,java.lang.Integer,javafx.application.Application)">getInstance</a></span>​(java.lang.String pseudo,
|
||||
java.lang.Integer port,
|
||||
javafx.application.Application main)</code></th>
|
||||
|
|
@ -236,38 +273,65 @@ javafx.application.Application main)</code></th>
|
|||
<div class="block">Methode permettant de créer qu'une seule instance de chatapp</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i10">
|
||||
<tr class="rowColor" id="i11">
|
||||
<td class="colFirst"><code>javafx.application.Application</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMain()">getMain</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Permet de recuperer stage de l'interface graphique qui a cree l'instance</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i11">
|
||||
<td class="colFirst"><code><a href="../Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMe()">getMe</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Getter</div>
|
||||
<div class="block"> Getter : Main
|
||||
Permet de récuperer stage de l'interface graphique qui a crée l'instance</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i12">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isConnecte()">isConnecte</a></span>()</code></th>
|
||||
<td class="colLast"> </td>
|
||||
<td class="colFirst"><code><a href="../Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMe()">getMe</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Getter : Chatapp</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i13">
|
||||
<td class="colFirst"><code>java.lang.Boolean</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#modifierPseudo(java.lang.String)">modifierPseudo</a></span>​(java.lang.String nouveau)</code></th>
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isConnecte()">isConnecte</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Modification du pseudo de l'utilisateur
|
||||
Envoie en broadcast ses informations utilisateurs et son nouveau pseudo</div>
|
||||
<div class="block"> Getter : Connecte
|
||||
<br> Permet de savoir si l'on est connecté</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i14">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isExterne()">isExterne</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block"> Getter : Externe
|
||||
<br> Permet de savoir si on est en externe ou en interne</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i15">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#modifierPseudo(java.lang.String)">modifierPseudo</a></span>​(java.lang.String nouveau)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Methode appelée pour modifier le pseudo et fait appel a la fonction adequate selon que l'on est en interne ou en externe</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i16">
|
||||
<td class="colFirst"><code>java.lang.Boolean</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#modifierPseudoInterne(java.lang.String)">modifierPseudoInterne</a></span>​(java.lang.String nouveau)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Modification du pseudo de l'utilisateur en INTERNE
|
||||
<br> Envoie en broadcast ses informations utilisateurs et son nouveau pseudo</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i17">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#propertyChange(java.beans.PropertyChangeEvent)">propertyChange</a></span>​(java.beans.PropertyChangeEvent evt)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Handler des differents evenements que chatapp ecoute</div>
|
||||
<div class="block">Handler des différents évenements que chatapp écoute</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i18">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setExterne(boolean)">setExterne</a></span>​(boolean externe)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block"> Setter : Externe
|
||||
<br> Permet de définir si on est un utilisateur externe ou non</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
@ -285,6 +349,22 @@ javafx.application.Application main)</code></th>
|
|||
</section>
|
||||
<section class="details">
|
||||
<ul class="blockList">
|
||||
<!-- ============ FIELD DETAIL =========== -->
|
||||
<li class="blockList">
|
||||
<section class="fieldDetails"><a id="field.detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2>Field Details</h2>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="listeCommunication">listeCommunication</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.util.ArrayList<java.lang.String></span> <span class="memberName">listeCommunication</span></div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li class="blockList">
|
||||
<section class="constructorDetails"><a id="constructor.detail">
|
||||
|
|
@ -303,6 +383,7 @@ javafx.application.Application main)</span></div>
|
|||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>pseudo</code> - Pseudo de l'utilisateur</dd>
|
||||
<dd><code>port</code> - Port de communication</dd>
|
||||
<dd><code>main</code> - L'Application main</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -320,6 +401,12 @@ javafx.application.Application main)</span></div>
|
|||
<section class="detail">
|
||||
<h3><a id="isConnecte()">isConnecte</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">boolean</span> <span class="memberName">isConnecte</span>()</div>
|
||||
<div class="block"><p> Getter : Connecte
|
||||
<br> Permet de savoir si l'on est connecté</p></div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>TRUE si connecté FALSE sinon</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
|
|
@ -331,11 +418,11 @@ javafx.application.Application main)</span></div>
|
|||
<div class="block"><p>Methode permettant de créer qu'une seule instance de chatapp</p></div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>pseudo</code> - le pseudonyme que l'on souhaite donner à l'utilisateur</dd>
|
||||
<dd><code>port</code> - le port auquel on souhaite receptionner les requêtees UDP</dd>
|
||||
<dd><code>main</code> - le stage de l'interface graphique qui crée l'instance</dd>
|
||||
<dd><code>pseudo</code> - Le pseudonyme que l'on souhaite donner à l'utilisateur</dd>
|
||||
<dd><code>port</code> - Le port auquel on souhaite réceptionner les requêtees UDP</dd>
|
||||
<dd><code>main</code> - Le stage de l'interface graphique qui crée l'instance</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>une instance de chatapp</dd>
|
||||
<dd>Une instance de chatapp</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -343,24 +430,24 @@ javafx.application.Application main)</span></div>
|
|||
<section class="detail">
|
||||
<h3><a id="getInstance()">getInstance</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public static</span> <span class="returnType"><a href="ChatApp.html" title="class in chatapp.Controller">ChatApp</a></span> <span class="memberName">getInstance</span>()</div>
|
||||
<div class="block"><p> Methode permettant de récupérer l'instance de chatapp qui a ete créée au préalable</p></div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>recupere l'instance de chatapp qui a ete creee au prealable</dd>
|
||||
<dd>L'instance de chatapp</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="modifierPseudo(java.lang.String)">modifierPseudo</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.Boolean</span> <span class="memberName">modifierPseudo</span>​(<span class="arguments">java.lang.String nouveau)</span>
|
||||
throws <span class="exceptions">java.io.IOException</span></div>
|
||||
<div class="block"><p>Modification du pseudo de l'utilisateur
|
||||
Envoie en broadcast ses informations utilisateurs et son nouveau pseudo</p></div>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">boolean</span> <span class="memberName">modifierPseudo</span>​(<span class="arguments">java.lang.String nouveau)</span>
|
||||
throws <span class="exceptions">java.io.IOException</span></div>
|
||||
<div class="block"><p>Methode appelée pour modifier le pseudo et fait appel a la fonction adequate selon que l'on est en interne ou en externe</p></div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>nouveau</code> - correspond au nouveau pseudo</dd>
|
||||
<dd><code>nouveau</code> - Nouveau pseudo avec lequel on souhaite se renommer</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>False si modiferPseudo a echoue, True sinon</dd>
|
||||
<dd>TRUE si la modification du pseudo a réussi, FALSE sinon</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code></dd>
|
||||
</dl>
|
||||
|
|
@ -368,14 +455,16 @@ javafx.application.Application main)</span></div>
|
|||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="connexion()">connexion</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.Boolean</span> <span class="memberName">connexion</span>()
|
||||
throws <span class="exceptions">java.io.IOException</span></div>
|
||||
<div class="block"><p>Methode appelee lors de la connexion d'un nouvel utilisateur.
|
||||
Il va prevenir les utilisateurs du reseau de son arrivee.</p></div>
|
||||
<h3><a id="modifierPseudoInterne(java.lang.String)">modifierPseudoInterne</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.Boolean</span> <span class="memberName">modifierPseudoInterne</span>​(<span class="arguments">java.lang.String nouveau)</span>
|
||||
throws <span class="exceptions">java.io.IOException</span></div>
|
||||
<div class="block"><p>Modification du pseudo de l'utilisateur en INTERNE
|
||||
<br> Envoie en broadcast ses informations utilisateurs et son nouveau pseudo</p></div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>nouveau</code> - Le Nouveau pseudo</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>False si Connexion a echoue, True sinon</dd>
|
||||
<dd>False si modiferPseudo a échoué, True sinon</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code></dd>
|
||||
</dl>
|
||||
|
|
@ -384,15 +473,31 @@ javafx.application.Application main)</span></div>
|
|||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="connexion(java.lang.String)">connexion</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.Boolean</span> <span class="memberName">connexion</span>​(<span class="arguments">java.lang.String pseudo)</span>
|
||||
throws <span class="exceptions">java.io.IOException</span></div>
|
||||
<div class="block"><p>Methode appelee lors de la connexion de l'utilisateur, va prevenir les autres
|
||||
utlisateurs du reseau de l'arrivee de l'utilisateur sur celui-ci</p></div>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">boolean</span> <span class="memberName">connexion</span>​(<span class="arguments">java.lang.String pseudo)</span>
|
||||
throws <span class="exceptions">java.io.IOException</span></div>
|
||||
<div class="block"><p>Méthode permettant d'appeler la fonction de connexion adequate selon que l'on est en externe ou en interne</p></div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>pseudo</code> - le pseudonyme avec lequel l'utilisateur souhaite se connecter</dd>
|
||||
<dd><code>pseudo</code> - Le pseudo avec lequel l'on souhaite se connecter</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>False si Connexion a echoue, True sinon</dd>
|
||||
<dd>True si la connexion a ete autorisée, false sinon</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code></dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="connexionInterne(java.lang.String)">connexionInterne</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.Boolean</span> <span class="memberName">connexionInterne</span>​(<span class="arguments">java.lang.String pseudo)</span>
|
||||
throws <span class="exceptions">java.io.IOException</span></div>
|
||||
<div class="block"><p>Méthode appelée lors de la connexion de l'utilisateur en INTERNE,
|
||||
<br> Va prevenir les autres utlisateurs du réseau de l'arrivée de l'utilisateur sur celui-ci</p></div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>pseudo</code> - Le pseudonyme avec lequel l'utilisateur souhaite se connecter</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>False si Connexion a échoué, True sinon</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code></dd>
|
||||
</dl>
|
||||
|
|
@ -402,18 +507,18 @@ javafx.application.Application main)</span></div>
|
|||
<section class="detail">
|
||||
<h3><a id="activerEcouteTCP()">activerEcouteTCP</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">activerEcouteTCP</span>()</div>
|
||||
<div class="block"><p>Lance un thread pour ecouter les requetes TCP
|
||||
Informe le pcs que chatapp ecoute les notifications qu'il envoie</p></div>
|
||||
<div class="block"><p>Lance un thread pour écouter les requêtes TCP
|
||||
<br> Informe le pcs que chatapp écoute les notifications qu'il envoie</p></div>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="demarrerSession(java.lang.String)">demarrerSession</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">demarrerSession</span>​(<span class="arguments">java.lang.String pseudo)</span></div>
|
||||
<div class="block"><p>Demarre une session de clavardage avec l'utilisateur dont le pseudo est entre en parametre</p></div>
|
||||
<div class="block"><p>Démarre une session de clavardage avec l'utilisateur dont le pseudo est entré en parametre</p></div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>pseudo</code> - le pseudo de l'utilisateur avec lequel on souhaite communiquer</dd>
|
||||
<dd><code>pseudo</code> - Le pseudo de l'utilisateur avec lequel on souhaite communiquer</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -421,7 +526,7 @@ javafx.application.Application main)</span></div>
|
|||
<section class="detail">
|
||||
<h3><a id="activerEcouteUDP()">activerEcouteUDP</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">activerEcouteUDP</span>()</div>
|
||||
<div class="block"><p>Lance le thread pour receptionner les requetes UDP</p></div>
|
||||
<div class="block"><p>Lance le thread pour réceptionner les requetes UDP</p></div>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
|
|
@ -429,8 +534,21 @@ javafx.application.Application main)</span></div>
|
|||
<h3><a id="deconnexion()">deconnexion</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">deconnexion</span>()
|
||||
throws <span class="exceptions">java.io.IOException</span></div>
|
||||
<div class="block"><p>Methode appelee lors de la deconnexion de l'utilisateur.
|
||||
Il va prevenir les utilisateurs du reseau de son depart.</p></div>
|
||||
<div class="block"><p>Méthode appelée lors de la déconnexion de l'utilisateur.
|
||||
<br>La methode va appeler la fonction adequate selon que l'on est en interne ou en externe</p></div>
|
||||
<dl>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code></dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="deconnexionInterne()">deconnexionInterne</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">deconnexionInterne</span>()
|
||||
throws <span class="exceptions">java.io.IOException</span></div>
|
||||
<div class="block"><p>Methode appelee lors de la deconnexion en INTERNE de l'utilisateur.
|
||||
<br>Il va prevenir les utilisateurs du reseau de son depart.</p></div>
|
||||
<dl>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code></dd>
|
||||
|
|
@ -441,10 +559,10 @@ javafx.application.Application main)</span></div>
|
|||
<section class="detail">
|
||||
<h3><a id="getMe()">getMe</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></span> <span class="memberName">getMe</span>()</div>
|
||||
<div class="block">Getter</div>
|
||||
<div class="block">Getter : Chatapp</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Utilisateur associee a ChatApp</dd>
|
||||
<dd>Utilisateur associée a ChatApp</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -452,10 +570,10 @@ javafx.application.Application main)</span></div>
|
|||
<section class="detail">
|
||||
<h3><a id="getActifUsers()">getActifUsers</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../Model/ListUtilisateurs.html" title="class in chatapp.Model">ListUtilisateurs</a></span> <span class="memberName">getActifUsers</span>()</div>
|
||||
<div class="block">Getter</div>
|
||||
<div class="block">Getter : actifUsers (Liste des utilisateurs actifs)</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Liste des utilisateurs actifs associee a ChatApp</dd>
|
||||
<dd>Liste des utilisateurs actifs associée a ChatApp</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -463,12 +581,12 @@ javafx.application.Application main)</span></div>
|
|||
<section class="detail">
|
||||
<h3><a id="propertyChange(java.beans.PropertyChangeEvent)">propertyChange</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">propertyChange</span>​(<span class="arguments">java.beans.PropertyChangeEvent evt)</span></div>
|
||||
<div class="block"><p>Handler des differents evenements que chatapp ecoute</p></div>
|
||||
<div class="block"><p>Handler des différents évenements que chatapp écoute</p></div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||
<dd><code>propertyChange</code> in interface <code>java.beans.PropertyChangeListener</code></dd>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>evt</code> - l'evenement qui a ete indique par le pcs</dd>
|
||||
<dd><code>evt</code> - L'évenement qui a ete indiqué par le pcs</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -476,21 +594,51 @@ javafx.application.Application main)</span></div>
|
|||
<section class="detail">
|
||||
<h3><a id="getMain()">getMain</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">javafx.application.Application</span> <span class="memberName">getMain</span>()</div>
|
||||
<div class="block"><p>Permet de recuperer stage de l'interface graphique qui a cree l'instance</p></div>
|
||||
<div class="block"><p> Getter : Main
|
||||
Permet de récuperer stage de l'interface graphique qui a crée l'instance
|
||||
</p></div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>le stage de l'interface graphique qui a cree l'instance</dd>
|
||||
<dd>Le stage de l'interface graphique qui a crée l'instance</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="getDb()">getDb</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../Model/DataBase.html" title="class in chatapp.Model">DataBase</a></span> <span class="memberName">getDb</span>()</div>
|
||||
<div class="block"><p>Permet de recuperer la base de donnee associee</p></div>
|
||||
<h3><a id="isExterne()">isExterne</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">boolean</span> <span class="memberName">isExterne</span>()</div>
|
||||
<div class="block"><p> Getter : Externe
|
||||
<br> Permet de savoir si on est en externe ou en interne</p></div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>la base de donnee associee</dd>
|
||||
<dd>TRUE si Externe FALSE sinon</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="setExterne(boolean)">setExterne</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">setExterne</span>​(<span class="arguments">boolean externe)</span></div>
|
||||
<div class="block"><p> Setter : Externe
|
||||
<br> Permet de définir si on est un utilisateur externe ou non</p></div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>externe</code> - TRUE si Externe FALSE sinon</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="createListeCommunicationPossible()">createListeCommunicationPossible</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.util.ArrayList<<a href="../Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a>></span> <span class="memberName">createListeCommunicationPossible</span>()</div>
|
||||
<div class="block"><p>
|
||||
Un utilisateur ne peut pas ouvrir plusieurs sessions de clavardage avec le même utilisateur.
|
||||
<br> Cette methode compare les communications en cours pour retourner une liste d'utilisateurs avec
|
||||
lesquels les communications sont possibles
|
||||
</p></div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Une liste d'utilisateurs avec lesquels il peut communiquer</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -527,13 +675,13 @@ javafx.application.Application main)</span></div>
|
|||
<ul class="subNavList">
|
||||
<li>Summary: </li>
|
||||
<li>Nested | </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#field.summary">Field</a> | </li>
|
||||
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||
<li><a href="#method.summary">Method</a></li>
|
||||
</ul>
|
||||
<ul class="subNavList">
|
||||
<li>Detail: </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#field.detail">Field</a> | </li>
|
||||
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||
<li><a href="#method.detail">Method</a></li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>chatapp.Controller</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.Controller">
|
||||
<meta name="generator" content="javadoc/PackageWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>chatapp.Controller Class Hierarchy</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="tree: package: chatapp.Controller">
|
||||
<meta name="generator" content="javadoc/PackageTreeWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>Launcher</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp, class: Launcher">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>Main</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp, class: Main">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
|
|
@ -101,6 +101,8 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<hr>
|
||||
<pre>public class <span class="typeNameLabel">Main</span>
|
||||
extends javafx.application.Application</pre>
|
||||
<div class="block">Cette classe extends Application.
|
||||
<br> Elle va permettre de faire le lien avec JavaFX.</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="blockList">
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>DataBase</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.Model, class: DataBase">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
@ -100,9 +100,26 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<pre>public class <span class="typeNameLabel">DataBase</span>
|
||||
extends java.lang.Object</pre>
|
||||
<div class="block"><p>
|
||||
Classe representant la Base de données.
|
||||
Classe représentant la Base de données.
|
||||
Celle-ci stocke la liste des utilisateurs ainsi que les échanges entre eux
|
||||
</p></div>
|
||||
</p>
|
||||
Format de la table Utilisateurs
|
||||
<br> +--------+-------------+---------+---------------------+
|
||||
<br> | ID | Pseudo | Actif | Date d'inscription |
|
||||
<br> +--------+-------------+---------+---------------------+
|
||||
<br> - Id : Correspond à l'ID de l'utilisateur
|
||||
<br> - Pseudo : Dernier Pseudo utilisé pour cet ID, va etre remplacé par le pseudo actuel avec majPseudo
|
||||
<br> - Date d'inscription : Comme son nom l'indique le jour de l'inscription de cet utilisateur
|
||||
<br> - Actif : Boolean indiquant si l'utilisateur est actif
|
||||
<br>
|
||||
<br> Chaque communication entres utilisateurs sera stockée dans une table de la forme
|
||||
<br> +--------------+--------+---------+--------------+
|
||||
<br> | Destinataire | Source | Message | Date d'envoi |
|
||||
<br> +--------------+--------+---------+--------------+
|
||||
<br> - Destinataire : Id du destinataire du message
|
||||
<br> - Source : Id de celui qui envoie le message
|
||||
<br> - Message : Msg envoyé
|
||||
<br> - Date d'envoi : Date a laquelle Source a envoyé le message à destinataire</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="blockList">
|
||||
|
|
@ -126,7 +143,7 @@ extends java.lang.Object</pre>
|
|||
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">DataBase</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Constructeur de la database
|
||||
On installe le driver et on établit la connection.</div>
|
||||
<br> On installe le driver et on établit la connection.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
@ -154,27 +171,27 @@ extends java.lang.Object</pre>
|
|||
<tbody>
|
||||
<tr class="altColor" id="i0">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ajoutHistorique(java.lang.String,java.lang.String,java.lang.String)">ajoutHistorique</a></span>​(java.lang.String IDdest,
|
||||
java.lang.String IDsrc,
|
||||
java.lang.String Msg)</code></th>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ajoutHistorique(java.lang.String,java.lang.String,java.lang.String)">ajoutHistorique</a></span>​(java.lang.String iDdest,
|
||||
java.lang.String iDsrc,
|
||||
java.lang.String msg)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Methode permettant de mettre a jour le pseudo d'un utilisateur en fonction de son ID dans la base de donnee</div>
|
||||
<div class="block">Méthode permettant de mettre a jour le pseudo d'un utilisateur en fonction de son ID dans la base de donnée</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i1">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ajoutUtilisateurs(java.lang.String,java.lang.String)">ajoutUtilisateurs</a></span>​(java.lang.String ID,
|
||||
java.lang.String Pseudo)</code></th>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ajoutUtilisateurs(java.lang.String,java.lang.String)">ajoutUtilisateurs</a></span>​(java.lang.String iD,
|
||||
java.lang.String pseudo)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Methode permettant d'ajouter un utilisateur dans la base de donnée si celui-ci n'existe pas deja</div>
|
||||
<div class="block">Méthode permettant d'ajouter un utilisateur dans la base de donnée si celui-ci n'existe pas déjà</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i2">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#CreationTableHistorique(java.lang.String,java.lang.String)">CreationTableHistorique</a></span>​(java.lang.String ID1,
|
||||
java.lang.String ID2)</code></th>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#creationTableHistorique(java.lang.String,java.lang.String)">creationTableHistorique</a></span>​(java.lang.String iD1,
|
||||
java.lang.String iD2)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Methode permettant de creer une table pour stocker les messages entre deux utilisateurs</div>
|
||||
<div class="block">Methode permettant de créer une table pour stocker les messages entre deux utilisateurs</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i3">
|
||||
|
|
@ -186,23 +203,25 @@ java.lang.String ID2)</code></th>
|
|||
</tr>
|
||||
<tr class="altColor" id="i4">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getNomTable(chatapp.Model.Utilisateur,chatapp.Model.Utilisateur)">getNomTable</a></span>​(<a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> U1,
|
||||
<a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> U2)</code></th>
|
||||
<td class="colLast"> </td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getNomTable(chatapp.Model.Utilisateur,chatapp.Model.Utilisateur)">getNomTable</a></span>​(<a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> u1,
|
||||
<a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> u2)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Méthode permettant de récupérer le nom de la table où sont stockés les messages de 2 utilisateurs.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i5">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#idExiste(java.lang.String)">idExiste</a></span>​(java.lang.String ID)</code></th>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#idExiste(java.lang.String)">idExiste</a></span>​(java.lang.String iD)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Methode permettant de savoir si un utilisateur existe dans la base de donnée 'Utilisateurs'</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i6">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#majPseudo(java.lang.String,java.lang.String)">majPseudo</a></span>​(java.lang.String ID,
|
||||
java.lang.String Pseudo)</code></th>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#majPseudo(java.lang.String,java.lang.String)">majPseudo</a></span>​(java.lang.String iD,
|
||||
java.lang.String pseudo)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Methode permettant de mettre a jour le pseudo d'un utilisateur en fonction de son ID dans la base de donnee</div>
|
||||
<div class="block">Méthode permettant de mettre a jour le pseudo d'un utilisateur en fonction de son ID dans la base de donnee</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i7">
|
||||
|
|
@ -210,33 +229,33 @@ java.lang.String Pseudo)</code></th>
|
|||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#majUtilisateursActifs(java.lang.Boolean,java.lang.String)">majUtilisateursActifs</a></span>​(java.lang.Boolean Connecte,
|
||||
java.lang.String Id)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Methode permettant de mettre a jour les utilisateurs actuellement actif</div>
|
||||
<div class="block">Méthode permettant de mettre a jour les utilisateurs actuellement actif</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i8">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#recupMsg(java.lang.String,java.lang.String,int,int)">recupMsg</a></span>​(java.lang.String ID,
|
||||
java.lang.String IDdestinataire,
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#recupMsg(java.lang.String,java.lang.String,int,int)">recupMsg</a></span>​(java.lang.String iD,
|
||||
java.lang.String iDdestinataire,
|
||||
int deb,
|
||||
int fin)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Methode permettant de recuperer les messages d'une plage de donnée [deb,fin] envoyés entre 2 utilisateurs</div>
|
||||
<div class="block">Méthode permettant de récupérer les messages d'une plage de donnée [deb,fin] envoyés entre 2 utilisateurs</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i9">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#recupNMsg(java.lang.String,java.lang.String,int)">recupNMsg</a></span>​(java.lang.String ID,
|
||||
java.lang.String IDdestinataire,
|
||||
int N)</code></th>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#recupNMsg(java.lang.String,java.lang.String,int)">recupNMsg</a></span>​(java.lang.String iD,
|
||||
java.lang.String iDdestinataire,
|
||||
int n)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Methode permettant de recuperer les N derniers messages envoyés entre 2 utilisateurs</div>
|
||||
<div class="block">Méthode permettant de récupérer les N derniers messages envoyés entre 2 utilisateurs</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i10">
|
||||
<td class="colFirst"><code>java.lang.Integer</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#tailleBDD(java.lang.String)">tailleBDD</a></span>​(java.lang.String nomTable)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Cette méthode sert à recuperer la taille d'un base de donnée</div>
|
||||
<div class="block">Cette méthode sert à récupérer la taille d'un base de donnée</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
@ -266,7 +285,7 @@ int N)</code></th>
|
|||
<h3><a id="<init>()">DataBase</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="memberName">DataBase</span>()</div>
|
||||
<div class="block">Constructeur de la database
|
||||
On installe le driver et on établit la connection.</div>
|
||||
<br> On installe le driver et on établit la connection.</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -286,61 +305,61 @@ int N)</code></th>
|
|||
<div class="block">Méthode permettant de renvoyer une instance de la classe DataBase</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Retourne l'instance du singleton DataBase.</dd>
|
||||
<dd>L'instance du singleton DataBase.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="CreationTableHistorique(java.lang.String,java.lang.String)">CreationTableHistorique</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">CreationTableHistorique</span>​(<span class="arguments">java.lang.String ID1,
|
||||
java.lang.String ID2)</span></div>
|
||||
<div class="block">Methode permettant de creer une table pour stocker les messages entre deux utilisateurs</div>
|
||||
<h3><a id="creationTableHistorique(java.lang.String,java.lang.String)">creationTableHistorique</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">creationTableHistorique</span>​(<span class="arguments">java.lang.String iD1,
|
||||
java.lang.String iD2)</span></div>
|
||||
<div class="block">Methode permettant de créer une table pour stocker les messages entre deux utilisateurs</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>ID1</code> - Id du premier utilisateur</dd>
|
||||
<dd><code>ID2</code> - Id du second utilisateur</dd>
|
||||
<dd><code>iD1</code> - Id du premier utilisateur</dd>
|
||||
<dd><code>iD2</code> - Id du second utilisateur</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="majPseudo(java.lang.String,java.lang.String)">majPseudo</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">majPseudo</span>​(<span class="arguments">java.lang.String ID,
|
||||
java.lang.String Pseudo)</span></div>
|
||||
<div class="block">Methode permettant de mettre a jour le pseudo d'un utilisateur en fonction de son ID dans la base de donnee</div>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">majPseudo</span>​(<span class="arguments">java.lang.String iD,
|
||||
java.lang.String pseudo)</span></div>
|
||||
<div class="block">Méthode permettant de mettre a jour le pseudo d'un utilisateur en fonction de son ID dans la base de donnee</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>ID</code> - Id de l'utilisateur qui vient de changer de pseudo</dd>
|
||||
<dd><code>Pseudo</code> - Nouveau Pseudo de l'utilisateur</dd>
|
||||
<dd><code>iD</code> - Id de l'utilisateur qui vient de changer de pseudo</dd>
|
||||
<dd><code>pseudo</code> - Nouveau Pseudo de l'utilisateur</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="ajoutHistorique(java.lang.String,java.lang.String,java.lang.String)">ajoutHistorique</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">ajoutHistorique</span>​(<span class="arguments">java.lang.String IDdest,
|
||||
java.lang.String IDsrc,
|
||||
java.lang.String Msg)</span></div>
|
||||
<div class="block">Methode permettant de mettre a jour le pseudo d'un utilisateur en fonction de son ID dans la base de donnee</div>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">ajoutHistorique</span>​(<span class="arguments">java.lang.String iDdest,
|
||||
java.lang.String iDsrc,
|
||||
java.lang.String msg)</span></div>
|
||||
<div class="block">Méthode permettant de mettre a jour le pseudo d'un utilisateur en fonction de son ID dans la base de donnée</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>IDdest</code> - Id de l'utilisateur Destinataire du message</dd>
|
||||
<dd><code>IDsrc</code> - Id de celui qui envoi le message</dd>
|
||||
<dd><code>Msg</code> - Message envoye entre les deux utilisateurs</dd>
|
||||
<dd><code>iDdest</code> - Id de l'utilisateur Destinataire du message</dd>
|
||||
<dd><code>iDsrc</code> - Id de celui qui envoi le message</dd>
|
||||
<dd><code>msg</code> - Message envoye entre les deux utilisateurs</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="ajoutUtilisateurs(java.lang.String,java.lang.String)">ajoutUtilisateurs</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">ajoutUtilisateurs</span>​(<span class="arguments">java.lang.String ID,
|
||||
java.lang.String Pseudo)</span></div>
|
||||
<div class="block">Methode permettant d'ajouter un utilisateur dans la base de donnée si celui-ci n'existe pas deja</div>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">ajoutUtilisateurs</span>​(<span class="arguments">java.lang.String iD,
|
||||
java.lang.String pseudo)</span></div>
|
||||
<div class="block">Méthode permettant d'ajouter un utilisateur dans la base de donnée si celui-ci n'existe pas déjà</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>ID</code> - Id de l'utilisateur que l'on veut rajouter</dd>
|
||||
<dd><code>Pseudo</code> - pseudo actuelle de l'utilisateur</dd>
|
||||
<dd><code>iD</code> - Id de l'utilisateur que l'on veut rajouter</dd>
|
||||
<dd><code>pseudo</code> - Pseudo actuelle de l'utilisateur</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -349,26 +368,26 @@ java.lang.String Pseudo)</span></div>
|
|||
<h3><a id="majUtilisateursActifs(java.lang.Boolean,java.lang.String)">majUtilisateursActifs</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">majUtilisateursActifs</span>​(<span class="arguments">java.lang.Boolean Connecte,
|
||||
java.lang.String Id)</span></div>
|
||||
<div class="block">Methode permettant de mettre a jour les utilisateurs actuellement actif</div>
|
||||
<div class="block">Méthode permettant de mettre a jour les utilisateurs actuellement actif</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>Id</code> - Id de l'utilisateur qui vient de se connecter ou deconnecter</dd>
|
||||
<dd><code>Connecte</code> - Boolean true si il est connecte , false sinon</dd>
|
||||
<dd><code>Id</code> - Id de l'utilisateur qui vient de se connecter ou déconnecter</dd>
|
||||
<dd><code>Connecte</code> - Boolean true si il est connecté , false sinon</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="recupNMsg(java.lang.String,java.lang.String,int)">recupNMsg</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.String</span> <span class="memberName">recupNMsg</span>​(<span class="arguments">java.lang.String ID,
|
||||
java.lang.String IDdestinataire,
|
||||
int N)</span></div>
|
||||
<div class="block">Methode permettant de recuperer les N derniers messages envoyés entre 2 utilisateurs</div>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.String</span> <span class="memberName">recupNMsg</span>​(<span class="arguments">java.lang.String iD,
|
||||
java.lang.String iDdestinataire,
|
||||
int n)</span></div>
|
||||
<div class="block">Méthode permettant de récupérer les N derniers messages envoyés entre 2 utilisateurs</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>ID</code> - Utilisateur associé a ChatApp</dd>
|
||||
<dd><code>IDdestinataire</code> - Celui avec qui correspond ID</dd>
|
||||
<dd><code>N</code> - le nombre de messages souhaités</dd>
|
||||
<dd><code>iD</code> - Utilisateur associé a ChatApp</dd>
|
||||
<dd><code>iDdestinataire</code> - Celui avec qui correspond ID</dd>
|
||||
<dd><code>n</code> - Le nombre de messages souhaités</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Les N derniers Messages</dd>
|
||||
</dl>
|
||||
|
|
@ -377,15 +396,15 @@ int N)</span></div>
|
|||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="recupMsg(java.lang.String,java.lang.String,int,int)">recupMsg</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.String</span> <span class="memberName">recupMsg</span>​(<span class="arguments">java.lang.String ID,
|
||||
java.lang.String IDdestinataire,
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.String</span> <span class="memberName">recupMsg</span>​(<span class="arguments">java.lang.String iD,
|
||||
java.lang.String iDdestinataire,
|
||||
int deb,
|
||||
int fin)</span></div>
|
||||
<div class="block">Methode permettant de recuperer les messages d'une plage de donnée [deb,fin] envoyés entre 2 utilisateurs</div>
|
||||
<div class="block">Méthode permettant de récupérer les messages d'une plage de donnée [deb,fin] envoyés entre 2 utilisateurs</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>ID</code> - Utilisateur associé a ChatApp</dd>
|
||||
<dd><code>IDdestinataire</code> - Celui avec qui correspond ID</dd>
|
||||
<dd><code>iD</code> - Utilisateur associé a ChatApp</dd>
|
||||
<dd><code>iDdestinataire</code> - Celui avec qui correspond ID</dd>
|
||||
<dd><code>deb</code> - On veut les messages à partir de l'indice deb</dd>
|
||||
<dd><code>fin</code> - On veut les messages jusqu'a l'indice fin</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
|
|
@ -397,7 +416,7 @@ int fin)</span></div>
|
|||
<section class="detail">
|
||||
<h3><a id="tailleBDD(java.lang.String)">tailleBDD</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.Integer</span> <span class="memberName">tailleBDD</span>​(<span class="arguments">java.lang.String nomTable)</span></div>
|
||||
<div class="block">Cette méthode sert à recuperer la taille d'un base de donnée</div>
|
||||
<div class="block">Cette méthode sert à récupérer la taille d'un base de donnée</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>nomTable</code> - Nom de la table de donnée dont on veut récuperer le nom</dd>
|
||||
|
|
@ -409,11 +428,11 @@ int fin)</span></div>
|
|||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="idExiste(java.lang.String)">idExiste</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">boolean</span> <span class="memberName">idExiste</span>​(<span class="arguments">java.lang.String ID)</span></div>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">boolean</span> <span class="memberName">idExiste</span>​(<span class="arguments">java.lang.String iD)</span></div>
|
||||
<div class="block">Methode permettant de savoir si un utilisateur existe dans la base de donnée 'Utilisateurs'</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>ID</code> - On recherche l'utilisateur dont l'ID est ID</dd>
|
||||
<dd><code>iD</code> - On recherche l'utilisateur dont l'ID est ID</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>True si l'utilisateur existe , False sinon</dd>
|
||||
</dl>
|
||||
|
|
@ -422,8 +441,16 @@ int fin)</span></div>
|
|||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="getNomTable(chatapp.Model.Utilisateur,chatapp.Model.Utilisateur)">getNomTable</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.String</span> <span class="memberName">getNomTable</span>​(<span class="arguments"><a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> U1,
|
||||
<a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> U2)</span></div>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.String</span> <span class="memberName">getNomTable</span>​(<span class="arguments"><a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> u1,
|
||||
<a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> u2)</span></div>
|
||||
<div class="block">Méthode permettant de récupérer le nom de la table où sont stockés les messages de 2 utilisateurs.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>u1</code> - Un des 2 utilisateurs</dd>
|
||||
<dd><code>u2</code> - Le second utilisateur</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Le nom de la table des historiques</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>ListUtilisateurs</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.Model, class: ListUtilisateurs">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
<script type="text/javascript" src="../../script-dir/jquery-ui.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration">
|
||||
<script type="text/javascript">var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10};
|
||||
<script type="text/javascript">var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10};
|
||||
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
||||
var altColor = "altColor";
|
||||
var rowColor = "rowColor";
|
||||
|
|
@ -100,7 +100,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<pre>public class <span class="typeNameLabel">ListUtilisateurs</span>
|
||||
extends java.lang.Object</pre>
|
||||
<div class="block"><p>
|
||||
Classe representant La liste des utilisateurs actifs, stockée localement
|
||||
Classe représentant la liste des utilisateurs actifs, stockée localement.
|
||||
</p></div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
|
|
@ -161,38 +161,45 @@ extends java.lang.Object</pre>
|
|||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#afficherListeUtilisateurs()">afficherListeUtilisateurs</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Methode affichant la liste des utilisateurs actifs</div>
|
||||
<div class="block">Méthode affichant la liste des utilisateurs actifs</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i2">
|
||||
<td class="colFirst"><code>java.lang.Boolean</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#appartient(chatapp.Model.Utilisateur)">appartient</a></span>​(<a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> u)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Methode permettant de savoir si un utilisateur est contenu dans la liste 'actifUsers'</div>
|
||||
<div class="block">Méthode permettant de savoir si un utilisateur est contenu dans la liste 'actifUsers'</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i3">
|
||||
<td class="colFirst"><code>java.util.ArrayList<<a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a>></code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getActifUsers()">getActifUsers</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Getter</div>
|
||||
<div class="block">Getter : ActifUsers (liste des utilisateurs actifs)</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i4">
|
||||
<td class="colFirst"><code><a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getIPList(java.net.InetAddress)">getIPList</a></span>​(java.net.InetAddress ip)</code></th>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getIDList(java.lang.String)">getIDList</a></span>​(java.lang.String iD)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Recuperer un utilisateur a partir de son addresse IP</div>
|
||||
<div class="block">Récupérer un utilisateur à partir de son ID</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i5">
|
||||
<td class="colFirst"><code><a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPseudoList(java.lang.String)">getPseudoList</a></span>​(java.lang.String pseudo)</code></th>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getIPList(java.net.InetAddress)">getIPList</a></span>​(java.net.InetAddress ip)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Recuperer un utilisateur a partir de son pseudo</div>
|
||||
<div class="block">Récupérer un utilisateur à partir de son addresse IP</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i6">
|
||||
<td class="colFirst"><code><a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPseudoList(java.lang.String)">getPseudoList</a></span>​(java.lang.String pseudo)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Récupérer un utilisateur à partir de son pseudo.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i7">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#modifierList(java.lang.String,java.lang.String)">modifierList</a></span>​(java.lang.String ancien,
|
||||
java.lang.String nouveau)</code></th>
|
||||
|
|
@ -200,18 +207,18 @@ java.lang.String nouveau)</code></th>
|
|||
<div class="block">Modifier le pseudo d'un utilisateur dans la liste des utilisateurs actifs 'actifUsers'</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i7">
|
||||
<tr class="altColor" id="i8">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#supprimerList(chatapp.Model.Utilisateur)">supprimerList</a></span>​(<a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> u)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Supprimer de la liste des utilisateurs actifs 'actifUsers' un certain utilisateur</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i8">
|
||||
<tr class="rowColor" id="i9">
|
||||
<td class="colFirst"><code>java.lang.Boolean</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#verifierUnicite(java.lang.String)">verifierUnicite</a></span>​(java.lang.String pseudo)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Verifie qu'aucun autre utilisateur ne possede le meme pseudo</div>
|
||||
<div class="block">Vérifie qu'aucun autre utilisateur ne posséde le meme pseudo</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
@ -260,7 +267,7 @@ java.lang.String nouveau)</code></th>
|
|||
<div class="block">Ajouter des utilisateurs actifs dans l'attribut liste 'actifUsers'</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>u</code> - on va rajouter cet utilisateur dans la liste</dd>
|
||||
<dd><code>u</code> - On va rajouter cet utilisateur dans la liste</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -268,10 +275,12 @@ java.lang.String nouveau)</code></th>
|
|||
<section class="detail">
|
||||
<h3><a id="getPseudoList(java.lang.String)">getPseudoList</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></span> <span class="memberName">getPseudoList</span>​(<span class="arguments">java.lang.String pseudo)</span></div>
|
||||
<div class="block">Recuperer un utilisateur a partir de son pseudo</div>
|
||||
<div class="block">Récupérer un utilisateur à partir de son pseudo.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>pseudo</code> - Pseudo de l'utilisateur que l'on souhaite retrouver</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>L'utilisateur associé à ce pseudo</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -280,12 +289,30 @@ java.lang.String nouveau)</code></th>
|
|||
<h3><a id="getIPList(java.net.InetAddress)">getIPList</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></span> <span class="memberName">getIPList</span>​(<span class="arguments">java.net.InetAddress ip)</span>
|
||||
throws <span class="exceptions">java.lang.Exception</span></div>
|
||||
<div class="block">Recuperer un utilisateur a partir de son addresse IP</div>
|
||||
<div class="block">Récupérer un utilisateur à partir de son addresse IP</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>ip</code> - adresse IP de l'utilisateur que l'on souhaite retrouver</dd>
|
||||
<dd><code>ip</code> - Adresse IP de l'utilisateur que l'on souhaite retrouver</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>L'utilisateur associé à l'adresse IP</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.lang.Exception</code></dd>
|
||||
<dd><code>java.lang.Exception</code> - No such user with this IP address</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="getIDList(java.lang.String)">getIDList</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></span> <span class="memberName">getIDList</span>​(<span class="arguments">java.lang.String iD)</span>
|
||||
throws <span class="exceptions">java.lang.Exception</span></div>
|
||||
<div class="block">Récupérer un utilisateur à partir de son ID</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>iD</code> - L'ID de l'utilisateur que l'on souhaite retrouver</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>L'utilisateur associé à l'adresse ID</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.lang.Exception</code> - No such user with this ID</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -296,7 +323,7 @@ java.lang.String nouveau)</code></th>
|
|||
<div class="block">Supprimer de la liste des utilisateurs actifs 'actifUsers' un certain utilisateur</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>u</code> - on va supprimer cet utilisateur dans la liste</dd>
|
||||
<dd><code>u</code> - On va supprimer cet utilisateur dans la liste</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -308,8 +335,8 @@ java.lang.String nouveau)</span></div>
|
|||
<div class="block">Modifier le pseudo d'un utilisateur dans la liste des utilisateurs actifs 'actifUsers'</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>ancien</code> - correspond au pseudo remplacer</dd>
|
||||
<dd><code>nouveau</code> - correspond au nouveau pseudo</dd>
|
||||
<dd><code>ancien</code> - Pseudo à remplacer</dd>
|
||||
<dd><code>nouveau</code> - Nouveau pseudo</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -317,12 +344,12 @@ java.lang.String nouveau)</span></div>
|
|||
<section class="detail">
|
||||
<h3><a id="appartient(chatapp.Model.Utilisateur)">appartient</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.Boolean</span> <span class="memberName">appartient</span>​(<span class="arguments"><a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> u)</span></div>
|
||||
<div class="block">Methode permettant de savoir si un utilisateur est contenu dans la liste 'actifUsers'</div>
|
||||
<div class="block">Méthode permettant de savoir si un utilisateur est contenu dans la liste 'actifUsers'</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>u</code> - on souhait savoir si cette utilisateur appartient a la liste</dd>
|
||||
<dd><code>u</code> - On souhaite savoir si cet utilisateur appartient a la liste</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>True si il appartient, false sinon</dd>
|
||||
<dd>True si il appartient, False sinon</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -330,12 +357,12 @@ java.lang.String nouveau)</span></div>
|
|||
<section class="detail">
|
||||
<h3><a id="verifierUnicite(java.lang.String)">verifierUnicite</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.Boolean</span> <span class="memberName">verifierUnicite</span>​(<span class="arguments">java.lang.String pseudo)</span></div>
|
||||
<div class="block">Verifie qu'aucun autre utilisateur ne possede le meme pseudo</div>
|
||||
<div class="block">Vérifie qu'aucun autre utilisateur ne posséde le meme pseudo</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>pseudo</code> - on va supprimer cet utilisateur dans la liste</dd>
|
||||
<dd><code>pseudo</code> - Pseudo dont on veut vérifier l'unicité</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>True si aucun utilisateur de la liste possede ce pseudo, false sinon</dd>
|
||||
<dd>True si aucun utilisateur de la liste possède ce pseudo, False sinon</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -343,14 +370,14 @@ java.lang.String nouveau)</span></div>
|
|||
<section class="detail">
|
||||
<h3><a id="afficherListeUtilisateurs()">afficherListeUtilisateurs</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">afficherListeUtilisateurs</span>()</div>
|
||||
<div class="block">Methode affichant la liste des utilisateurs actifs</div>
|
||||
<div class="block">Méthode affichant la liste des utilisateurs actifs</div>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="getActifUsers()">getActifUsers</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.util.ArrayList<<a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a>></span> <span class="memberName">getActifUsers</span>()</div>
|
||||
<div class="block">Getter</div>
|
||||
<div class="block">Getter : ActifUsers (liste des utilisateurs actifs)</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>La liste des utilisateurs actifs</dd>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>MessageHorodate</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.Model, class: MessageHorodate">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
@ -105,8 +105,12 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
extends java.lang.Object
|
||||
implements java.io.Serializable</pre>
|
||||
<div class="block"><p>
|
||||
Classe representant les messages envoyes en TCP lors d'une session de clavardage.
|
||||
Un message Horodate est compose d'un destintaire, d'une source , d'un message et d'une date d'envoie.
|
||||
Classe représentant les messages envoyés en TCP lors d'une session de clavardage.
|
||||
<br> Un message Horodaté est composé :
|
||||
<br> - d'un destintaire,
|
||||
<br> - d'une source,
|
||||
<br> - d'un message,
|
||||
<br> - d'une date d'envoi.
|
||||
</p></div>
|
||||
<dl>
|
||||
<dt><span class="seeLabel">See Also:</span></dt>
|
||||
|
|
@ -134,11 +138,11 @@ implements java.io.Serializable</pre>
|
|||
<tr class="altColor">
|
||||
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(chatapp.Model.Utilisateur,chatapp.Model.Utilisateur,java.lang.String,int)">MessageHorodate</a></span>​(<a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> destinataire,
|
||||
<a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> source,
|
||||
java.lang.String Message,
|
||||
java.lang.String message,
|
||||
int type)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">
|
||||
Constructeur , le message va etre horodate</div>
|
||||
Constructeur , le message va etre horodaté</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
@ -169,7 +173,7 @@ int type)</code></th>
|
|||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#dateToString()">dateToString</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">
|
||||
Permet de creer une representation string de la date d'horodatage</div>
|
||||
Permet de créer une représentation string de la date d'horodatage</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i1">
|
||||
|
|
@ -212,7 +216,7 @@ int type)</code></th>
|
|||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDate(java.util.Date)">setDate</a></span>​(java.util.Date d)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Setter: Date d'horodatage
|
||||
On modifie le date d'horodatage</div>
|
||||
<br> On modifie le date d'horodatage</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i7">
|
||||
|
|
@ -220,7 +224,7 @@ int type)</code></th>
|
|||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDateHorodatage(java.util.Date)">setDateHorodatage</a></span>​(java.util.Date dateHorodatage)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Setter: Date d'horodatage
|
||||
On modifie le date.</div>
|
||||
<br> On modifie le date.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i8">
|
||||
|
|
@ -228,7 +232,7 @@ int type)</code></th>
|
|||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDestinataire(chatapp.Model.Utilisateur)">setDestinataire</a></span>​(<a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> destinataire)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Setter: Utilisateur Destinataire
|
||||
On modifie l'utilisateur Destinataire</div>
|
||||
<br> On modifie l'utilisateur Destinataire</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i9">
|
||||
|
|
@ -236,7 +240,7 @@ int type)</code></th>
|
|||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMessage(java.lang.String)">setMessage</a></span>​(java.lang.String message)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Setter: Message envoye
|
||||
On modifie le message envoye</div>
|
||||
<br> On modifie le message envoyé</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i10">
|
||||
|
|
@ -244,7 +248,7 @@ int type)</code></th>
|
|||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setSource(chatapp.Model.Utilisateur)">setSource</a></span>​(<a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> source)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Setter: Utilisateur Source
|
||||
On modifie l'utilisateur source</div>
|
||||
<br> On modifie l'utilisateur source</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i11">
|
||||
|
|
@ -252,7 +256,7 @@ int type)</code></th>
|
|||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setType(int)">setType</a></span>​(int Type)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Setter: 'Type' du message horodate
|
||||
On modifie l'integer 'Type'</div>
|
||||
<br> On modifie l'integer 'Type'</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i12">
|
||||
|
|
@ -260,7 +264,7 @@ int type)</code></th>
|
|||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#stringToMessageHorodate(java.lang.String)">stringToMessageHorodate</a></span>​(java.lang.String s)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">
|
||||
Permet de re creer un message horodate a partir d'un string</div>
|
||||
Permet de re créer un message horodaté à partir d'un string</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i13">
|
||||
|
|
@ -268,7 +272,7 @@ int type)</code></th>
|
|||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toString()">toString</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">
|
||||
Permet de creer une representation string du message</div>
|
||||
Permet de créer une représentation string du message</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
@ -298,15 +302,16 @@ int type)</code></th>
|
|||
<h3><a id="<init>(chatapp.Model.Utilisateur,chatapp.Model.Utilisateur,java.lang.String,int)">MessageHorodate</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="memberName">MessageHorodate</span>​(<span class="arguments"><a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> destinataire,
|
||||
<a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> source,
|
||||
java.lang.String Message,
|
||||
java.lang.String message,
|
||||
int type)</span></div>
|
||||
<div class="block"><p>
|
||||
Constructeur , le message va etre horodate</div>
|
||||
Constructeur , le message va etre horodaté</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>destinataire</code> - - Destinataire du message</dd>
|
||||
<dd><code>source</code> - - Source du message</dd>
|
||||
<dd><code>Message</code> - - Message envoye
|
||||
<dd><code>message</code> - - Message envoyé</dd>
|
||||
<dd><code>type</code> - - Le type du message
|
||||
</p></dd>
|
||||
</dl>
|
||||
</section>
|
||||
|
|
@ -326,7 +331,11 @@ int type)</span></div>
|
|||
<h3><a id="setDate(java.util.Date)">setDate</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">setDate</span>​(<span class="arguments">java.util.Date d)</span></div>
|
||||
<div class="block">Setter: Date d'horodatage
|
||||
On modifie le date d'horodatage</div>
|
||||
<br> On modifie le date d'horodatage</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>d</code> - La nouvelle date d'horodatage</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
|
|
@ -334,12 +343,12 @@ int type)</span></div>
|
|||
<h3><a id="toString()">toString</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.String</span> <span class="memberName">toString</span>()</div>
|
||||
<div class="block"><p>
|
||||
Permet de creer une representation string du message</div>
|
||||
Permet de créer une représentation string du message</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
||||
<dd><code>toString</code> in class <code>java.lang.Object</code></dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Les differents attributs de la classe sous forme de string
|
||||
<dd>Les différents attributs de la classe sous forme de string
|
||||
</p></dd>
|
||||
</dl>
|
||||
</section>
|
||||
|
|
@ -349,7 +358,7 @@ int type)</span></div>
|
|||
<h3><a id="dateToString()">dateToString</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.String</span> <span class="memberName">dateToString</span>()</div>
|
||||
<div class="block"><p>
|
||||
Permet de creer une representation string de la date d'horodatage</div>
|
||||
Permet de créer une représentation string de la date d'horodatage</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>La date d'horodatage du message en format yyyy/MM/dd HH:mm:ss
|
||||
|
|
@ -362,8 +371,10 @@ int type)</span></div>
|
|||
<h3><a id="stringToMessageHorodate(java.lang.String)">stringToMessageHorodate</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public static</span> <span class="returnType"><a href="MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></span> <span class="memberName">stringToMessageHorodate</span>​(<span class="arguments">java.lang.String s)</span></div>
|
||||
<div class="block"><p>
|
||||
Permet de re creer un message horodate a partir d'un string</div>
|
||||
Permet de re créer un message horodaté à partir d'un string</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>s</code> - Le message permettant de re créer un msg horodaté</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>un messageHorodate
|
||||
</p></dd>
|
||||
|
|
@ -386,7 +397,11 @@ int type)</span></div>
|
|||
<h3><a id="setSource(chatapp.Model.Utilisateur)">setSource</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">setSource</span>​(<span class="arguments"><a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> source)</span></div>
|
||||
<div class="block">Setter: Utilisateur Source
|
||||
On modifie l'utilisateur source</div>
|
||||
<br> On modifie l'utilisateur source</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>source</code> - Le nouvel utilisateur source</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
|
|
@ -405,7 +420,11 @@ int type)</span></div>
|
|||
<h3><a id="setDestinataire(chatapp.Model.Utilisateur)">setDestinataire</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">setDestinataire</span>​(<span class="arguments"><a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> destinataire)</span></div>
|
||||
<div class="block">Setter: Utilisateur Destinataire
|
||||
On modifie l'utilisateur Destinataire</div>
|
||||
<br> On modifie l'utilisateur Destinataire</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>destinataire</code> - Le nouveau destinataire</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
|
|
@ -424,7 +443,11 @@ int type)</span></div>
|
|||
<h3><a id="setMessage(java.lang.String)">setMessage</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">setMessage</span>​(<span class="arguments">java.lang.String message)</span></div>
|
||||
<div class="block">Setter: Message envoye
|
||||
On modifie le message envoye</div>
|
||||
<br> On modifie le message envoyé</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>message</code> - Nouveau message</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
|
|
@ -443,7 +466,11 @@ int type)</span></div>
|
|||
<h3><a id="setType(int)">setType</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">setType</span>​(<span class="arguments">int Type)</span></div>
|
||||
<div class="block">Setter: 'Type' du message horodate
|
||||
On modifie l'integer 'Type'</div>
|
||||
<br> On modifie l'integer 'Type'</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>Type</code> - Nouveau type</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
|
|
@ -462,7 +489,11 @@ int type)</span></div>
|
|||
<h3><a id="setDateHorodatage(java.util.Date)">setDateHorodatage</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">setDateHorodatage</span>​(<span class="arguments">java.util.Date dateHorodatage)</span></div>
|
||||
<div class="block">Setter: Date d'horodatage
|
||||
On modifie le date.</div>
|
||||
<br> On modifie le date.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>dateHorodatage</code> - Nouvelle date d'horodatage</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>Utilisateur</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.Model, class: Utilisateur">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
@ -100,8 +100,12 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<pre>public class <span class="typeNameLabel">Utilisateur</span>
|
||||
extends java.lang.Object</pre>
|
||||
<div class="block"><p>
|
||||
Classe representant un Utilisateur
|
||||
Un Utilisateur est associe avec un pseudo, un numero de port, une addresse IP ainsi qu'un ID.
|
||||
Classe representant un Utilisateur.
|
||||
<br> Un Utilisateur est associé avec :
|
||||
<br> - un pseudo,
|
||||
<br> - un numéro de port,
|
||||
<br> - une addresse IP
|
||||
<br> - un ID.
|
||||
</p></div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
|
|
@ -127,7 +131,16 @@ extends java.lang.Object</pre>
|
|||
java.lang.Integer port,
|
||||
java.net.InetAddress ip)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Constructeur : Utilisateur</div>
|
||||
<div class="block">Constructeur : Utilisateur (3 paramètres)</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.lang.String,java.lang.Integer,java.net.InetAddress,java.lang.String)">Utilisateur</a></span>​(java.lang.String pseudo,
|
||||
java.lang.Integer port,
|
||||
java.net.InetAddress ip,
|
||||
java.lang.String id)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Constructeur : Utilisateur (4 paramètres)</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
@ -156,47 +169,67 @@ java.net.InetAddress ip)</code></th>
|
|||
<tr class="altColor" id="i0">
|
||||
<td class="colFirst"><code>java.lang.Boolean</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#equals(chatapp.Model.Utilisateur)">equals</a></span>​(<a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> u)</code></th>
|
||||
<td class="colLast"> </td>
|
||||
<td class="colLast">
|
||||
<div class="block">Méthode permettant de comparer deux utilisateurs entre eux grace à leur ID.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i1">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getId()">getId</a></span>()</code></th>
|
||||
<td class="colLast"> </td>
|
||||
<td class="colLast">
|
||||
<div class="block">Getter ID</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i2">
|
||||
<td class="colFirst"><code>java.net.InetAddress</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getIp()">getIp</a></span>()</code></th>
|
||||
<td class="colLast"> </td>
|
||||
<td class="colLast">
|
||||
<div class="block">Getter IP</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i3">
|
||||
<td class="colFirst"><code>java.lang.Integer</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPort()">getPort</a></span>()</code></th>
|
||||
<td class="colLast"> </td>
|
||||
<td class="colLast">
|
||||
<div class="block">Getter Port</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i4">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPseudo()">getPseudo</a></span>()</code></th>
|
||||
<td class="colLast"> </td>
|
||||
<td class="colLast">
|
||||
<div class="block">Getter Pseudo</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i5">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPort(java.lang.Integer)">setPort</a></span>​(java.lang.Integer port)</code></th>
|
||||
<td class="colLast"> </td>
|
||||
<td class="colLast">
|
||||
<div class="block">Setter Port</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i6">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPseudo(java.lang.String)">setPseudo</a></span>​(java.lang.String pseudo)</code></th>
|
||||
<td class="colLast"> </td>
|
||||
<td class="colLast">
|
||||
<div class="block">Setter Pseudo</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i7">
|
||||
<td class="colFirst"><code>static <a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#stringToUtilisateur(java.lang.String)">stringToUtilisateur</a></span>​(java.lang.String s)</code></th>
|
||||
<td class="colLast"> </td>
|
||||
<td class="colLast">
|
||||
<div class="block">Méthode permettant de convertir un string en Utilisateur</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i8">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toString()">toString</a></span>()</code></th>
|
||||
<td class="colLast"> </td>
|
||||
<td class="colLast">
|
||||
<div class="block">Méthode permettant de convertir un objet Utilisateur en String
|
||||
<br> Format du string :
|
||||
<br> pseudo ___ | port ___ | ip ___ | id ___ | ( '___' sont à remplacer par les valeurs réels)</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
@ -226,12 +259,29 @@ java.net.InetAddress ip)</code></th>
|
|||
<div class="memberSignature"><span class="modifiers">public</span> <span class="memberName">Utilisateur</span>​(<span class="arguments">java.lang.String pseudo,
|
||||
java.lang.Integer port,
|
||||
java.net.InetAddress ip)</span></div>
|
||||
<div class="block">Constructeur : Utilisateur</div>
|
||||
<div class="block">Constructeur : Utilisateur (3 paramètres)</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>pseudo</code> - Le pseudo associe</dd>
|
||||
<dd><code>port</code> - </dd>
|
||||
<dd><code>ip</code> - </dd>
|
||||
<dd><code>pseudo</code> - Le pseudo associé</dd>
|
||||
<dd><code>port</code> - Le port</dd>
|
||||
<dd><code>ip</code> - L'adresse IP</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="<init>(java.lang.String,java.lang.Integer,java.net.InetAddress,java.lang.String)">Utilisateur</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="memberName">Utilisateur</span>​(<span class="arguments">java.lang.String pseudo,
|
||||
java.lang.Integer port,
|
||||
java.net.InetAddress ip,
|
||||
java.lang.String id)</span></div>
|
||||
<div class="block">Constructeur : Utilisateur (4 paramètres)</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>pseudo</code> - Le pseudo associé</dd>
|
||||
<dd><code>port</code> - Le port</dd>
|
||||
<dd><code>ip</code> - L'adresse IP</dd>
|
||||
<dd><code>id</code> - L'id</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -249,45 +299,80 @@ java.net.InetAddress ip)</span></div>
|
|||
<section class="detail">
|
||||
<h3><a id="getPseudo()">getPseudo</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.String</span> <span class="memberName">getPseudo</span>()</div>
|
||||
<div class="block">Getter Pseudo</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Le pseudo de l'utilisateur</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="setPseudo(java.lang.String)">setPseudo</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">setPseudo</span>​(<span class="arguments">java.lang.String pseudo)</span></div>
|
||||
<div class="block">Setter Pseudo</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>pseudo</code> - Le nouveau pseudo que l'on souhaite</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="getPort()">getPort</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.Integer</span> <span class="memberName">getPort</span>()</div>
|
||||
<div class="block">Getter Port</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Le numéro de port de l'utilisateur</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="setPort(java.lang.Integer)">setPort</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">setPort</span>​(<span class="arguments">java.lang.Integer port)</span></div>
|
||||
<div class="block">Setter Port</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>port</code> - Le nouveau numéro de port</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="getIp()">getIp</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.net.InetAddress</span> <span class="memberName">getIp</span>()</div>
|
||||
<div class="block">Getter IP</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>L'adresse IP de l'utilisateur</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="getId()">getId</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.String</span> <span class="memberName">getId</span>()</div>
|
||||
<div class="block">Getter ID</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>L'ID de l'utilisateur</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="toString()">toString</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.String</span> <span class="memberName">toString</span>()</div>
|
||||
<div class="block">Méthode permettant de convertir un objet Utilisateur en String
|
||||
<br> Format du string :
|
||||
<br> pseudo ___ | port ___ | ip ___ | id ___ | ( '___' sont à remplacer par les valeurs réels)</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
||||
<dd><code>toString</code> in class <code>java.lang.Object</code></dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>L'utilisateur sous forme de String</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -295,12 +380,26 @@ java.net.InetAddress ip)</span></div>
|
|||
<section class="detail">
|
||||
<h3><a id="stringToUtilisateur(java.lang.String)">stringToUtilisateur</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public static</span> <span class="returnType"><a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></span> <span class="memberName">stringToUtilisateur</span>​(<span class="arguments">java.lang.String s)</span></div>
|
||||
<div class="block">Méthode permettant de convertir un string en Utilisateur</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>s</code> - Le paramètre String a transformé</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Un utilisateur</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="equals(chatapp.Model.Utilisateur)">equals</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.lang.Boolean</span> <span class="memberName">equals</span>​(<span class="arguments"><a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> u)</span></div>
|
||||
<div class="block">Méthode permettant de comparer deux utilisateurs entre eux grace à leur ID.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>u</code> - L'utilisateur avec lequel on veut être comparer.</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>True si ils ont le même ID, False sinon.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>chatapp.Model</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.Model">
|
||||
<meta name="generator" content="javadoc/PackageWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
@ -86,29 +86,28 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<th class="colFirst" scope="row"><a href="DataBase.html" title="class in chatapp.Model">DataBase</a></th>
|
||||
<td class="colLast">
|
||||
<div class="block">
|
||||
Classe representant la Base de données.</div>
|
||||
Classe représentant la Base de données.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<th class="colFirst" scope="row"><a href="ListUtilisateurs.html" title="class in chatapp.Model">ListUtilisateurs</a></th>
|
||||
<td class="colLast">
|
||||
<div class="block">
|
||||
Classe representant La liste des utilisateurs actifs, stockée localement</div>
|
||||
Classe représentant la liste des utilisateurs actifs, stockée localement.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<th class="colFirst" scope="row"><a href="MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></th>
|
||||
<td class="colLast">
|
||||
<div class="block">
|
||||
Classe representant les messages envoyes en TCP lors d'une session de clavardage.</div>
|
||||
Classe représentant les messages envoyés en TCP lors d'une session de clavardage.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<th class="colFirst" scope="row"><a href="Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></th>
|
||||
<td class="colLast">
|
||||
<div class="block">
|
||||
Classe representant un Utilisateur
|
||||
Un Utilisateur est associe avec un pseudo, un numero de port, une addresse IP ainsi qu'un ID.</div>
|
||||
Classe representant un Utilisateur.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>chatapp.Model Class Hierarchy</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="tree: package: chatapp.Model">
|
||||
<meta name="generator" content="javadoc/PackageTreeWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
|
|||
309
Javadoc/chatapp/Protocol/HttpEchange.html
Normal file
|
|
@ -0,0 +1,309 @@
|
|||
<!DOCTYPE HTML>
|
||||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>HttpEchange</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.Protocol, class: HttpEchange">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
<link rel="stylesheet" type="text/css" href="../../script-dir/jquery-ui.css" title="Style">
|
||||
<script type="text/javascript" src="../../script.js"></script>
|
||||
<script type="text/javascript" src="../../script-dir/jszip/dist/jszip.min.js"></script>
|
||||
<script type="text/javascript" src="../../script-dir/jszip-utils/dist/jszip-utils.min.js"></script>
|
||||
<!--[if IE]>
|
||||
<script type="text/javascript" src="../../script-dir/jszip-utils/dist/jszip-utils-ie.min.js"></script>
|
||||
<![endif]-->
|
||||
<script type="text/javascript" src="../../script-dir/jquery-3.4.1.js"></script>
|
||||
<script type="text/javascript" src="../../script-dir/jquery-ui.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration">
|
||||
<script type="text/javascript">var data = {"i0":9,"i1":10,"i2":9};
|
||||
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
||||
var altColor = "altColor";
|
||||
var rowColor = "rowColor";
|
||||
var tableTab = "tableTab";
|
||||
var activeTableTab = "activeTableTab";
|
||||
var pathtoroot = "../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<div class="fixedNav">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="topNav"><a id="navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a id="navbar.top.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../../index.html">Overview</a></li>
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li class="navBarCell1Rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<div>
|
||||
<ul class="subNavList">
|
||||
<li>Summary: </li>
|
||||
<li>Nested | </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||
<li><a href="#method.summary">Method</a></li>
|
||||
</ul>
|
||||
<ul class="subNavList">
|
||||
<li>Detail: </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||
<li><a href="#method.detail">Method</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="navListSearch"><label for="search">SEARCH:</label>
|
||||
<input type="text" id="search" value="search" disabled="disabled">
|
||||
<input type="reset" id="reset" value="reset" disabled="disabled">
|
||||
</div>
|
||||
</div>
|
||||
<a id="skip.navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
</div>
|
||||
<div class="navPadding"> </div>
|
||||
<script type="text/javascript"><!--
|
||||
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
||||
//-->
|
||||
</script>
|
||||
</nav>
|
||||
</header>
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<main role="main">
|
||||
<div class="header">
|
||||
<div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">chatapp.Protocol</a></div>
|
||||
<h1 title="Class HttpEchange" class="title">Class HttpEchange</h1>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<div class="inheritance" title="Inheritance Tree">java.lang.Object
|
||||
<div class="inheritance">chatapp.Protocol.HttpEchange</div>
|
||||
</div>
|
||||
<section class="description">
|
||||
<hr>
|
||||
<pre>public class <span class="typeNameLabel">HttpEchange</span>
|
||||
extends java.lang.Object</pre>
|
||||
<div class="block"><p>
|
||||
Classe representant les échanges HTTP entre un utilisateur distant et le servlet.
|
||||
</p></div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="blockList">
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li class="blockList">
|
||||
<section class="constructorSummary"><a id="constructor.summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="memberSummary">
|
||||
<table>
|
||||
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Constructor</th>
|
||||
<th class="colLast" scope="col">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="altColor">
|
||||
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(chatapp.Controller.ChatApp)">HttpEchange</a></span>​(<a href="../Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a> chatapp)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block"> Constructeur de la classe HttpEchange</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li class="blockList">
|
||||
<section class="methodSummary"><a id="method.summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2>Method Summary</h2>
|
||||
<div class="memberSummary">
|
||||
<div role="tablist" aria-orientation="horizontal"><button role="tab" aria-selected="true" aria-controls="memberSummary_tabpanel" tabindex="0" onkeydown="switchTab(event)" id="t0" class="activeTableTab">All Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t1" class="tableTab" onclick="show(1);">Static Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t2" class="tableTab" onclick="show(2);">Instance Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t4" class="tableTab" onclick="show(8);">Concrete Methods</button></div>
|
||||
<div id="memberSummary_tabpanel" role="tabpanel">
|
||||
<table aria-labelledby="t0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Modifier and Type</th>
|
||||
<th class="colSecond" scope="col">Method</th>
|
||||
<th class="colLast" scope="col">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="altColor" id="i0">
|
||||
<td class="colFirst"><code>static java.lang.Boolean</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getConnecte()">getConnecte</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Getter : Connecte</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i1">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sendPost(java.lang.String)">sendPost</a></span>​(java.lang.String type)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block"> Cette méthode permet de communiquer avec le servlet grâce à des requetes http de type Post.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i2">
|
||||
<td class="colFirst"><code>static void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setConnecte(java.lang.Boolean)">setConnecte</a></span>​(java.lang.Boolean value)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Setter : Connecte</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inheritedList">
|
||||
<h3>Methods inherited from class java.lang.Object</h3>
|
||||
<a id="methods.inherited.from.class.java.lang.Object">
|
||||
<!-- -->
|
||||
</a><code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="details">
|
||||
<ul class="blockList">
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li class="blockList">
|
||||
<section class="constructorDetails"><a id="constructor.detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="<init>(chatapp.Controller.ChatApp)">HttpEchange</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="memberName">HttpEchange</span>​(<span class="arguments"><a href="../Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a> chatapp)</span></div>
|
||||
<div class="block"><p> Constructeur de la classe HttpEchange</p></div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>chatapp</code> - La methode prend toujours en argument un paramètre chatApp associé à un utilisateur.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li class="blockList">
|
||||
<section class="methodDetails"><a id="method.detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2>Method Details</h2>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="sendPost(java.lang.String)">sendPost</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">boolean</span> <span class="memberName">sendPost</span>​(<span class="arguments">java.lang.String type)</span>
|
||||
throws <span class="exceptions">java.io.IOException,
|
||||
java.lang.InterruptedException</span></div>
|
||||
<div class="block"><p> Cette méthode permet de communiquer avec le servlet grâce à des requetes http de type Post.</p></div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>type</code> - Le type de message ("Connexion", "Changement de pseudo" , "Deconnexion") ainsi que les parametres associés</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>True ou False selon la réponse a chaque type de message envoyé.</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code></dd>
|
||||
<dd><code>java.lang.InterruptedException</code></dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="getConnecte()">getConnecte</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public static</span> <span class="returnType">java.lang.Boolean</span> <span class="memberName">getConnecte</span>()</div>
|
||||
<div class="block">Getter : Connecte</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Le boolean connecté (True s'il peut se connecter avec ce nom d'utilisateur , False sinon)</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="setConnecte(java.lang.Boolean)">setConnecte</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public static</span> <span class="returnType">void</span> <span class="memberName">setConnecte</span>​(<span class="arguments">java.lang.Boolean value)</span></div>
|
||||
<div class="block">Setter : Connecte</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>value</code> - La nouvelle valeur du boolean de connexion</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
<footer role="contentinfo">
|
||||
<nav role="navigation">
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a id="navbar.bottom">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a id="navbar.bottom.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../../index.html">Overview</a></li>
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li class="navBarCell1Rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<div>
|
||||
<ul class="subNavList">
|
||||
<li>Summary: </li>
|
||||
<li>Nested | </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||
<li><a href="#method.summary">Method</a></li>
|
||||
</ul>
|
||||
<ul class="subNavList">
|
||||
<li>Detail: </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||
<li><a href="#method.detail">Method</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<a id="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</nav>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>RunnerEcouteTCP</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.Protocol, class: RunnerEcouteTCP">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
@ -107,7 +107,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
extends java.lang.Thread</pre>
|
||||
<div class="block"><p>
|
||||
Classe permettant de gérer les multiples connexions en TCP.
|
||||
Extend la classe Thread.
|
||||
<br> Extend la classe Thread.
|
||||
</p></div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
|
|
@ -206,14 +206,14 @@ extends java.lang.Thread</pre>
|
|||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener</a></span>​(java.beans.PropertyChangeListener pcl)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Permet aux classes qui appelle cette methode de connecter un PropertyChangeListener au PropertyChangeSupport</div>
|
||||
<div class="block">Permet aux classes qui appellent cette methode de connecter un PropertyChangeListener au PropertyChangeSupport</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i1">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addSession(chatapp.Protocol.SessionClavardage)">addSession</a></span>​(<a href="SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a> session)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Methode permettant d'ajouter une session active dans la liste 'ListeSessions'</div>
|
||||
<div class="block">Méthode permettant d'ajouter une session active dans la liste 'ListeSessions'</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i2">
|
||||
|
|
@ -221,21 +221,21 @@ extends java.lang.Thread</pre>
|
|||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ecouteTCP(chatapp.Controller.ChatApp)">ecouteTCP</a></span>​(<a href="../Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a> app)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">
|
||||
Methode pour qu'un objet de la classe ChatApp soit constamment en a l'ecoute de potentielles connexions</div>
|
||||
Methode pour qu'un objet de la classe ChatApp soit constamment en a l'écoute de potentielles connexions</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i3">
|
||||
<td class="colFirst"><code><a href="SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSessionClavardage()">getSessionClavardage</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Methode permettant de recupere la derniere session de clavardage creee dans 'ListeSessions'</div>
|
||||
<div class="block">Méthode permettant de recupérer la derniere session de clavardage créée dans 'ListeSessions'</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i4">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#run()">run</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Methode qui vient ecraser la méthode run de la classe Thread.</div>
|
||||
<div class="block">Méthode qui vient écraser la méthode run de la classe Thread.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
@ -306,10 +306,10 @@ extends java.lang.Thread</pre>
|
|||
<section class="detail">
|
||||
<h3><a id="addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">addPropertyChangeListener</span>​(<span class="arguments">java.beans.PropertyChangeListener pcl)</span></div>
|
||||
<div class="block">Permet aux classes qui appelle cette methode de connecter un PropertyChangeListener au PropertyChangeSupport</div>
|
||||
<div class="block">Permet aux classes qui appellent cette methode de connecter un PropertyChangeListener au PropertyChangeSupport</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>pcl</code> - le propertyChangeListener qui va ecouter les evenements du propertyChangeSupport associe</dd>
|
||||
<dd><code>pcl</code> - Le propertyChangeListener qui va ecouter les evenements du propertyChangeSupport associe</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -318,7 +318,7 @@ extends java.lang.Thread</pre>
|
|||
<h3><a id="ecouteTCP(chatapp.Controller.ChatApp)">ecouteTCP</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">ecouteTCP</span>​(<span class="arguments"><a href="../Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a> app)</span></div>
|
||||
<div class="block"><p>
|
||||
Methode pour qu'un objet de la classe ChatApp soit constamment en a l'ecoute de potentielles connexions</div>
|
||||
Methode pour qu'un objet de la classe ChatApp soit constamment en a l'écoute de potentielles connexions</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>app</code> - L'utilisateur en ecoute de potentielles communications
|
||||
|
|
@ -330,7 +330,7 @@ extends java.lang.Thread</pre>
|
|||
<section class="detail">
|
||||
<h3><a id="addSession(chatapp.Protocol.SessionClavardage)">addSession</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">addSession</span>​(<span class="arguments"><a href="SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a> session)</span></div>
|
||||
<div class="block">Methode permettant d'ajouter une session active dans la liste 'ListeSessions'</div>
|
||||
<div class="block">Méthode permettant d'ajouter une session active dans la liste 'ListeSessions'</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>session</code> - Session Active que l'on souhaite rajouter</dd>
|
||||
|
|
@ -341,7 +341,7 @@ extends java.lang.Thread</pre>
|
|||
<section class="detail">
|
||||
<h3><a id="getSessionClavardage()">getSessionClavardage</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></span> <span class="memberName">getSessionClavardage</span>()</div>
|
||||
<div class="block">Methode permettant de recupere la derniere session de clavardage creee dans 'ListeSessions'</div>
|
||||
<div class="block">Méthode permettant de recupérer la derniere session de clavardage créée dans 'ListeSessions'</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Premiere Session Active</dd>
|
||||
|
|
@ -352,8 +352,8 @@ extends java.lang.Thread</pre>
|
|||
<section class="detail">
|
||||
<h3><a id="run()">run</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">run</span>()</div>
|
||||
<div class="block">Methode qui vient ecraser la méthode run de la classe Thread.
|
||||
La méthode 'ecouteTCP' est appele.</div>
|
||||
<div class="block">Méthode qui vient écraser la méthode run de la classe Thread.
|
||||
La méthode 'ecouteTCP' est appelé.</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||
<dd><code>run</code> in interface <code>java.lang.Runnable</code></dd>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>RunnerEcouteUDP</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.Protocol, class: RunnerEcouteUDP">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
@ -107,7 +107,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
extends java.lang.Thread</pre>
|
||||
<div class="block"><p>
|
||||
Classe permettant de gérer les multiples connexions en UDP.
|
||||
Extend la classe Thread.
|
||||
<br> Extend la classe Thread.
|
||||
</p></div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
|
|
@ -187,7 +187,7 @@ extends java.lang.Thread</pre>
|
|||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#run()">run</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Methode qui vient ecraser la méthode run de la classe Thread.</div>
|
||||
<div class="block">Méthode qui vient ecraser la méthode run de la classe Thread.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
@ -224,7 +224,7 @@ extends java.lang.Thread</pre>
|
|||
<div class="block">Constructeur</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>app</code> - Un RunnerEcouteUDP est toujours associé a une application de Chat</dd>
|
||||
<dd><code>app</code> - Un RunnerEcouteUDP est toujours associé à une application de Chat</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -242,8 +242,8 @@ extends java.lang.Thread</pre>
|
|||
<section class="detail">
|
||||
<h3><a id="run()">run</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">run</span>()</div>
|
||||
<div class="block">Methode qui vient ecraser la méthode run de la classe Thread.
|
||||
La méthode 'ecouteUDP' est appele.</div>
|
||||
<div class="block">Méthode qui vient ecraser la méthode run de la classe Thread.
|
||||
<br> La méthode 'ecouteUDP' est appelé.</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||
<dd><code>run</code> in interface <code>java.lang.Runnable</code></dd>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>SessionClavardage</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.Protocol, class: SessionClavardage">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
@ -106,15 +106,16 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<pre>public class <span class="typeNameLabel">SessionClavardage</span>
|
||||
extends java.lang.Thread</pre>
|
||||
<div class="block"><p>
|
||||
Classe représentant une session de clavrdage.
|
||||
La classe hérite de la classe Thread et dispose de 2 constructeurs selon que l'on initie une demande de session ou que l'on recoit une demande.
|
||||
Elle possède en attribut:
|
||||
link: la socket associée à la session de clavardage
|
||||
u2: l'utilisateur avec lequel on communique
|
||||
out: le flux de donnees sortant
|
||||
in: le flux de donnees entrant
|
||||
pcs: Le PropertyChangeSupport permettant d'envoyer les notifications de MessageRecu et de FindeSession
|
||||
derniersMsg: la liste temporaire des derniers messages recus
|
||||
Classe représentant une session de clavardage.
|
||||
<br> La classe hérite de la classe Thread et dispose de 2 constructeurs selon que l'on initie une demande de session ou que l'on recoit une demande.
|
||||
<br> Elle possède en attribut:
|
||||
<br> - link : la socket associée à la session de clavardage
|
||||
<br> - app : L'instance de chatapp
|
||||
<br> - u2: l'utilisateur avec lequel on communique
|
||||
<br> - out: le flux de donnees sortant
|
||||
<br> - in: le flux de donnees entrant
|
||||
<br> - pcs: Le PropertyChangeSupport permettant d'envoyer les notifications de MessageRecu et de FindeSession
|
||||
<br> - derniersMsg: la liste temporaire des derniers messages recus
|
||||
</p></div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
|
|
@ -223,7 +224,7 @@ extends java.lang.Thread</pre>
|
|||
<td class="colFirst"><code><a href="../Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a></code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getApp()">getApp</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Getter</div>
|
||||
<div class="block">Getter : chatApp</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i4">
|
||||
|
|
@ -237,28 +238,28 @@ extends java.lang.Thread</pre>
|
|||
<td class="colFirst"><code>java.io.ObjectInputStream</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getIn()">getIn</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Getter</div>
|
||||
<div class="block">Getter : In</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i6">
|
||||
<td class="colFirst"><code>java.io.ObjectOutputStream</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getOut()">getOut</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Getter</div>
|
||||
<div class="block">Getter : Out</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i7">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSessionID()">getSessionID</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Getter</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i8">
|
||||
<td class="colFirst"><code><a href="../Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getU2()">getU2</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Getter</div>
|
||||
<div class="block">Getter : Utilisateur 2</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i8">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#initierSession()">initierSession</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block"> Methode permettant d'initier une session de clavardage et de prevenir l'autre utilisateur du debut de la session</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i9">
|
||||
|
|
@ -272,35 +273,35 @@ extends java.lang.Thread</pre>
|
|||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setApp(chatapp.Controller.ChatApp)">setApp</a></span>​(<a href="../Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a> app)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Setter</div>
|
||||
<div class="block">Setter : chatApp</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i11">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setIn(java.io.ObjectInputStream)">setIn</a></span>​(java.io.ObjectInputStream in)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Setter</div>
|
||||
<div class="block">Setter : In</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i12">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setLink(java.net.Socket)">setLink</a></span>​(java.net.Socket link)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Setter</div>
|
||||
<div class="block">Setter : Link</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i13">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setOut(java.io.ObjectOutputStream)">setOut</a></span>​(java.io.ObjectOutputStream out)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Setter</div>
|
||||
<div class="block">Setter : Out</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i14">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setU2(chatapp.Model.Utilisateur)">setU2</a></span>​(<a href="../Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> u2)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Setter</div>
|
||||
<div class="block">Setter : Utilisateur 2</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
@ -338,8 +339,8 @@ extends java.lang.Thread</pre>
|
|||
<div class="block"><p> Ce constructeur crée une session de clavardage quand on recoit une requete</p></div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>link</code> - la socket associee a la requete TCP que l'on a recu</dd>
|
||||
<dd><code>app</code> - l'instance de chatapp</dd>
|
||||
<dd><code>link</code> - La socket associee a la requete TCP que l'on a recu</dd>
|
||||
<dd><code>app</code> - L'instance de chatapp</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -351,8 +352,8 @@ extends java.lang.Thread</pre>
|
|||
<div class="block"><p> Le constructeur associe a l'envoi d'une requete TCP, lorsque que l'on veut initier une session de clavardage avec un utilisateur connecte</p></div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>u2</code> - l'utilisateur avec qui l'on souhaite démarrer une session de clavardage</dd>
|
||||
<dd><code>app</code> - l'instance de chataap associee</dd>
|
||||
<dd><code>u2</code> - L'utilisateur avec qui l'on souhaite démarrer une session de clavardage</dd>
|
||||
<dd><code>app</code> - L'instance de chataap associee</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -373,7 +374,7 @@ extends java.lang.Thread</pre>
|
|||
<div class="block">Permet aux PropertyChangeListener de s'abonner aux notifications des evenements</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>pcl</code> - le PropertyListener qui souhaite s'abonner sur ce PropertyChangeSupport</dd>
|
||||
<dd><code>pcl</code> - Le PropertyListener qui souhaite s'abonner sur ce PropertyChangeSupport</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -386,12 +387,19 @@ extends java.lang.Thread</pre>
|
|||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="initierSession()">initierSession</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">initierSession</span>()</div>
|
||||
<div class="block"><p> Methode permettant d'initier une session de clavardage et de prevenir l'autre utilisateur du debut de la session</p></div>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="envoiMsg(java.lang.String)">envoiMsg</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">envoiMsg</span>​(<span class="arguments">java.lang.String msg)</span></div>
|
||||
<div class="block">Methode transformant prenant un string pour le transmettre sous la forme d'un message horodate a l'utilisateur distant</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>msg</code> - le texte du message a envoyer</dd>
|
||||
<dd><code>msg</code> - Le texte du message à envoyer</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -400,10 +408,10 @@ extends java.lang.Thread</pre>
|
|||
<h3><a id="getDernierMsg()">getDernierMsg</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></span> <span class="memberName">getDernierMsg</span>()</div>
|
||||
<div class="block"><p> Methode permettant de recuperer le dernier message recu qui a ete mis dans la liste des messages recus.
|
||||
Utilisee par l'interface graphique qui a ete avertie grace au PropertyChangeSupport</p></div>
|
||||
<br> Utilisée par l'interface graphique qui a ete avertie grace au PropertyChangeSupport</p></div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>le dernier message horodate recu</dd>
|
||||
<dd>Le dernier message horodate recu</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -424,10 +432,10 @@ extends java.lang.Thread</pre>
|
|||
<section class="detail">
|
||||
<h3><a id="getOut()">getOut</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.io.ObjectOutputStream</span> <span class="memberName">getOut</span>()</div>
|
||||
<div class="block">Getter</div>
|
||||
<div class="block">Getter : Out</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>le flux d'ecriture des messages sortant</dd>
|
||||
<dd>Le flux d'ecriture des messages sortant</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -435,10 +443,10 @@ extends java.lang.Thread</pre>
|
|||
<section class="detail">
|
||||
<h3><a id="setOut(java.io.ObjectOutputStream)">setOut</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">setOut</span>​(<span class="arguments">java.io.ObjectOutputStream out)</span></div>
|
||||
<div class="block">Setter</div>
|
||||
<div class="block">Setter : Out</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>out</code> - le flux d'ecriture des messages sortant</dd>
|
||||
<dd><code>out</code> - Le flux d'ecriture des messages sortant</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -446,10 +454,10 @@ extends java.lang.Thread</pre>
|
|||
<section class="detail">
|
||||
<h3><a id="getIn()">getIn</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">java.io.ObjectInputStream</span> <span class="memberName">getIn</span>()</div>
|
||||
<div class="block">Getter</div>
|
||||
<div class="block">Getter : In</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>le flux de lecture des messages entrant</dd>
|
||||
<dd>Le flux de lecture des messages entrant</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -457,10 +465,10 @@ extends java.lang.Thread</pre>
|
|||
<section class="detail">
|
||||
<h3><a id="setIn(java.io.ObjectInputStream)">setIn</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">setIn</span>​(<span class="arguments">java.io.ObjectInputStream in)</span></div>
|
||||
<div class="block">Setter</div>
|
||||
<div class="block">Setter : In</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>in</code> - le flux de lecture des messages entrant</dd>
|
||||
<dd><code>in</code> - Le flux de lecture des messages entrant</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -468,10 +476,10 @@ extends java.lang.Thread</pre>
|
|||
<section class="detail">
|
||||
<h3><a id="setLink(java.net.Socket)">setLink</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">setLink</span>​(<span class="arguments">java.net.Socket link)</span></div>
|
||||
<div class="block">Setter</div>
|
||||
<div class="block">Setter : Link</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>link</code> - la Socket asscciee a la connexion TCP et donc a la session</dd>
|
||||
<dd><code>link</code> - La Socket asscciee a la connexion TCP et donc a la session</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -479,10 +487,10 @@ extends java.lang.Thread</pre>
|
|||
<section class="detail">
|
||||
<h3><a id="getApp()">getApp</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a></span> <span class="memberName">getApp</span>()</div>
|
||||
<div class="block">Getter</div>
|
||||
<div class="block">Getter : chatApp</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>l'instance de chatApp</dd>
|
||||
<dd>L'instance de chatApp</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -490,10 +498,10 @@ extends java.lang.Thread</pre>
|
|||
<section class="detail">
|
||||
<h3><a id="setApp(chatapp.Controller.ChatApp)">setApp</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">setApp</span>​(<span class="arguments"><a href="../Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a> app)</span></div>
|
||||
<div class="block">Setter</div>
|
||||
<div class="block">Setter : chatApp</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>app</code> - l'instance de chatApp</dd>
|
||||
<dd><code>app</code> - L'instance de chatApp</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -501,10 +509,10 @@ extends java.lang.Thread</pre>
|
|||
<section class="detail">
|
||||
<h3><a id="getU2()">getU2</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></span> <span class="memberName">getU2</span>()</div>
|
||||
<div class="block">Getter</div>
|
||||
<div class="block">Getter : Utilisateur 2</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>l'utilisateur avec lequel on communique</dd>
|
||||
<dd>L'utilisateur avec lequel on communique</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -512,21 +520,10 @@ extends java.lang.Thread</pre>
|
|||
<section class="detail">
|
||||
<h3><a id="setU2(chatapp.Model.Utilisateur)">setU2</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">setU2</span>​(<span class="arguments"><a href="../Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a> u2)</span></div>
|
||||
<div class="block">Setter</div>
|
||||
<div class="block">Setter : Utilisateur 2</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>u2</code> - l'utilisateur avec lequel on communique</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="getSessionID()">getSessionID</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">int</span> <span class="memberName">getSessionID</span>()</div>
|
||||
<div class="block">Getter</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>SessionID</dd>
|
||||
<dd><code>u2</code> - L'utilisateur avec lequel on communique</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>UDPEchange</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.Protocol, class: UDPEchange">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
@ -100,7 +100,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<pre>public class <span class="typeNameLabel">UDPEchange</span>
|
||||
extends java.lang.Object</pre>
|
||||
<div class="block"><p>
|
||||
Classe representant les echanges UDP entre utilisateurs.
|
||||
Classe representant les échanges UDP entre utilisateurs.
|
||||
</p></div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
|
|
@ -153,26 +153,24 @@ extends java.lang.Object</pre>
|
|||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ecouteUDP(chatapp.Controller.ChatApp)">ecouteUDP</a></span>​(<a href="../Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a> app)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">
|
||||
Methode permettant la reception de messages d'utilisateurs
|
||||
a l'aide du protocole UDP</div>
|
||||
Methode permettant la reception de messages d'utilisateurs à l'aide du protocole UDP</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i1">
|
||||
<td class="colFirst"><code>static void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EnvoiBroadcast(java.lang.String)">EnvoiBroadcast</a></span>​(java.lang.String broadcastMessage)</code></th>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#envoiBroadcast(java.lang.String)">envoiBroadcast</a></span>​(java.lang.String broadcastMessage)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">
|
||||
Méthode permettant d'envoyer un message à tout les utilisateurs
|
||||
a l'aide du protocole UDP</div>
|
||||
Méthode permettant d'envoyer un message à tout les utilisateurs à l'aide du protocole UDP</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i2">
|
||||
<td class="colFirst"><code>static void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#envoiUnicast(java.net.InetAddress,java.lang.String)">envoiUnicast</a></span>​(java.net.InetAddress Adress,
|
||||
java.lang.String Message)</code></th>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#envoiUnicast(java.net.InetAddress,java.lang.String)">envoiUnicast</a></span>​(java.net.InetAddress address,
|
||||
java.lang.String message)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">
|
||||
Methode permettant d'envoyer un message a utilisateur en particulier
|
||||
Méthode permettant d'envoyer un message a utilisateur en particulier
|
||||
a l'aide du protocole UDP</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
@ -180,7 +178,7 @@ java.lang.String Message)</code></th>
|
|||
<td class="colFirst"><code>static java.lang.Boolean</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getConnecte()">getConnecte</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Getter</div>
|
||||
<div class="block">Getter : Connecte</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i4">
|
||||
|
|
@ -188,28 +186,29 @@ java.lang.String Message)</code></th>
|
|||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurrentIp()">getCurrentIp</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">
|
||||
Permet de recuperer l'adresse de l'hote sur le reseau au format IPv4.</div>
|
||||
Getter : Ip
|
||||
<br>Permet de recuperer l'adresse de l'hote sur le reseau au format IPv4.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i5">
|
||||
<td class="colFirst"><code>static java.lang.Boolean</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPseudoValide()">getPseudoValide</a></span>()</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Getter</div>
|
||||
<div class="block">Getter : Pseudo Valide</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i6">
|
||||
<td class="colFirst"><code>static void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setConnecte(java.lang.Boolean)">setConnecte</a></span>​(java.lang.Boolean value)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Setter</div>
|
||||
<div class="block">Setter : Connecte</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i7">
|
||||
<td class="colFirst"><code>static void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPseudoValide(java.lang.Boolean)">setPseudoValide</a></span>​(java.lang.Boolean value)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Setter</div>
|
||||
<div class="block">Setter : PseudoValise</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
@ -254,10 +253,10 @@ java.lang.String Message)</code></th>
|
|||
<section class="detail">
|
||||
<h3><a id="getConnecte()">getConnecte</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public static</span> <span class="returnType">java.lang.Boolean</span> <span class="memberName">getConnecte</span>()</div>
|
||||
<div class="block">Getter</div>
|
||||
<div class="block">Getter : Connecte</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>le boolean connecte (True s'il peut se connecter avec ce nom d'utilisateur , False sinon)</dd>
|
||||
<dd>Le boolean connecte (True s'il peut se connecter avec ce nom d'utilisateur , False sinon)</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -265,7 +264,7 @@ java.lang.String Message)</code></th>
|
|||
<section class="detail">
|
||||
<h3><a id="setConnecte(java.lang.Boolean)">setConnecte</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public static</span> <span class="returnType">void</span> <span class="memberName">setConnecte</span>​(<span class="arguments">java.lang.Boolean value)</span></div>
|
||||
<div class="block">Setter</div>
|
||||
<div class="block">Setter : Connecte</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>value</code> - La nouvelle valeur du boolean de connexion</dd>
|
||||
|
|
@ -276,10 +275,10 @@ java.lang.String Message)</code></th>
|
|||
<section class="detail">
|
||||
<h3><a id="getPseudoValide()">getPseudoValide</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public static</span> <span class="returnType">java.lang.Boolean</span> <span class="memberName">getPseudoValide</span>()</div>
|
||||
<div class="block">Getter</div>
|
||||
<div class="block">Getter : Pseudo Valide</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>le boolean PseudoValide (True s'il peut utiliser ce pseudo , False sinon)</dd>
|
||||
<dd>Le boolean PseudoValide (True s'il peut utiliser ce pseudo , False sinon)</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -287,7 +286,7 @@ java.lang.String Message)</code></th>
|
|||
<section class="detail">
|
||||
<h3><a id="setPseudoValide(java.lang.Boolean)">setPseudoValide</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public static</span> <span class="returnType">void</span> <span class="memberName">setPseudoValide</span>​(<span class="arguments">java.lang.Boolean value)</span></div>
|
||||
<div class="block">Setter</div>
|
||||
<div class="block">Setter : PseudoValise</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>value</code> - La nouvelle valeur du boolean concernant le pseudo valide</dd>
|
||||
|
|
@ -299,27 +298,27 @@ java.lang.String Message)</code></th>
|
|||
<h3><a id="getCurrentIp()">getCurrentIp</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public static</span> <span class="returnType">java.net.InetAddress</span> <span class="memberName">getCurrentIp</span>()</div>
|
||||
<div class="block"><p>
|
||||
Permet de recuperer l'adresse de l'hote sur le reseau au format IPv4.
|
||||
Si plusieurs adresses sont disponibles (plusieurs cartes réseaux), choisit la premiere trouvee
|
||||
Getter : Ip
|
||||
<br>Permet de recuperer l'adresse de l'hote sur le reseau au format IPv4.
|
||||
<br> Si plusieurs adresses sont disponibles (plusieurs cartes réseaux), choisit la premiere trouvée
|
||||
</p></div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>l'adresse IP au format IPv4</dd>
|
||||
<dd>L'adresse IP au format IPv4</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="EnvoiBroadcast(java.lang.String)">EnvoiBroadcast</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public static</span> <span class="returnType">void</span> <span class="memberName">EnvoiBroadcast</span>​(<span class="arguments">java.lang.String broadcastMessage)</span>
|
||||
<h3><a id="envoiBroadcast(java.lang.String)">envoiBroadcast</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public static</span> <span class="returnType">void</span> <span class="memberName">envoiBroadcast</span>​(<span class="arguments">java.lang.String broadcastMessage)</span>
|
||||
throws <span class="exceptions">java.io.IOException</span></div>
|
||||
<div class="block"><p>
|
||||
Méthode permettant d'envoyer un message à tout les utilisateurs
|
||||
a l'aide du protocole UDP
|
||||
Méthode permettant d'envoyer un message à tout les utilisateurs à l'aide du protocole UDP
|
||||
</p></div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>broadcastMessage</code> - correspond au message a transmettre aux utilisateurs</dd>
|
||||
<dd><code>broadcastMessage</code> - Message à transmettre aux utilisateurs</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code></dd>
|
||||
</dl>
|
||||
|
|
@ -330,8 +329,7 @@ java.lang.String Message)</code></th>
|
|||
<h3><a id="ecouteUDP(chatapp.Controller.ChatApp)">ecouteUDP</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public static</span> <span class="returnType">void</span> <span class="memberName">ecouteUDP</span>​(<span class="arguments"><a href="../Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a> app)</span></div>
|
||||
<div class="block"><p>
|
||||
Methode permettant la reception de messages d'utilisateurs
|
||||
a l'aide du protocole UDP
|
||||
Methode permettant la reception de messages d'utilisateurs à l'aide du protocole UDP
|
||||
</p></div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
|
|
@ -342,17 +340,17 @@ java.lang.String Message)</code></th>
|
|||
<li class="blockList">
|
||||
<section class="detail">
|
||||
<h3><a id="envoiUnicast(java.net.InetAddress,java.lang.String)">envoiUnicast</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public static</span> <span class="returnType">void</span> <span class="memberName">envoiUnicast</span>​(<span class="arguments">java.net.InetAddress Adress,
|
||||
java.lang.String Message)</span>
|
||||
<div class="memberSignature"><span class="modifiers">public static</span> <span class="returnType">void</span> <span class="memberName">envoiUnicast</span>​(<span class="arguments">java.net.InetAddress address,
|
||||
java.lang.String message)</span>
|
||||
throws <span class="exceptions">java.io.IOException</span></div>
|
||||
<div class="block"><p>
|
||||
Methode permettant d'envoyer un message a utilisateur en particulier
|
||||
Méthode permettant d'envoyer un message a utilisateur en particulier
|
||||
a l'aide du protocole UDP
|
||||
</p></div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>Adress</code> - l'addresse de l'utilisateur</dd>
|
||||
<dd><code>Message</code> - correspond au message à transmettre a l'utilisateur</dd>
|
||||
<dd><code>address</code> - L'adresse IP de l'utilisateur</dd>
|
||||
<dd><code>message</code> - Message message à transmettre a l'utilisateur</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code></dd>
|
||||
</dl>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>chatapp.Protocol</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.Protocol">
|
||||
<meta name="generator" content="javadoc/PackageWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
@ -83,31 +83,38 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
</thead>
|
||||
<tbody>
|
||||
<tr class="altColor">
|
||||
<th class="colFirst" scope="row"><a href="HttpEchange.html" title="class in chatapp.Protocol">HttpEchange</a></th>
|
||||
<td class="colLast">
|
||||
<div class="block">
|
||||
Classe representant les échanges HTTP entre un utilisateur distant et le servlet.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<th class="colFirst" scope="row"><a href="RunnerEcouteTCP.html" title="class in chatapp.Protocol">RunnerEcouteTCP</a></th>
|
||||
<td class="colLast">
|
||||
<div class="block">
|
||||
Classe permettant de gérer les multiples connexions en TCP.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<tr class="altColor">
|
||||
<th class="colFirst" scope="row"><a href="RunnerEcouteUDP.html" title="class in chatapp.Protocol">RunnerEcouteUDP</a></th>
|
||||
<td class="colLast">
|
||||
<div class="block">
|
||||
Classe permettant de gérer les multiples connexions en UDP.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<tr class="rowColor">
|
||||
<th class="colFirst" scope="row"><a href="SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></th>
|
||||
<td class="colLast">
|
||||
<div class="block">
|
||||
Classe représentant une session de clavrdage.</div>
|
||||
Classe représentant une session de clavardage.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<tr class="altColor">
|
||||
<th class="colFirst" scope="row"><a href="UDPEchange.html" title="class in chatapp.Protocol">UDPEchange</a></th>
|
||||
<td class="colLast">
|
||||
<div class="block">
|
||||
Classe representant les echanges UDP entre utilisateurs.</div>
|
||||
Classe representant les échanges UDP entre utilisateurs.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>chatapp.Protocol Class Hierarchy</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="tree: package: chatapp.Protocol">
|
||||
<meta name="generator" content="javadoc/PackageTreeWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
@ -78,6 +78,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<ul>
|
||||
<li class="circle">java.lang.Object
|
||||
<ul>
|
||||
<li class="circle">chatapp.Protocol.<a href="HttpEchange.html" title="class in chatapp.Protocol"><span class="typeNameLink">HttpEchange</span></a></li>
|
||||
<li class="circle">java.lang.Thread (implements java.lang.Runnable)
|
||||
<ul>
|
||||
<li class="circle">chatapp.Protocol.<a href="RunnerEcouteTCP.html" title="class in chatapp.Protocol"><span class="typeNameLink">RunnerEcouteTCP</span></a></li>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>ChangementPseudo</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.View, class: ChangementPseudo">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>Clavardage</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.View, class: Clavardage">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
@ -184,13 +184,15 @@ implements javafx.fxml.Initializable, java.beans.PropertyChangeListener</pre>
|
|||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ajouterMessagesHistorique(javafx.event.ActionEvent)">ajouterMessagesHistorique</a></span>​(javafx.event.ActionEvent actionEvent)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block"> Permet de recepurer plus de messages stoces dans la database en appuyant sur le bouton plusButton</div>
|
||||
<div class="block"> Permet de recupérer plus de messages stoces dans la database en appuyant sur le bouton plusButton</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor" id="i1">
|
||||
<td class="colFirst"><code><a href="../Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSession()">getSession</a></span>()</code></th>
|
||||
<td class="colLast"> </td>
|
||||
<td class="colLast">
|
||||
<div class="block">Getter : Session</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i2">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
|
|
@ -205,14 +207,14 @@ java.util.ResourceBundle resources)</code></th>
|
|||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#propertyChange(java.beans.PropertyChangeEvent)">propertyChange</a></span>​(java.beans.PropertyChangeEvent evt)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Handler des differents evenements auxquels s'est abonne le PropertyChangeListener
|
||||
La classe est informee lorsque la session recoit un message ou lorsque la session se termine</div>
|
||||
<br> La classe est informee lorsque la session recoit un message ou lorsque la session se termine</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor" id="i4">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setSession(chatapp.Protocol.SessionClavardage)">setSession</a></span>​(<a href="../Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a> session)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Setter</div>
|
||||
<div class="block">Setter : Session</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
@ -273,10 +275,10 @@ java.util.ResourceBundle resources)</code></th>
|
|||
<section class="detail">
|
||||
<h3><a id="setSession(chatapp.Protocol.SessionClavardage)">setSession</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">setSession</span>​(<span class="arguments"><a href="../Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a> session)</span></div>
|
||||
<div class="block">Setter</div>
|
||||
<div class="block">Setter : Session</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>session</code> - la session a associer a la classe</dd>
|
||||
<dd><code>session</code> - La session a associer a la classe</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -285,12 +287,12 @@ java.util.ResourceBundle resources)</code></th>
|
|||
<h3><a id="propertyChange(java.beans.PropertyChangeEvent)">propertyChange</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">propertyChange</span>​(<span class="arguments">java.beans.PropertyChangeEvent evt)</span></div>
|
||||
<div class="block"><p>Handler des differents evenements auxquels s'est abonne le PropertyChangeListener
|
||||
La classe est informee lorsque la session recoit un message ou lorsque la session se termine </p></div>
|
||||
<br> La classe est informee lorsque la session recoit un message ou lorsque la session se termine </p></div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||
<dd><code>propertyChange</code> in interface <code>java.beans.PropertyChangeListener</code></dd>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>evt</code> - l'evenement informe par le pcs</dd>
|
||||
<dd><code>evt</code> - L'evenement informe par le pcs</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
@ -298,6 +300,11 @@ java.util.ResourceBundle resources)</code></th>
|
|||
<section class="detail">
|
||||
<h3><a id="getSession()">getSession</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></span> <span class="memberName">getSession</span>()</div>
|
||||
<div class="block">Getter : Session</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>La session de Clavardage</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
|
|
@ -319,7 +326,7 @@ java.util.ResourceBundle resources)</span></div>
|
|||
<section class="detail">
|
||||
<h3><a id="ajouterMessagesHistorique(javafx.event.ActionEvent)">ajouterMessagesHistorique</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">ajouterMessagesHistorique</span>​(<span class="arguments">javafx.event.ActionEvent actionEvent)</span></div>
|
||||
<div class="block"><p> Permet de recepurer plus de messages stoces dans la database en appuyant sur le bouton plusButton</p></div>
|
||||
<div class="block"><p> Permet de recupérer plus de messages stoces dans la database en appuyant sur le bouton plusButton</p></div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>actionEvent</code> - L'utilisateur a appuye sur le bouton plus pour obtenir tout l'utilisateur</dd>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>ConnexionScreen</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.View, class: ConnexionScreen">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
@ -195,7 +195,8 @@ extends java.lang.Object</pre>
|
|||
<td class="colFirst"><code>void</code></td>
|
||||
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#connexion(javafx.event.ActionEvent)">connexion</a></span>​(javafx.event.ActionEvent actionEvent)</code></th>
|
||||
<td class="colLast">
|
||||
<div class="block">Handler permettant de lancer la connexion avec le pseudonyme contenu dans le TextField pseudonyme en appuyant sur le connexionButton</div>
|
||||
<div class="block">
|
||||
Handler permettant de lancer la connexion avec le pseudonyme contenu dans le TextField pseudonyme en appuyant sur le connexionButton</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
@ -274,7 +275,8 @@ extends java.lang.Object</pre>
|
|||
<section class="detail">
|
||||
<h3><a id="connexion(javafx.event.ActionEvent)">connexion</a></h3>
|
||||
<div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">connexion</span>​(<span class="arguments">javafx.event.ActionEvent actionEvent)</span></div>
|
||||
<div class="block"><p>Handler permettant de lancer la connexion avec le pseudonyme contenu dans le TextField pseudonyme en appuyant sur le connexionButton
|
||||
<div class="block"><p>
|
||||
Handler permettant de lancer la connexion avec le pseudonyme contenu dans le TextField pseudonyme en appuyant sur le connexionButton
|
||||
</p></div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>DemarrerSession</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.View, class: DemarrerSession">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>FenetreSession</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.View, class: FenetreSession">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>View_Menu</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.View, class: View_Menu">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
@ -100,7 +100,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<pre>public class <span class="typeNameLabel">View_Menu</span>
|
||||
extends java.lang.Object</pre>
|
||||
<div class="block"><p>
|
||||
Classe representant la page d'acceuil. Elle est composé d'un menu en haut a gauche.
|
||||
Classe representant la page d'accueil. Elle est composé d'un menu en haut a gauche.
|
||||
Au centre un petit message "Bienvenue" suivi du pseudo de l'utilisateur est affiché.
|
||||
</p></div>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>View_Utilisateurs</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.View, class: View_Utilisateurs">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>chatapp.View</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp.View">
|
||||
<meta name="generator" content="javadoc/PackageWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
@ -121,7 +121,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<th class="colFirst" scope="row"><a href="View_Menu.html" title="class in chatapp.View">View_Menu</a></th>
|
||||
<td class="colLast">
|
||||
<div class="block">
|
||||
Classe representant la page d'acceuil.</div>
|
||||
Classe representant la page d'accueil.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>chatapp.View Class Hierarchy</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="tree: package: chatapp.View">
|
||||
<meta name="generator" content="javadoc/PackageTreeWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>chatapp</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="declaration: package: chatapp">
|
||||
<meta name="generator" content="javadoc/PackageWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
|
|
@ -88,7 +88,9 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
</tr>
|
||||
<tr class="rowColor">
|
||||
<th class="colFirst" scope="row"><a href="Main.html" title="class in chatapp">Main</a></th>
|
||||
<td class="colLast"> </td>
|
||||
<td class="colLast">
|
||||
<div class="block">Cette classe extends Application.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>chatapp Class Hierarchy</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="tree: package: chatapp">
|
||||
<meta name="generator" content="javadoc/PackageTreeWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>Constant Field Values</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="summary of constants">
|
||||
<meta name="generator" content="javadoc/ConstantsSummaryWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>Deprecated List</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="deprecated elements">
|
||||
<meta name="generator" content="javadoc/DeprecatedListWriter">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>API Help</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="help">
|
||||
<meta name="generator" content="javadoc/HelpWriter">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>A-Index</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="index: A">
|
||||
<meta name="generator" content="javadoc/SplitIndexWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
|
|
@ -68,19 +68,19 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<div class="header">
|
||||
<h1>Index</h1>
|
||||
</div>
|
||||
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">I</a> <a href="index-8.html">L</a> <a href="index-9.html">M</a> <a href="index-10.html">P</a> <a href="index-11.html">R</a> <a href="index-12.html">S</a> <a href="index-13.html">T</a> <a href="index-14.html">U</a> <a href="index-15.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a><a id="I:A">
|
||||
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">P</a> <a href="index-12.html">R</a> <a href="index-13.html">S</a> <a href="index-14.html">T</a> <a href="index-15.html">U</a> <a href="index-16.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a><a id="I:A">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">A</h2>
|
||||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Controller/ChatApp.html#activerEcouteTCP()">activerEcouteTCP()</a></span> - Method in class chatapp.Controller.<a href="../chatapp/Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a></dt>
|
||||
<dd>
|
||||
<div class="block">Lance un thread pour ecouter les requetes TCP
|
||||
Informe le pcs que chatapp ecoute les notifications qu'il envoie</div>
|
||||
<div class="block">Lance un thread pour écouter les requêtes TCP
|
||||
<br> Informe le pcs que chatapp écoute les notifications qu'il envoie</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Controller/ChatApp.html#activerEcouteUDP()">activerEcouteUDP()</a></span> - Method in class chatapp.Controller.<a href="../chatapp/Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a></dt>
|
||||
<dd>
|
||||
<div class="block">Lance le thread pour receptionner les requetes UDP</div>
|
||||
<div class="block">Lance le thread pour réceptionner les requetes UDP</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/ListUtilisateurs.html#addList(chatapp.Model.Utilisateur)">addList(Utilisateur)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/ListUtilisateurs.html" title="class in chatapp.Model">ListUtilisateurs</a></dt>
|
||||
<dd>
|
||||
|
|
@ -88,7 +88,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/RunnerEcouteTCP.html#addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener(PropertyChangeListener)</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/RunnerEcouteTCP.html" title="class in chatapp.Protocol">RunnerEcouteTCP</a></dt>
|
||||
<dd>
|
||||
<div class="block">Permet aux classes qui appelle cette methode de connecter un PropertyChangeListener au PropertyChangeSupport</div>
|
||||
<div class="block">Permet aux classes qui appellent cette methode de connecter un PropertyChangeListener au PropertyChangeSupport</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/SessionClavardage.html#addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener(PropertyChangeListener)</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></dt>
|
||||
<dd>
|
||||
|
|
@ -96,11 +96,11 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/RunnerEcouteTCP.html#addSession(chatapp.Protocol.SessionClavardage)">addSession(SessionClavardage)</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/RunnerEcouteTCP.html" title="class in chatapp.Protocol">RunnerEcouteTCP</a></dt>
|
||||
<dd>
|
||||
<div class="block">Methode permettant d'ajouter une session active dans la liste 'ListeSessions'</div>
|
||||
<div class="block">Méthode permettant d'ajouter une session active dans la liste 'ListeSessions'</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/ListUtilisateurs.html#afficherListeUtilisateurs()">afficherListeUtilisateurs()</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/ListUtilisateurs.html" title="class in chatapp.Model">ListUtilisateurs</a></dt>
|
||||
<dd>
|
||||
<div class="block">Methode affichant la liste des utilisateurs actifs</div>
|
||||
<div class="block">Méthode affichant la liste des utilisateurs actifs</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/View_Menu.html#afficherUtilsActifs(javafx.event.ActionEvent)">afficherUtilsActifs(ActionEvent)</a></span> - Method in class chatapp.View.<a href="../chatapp/View/View_Menu.html" title="class in chatapp.View">View_Menu</a></dt>
|
||||
<dd>
|
||||
|
|
@ -108,28 +108,28 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/Clavardage.html#ajouterMessagesHistorique(javafx.event.ActionEvent)">ajouterMessagesHistorique(ActionEvent)</a></span> - Method in class chatapp.View.<a href="../chatapp/View/Clavardage.html" title="class in chatapp.View">Clavardage</a></dt>
|
||||
<dd>
|
||||
<div class="block"> Permet de recepurer plus de messages stoces dans la database en appuyant sur le bouton plusButton</div>
|
||||
<div class="block"> Permet de recupérer plus de messages stoces dans la database en appuyant sur le bouton plusButton</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/DataBase.html#ajoutHistorique(java.lang.String,java.lang.String,java.lang.String)">ajoutHistorique(String, String, String)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/DataBase.html" title="class in chatapp.Model">DataBase</a></dt>
|
||||
<dd>
|
||||
<div class="block">Methode permettant de mettre a jour le pseudo d'un utilisateur en fonction de son ID dans la base de donnee</div>
|
||||
<div class="block">Méthode permettant de mettre a jour le pseudo d'un utilisateur en fonction de son ID dans la base de donnée</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/DataBase.html#ajoutUtilisateurs(java.lang.String,java.lang.String)">ajoutUtilisateurs(String, String)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/DataBase.html" title="class in chatapp.Model">DataBase</a></dt>
|
||||
<dd>
|
||||
<div class="block">Methode permettant d'ajouter un utilisateur dans la base de donnée si celui-ci n'existe pas deja</div>
|
||||
<div class="block">Méthode permettant d'ajouter un utilisateur dans la base de donnée si celui-ci n'existe pas déjà</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/RunnerEcouteTCP.html#app">app</a></span> - Variable in class chatapp.Protocol.<a href="../chatapp/Protocol/RunnerEcouteTCP.html" title="class in chatapp.Protocol">RunnerEcouteTCP</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/ListUtilisateurs.html#appartient(chatapp.Model.Utilisateur)">appartient(Utilisateur)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/ListUtilisateurs.html" title="class in chatapp.Model">ListUtilisateurs</a></dt>
|
||||
<dd>
|
||||
<div class="block">Methode permettant de savoir si un utilisateur est contenu dans la liste 'actifUsers'</div>
|
||||
<div class="block">Méthode permettant de savoir si un utilisateur est contenu dans la liste 'actifUsers'</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/SessionClavardage.html#arretSession()">arretSession()</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></dt>
|
||||
<dd>
|
||||
<div class="block"> Methode permettant d'arreter cette session de clavardage et de prevenir l'autre utilisateur de la fin de la session</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">I</a> <a href="index-8.html">L</a> <a href="index-9.html">M</a> <a href="index-10.html">P</a> <a href="index-11.html">R</a> <a href="index-12.html">S</a> <a href="index-13.html">T</a> <a href="index-14.html">U</a> <a href="index-15.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a></div>
|
||||
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">P</a> <a href="index-12.html">R</a> <a href="index-13.html">S</a> <a href="index-14.html">T</a> <a href="index-15.html">U</a> <a href="index-16.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a></div>
|
||||
</main>
|
||||
<footer role="contentinfo">
|
||||
<nav role="navigation">
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<title>P-Index</title>
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>M-Index</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="description" content="index: P">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="index: M">
|
||||
<meta name="generator" content="javadoc/SplitIndexWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<link rel="stylesheet" type="text/css" href="../script-dir/jquery-ui.css" title="Style">
|
||||
|
|
@ -68,28 +68,56 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<div class="header">
|
||||
<h1>Index</h1>
|
||||
</div>
|
||||
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">I</a> <a href="index-8.html">L</a> <a href="index-9.html">M</a> <a href="index-10.html">P</a> <a href="index-11.html">R</a> <a href="index-12.html">S</a> <a href="index-13.html">T</a> <a href="index-14.html">U</a> <a href="index-15.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a><a id="I:P">
|
||||
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">P</a> <a href="index-12.html">R</a> <a href="index-13.html">S</a> <a href="index-14.html">T</a> <a href="index-15.html">U</a> <a href="index-16.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a><a id="I:M">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">P</h2>
|
||||
<h2 class="title">M</h2>
|
||||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/Clavardage.html#plusButton">plusButton</a></span> - Variable in class chatapp.View.<a href="../chatapp/View/Clavardage.html" title="class in chatapp.View">Clavardage</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Launcher.html#main(java.lang.String%5B%5D)">main(String[])</a></span> - Static method in class chatapp.<a href="../chatapp/Launcher.html" title="class in chatapp">Launcher</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Controller/ChatApp.html#propertyChange(java.beans.PropertyChangeEvent)">propertyChange(PropertyChangeEvent)</a></span> - Method in class chatapp.Controller.<a href="../chatapp/Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Main.html#main(java.lang.String%5B%5D)">main(String[])</a></span> - Static method in class chatapp.<a href="../chatapp/Main.html" title="class in chatapp">Main</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><a href="../chatapp/Main.html" title="class in chatapp"><span class="typeNameLink">Main</span></a> - Class in <a href="../chatapp/package-summary.html">chatapp</a></dt>
|
||||
<dd>
|
||||
<div class="block">Handler des differents evenements que chatapp ecoute</div>
|
||||
<div class="block">Cette classe extends Application.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/Clavardage.html#propertyChange(java.beans.PropertyChangeEvent)">propertyChange(PropertyChangeEvent)</a></span> - Method in class chatapp.View.<a href="../chatapp/View/Clavardage.html" title="class in chatapp.View">Clavardage</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Main.html#%3Cinit%3E()">Main()</a></span> - Constructor for class chatapp.<a href="../chatapp/Main.html" title="class in chatapp">Main</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/DataBase.html#majPseudo(java.lang.String,java.lang.String)">majPseudo(String, String)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/DataBase.html" title="class in chatapp.Model">DataBase</a></dt>
|
||||
<dd>
|
||||
<div class="block">Handler des differents evenements auxquels s'est abonne le PropertyChangeListener
|
||||
La classe est informee lorsque la session recoit un message ou lorsque la session se termine</div>
|
||||
<div class="block">Méthode permettant de mettre a jour le pseudo d'un utilisateur en fonction de son ID dans la base de donnee</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/ConnexionScreen.html#pseudonyme">pseudonyme</a></span> - Variable in class chatapp.View.<a href="../chatapp/View/ConnexionScreen.html" title="class in chatapp.View">ConnexionScreen</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/View_Menu.html#pseudonyme">pseudonyme</a></span> - Variable in class chatapp.View.<a href="../chatapp/View/View_Menu.html" title="class in chatapp.View">View_Menu</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/DataBase.html#majUtilisateursActifs(java.lang.Boolean,java.lang.String)">majUtilisateursActifs(Boolean, String)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/DataBase.html" title="class in chatapp.Model">DataBase</a></dt>
|
||||
<dd>
|
||||
<div class="block">Méthode permettant de mettre a jour les utilisateurs actuellement actif</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/View_Utilisateurs.html#MenuButton">MenuButton</a></span> - Variable in class chatapp.View.<a href="../chatapp/View/View_Utilisateurs.html" title="class in chatapp.View">View_Utilisateurs</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><a href="../chatapp/Model/MessageHorodate.html" title="class in chatapp.Model"><span class="typeNameLink">MessageHorodate</span></a> - Class in <a href="../chatapp/Model/package-summary.html">chatapp.Model</a></dt>
|
||||
<dd>
|
||||
<div class="block">
|
||||
Classe représentant les messages envoyés en TCP lors d'une session de clavardage.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/MessageHorodate.html#%3Cinit%3E(chatapp.Model.Utilisateur,chatapp.Model.Utilisateur,java.lang.String,int)">MessageHorodate(Utilisateur, Utilisateur, String, int)</a></span> - Constructor for class chatapp.Model.<a href="../chatapp/Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></dt>
|
||||
<dd>
|
||||
<div class="block">
|
||||
Constructeur , le message va etre horodaté</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/ListUtilisateurs.html#modifierList(java.lang.String,java.lang.String)">modifierList(String, String)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/ListUtilisateurs.html" title="class in chatapp.Model">ListUtilisateurs</a></dt>
|
||||
<dd>
|
||||
<div class="block">Modifier le pseudo d'un utilisateur dans la liste des utilisateurs actifs 'actifUsers'</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Controller/ChatApp.html#modifierPseudo(java.lang.String)">modifierPseudo(String)</a></span> - Method in class chatapp.Controller.<a href="../chatapp/Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a></dt>
|
||||
<dd>
|
||||
<div class="block">Methode appelée pour modifier le pseudo et fait appel a la fonction adequate selon que l'on est en interne ou en externe</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Controller/ChatApp.html#modifierPseudoInterne(java.lang.String)">modifierPseudoInterne(String)</a></span> - Method in class chatapp.Controller.<a href="../chatapp/Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a></dt>
|
||||
<dd>
|
||||
<div class="block">Modification du pseudo de l'utilisateur en INTERNE
|
||||
<br> Envoie en broadcast ses informations utilisateurs et son nouveau pseudo</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">I</a> <a href="index-8.html">L</a> <a href="index-9.html">M</a> <a href="index-10.html">P</a> <a href="index-11.html">R</a> <a href="index-12.html">S</a> <a href="index-13.html">T</a> <a href="index-14.html">U</a> <a href="index-15.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a></div>
|
||||
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">P</a> <a href="index-12.html">R</a> <a href="index-13.html">S</a> <a href="index-14.html">T</a> <a href="index-15.html">U</a> <a href="index-16.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a></div>
|
||||
</main>
|
||||
<footer role="contentinfo">
|
||||
<nav role="navigation">
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<title>R-Index</title>
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>P-Index</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="description" content="index: R">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="index: P">
|
||||
<meta name="generator" content="javadoc/SplitIndexWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<link rel="stylesheet" type="text/css" href="../script-dir/jquery-ui.css" title="Style">
|
||||
|
|
@ -68,57 +68,28 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<div class="header">
|
||||
<h1>Index</h1>
|
||||
</div>
|
||||
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">I</a> <a href="index-8.html">L</a> <a href="index-9.html">M</a> <a href="index-10.html">P</a> <a href="index-11.html">R</a> <a href="index-12.html">S</a> <a href="index-13.html">T</a> <a href="index-14.html">U</a> <a href="index-15.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a><a id="I:R">
|
||||
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">P</a> <a href="index-12.html">R</a> <a href="index-13.html">S</a> <a href="index-14.html">T</a> <a href="index-15.html">U</a> <a href="index-16.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a><a id="I:P">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">R</h2>
|
||||
<h2 class="title">P</h2>
|
||||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/DataBase.html#recupMsg(java.lang.String,java.lang.String,int,int)">recupMsg(String, String, int, int)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/DataBase.html" title="class in chatapp.Model">DataBase</a></dt>
|
||||
<dd>
|
||||
<div class="block">Methode permettant de recuperer les messages d'une plage de donnée [deb,fin] envoyés entre 2 utilisateurs</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/DataBase.html#recupNMsg(java.lang.String,java.lang.String,int)">recupNMsg(String, String, int)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/DataBase.html" title="class in chatapp.Model">DataBase</a></dt>
|
||||
<dd>
|
||||
<div class="block">Methode permettant de recuperer les N derniers messages envoyés entre 2 utilisateurs</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/ConnexionScreen.html#remoteButton">remoteButton</a></span> - Variable in class chatapp.View.<a href="../chatapp/View/ConnexionScreen.html" title="class in chatapp.View">ConnexionScreen</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/Clavardage.html#plusButton">plusButton</a></span> - Variable in class chatapp.View.<a href="../chatapp/View/Clavardage.html" title="class in chatapp.View">Clavardage</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/View_Utilisateurs.html#retourMenu(javafx.event.ActionEvent)">retourMenu(ActionEvent)</a></span> - Method in class chatapp.View.<a href="../chatapp/View/View_Utilisateurs.html" title="class in chatapp.View">View_Utilisateurs</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Controller/ChatApp.html#propertyChange(java.beans.PropertyChangeEvent)">propertyChange(PropertyChangeEvent)</a></span> - Method in class chatapp.Controller.<a href="../chatapp/Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a></dt>
|
||||
<dd>
|
||||
<div class="block"> Handler permettant de retourner au menu principal sur pression du MenuButton</div>
|
||||
<div class="block">Handler des différents évenements que chatapp écoute</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/RunnerEcouteTCP.html#run()">run()</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/RunnerEcouteTCP.html" title="class in chatapp.Protocol">RunnerEcouteTCP</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/Clavardage.html#propertyChange(java.beans.PropertyChangeEvent)">propertyChange(PropertyChangeEvent)</a></span> - Method in class chatapp.View.<a href="../chatapp/View/Clavardage.html" title="class in chatapp.View">Clavardage</a></dt>
|
||||
<dd>
|
||||
<div class="block">Methode qui vient ecraser la méthode run de la classe Thread.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/RunnerEcouteUDP.html#run()">run()</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/RunnerEcouteUDP.html" title="class in chatapp.Protocol">RunnerEcouteUDP</a></dt>
|
||||
<dd>
|
||||
<div class="block">Methode qui vient ecraser la méthode run de la classe Thread.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/SessionClavardage.html#run()">run()</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></dt>
|
||||
<dd>
|
||||
<div class="block"> Methode lancee par le thread, permet de receptionner les messages horodates recus et d'agir en conséquence selon le type de message recu</div>
|
||||
</dd>
|
||||
<dt><a href="../chatapp/Protocol/RunnerEcouteTCP.html" title="class in chatapp.Protocol"><span class="typeNameLink">RunnerEcouteTCP</span></a> - Class in <a href="../chatapp/Protocol/package-summary.html">chatapp.Protocol</a></dt>
|
||||
<dd>
|
||||
<div class="block">
|
||||
Classe permettant de gérer les multiples connexions en TCP.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/RunnerEcouteTCP.html#%3Cinit%3E(chatapp.Controller.ChatApp)">RunnerEcouteTCP(ChatApp)</a></span> - Constructor for class chatapp.Protocol.<a href="../chatapp/Protocol/RunnerEcouteTCP.html" title="class in chatapp.Protocol">RunnerEcouteTCP</a></dt>
|
||||
<dd>
|
||||
<div class="block">Constructeur</div>
|
||||
</dd>
|
||||
<dt><a href="../chatapp/Protocol/RunnerEcouteUDP.html" title="class in chatapp.Protocol"><span class="typeNameLink">RunnerEcouteUDP</span></a> - Class in <a href="../chatapp/Protocol/package-summary.html">chatapp.Protocol</a></dt>
|
||||
<dd>
|
||||
<div class="block">
|
||||
Classe permettant de gérer les multiples connexions en UDP.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/RunnerEcouteUDP.html#%3Cinit%3E(chatapp.Controller.ChatApp)">RunnerEcouteUDP(ChatApp)</a></span> - Constructor for class chatapp.Protocol.<a href="../chatapp/Protocol/RunnerEcouteUDP.html" title="class in chatapp.Protocol">RunnerEcouteUDP</a></dt>
|
||||
<dd>
|
||||
<div class="block">Constructeur</div>
|
||||
<div class="block">Handler des differents evenements auxquels s'est abonne le PropertyChangeListener
|
||||
<br> La classe est informee lorsque la session recoit un message ou lorsque la session se termine</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/ConnexionScreen.html#pseudonyme">pseudonyme</a></span> - Variable in class chatapp.View.<a href="../chatapp/View/ConnexionScreen.html" title="class in chatapp.View">ConnexionScreen</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/View_Menu.html#pseudonyme">pseudonyme</a></span> - Variable in class chatapp.View.<a href="../chatapp/View/View_Menu.html" title="class in chatapp.View">View_Menu</a></dt>
|
||||
<dd> </dd>
|
||||
</dl>
|
||||
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">I</a> <a href="index-8.html">L</a> <a href="index-9.html">M</a> <a href="index-10.html">P</a> <a href="index-11.html">R</a> <a href="index-12.html">S</a> <a href="index-13.html">T</a> <a href="index-14.html">U</a> <a href="index-15.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a></div>
|
||||
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">P</a> <a href="index-12.html">R</a> <a href="index-13.html">S</a> <a href="index-14.html">T</a> <a href="index-15.html">U</a> <a href="index-16.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a></div>
|
||||
</main>
|
||||
<footer role="contentinfo">
|
||||
<nav role="navigation">
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<title>S-Index</title>
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>R-Index</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="description" content="index: S">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="index: R">
|
||||
<meta name="generator" content="javadoc/SplitIndexWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<link rel="stylesheet" type="text/css" href="../script-dir/jquery-ui.css" title="Style">
|
||||
|
|
@ -68,111 +68,57 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<div class="header">
|
||||
<h1>Index</h1>
|
||||
</div>
|
||||
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">I</a> <a href="index-8.html">L</a> <a href="index-9.html">M</a> <a href="index-10.html">P</a> <a href="index-11.html">R</a> <a href="index-12.html">S</a> <a href="index-13.html">T</a> <a href="index-14.html">U</a> <a href="index-15.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a><a id="I:S">
|
||||
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">P</a> <a href="index-12.html">R</a> <a href="index-13.html">S</a> <a href="index-14.html">T</a> <a href="index-15.html">U</a> <a href="index-16.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a><a id="I:R">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">S</h2>
|
||||
<h2 class="title">R</h2>
|
||||
<dl>
|
||||
<dt><a href="../chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol"><span class="typeNameLink">SessionClavardage</span></a> - Class in <a href="../chatapp/Protocol/package-summary.html">chatapp.Protocol</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/DataBase.html#recupMsg(java.lang.String,java.lang.String,int,int)">recupMsg(String, String, int, int)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/DataBase.html" title="class in chatapp.Model">DataBase</a></dt>
|
||||
<dd>
|
||||
<div class="block">Méthode permettant de récupérer les messages d'une plage de donnée [deb,fin] envoyés entre 2 utilisateurs</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/DataBase.html#recupNMsg(java.lang.String,java.lang.String,int)">recupNMsg(String, String, int)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/DataBase.html" title="class in chatapp.Model">DataBase</a></dt>
|
||||
<dd>
|
||||
<div class="block">Méthode permettant de récupérer les N derniers messages envoyés entre 2 utilisateurs</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/ConnexionScreen.html#remoteButton">remoteButton</a></span> - Variable in class chatapp.View.<a href="../chatapp/View/ConnexionScreen.html" title="class in chatapp.View">ConnexionScreen</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/View_Utilisateurs.html#retourMenu(javafx.event.ActionEvent)">retourMenu(ActionEvent)</a></span> - Method in class chatapp.View.<a href="../chatapp/View/View_Utilisateurs.html" title="class in chatapp.View">View_Utilisateurs</a></dt>
|
||||
<dd>
|
||||
<div class="block"> Handler permettant de retourner au menu principal sur pression du MenuButton</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/RunnerEcouteTCP.html#run()">run()</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/RunnerEcouteTCP.html" title="class in chatapp.Protocol">RunnerEcouteTCP</a></dt>
|
||||
<dd>
|
||||
<div class="block">Méthode qui vient écraser la méthode run de la classe Thread.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/RunnerEcouteUDP.html#run()">run()</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/RunnerEcouteUDP.html" title="class in chatapp.Protocol">RunnerEcouteUDP</a></dt>
|
||||
<dd>
|
||||
<div class="block">Méthode qui vient ecraser la méthode run de la classe Thread.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/SessionClavardage.html#run()">run()</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></dt>
|
||||
<dd>
|
||||
<div class="block"> Methode lancee par le thread, permet de receptionner les messages horodates recus et d'agir en conséquence selon le type de message recu</div>
|
||||
</dd>
|
||||
<dt><a href="../chatapp/Protocol/RunnerEcouteTCP.html" title="class in chatapp.Protocol"><span class="typeNameLink">RunnerEcouteTCP</span></a> - Class in <a href="../chatapp/Protocol/package-summary.html">chatapp.Protocol</a></dt>
|
||||
<dd>
|
||||
<div class="block">
|
||||
Classe représentant une session de clavrdage.</div>
|
||||
Classe permettant de gérer les multiples connexions en TCP.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/SessionClavardage.html#%3Cinit%3E(chatapp.Model.Utilisateur,chatapp.Controller.ChatApp)">SessionClavardage(Utilisateur, ChatApp)</a></span> - Constructor for class chatapp.Protocol.<a href="../chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/RunnerEcouteTCP.html#%3Cinit%3E(chatapp.Controller.ChatApp)">RunnerEcouteTCP(ChatApp)</a></span> - Constructor for class chatapp.Protocol.<a href="../chatapp/Protocol/RunnerEcouteTCP.html" title="class in chatapp.Protocol">RunnerEcouteTCP</a></dt>
|
||||
<dd>
|
||||
<div class="block"> Le constructeur associe a l'envoi d'une requete TCP, lorsque que l'on veut initier une session de clavardage avec un utilisateur connecte</div>
|
||||
<div class="block">Constructeur</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/SessionClavardage.html#%3Cinit%3E(java.net.Socket,chatapp.Controller.ChatApp)">SessionClavardage(Socket, ChatApp)</a></span> - Constructor for class chatapp.Protocol.<a href="../chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></dt>
|
||||
<dd>
|
||||
<div class="block"> Ce constructeur crée une session de clavardage quand on recoit une requete</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/SessionClavardage.html#setApp(chatapp.Controller.ChatApp)">setApp(ChatApp)</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/UDPEchange.html#setConnecte(java.lang.Boolean)">setConnecte(Boolean)</a></span> - Static method in class chatapp.Protocol.<a href="../chatapp/Protocol/UDPEchange.html" title="class in chatapp.Protocol">UDPEchange</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/MessageHorodate.html#setDate(java.util.Date)">setDate(Date)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter: Date d'horodatage
|
||||
On modifie le date d'horodatage</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/MessageHorodate.html#setDateHorodatage(java.util.Date)">setDateHorodatage(Date)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter: Date d'horodatage
|
||||
On modifie le date.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/MessageHorodate.html#setDestinataire(chatapp.Model.Utilisateur)">setDestinataire(Utilisateur)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter: Utilisateur Destinataire
|
||||
On modifie l'utilisateur Destinataire</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/SessionClavardage.html#setIn(java.io.ObjectInputStream)">setIn(ObjectInputStream)</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/SessionClavardage.html#setLink(java.net.Socket)">setLink(Socket)</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/MessageHorodate.html#setMessage(java.lang.String)">setMessage(String)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter: Message envoye
|
||||
On modifie le message envoye</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/SessionClavardage.html#setOut(java.io.ObjectOutputStream)">setOut(ObjectOutputStream)</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/Utilisateur.html#setPort(java.lang.Integer)">setPort(Integer)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/Utilisateur.html#setPseudo(java.lang.String)">setPseudo(String)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/UDPEchange.html#setPseudoValide(java.lang.Boolean)">setPseudoValide(Boolean)</a></span> - Static method in class chatapp.Protocol.<a href="../chatapp/Protocol/UDPEchange.html" title="class in chatapp.Protocol">UDPEchange</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/Clavardage.html#setSession(chatapp.Protocol.SessionClavardage)">setSession(SessionClavardage)</a></span> - Method in class chatapp.View.<a href="../chatapp/View/Clavardage.html" title="class in chatapp.View">Clavardage</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/MessageHorodate.html#setSource(chatapp.Model.Utilisateur)">setSource(Utilisateur)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter: Utilisateur Source
|
||||
On modifie l'utilisateur source</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/MessageHorodate.html#setType(int)">setType(int)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter: 'Type' du message horodate
|
||||
On modifie l'integer 'Type'</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/SessionClavardage.html#setU2(chatapp.Model.Utilisateur)">setU2(Utilisateur)</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Main.html#start(javafx.stage.Stage)">start(Stage)</a></span> - Method in class chatapp.<a href="../chatapp/Main.html" title="class in chatapp">Main</a></dt>
|
||||
<dd>
|
||||
<div class="block">Permet de lancer la fenetre principale de l'application</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Main.html#stop()">stop()</a></span> - Method in class chatapp.<a href="../chatapp/Main.html" title="class in chatapp">Main</a></dt>
|
||||
<dd>
|
||||
<div class="block"> Handler associe a la fermeture de l'application</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/MessageHorodate.html#stringToMessageHorodate(java.lang.String)">stringToMessageHorodate(String)</a></span> - Static method in class chatapp.Model.<a href="../chatapp/Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></dt>
|
||||
<dt><a href="../chatapp/Protocol/RunnerEcouteUDP.html" title="class in chatapp.Protocol"><span class="typeNameLink">RunnerEcouteUDP</span></a> - Class in <a href="../chatapp/Protocol/package-summary.html">chatapp.Protocol</a></dt>
|
||||
<dd>
|
||||
<div class="block">
|
||||
Permet de re creer un message horodate a partir d'un string</div>
|
||||
Classe permettant de gérer les multiples connexions en UDP.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/Utilisateur.html#stringToUtilisateur(java.lang.String)">stringToUtilisateur(String)</a></span> - Static method in class chatapp.Model.<a href="../chatapp/Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/ListUtilisateurs.html#supprimerList(chatapp.Model.Utilisateur)">supprimerList(Utilisateur)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/ListUtilisateurs.html" title="class in chatapp.Model">ListUtilisateurs</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/RunnerEcouteUDP.html#%3Cinit%3E(chatapp.Controller.ChatApp)">RunnerEcouteUDP(ChatApp)</a></span> - Constructor for class chatapp.Protocol.<a href="../chatapp/Protocol/RunnerEcouteUDP.html" title="class in chatapp.Protocol">RunnerEcouteUDP</a></dt>
|
||||
<dd>
|
||||
<div class="block">Supprimer de la liste des utilisateurs actifs 'actifUsers' un certain utilisateur</div>
|
||||
<div class="block">Constructeur</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">I</a> <a href="index-8.html">L</a> <a href="index-9.html">M</a> <a href="index-10.html">P</a> <a href="index-11.html">R</a> <a href="index-12.html">S</a> <a href="index-13.html">T</a> <a href="index-14.html">U</a> <a href="index-15.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a></div>
|
||||
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">P</a> <a href="index-12.html">R</a> <a href="index-13.html">S</a> <a href="index-14.html">T</a> <a href="index-15.html">U</a> <a href="index-16.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a></div>
|
||||
</main>
|
||||
<footer role="contentinfo">
|
||||
<nav role="navigation">
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<title>T-Index</title>
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>S-Index</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="description" content="index: T">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="index: S">
|
||||
<meta name="generator" content="javadoc/SplitIndexWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<link rel="stylesheet" type="text/css" href="../script-dir/jquery-ui.css" title="Style">
|
||||
|
|
@ -68,24 +68,130 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<div class="header">
|
||||
<h1>Index</h1>
|
||||
</div>
|
||||
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">I</a> <a href="index-8.html">L</a> <a href="index-9.html">M</a> <a href="index-10.html">P</a> <a href="index-11.html">R</a> <a href="index-12.html">S</a> <a href="index-13.html">T</a> <a href="index-14.html">U</a> <a href="index-15.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a><a id="I:T">
|
||||
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">P</a> <a href="index-12.html">R</a> <a href="index-13.html">S</a> <a href="index-14.html">T</a> <a href="index-15.html">U</a> <a href="index-16.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a><a id="I:S">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">T</h2>
|
||||
<h2 class="title">S</h2>
|
||||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/DataBase.html#tailleBDD(java.lang.String)">tailleBDD(String)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/DataBase.html" title="class in chatapp.Model">DataBase</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/HttpEchange.html#sendPost(java.lang.String)">sendPost(String)</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/HttpEchange.html" title="class in chatapp.Protocol">HttpEchange</a></dt>
|
||||
<dd>
|
||||
<div class="block">Cette méthode sert à recuperer la taille d'un base de donnée</div>
|
||||
<div class="block"> Cette méthode permet de communiquer avec le servlet grâce à des requetes http de type Post.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/MessageHorodate.html#toString()">toString()</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></dt>
|
||||
<dt><a href="../chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol"><span class="typeNameLink">SessionClavardage</span></a> - Class in <a href="../chatapp/Protocol/package-summary.html">chatapp.Protocol</a></dt>
|
||||
<dd>
|
||||
<div class="block">
|
||||
Permet de creer une representation string du message</div>
|
||||
Classe représentant une session de clavardage.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/SessionClavardage.html#%3Cinit%3E(chatapp.Model.Utilisateur,chatapp.Controller.ChatApp)">SessionClavardage(Utilisateur, ChatApp)</a></span> - Constructor for class chatapp.Protocol.<a href="../chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></dt>
|
||||
<dd>
|
||||
<div class="block"> Le constructeur associe a l'envoi d'une requete TCP, lorsque que l'on veut initier une session de clavardage avec un utilisateur connecte</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/SessionClavardage.html#%3Cinit%3E(java.net.Socket,chatapp.Controller.ChatApp)">SessionClavardage(Socket, ChatApp)</a></span> - Constructor for class chatapp.Protocol.<a href="../chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></dt>
|
||||
<dd>
|
||||
<div class="block"> Ce constructeur crée une session de clavardage quand on recoit une requete</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/SessionClavardage.html#setApp(chatapp.Controller.ChatApp)">setApp(ChatApp)</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter : chatApp</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/HttpEchange.html#setConnecte(java.lang.Boolean)">setConnecte(Boolean)</a></span> - Static method in class chatapp.Protocol.<a href="../chatapp/Protocol/HttpEchange.html" title="class in chatapp.Protocol">HttpEchange</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter : Connecte</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/UDPEchange.html#setConnecte(java.lang.Boolean)">setConnecte(Boolean)</a></span> - Static method in class chatapp.Protocol.<a href="../chatapp/Protocol/UDPEchange.html" title="class in chatapp.Protocol">UDPEchange</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter : Connecte</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/MessageHorodate.html#setDate(java.util.Date)">setDate(Date)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter: Date d'horodatage
|
||||
<br> On modifie le date d'horodatage</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/MessageHorodate.html#setDateHorodatage(java.util.Date)">setDateHorodatage(Date)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter: Date d'horodatage
|
||||
<br> On modifie le date.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/MessageHorodate.html#setDestinataire(chatapp.Model.Utilisateur)">setDestinataire(Utilisateur)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter: Utilisateur Destinataire
|
||||
<br> On modifie l'utilisateur Destinataire</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Controller/ChatApp.html#setExterne(boolean)">setExterne(boolean)</a></span> - Method in class chatapp.Controller.<a href="../chatapp/Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a></dt>
|
||||
<dd>
|
||||
<div class="block"> Setter : Externe
|
||||
<br> Permet de définir si on est un utilisateur externe ou non</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/SessionClavardage.html#setIn(java.io.ObjectInputStream)">setIn(ObjectInputStream)</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter : In</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/SessionClavardage.html#setLink(java.net.Socket)">setLink(Socket)</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter : Link</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/MessageHorodate.html#setMessage(java.lang.String)">setMessage(String)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter: Message envoye
|
||||
<br> On modifie le message envoyé</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/SessionClavardage.html#setOut(java.io.ObjectOutputStream)">setOut(ObjectOutputStream)</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter : Out</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/Utilisateur.html#setPort(java.lang.Integer)">setPort(Integer)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter Port</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/Utilisateur.html#setPseudo(java.lang.String)">setPseudo(String)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter Pseudo</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/UDPEchange.html#setPseudoValide(java.lang.Boolean)">setPseudoValide(Boolean)</a></span> - Static method in class chatapp.Protocol.<a href="../chatapp/Protocol/UDPEchange.html" title="class in chatapp.Protocol">UDPEchange</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter : PseudoValise</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/Clavardage.html#setSession(chatapp.Protocol.SessionClavardage)">setSession(SessionClavardage)</a></span> - Method in class chatapp.View.<a href="../chatapp/View/Clavardage.html" title="class in chatapp.View">Clavardage</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter : Session</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/MessageHorodate.html#setSource(chatapp.Model.Utilisateur)">setSource(Utilisateur)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter: Utilisateur Source
|
||||
<br> On modifie l'utilisateur source</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/MessageHorodate.html#setType(int)">setType(int)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter: 'Type' du message horodate
|
||||
<br> On modifie l'integer 'Type'</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/SessionClavardage.html#setU2(chatapp.Model.Utilisateur)">setU2(Utilisateur)</a></span> - Method in class chatapp.Protocol.<a href="../chatapp/Protocol/SessionClavardage.html" title="class in chatapp.Protocol">SessionClavardage</a></dt>
|
||||
<dd>
|
||||
<div class="block">Setter : Utilisateur 2</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Main.html#start(javafx.stage.Stage)">start(Stage)</a></span> - Method in class chatapp.<a href="../chatapp/Main.html" title="class in chatapp">Main</a></dt>
|
||||
<dd>
|
||||
<div class="block">Permet de lancer la fenetre principale de l'application</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Main.html#stop()">stop()</a></span> - Method in class chatapp.<a href="../chatapp/Main.html" title="class in chatapp">Main</a></dt>
|
||||
<dd>
|
||||
<div class="block"> Handler associe a la fermeture de l'application</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/MessageHorodate.html#stringToMessageHorodate(java.lang.String)">stringToMessageHorodate(String)</a></span> - Static method in class chatapp.Model.<a href="../chatapp/Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></dt>
|
||||
<dd>
|
||||
<div class="block">
|
||||
Permet de re créer un message horodaté à partir d'un string</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/Utilisateur.html#stringToUtilisateur(java.lang.String)">stringToUtilisateur(String)</a></span> - Static method in class chatapp.Model.<a href="../chatapp/Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></dt>
|
||||
<dd>
|
||||
<div class="block">Méthode permettant de convertir un string en Utilisateur</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/ListUtilisateurs.html#supprimerList(chatapp.Model.Utilisateur)">supprimerList(Utilisateur)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/ListUtilisateurs.html" title="class in chatapp.Model">ListUtilisateurs</a></dt>
|
||||
<dd>
|
||||
<div class="block">Supprimer de la liste des utilisateurs actifs 'actifUsers' un certain utilisateur</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/Utilisateur.html#toString()">toString()</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></dt>
|
||||
<dd> </dd>
|
||||
</dl>
|
||||
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">I</a> <a href="index-8.html">L</a> <a href="index-9.html">M</a> <a href="index-10.html">P</a> <a href="index-11.html">R</a> <a href="index-12.html">S</a> <a href="index-13.html">T</a> <a href="index-14.html">U</a> <a href="index-15.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a></div>
|
||||
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">P</a> <a href="index-12.html">R</a> <a href="index-13.html">S</a> <a href="index-14.html">T</a> <a href="index-15.html">U</a> <a href="index-16.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a></div>
|
||||
</main>
|
||||
<footer role="contentinfo">
|
||||
<nav role="navigation">
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<title>U-Index</title>
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>T-Index</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="description" content="index: U">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="index: T">
|
||||
<meta name="generator" content="javadoc/SplitIndexWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<link rel="stylesheet" type="text/css" href="../script-dir/jquery-ui.css" title="Style">
|
||||
|
|
@ -68,32 +68,28 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<div class="header">
|
||||
<h1>Index</h1>
|
||||
</div>
|
||||
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">I</a> <a href="index-8.html">L</a> <a href="index-9.html">M</a> <a href="index-10.html">P</a> <a href="index-11.html">R</a> <a href="index-12.html">S</a> <a href="index-13.html">T</a> <a href="index-14.html">U</a> <a href="index-15.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a><a id="I:U">
|
||||
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">P</a> <a href="index-12.html">R</a> <a href="index-13.html">S</a> <a href="index-14.html">T</a> <a href="index-15.html">U</a> <a href="index-16.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a><a id="I:T">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">U</h2>
|
||||
<h2 class="title">T</h2>
|
||||
<dl>
|
||||
<dt><a href="../chatapp/Protocol/UDPEchange.html" title="class in chatapp.Protocol"><span class="typeNameLink">UDPEchange</span></a> - Class in <a href="../chatapp/Protocol/package-summary.html">chatapp.Protocol</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/DataBase.html#tailleBDD(java.lang.String)">tailleBDD(String)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/DataBase.html" title="class in chatapp.Model">DataBase</a></dt>
|
||||
<dd>
|
||||
<div class="block">Cette méthode sert à récupérer la taille d'un base de donnée</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/MessageHorodate.html#toString()">toString()</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></dt>
|
||||
<dd>
|
||||
<div class="block">
|
||||
Classe representant les echanges UDP entre utilisateurs.</div>
|
||||
Permet de créer une représentation string du message</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/UDPEchange.html#%3Cinit%3E()">UDPEchange()</a></span> - Constructor for class chatapp.Protocol.<a href="../chatapp/Protocol/UDPEchange.html" title="class in chatapp.Protocol">UDPEchange</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><a href="../chatapp/Model/Utilisateur.html" title="class in chatapp.Model"><span class="typeNameLink">Utilisateur</span></a> - Class in <a href="../chatapp/Model/package-summary.html">chatapp.Model</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/Utilisateur.html#toString()">toString()</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></dt>
|
||||
<dd>
|
||||
<div class="block">
|
||||
Classe representant un Utilisateur
|
||||
Un Utilisateur est associe avec un pseudo, un numero de port, une addresse IP ainsi qu'un ID.</div>
|
||||
<div class="block">Méthode permettant de convertir un objet Utilisateur en String
|
||||
<br> Format du string :
|
||||
<br> pseudo ___ | port ___ | ip ___ | id ___ | ( '___' sont à remplacer par les valeurs réels)</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/Utilisateur.html#%3Cinit%3E(java.lang.String,java.lang.Integer,java.net.InetAddress)">Utilisateur(String, Integer, InetAddress)</a></span> - Constructor for class chatapp.Model.<a href="../chatapp/Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></dt>
|
||||
<dd>
|
||||
<div class="block">Constructeur : Utilisateur</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/View_Menu.html#utilsActifsButton">utilsActifsButton</a></span> - Variable in class chatapp.View.<a href="../chatapp/View/View_Menu.html" title="class in chatapp.View">View_Menu</a></dt>
|
||||
<dd> </dd>
|
||||
</dl>
|
||||
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">I</a> <a href="index-8.html">L</a> <a href="index-9.html">M</a> <a href="index-10.html">P</a> <a href="index-11.html">R</a> <a href="index-12.html">S</a> <a href="index-13.html">T</a> <a href="index-14.html">U</a> <a href="index-15.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a></div>
|
||||
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">P</a> <a href="index-12.html">R</a> <a href="index-13.html">S</a> <a href="index-14.html">T</a> <a href="index-15.html">U</a> <a href="index-16.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a></div>
|
||||
</main>
|
||||
<footer role="contentinfo">
|
||||
<nav role="navigation">
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<title>V-Index</title>
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>U-Index</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="description" content="index: V">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="index: U">
|
||||
<meta name="generator" content="javadoc/SplitIndexWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<link rel="stylesheet" type="text/css" href="../script-dir/jquery-ui.css" title="Style">
|
||||
|
|
@ -68,31 +68,35 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<div class="header">
|
||||
<h1>Index</h1>
|
||||
</div>
|
||||
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">I</a> <a href="index-8.html">L</a> <a href="index-9.html">M</a> <a href="index-10.html">P</a> <a href="index-11.html">R</a> <a href="index-12.html">S</a> <a href="index-13.html">T</a> <a href="index-14.html">U</a> <a href="index-15.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a><a id="I:V">
|
||||
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">P</a> <a href="index-12.html">R</a> <a href="index-13.html">S</a> <a href="index-14.html">T</a> <a href="index-15.html">U</a> <a href="index-16.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a><a id="I:U">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">V</h2>
|
||||
<h2 class="title">U</h2>
|
||||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/ListUtilisateurs.html#verifierUnicite(java.lang.String)">verifierUnicite(String)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/ListUtilisateurs.html" title="class in chatapp.Model">ListUtilisateurs</a></dt>
|
||||
<dd>
|
||||
<div class="block">Verifie qu'aucun autre utilisateur ne possede le meme pseudo</div>
|
||||
</dd>
|
||||
<dt><a href="../chatapp/View/View_Menu.html" title="class in chatapp.View"><span class="typeNameLink">View_Menu</span></a> - Class in <a href="../chatapp/View/package-summary.html">chatapp.View</a></dt>
|
||||
<dt><a href="../chatapp/Protocol/UDPEchange.html" title="class in chatapp.Protocol"><span class="typeNameLink">UDPEchange</span></a> - Class in <a href="../chatapp/Protocol/package-summary.html">chatapp.Protocol</a></dt>
|
||||
<dd>
|
||||
<div class="block">
|
||||
Classe representant la page d'acceuil.</div>
|
||||
Classe representant les échanges UDP entre utilisateurs.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/View_Menu.html#%3Cinit%3E()">View_Menu()</a></span> - Constructor for class chatapp.View.<a href="../chatapp/View/View_Menu.html" title="class in chatapp.View">View_Menu</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Protocol/UDPEchange.html#%3Cinit%3E()">UDPEchange()</a></span> - Constructor for class chatapp.Protocol.<a href="../chatapp/Protocol/UDPEchange.html" title="class in chatapp.Protocol">UDPEchange</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><a href="../chatapp/View/View_Utilisateurs.html" title="class in chatapp.View"><span class="typeNameLink">View_Utilisateurs</span></a> - Class in <a href="../chatapp/View/package-summary.html">chatapp.View</a></dt>
|
||||
<dt><a href="../chatapp/Model/Utilisateur.html" title="class in chatapp.Model"><span class="typeNameLink">Utilisateur</span></a> - Class in <a href="../chatapp/Model/package-summary.html">chatapp.Model</a></dt>
|
||||
<dd>
|
||||
<div class="block">
|
||||
Classe representant l'interface graphique permettant d'afficher les utilisateurs actifs</div>
|
||||
Classe representant un Utilisateur.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/View_Utilisateurs.html#%3Cinit%3E()">View_Utilisateurs()</a></span> - Constructor for class chatapp.View.<a href="../chatapp/View/View_Utilisateurs.html" title="class in chatapp.View">View_Utilisateurs</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/Utilisateur.html#%3Cinit%3E(java.lang.String,java.lang.Integer,java.net.InetAddress)">Utilisateur(String, Integer, InetAddress)</a></span> - Constructor for class chatapp.Model.<a href="../chatapp/Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></dt>
|
||||
<dd>
|
||||
<div class="block">Constructeur : Utilisateur (3 paramètres)</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/Utilisateur.html#%3Cinit%3E(java.lang.String,java.lang.Integer,java.net.InetAddress,java.lang.String)">Utilisateur(String, Integer, InetAddress, String)</a></span> - Constructor for class chatapp.Model.<a href="../chatapp/Model/Utilisateur.html" title="class in chatapp.Model">Utilisateur</a></dt>
|
||||
<dd>
|
||||
<div class="block">Constructeur : Utilisateur (4 paramètres)</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/View_Menu.html#utilsActifsButton">utilsActifsButton</a></span> - Variable in class chatapp.View.<a href="../chatapp/View/View_Menu.html" title="class in chatapp.View">View_Menu</a></dt>
|
||||
<dd> </dd>
|
||||
</dl>
|
||||
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">I</a> <a href="index-8.html">L</a> <a href="index-9.html">M</a> <a href="index-10.html">P</a> <a href="index-11.html">R</a> <a href="index-12.html">S</a> <a href="index-13.html">T</a> <a href="index-14.html">U</a> <a href="index-15.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a></div>
|
||||
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">P</a> <a href="index-12.html">R</a> <a href="index-13.html">S</a> <a href="index-14.html">T</a> <a href="index-15.html">U</a> <a href="index-16.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a></div>
|
||||
</main>
|
||||
<footer role="contentinfo">
|
||||
<nav role="navigation">
|
||||
|
|
|
|||
124
Javadoc/index-files/index-16.html
Normal file
|
|
@ -0,0 +1,124 @@
|
|||
<!DOCTYPE HTML>
|
||||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>V-Index</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="index: V">
|
||||
<meta name="generator" content="javadoc/SplitIndexWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<link rel="stylesheet" type="text/css" href="../script-dir/jquery-ui.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
<script type="text/javascript" src="../script-dir/jszip/dist/jszip.min.js"></script>
|
||||
<script type="text/javascript" src="../script-dir/jszip-utils/dist/jszip-utils.min.js"></script>
|
||||
<!--[if IE]>
|
||||
<script type="text/javascript" src="../script-dir/jszip-utils/dist/jszip-utils-ie.min.js"></script>
|
||||
<![endif]-->
|
||||
<script type="text/javascript" src="../script-dir/jquery-3.4.1.js"></script>
|
||||
<script type="text/javascript" src="../script-dir/jquery-ui.js"></script>
|
||||
</head>
|
||||
<body class="split-index">
|
||||
<script type="text/javascript">var pathtoroot = "../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<div class="fixedNav">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="topNav"><a id="navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a id="navbar.top.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../index.html">Overview</a></li>
|
||||
<li>Package</li>
|
||||
<li>Class</li>
|
||||
<li><a href="../overview-tree.html">Tree</a></li>
|
||||
<li><a href="../deprecated-list.html">Deprecated</a></li>
|
||||
<li class="navBarCell1Rev">Index</li>
|
||||
<li><a href="../help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<div class="navListSearch"><label for="search">SEARCH:</label>
|
||||
<input type="text" id="search" value="search" disabled="disabled">
|
||||
<input type="reset" id="reset" value="reset" disabled="disabled">
|
||||
</div>
|
||||
</div>
|
||||
<a id="skip.navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
</div>
|
||||
<div class="navPadding"> </div>
|
||||
<script type="text/javascript"><!--
|
||||
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
||||
//-->
|
||||
</script>
|
||||
</nav>
|
||||
</header>
|
||||
<main role="main">
|
||||
<div class="header">
|
||||
<h1>Index</h1>
|
||||
</div>
|
||||
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">P</a> <a href="index-12.html">R</a> <a href="index-13.html">S</a> <a href="index-14.html">T</a> <a href="index-15.html">U</a> <a href="index-16.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a><a id="I:V">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">V</h2>
|
||||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/ListUtilisateurs.html#verifierUnicite(java.lang.String)">verifierUnicite(String)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/ListUtilisateurs.html" title="class in chatapp.Model">ListUtilisateurs</a></dt>
|
||||
<dd>
|
||||
<div class="block">Vérifie qu'aucun autre utilisateur ne posséde le meme pseudo</div>
|
||||
</dd>
|
||||
<dt><a href="../chatapp/View/View_Menu.html" title="class in chatapp.View"><span class="typeNameLink">View_Menu</span></a> - Class in <a href="../chatapp/View/package-summary.html">chatapp.View</a></dt>
|
||||
<dd>
|
||||
<div class="block">
|
||||
Classe representant la page d'accueil.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/View_Menu.html#%3Cinit%3E()">View_Menu()</a></span> - Constructor for class chatapp.View.<a href="../chatapp/View/View_Menu.html" title="class in chatapp.View">View_Menu</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><a href="../chatapp/View/View_Utilisateurs.html" title="class in chatapp.View"><span class="typeNameLink">View_Utilisateurs</span></a> - Class in <a href="../chatapp/View/package-summary.html">chatapp.View</a></dt>
|
||||
<dd>
|
||||
<div class="block">
|
||||
Classe representant l'interface graphique permettant d'afficher les utilisateurs actifs</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/View_Utilisateurs.html#%3Cinit%3E()">View_Utilisateurs()</a></span> - Constructor for class chatapp.View.<a href="../chatapp/View/View_Utilisateurs.html" title="class in chatapp.View">View_Utilisateurs</a></dt>
|
||||
<dd> </dd>
|
||||
</dl>
|
||||
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">P</a> <a href="index-12.html">R</a> <a href="index-13.html">S</a> <a href="index-14.html">T</a> <a href="index-15.html">U</a> <a href="index-16.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a></div>
|
||||
</main>
|
||||
<footer role="contentinfo">
|
||||
<nav role="navigation">
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a id="navbar.bottom">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a id="navbar.bottom.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../index.html">Overview</a></li>
|
||||
<li>Package</li>
|
||||
<li>Class</li>
|
||||
<li><a href="../overview-tree.html">Tree</a></li>
|
||||
<li><a href="../deprecated-list.html">Deprecated</a></li>
|
||||
<li class="navBarCell1Rev">Index</li>
|
||||
<li><a href="../help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a id="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</nav>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>C-Index</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="index: C">
|
||||
<meta name="generator" content="javadoc/SplitIndexWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
|
|
@ -68,7 +68,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<div class="header">
|
||||
<h1>Index</h1>
|
||||
</div>
|
||||
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">I</a> <a href="index-8.html">L</a> <a href="index-9.html">M</a> <a href="index-10.html">P</a> <a href="index-11.html">R</a> <a href="index-12.html">S</a> <a href="index-13.html">T</a> <a href="index-14.html">U</a> <a href="index-15.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a><a id="I:C">
|
||||
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">P</a> <a href="index-12.html">R</a> <a href="index-13.html">S</a> <a href="index-14.html">T</a> <a href="index-15.html">U</a> <a href="index-16.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a><a id="I:C">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">C</h2>
|
||||
|
|
@ -111,21 +111,22 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/Clavardage.html#%3Cinit%3E()">Clavardage()</a></span> - Constructor for class chatapp.View.<a href="../chatapp/View/Clavardage.html" title="class in chatapp.View">Clavardage</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Controller/ChatApp.html#connexion()">connexion()</a></span> - Method in class chatapp.Controller.<a href="../chatapp/Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a></dt>
|
||||
<dd>
|
||||
<div class="block">Methode appelee lors de la connexion d'un nouvel utilisateur.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Controller/ChatApp.html#connexion(java.lang.String)">connexion(String)</a></span> - Method in class chatapp.Controller.<a href="../chatapp/Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a></dt>
|
||||
<dd>
|
||||
<div class="block">Methode appelee lors de la connexion de l'utilisateur, va prevenir les autres
|
||||
utlisateurs du reseau de l'arrivee de l'utilisateur sur celui-ci</div>
|
||||
<div class="block">Méthode permettant d'appeler la fonction de connexion adequate selon que l'on est en externe ou en interne</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/ConnexionScreen.html#connexion(javafx.event.ActionEvent)">connexion(ActionEvent)</a></span> - Method in class chatapp.View.<a href="../chatapp/View/ConnexionScreen.html" title="class in chatapp.View">ConnexionScreen</a></dt>
|
||||
<dd>
|
||||
<div class="block">Handler permettant de lancer la connexion avec le pseudonyme contenu dans le TextField pseudonyme en appuyant sur le connexionButton</div>
|
||||
<div class="block">
|
||||
Handler permettant de lancer la connexion avec le pseudonyme contenu dans le TextField pseudonyme en appuyant sur le connexionButton</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/ConnexionScreen.html#connexionButton">connexionButton</a></span> - Variable in class chatapp.View.<a href="../chatapp/View/ConnexionScreen.html" title="class in chatapp.View">ConnexionScreen</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Controller/ChatApp.html#connexionInterne(java.lang.String)">connexionInterne(String)</a></span> - Method in class chatapp.Controller.<a href="../chatapp/Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a></dt>
|
||||
<dd>
|
||||
<div class="block">Méthode appelée lors de la connexion de l'utilisateur en INTERNE,
|
||||
<br> Va prevenir les autres utlisateurs du réseau de l'arrivée de l'utilisateur sur celui-ci</div>
|
||||
</dd>
|
||||
<dt><a href="../chatapp/View/ConnexionScreen.html" title="class in chatapp.View"><span class="typeNameLink">ConnexionScreen</span></a> - Class in <a href="../chatapp/View/package-summary.html">chatapp.View</a></dt>
|
||||
<dd>
|
||||
<div class="block">
|
||||
|
|
@ -133,12 +134,17 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/ConnexionScreen.html#%3Cinit%3E()">ConnexionScreen()</a></span> - Constructor for class chatapp.View.<a href="../chatapp/View/ConnexionScreen.html" title="class in chatapp.View">ConnexionScreen</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/DataBase.html#CreationTableHistorique(java.lang.String,java.lang.String)">CreationTableHistorique(String, String)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/DataBase.html" title="class in chatapp.Model">DataBase</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Controller/ChatApp.html#createListeCommunicationPossible()">createListeCommunicationPossible()</a></span> - Method in class chatapp.Controller.<a href="../chatapp/Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a></dt>
|
||||
<dd>
|
||||
<div class="block">Methode permettant de creer une table pour stocker les messages entre deux utilisateurs</div>
|
||||
<div class="block">
|
||||
Un utilisateur ne peut pas ouvrir plusieurs sessions de clavardage avec le même utilisateur.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/DataBase.html#creationTableHistorique(java.lang.String,java.lang.String)">creationTableHistorique(String, String)</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/DataBase.html" title="class in chatapp.Model">DataBase</a></dt>
|
||||
<dd>
|
||||
<div class="block">Methode permettant de créer une table pour stocker les messages entre deux utilisateurs</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">I</a> <a href="index-8.html">L</a> <a href="index-9.html">M</a> <a href="index-10.html">P</a> <a href="index-11.html">R</a> <a href="index-12.html">S</a> <a href="index-13.html">T</a> <a href="index-14.html">U</a> <a href="index-15.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a></div>
|
||||
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">P</a> <a href="index-12.html">R</a> <a href="index-13.html">S</a> <a href="index-14.html">T</a> <a href="index-15.html">U</a> <a href="index-16.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a></div>
|
||||
</main>
|
||||
<footer role="contentinfo">
|
||||
<nav role="navigation">
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!-- NewPage -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Generated by javadoc (13-ea) on Sun Jan 03 16:13:59 RET 2021 -->
|
||||
<!-- Generated by javadoc (13-ea) on Sat Jan 30 13:49:20 CET 2021 -->
|
||||
<title>D-Index</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="dc.created" content="2021-01-03">
|
||||
<meta name="dc.created" content="2021-01-30">
|
||||
<meta name="description" content="index: D">
|
||||
<meta name="generator" content="javadoc/SplitIndexWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
|
|
@ -68,7 +68,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<div class="header">
|
||||
<h1>Index</h1>
|
||||
</div>
|
||||
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">I</a> <a href="index-8.html">L</a> <a href="index-9.html">M</a> <a href="index-10.html">P</a> <a href="index-11.html">R</a> <a href="index-12.html">S</a> <a href="index-13.html">T</a> <a href="index-14.html">U</a> <a href="index-15.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a><a id="I:D">
|
||||
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">P</a> <a href="index-12.html">R</a> <a href="index-13.html">S</a> <a href="index-14.html">T</a> <a href="index-15.html">U</a> <a href="index-16.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a><a id="I:D">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">D</h2>
|
||||
|
|
@ -76,29 +76,33 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<dt><a href="../chatapp/Model/DataBase.html" title="class in chatapp.Model"><span class="typeNameLink">DataBase</span></a> - Class in <a href="../chatapp/Model/package-summary.html">chatapp.Model</a></dt>
|
||||
<dd>
|
||||
<div class="block">
|
||||
Classe representant la Base de données.</div>
|
||||
Classe représentant la Base de données.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/DataBase.html#%3Cinit%3E()">DataBase()</a></span> - Constructor for class chatapp.Model.<a href="../chatapp/Model/DataBase.html" title="class in chatapp.Model">DataBase</a></dt>
|
||||
<dd>
|
||||
<div class="block">Constructeur de la database
|
||||
On installe le driver et on établit la connection.</div>
|
||||
<br> On installe le driver et on établit la connection.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Model/MessageHorodate.html#dateToString()">dateToString()</a></span> - Method in class chatapp.Model.<a href="../chatapp/Model/MessageHorodate.html" title="class in chatapp.Model">MessageHorodate</a></dt>
|
||||
<dd>
|
||||
<div class="block">
|
||||
Permet de creer une representation string de la date d'horodatage</div>
|
||||
Permet de créer une représentation string de la date d'horodatage</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Controller/ChatApp.html#deconnexion()">deconnexion()</a></span> - Method in class chatapp.Controller.<a href="../chatapp/Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a></dt>
|
||||
<dd>
|
||||
<div class="block">Methode appelee lors de la deconnexion de l'utilisateur.</div>
|
||||
<div class="block">Méthode appelée lors de la déconnexion de l'utilisateur.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/View_Menu.html#deconnexion(javafx.event.ActionEvent)">deconnexion(ActionEvent)</a></span> - Method in class chatapp.View.<a href="../chatapp/View/View_Menu.html" title="class in chatapp.View">View_Menu</a></dt>
|
||||
<dd>
|
||||
<div class="block">Handler permettant de se deconnecter et fermer l'application</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Controller/ChatApp.html#deconnexionInterne()">deconnexionInterne()</a></span> - Method in class chatapp.Controller.<a href="../chatapp/Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a></dt>
|
||||
<dd>
|
||||
<div class="block">Methode appelee lors de la deconnexion en INTERNE de l'utilisateur.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/Controller/ChatApp.html#demarrerSession(java.lang.String)">demarrerSession(String)</a></span> - Method in class chatapp.Controller.<a href="../chatapp/Controller/ChatApp.html" title="class in chatapp.Controller">ChatApp</a></dt>
|
||||
<dd>
|
||||
<div class="block">Demarre une session de clavardage avec l'utilisateur dont le pseudo est entre en parametre</div>
|
||||
<div class="block">Démarre une session de clavardage avec l'utilisateur dont le pseudo est entré en parametre</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../chatapp/View/View_Menu.html#demarrerSession(javafx.event.ActionEvent)">demarrerSession(ActionEvent)</a></span> - Method in class chatapp.View.<a href="../chatapp/View/View_Menu.html" title="class in chatapp.View">View_Menu</a></dt>
|
||||
<dd>
|
||||
|
|
@ -114,7 +118,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|||
<dt><span class="memberNameLink"><a href="../chatapp/View/View_Menu.html#demarrerSessionButton">demarrerSessionButton</a></span> - Variable in class chatapp.View.<a href="../chatapp/View/View_Menu.html" title="class in chatapp.View">View_Menu</a></dt>
|
||||
<dd> </dd>
|
||||
</dl>
|
||||
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">I</a> <a href="index-8.html">L</a> <a href="index-9.html">M</a> <a href="index-10.html">P</a> <a href="index-11.html">R</a> <a href="index-12.html">S</a> <a href="index-13.html">T</a> <a href="index-14.html">U</a> <a href="index-15.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a></div>
|
||||
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">P</a> <a href="index-12.html">R</a> <a href="index-13.html">S</a> <a href="index-14.html">T</a> <a href="index-15.html">U</a> <a href="index-16.html">V</a> <br><a href="../allclasses-index.html">All Classes</a> <a href="../allpackages-index.html">All Packages</a></div>
|
||||
</main>
|
||||
<footer role="contentinfo">
|
||||
<nav role="navigation">
|
||||
|
|
|
|||