Browse Source

Merge branch 'main' into feature/client/make-input-field-buttons-interactive

remotes/origin/feature/client/exchange-messages-between-client-server
Alena Bandarovich 11 months ago
parent
commit
495c79de4d
  1. 0
      .metadata/.lock
  2. 68
      .metadata/.log
  3. BIN
      .metadata/.mylyn/.taskListIndex/segments_1
  4. 0
      .metadata/.mylyn/.taskListIndex/write.lock
  5. BIN
      .metadata/.mylyn/.tasks.xml.zip
  6. BIN
      .metadata/.mylyn/repositories.xml.zip
  7. BIN
      .metadata/.mylyn/tasks.xml.zip
  8. BIN
      .metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.egit.core.cmp/.location
  9. 1
      .metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version
  10. BIN
      .metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index
  11. 1
      .metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version
  12. BIN
      .metadata/.plugins/org.eclipse.core.resources/.root/2.tree
  13. BIN
      .metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources
  14. 3
      .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs
  15. 8
      .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs
  16. 2
      .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs
  17. 2
      .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.context.core.prefs
  18. 2
      .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.monitor.ui.prefs
  19. 5
      .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.tasks.ui.prefs
  20. 4
      .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs
  21. 2
      .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs
  22. 10
      .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs
  23. 2
      .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.urischeme.prefs
  24. 2426
      .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
  25. 11
      .metadata/.plugins/org.eclipse.egit.core/.org.eclipse.egit.core.cmp/.project
  26. 2
      .metadata/.plugins/org.eclipse.egit.core/.org.eclipse.egit.core.cmp/.settings/org.eclipse.core.resources.prefs
  27. BIN
      .metadata/.plugins/org.eclipse.jdt.core/assumedExternalFilesCache
  28. BIN
      .metadata/.plugins/org.eclipse.jdt.core/externalFilesCache
  29. 1
      .metadata/.plugins/org.eclipse.jdt.core/javaLikeNames.txt
  30. BIN
      .metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache
  31. BIN
      .metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat
  32. 2
      .metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml
  33. 2
      .metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml
  34. 10
      .metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml
  35. BIN
      .metadata/.plugins/org.eclipse.m2e.core/workspaceState.ser
  36. 2
      .metadata/.plugins/org.eclipse.m2e.logback/0.log
  37. 41
      .metadata/.plugins/org.eclipse.m2e.logback/logback.2.2.1.20231030-1438.xml
  38. BIN
      .metadata/.plugins/org.eclipse.mylyn.github.ui/avatars.ser
  39. 6
      .metadata/.plugins/org.eclipse.oomph.setup/workspace.setup
  40. 3
      .metadata/.plugins/org.eclipse.tips.ide/dialog_settings.xml
  41. 13
      .metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml
  42. 2
      .metadata/.plugins/org.eclipse.ui.intro/introstate
  43. 5
      .metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml
  44. 6
      .metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml
  45. 3
      .metadata/version.ini
  46. 23
      bin/.project
  47. 92
      bin/README.md
  48. 24
      bin/build-project.sh
  49. 4
      bin/target/classes/META-INF/MANIFEST.MF
  50. 7
      bin/target/classes/META-INF/maven/org.progmethoden/java-chat/pom.properties
  51. 6
      bin/target/classes/META-INF/maven/org.progmethoden/java-chat/pom.xml
  52. 0
      bin/target/classes/test2
  53. 0
      bin/target/test-classes/test.txt
  54. 0
      bin/target/test-classes/text.txt
  55. 5
      bin/team.md
  56. 33
      src/main/java/ChatServer.java
  57. 65
      src/main/java/ClientHandler.java

0
src/main/java/test → .metadata/.lock

68
.metadata/.log

@ -0,0 +1,68 @@
!SESSION 2024-02-02 13:03:01.611 -----------------------------------------------
eclipse.buildId=4.30.0.20231201-1200
java.version=17.0.9
java.vendor=Eclipse Adoptium
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product
!ENTRY ch.qos.logback.classic 1 0 2024-02-02 13:03:04.540
!MESSAGE Activated before the state location was initialized. Retry after the state location is initialized.
!ENTRY ch.qos.logback.classic 1 0 2024-02-02 13:03:28.001
!MESSAGE Logback config file: /home/paule/JavaChat/java-chat/.metadata/.plugins/org.eclipse.m2e.logback/logback.2.2.1.20231030-1438.xml
!ENTRY org.eclipse.jface 2 0 2024-02-02 13:03:29.643
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2024-02-02 13:03:29.643
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
Open a type in a Java editor,
Category(org.eclipse.ui.category.navigate,Navigate,null,true),
WorkbenchHandlerServiceHandler("org.eclipse.jdt.ui.navigate.open.type"),
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
,
Category(org.eclipse.lsp4e.category,Language Servers,null,true),
WorkbenchHandlerServiceHandler("org.eclipse.lsp4e.symbolinworkspace"),
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
!SESSION 2024-02-02 13:04:17.050 -----------------------------------------------
eclipse.buildId=4.30.0.20231201-1200
java.version=17.0.9
java.vendor=Eclipse Adoptium
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product
!ENTRY ch.qos.logback.classic 1 0 2024-02-02 13:04:18.969
!MESSAGE Activated before the state location was initialized. Retry after the state location is initialized.
!ENTRY ch.qos.logback.classic 1 0 2024-02-02 13:04:55.096
!MESSAGE Logback config file: /home/paule/JavaChat/java-chat/.metadata/.plugins/org.eclipse.m2e.logback/logback.2.2.1.20231030-1438.xml
!ENTRY org.eclipse.jface 2 0 2024-02-02 13:04:56.486
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2024-02-02 13:04:56.486
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
Open a type in a Java editor,
Category(org.eclipse.ui.category.navigate,Navigate,null,true),
WorkbenchHandlerServiceHandler("org.eclipse.jdt.ui.navigate.open.type"),
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
,
Category(org.eclipse.lsp4e.category,Language Servers,null,true),
WorkbenchHandlerServiceHandler("org.eclipse.lsp4e.symbolinworkspace"),
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)

BIN
.metadata/.mylyn/.taskListIndex/segments_1

0
.metadata/.mylyn/.taskListIndex/write.lock

BIN
.metadata/.mylyn/.tasks.xml.zip

BIN
.metadata/.mylyn/repositories.xml.zip

BIN
.metadata/.mylyn/tasks.xml.zip

BIN
.metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.egit.core.cmp/.location

1
.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version

@ -0,0 +1 @@


BIN
.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index

1
.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version

@ -0,0 +1 @@


BIN
.metadata/.plugins/org.eclipse.core.resources/.root/2.tree

BIN
.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources

3
.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs

@ -0,0 +1,3 @@
eclipse.preferences.version=1
encoding=UTF-8
version=1

8
.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs

@ -0,0 +1,8 @@
content_assist_proposals_background=255,255,255
content_assist_proposals_foreground=48,48,48
eclipse.preferences.version=1
org.eclipse.jdt.ui.formatterprofiles.version=23
spelling_locale_initialized=true
typefilter_migrated_2=true
useAnnotationsPrefPage=true
useQuickDiffPrefPage=true

2
.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs

@ -0,0 +1,2 @@
eclipse.preferences.version=1
org.eclipse.m2e.discovery.pref.projects=

2
.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.context.core.prefs

@ -0,0 +1,2 @@
eclipse.preferences.version=1
mylyn.attention.migrated=true

2
.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.monitor.ui.prefs

@ -0,0 +1,2 @@
eclipse.preferences.version=1
org.eclipse.mylyn.monitor.activity.tracking.enabled.checked=true

5
.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.tasks.ui.prefs

@ -0,0 +1,5 @@
eclipse.preferences.version=1
migrated.task.repositories.secure.store=true
org.eclipse.mylyn.tasks.ui.filters.nonmatching=true
org.eclipse.mylyn.tasks.ui.filters.nonmatching.encouraged=true
org.eclipse.mylyn.tasks.ui.welcome.message=true

4
.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs

@ -0,0 +1,4 @@
eclipse.preferences.version=1
platformState=1705877070144
quickStart=false
tipsAndTricks=true

2
.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs

@ -0,0 +1,2 @@
eclipse.preferences.version=1
showIntro=false

10
.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs

@ -0,0 +1,10 @@
//org.eclipse.ui.commands/state/org.eclipse.ui.navigator.resources.nested.changeProjectPresentation/org.eclipse.ui.commands.radioState=false
PLUGINS_NOT_ACTIVATED_ON_STARTUP=;org.eclipse.m2e.discovery;
eclipse.preferences.version=1
org.eclipse.ui.workbench.ACTIVE_NOFOCUS_TAB_BG_END=255,255,255
org.eclipse.ui.workbench.ACTIVE_NOFOCUS_TAB_BG_START=255,255,255
org.eclipse.ui.workbench.ACTIVE_NOFOCUS_TAB_TEXT_COLOR=16,16,16
org.eclipse.ui.workbench.ACTIVE_TAB_BG_END=255,255,255
org.eclipse.ui.workbench.ACTIVE_TAB_BG_START=255,255,255
org.eclipse.ui.workbench.INACTIVE_TAB_BG_END=246,245,244
org.eclipse.ui.workbench.INACTIVE_TAB_BG_START=246,245,244

2
.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.urischeme.prefs

@ -0,0 +1,2 @@
eclipse.preferences.version=1
processedSchemes=,eclipse+mpc,eclipse+command

2426
.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
File diff suppressed because it is too large
View File

11
.metadata/.plugins/org.eclipse.egit.core/.org.eclipse.egit.core.cmp/.project

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>.org.eclipse.egit.core.cmp</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>

2
.metadata/.plugins/org.eclipse.egit.core/.org.eclipse.egit.core.cmp/.settings/org.eclipse.core.resources.prefs

@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8

BIN
.metadata/.plugins/org.eclipse.jdt.core/assumedExternalFilesCache

BIN
.metadata/.plugins/org.eclipse.jdt.core/externalFilesCache

1
.metadata/.plugins/org.eclipse.jdt.core/javaLikeNames.txt

@ -0,0 +1 @@
java

BIN
.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache

BIN
.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat

2
.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<typeInfoHistroy/>

2
.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<qualifiedTypeNameHistroy/>

10
.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
<section name="org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart">
<item key="group_libraries" value="true"/>
<item key="layout" value="2"/>
<item key="rootMode" value="1"/>
<item key="linkWithEditor" value="false"/>
<item key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#x0A;&lt;packageExplorer group_libraries=&quot;1&quot; layout=&quot;2&quot; linkWithEditor=&quot;0&quot; rootMode=&quot;1&quot; workingSetName=&quot;Aggregate for window 1706875411056&quot;&gt;&#x0A;&lt;customFilters userDefinedPatternsEnabled=&quot;false&quot;&gt;&#x0A;&lt;xmlDefinedFilters&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.StaticsFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.buildship.ui.packageexplorer.filter.gradle.buildfolder&quot; isEnabled=&quot;true&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.mylyn.java.ui.MembersFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.NonJavaProjectsFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer_patternFilterId_.*&quot; isEnabled=&quot;true&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.NonSharedProjectsFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.SyntheticMembersFilter&quot; isEnabled=&quot;true&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.ContainedLibraryFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.internal.ui.PackageExplorer.HideInnerClassFilesFilter&quot; isEnabled=&quot;true&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.internal.ui.PackageExplorer.EmptyInnerPackageFilter&quot; isEnabled=&quot;true&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.m2e.MavenModuleFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.buildship.ui.packageexplorer.filter.gradle.subProject&quot; isEnabled=&quot;true&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.ClosedProjectsFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.DeprecatedMembersFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.EmptyLibraryContainerFilter&quot; isEnabled=&quot;true&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.PackageDeclarationFilter&quot; isEnabled=&quot;true&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.ImportDeclarationFilter&quot; isEnabled=&quot;true&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.NonJavaElementFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.LibraryFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.CuAndClassFileFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.internal.ui.PackageExplorer.EmptyPackageFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.NonPublicFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.LocalTypesFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.FieldsFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0A;&lt;/xmlDefinedFilters&gt;&#x0A;&lt;/customFilters&gt;&#x0A;&lt;/packageExplorer&gt;"/>
</section>
</section>

BIN
.metadata/.plugins/org.eclipse.m2e.core/workspaceState.ser

2
.metadata/.plugins/org.eclipse.m2e.logback/0.log

@ -0,0 +1,2 @@
2024-02-02 13:03:32,664 [Worker-2: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is out-of-date. Trying to update.
2024-02-02 13:06:10,779 [Worker-17: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read.

41
.metadata/.plugins/org.eclipse.m2e.logback/logback.2.2.1.20231030-1438.xml

@ -0,0 +1,41 @@
<configuration scan="true">
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%date [%thread] %-5level %logger{35} - %msg%n</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>${org.eclipse.m2e.log.console.threshold:-OFF}</level> <!-- change to DEBUG to mimic '-consolelog' behaviour -->
</filter>
</appender>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<File>${org.eclipse.m2e.log.dir}/0.log</File>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<FileNamePattern>${org.eclipse.m2e.log.dir}/%i.log</FileNamePattern>
<MinIndex>1</MinIndex>
<MaxIndex>10</MaxIndex>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>10MB</MaxFileSize>
</triggeringPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%date [%thread] %-5level %logger{35} - %msg%n</pattern>
</encoder>
</appender>
<appender name="EclipseLog" class="org.eclipse.m2e.logback.appender.EclipseLogAppender">
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>WARN</level>
</filter>
</appender>
<appender name="MavenConsoleLog" class="org.eclipse.m2e.logback.appender.MavenConsoleAppender">
</appender>
<root level="INFO">
<appender-ref ref="FILE" />
<appender-ref ref="STDOUT" />
<appender-ref ref="EclipseLog" />
<appender-ref ref="MavenConsoleLog" />
</root>
</configuration>

BIN
.metadata/.plugins/org.eclipse.mylyn.github.ui/avatars.ser

6
.metadata/.plugins/org.eclipse.oomph.setup/workspace.setup

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<setup:Workspace
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
name="workspace"/>

3
.metadata/.plugins/org.eclipse.tips.ide/dialog_settings.xml

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
</section>

13
.metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
<section name="SmartImportWizard">
<item key="SmartImportRootWizardPage.STORE_HIDE_ALREADY_OPEN" value="false"/>
<item key="SmartImportRootWizardPage.STORE_CLOSE_IMPORTED" value="false"/>
<item key="SmartImportRootWizardPage.STORE_NESTED_PROJECTS" value="true"/>
<item key="SmartImportRootWizardPage.STORE_CONFIGURE_NATURES" value="true"/>
<list key="org.eclipse.ui.internal.wizards.datatransfer.SmartImportRootWizardPage.knownSources">
<item value="/home/paule/JavaChat"/>
<item value="/home/paule/JavaChat/java-chat"/>
</list>
</section>
</section>

2
.metadata/.plugins/org.eclipse.ui.intro/introstate

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<state reopen="false"/>

5
.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
<section name="ImportExportAction">
</section>
</section>

6
.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<workingSetManager>
<workingSet editPageId="org.eclipse.jdt.internal.ui.DynamicSourcesWorkingSet" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1706875410476_0" label="Java Main Sources" name="Java Main Sources"/>
<workingSet editPageId="org.eclipse.jdt.internal.ui.DynamicSourcesWorkingSet" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1706875410488_1" label="Java Test Sources" name="Java Test Sources"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1706875411056_2" label="Window Working Set" name="Aggregate for window 1706875411056"/>
</workingSetManager>

3
.metadata/version.ini

@ -0,0 +1,3 @@
#Fri Feb 02 13:04:54 CET 2024
org.eclipse.core.runtime=2
org.eclipse.platform=4.30.0.v20231201-0110

23
bin/.project

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>java-chat</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>

92
bin/README.md

@ -0,0 +1,92 @@
# Java Chat
## Getting started
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
## Add your files
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
```
cd existing_repo
git remote add origin https://gitlab.cs.hs-fulda.de/fdai7332/java-chat.git
git branch -M main
git push -uf origin main
```
## Integrate with your tools
- [ ] [Set up project integrations](https://gitlab.cs.hs-fulda.de/fdai7332/java-chat/-/settings/integrations)
## Collaborate with your team
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
## Test and Deploy
Use the built-in continuous integration in GitLab.
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
***
# Editing this README
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
## Suggestions for a good README
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
## Name
Choose a self-explaining name for your project.
## Description
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
## Badges
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
## Visuals
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
## Installation
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
## Usage
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
## Support
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
## Roadmap
If you have ideas for releases in the future, it is a good idea to list them in the README.
## Contributing
State if you are open to contributions and what your requirements are for accepting them.
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
## Authors and acknowledgment
Show your appreciation to those who have contributed to the project.
## License
For open source projects, say how it is licensed.
## Project status
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.

24
bin/build-project.sh

@ -0,0 +1,24 @@
#!/bin/bash
# Überprüfen, ob Maven installiert ist
command -v mvn >/dev/null 2>&1 || { echo >&2 "Maven ist erforderlich, aber nicht installiert. Bitte installieren Sie Maven."; exit 1; }
# Projekt übersetzen und Unittests ausführen
mvn clean compile test
# Überprüfen, ob der Build erfolgreich war
if [ $? -eq 0 ]; then
echo "Build erfolgreich abgeschlossen."
else
echo "Fehler beim Build. Bitte überprüfen Sie Ihre Codebasis."
exit 1
fi
remove() {
rm -r build
rm main
}
remove

4
bin/target/classes/META-INF/MANIFEST.MF

@ -0,0 +1,4 @@
Manifest-Version: 1.0
Build-Jdk-Spec: 17
Created-By: Maven Integration for Eclipse

7
bin/target/classes/META-INF/maven/org.progmethoden/java-chat/pom.properties

@ -0,0 +1,7 @@
#Generated by Maven Integration for Eclipse
#Fri Feb 02 12:52:10 CET 2024
m2e.projectLocation=S\:\\backup\\Studium\\1W\\Programmiermethoden und -Werkzeuge\\javachat\\java-chat
m2e.projectName=java-chat
groupId=org.progmethoden
artifactId=java-chat
version=0.0.1-SNAPSHOT

6
bin/target/classes/META-INF/maven/org.progmethoden/java-chat/pom.xml

@ -0,0 +1,6 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.progmethoden</groupId>
<artifactId>java-chat</artifactId>
<version>0.0.1-SNAPSHOT</version>
</project>

0
bin/target/classes/test2

0
bin/target/test-classes/test.txt

0
bin/target/test-classes/text.txt

5
bin/team.md

@ -0,0 +1,5 @@
- Valentin Spiroski, fdai7332
- Richard Schmidt, fdai7420
- Paul Kattenborn, fdai7599
- Marc Dimmerling, fdai7579
- Alena Bandarovich, fdai5595

33
src/main/java/ChatServer.java

@ -0,0 +1,33 @@
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
public class ChatServer {
private ServerSocket serverSocket;
public ChatServer(int port) {
try {
serverSocket = new ServerSocket(port);
System.out.println("Started ChatServer on port " + port);
Socket connectionToClient = serverSocket.accept();
System.out.println("Accepted new Client");
} catch (IOException e) {
e.printStackTrace();
}
}
public void broadcastMessage(String s) {
}
public static void main(String[] args) {
new ChatServer(3141);
}
}

65
src/main/java/ClientHandler.java

@ -0,0 +1,65 @@
import java.io.*;
import java.net.Socket;
public class ClientHandler implements Runnable {
private ChatServer chatServer;
private Socket connectionToClient;
private String name;
private BufferedReader fromClientReader;
private PrintWriter toClientWriter;
// Constructor for ClientHandler
public ClientHandler(ChatServer chatServer, Socket connectionToClient) {
this.chatServer = chatServer;
this.connectionToClient = connectionToClient;
name = connectionToClient.getInetAddress().getHostAddress(); // Use the client's IP address as their name for simplicity
new Thread(this).start();} // Start a new thread for this client handler
@Override
public void run() {
try {
// Set up input and output streams for communication with the client
fromClientReader = new BufferedReader (new InputStreamReader(connectionToClient.getInputStream()));
toClientWriter = new PrintWriter (new OutputStreamWriter(connectionToClient.getOutputStream()));
chatServer.broadcastMessage(name + " connected."); // Broadcast a message when the client is connected
// Read messages from the client and broadcast them to all clients
String message = fromClientReader.readLine();
while (message!=null) {
// Broadcast the client's message to all connected clients
chatServer.broadcastMessage(name + ": " + message);
message = fromClientReader.readLine();
}
}
catch (IOException e) {
throw new RuntimeException(e); // Handle exceptions by throwing a runtime exception
}
finally {
//chatServer.removeClient(this);
chatServer.broadcastMessage(name + " disconnected."); // Broadcast a message when the client is disconnected
// Close resources in the finally block
if (fromClientReader != null) {
try {
fromClientReader.close();
}
catch (IOException e){
e.printStackTrace();
}
}
if (toClientWriter != null) {
toClientWriter.close();
}
}
}
//Method to send a message to the client
public void sendMessage(String message) {
toClientWriter.println(message); // Send the message to the client
toClientWriter.flush(); // Flush the stream
}
}
Loading…
Cancel
Save