From 2e5df943968aa52f202942666898521c9208bcb4 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Wed, 6 Jul 2022 13:30:24 +0200 Subject: [PATCH] better EventListener stage 2 --- src/de/tudbut/tryumph/events/PBody.java | 13 +++++++++++++ src/de/tudbut/tryumph/events/PCookie.java | 13 +++++++++++++ src/de/tudbut/tryumph/events/PData.java | 13 +++++++++++++ src/de/tudbut/tryumph/events/PHeader.java | 13 +++++++++++++ src/de/tudbut/tryumph/events/PPathFragment.java | 13 +++++++++++++ src/de/tudbut/tryumph/events/PQuery.java | 13 +++++++++++++ 6 files changed, 78 insertions(+) create mode 100644 src/de/tudbut/tryumph/events/PBody.java create mode 100644 src/de/tudbut/tryumph/events/PCookie.java create mode 100644 src/de/tudbut/tryumph/events/PData.java create mode 100644 src/de/tudbut/tryumph/events/PHeader.java create mode 100644 src/de/tudbut/tryumph/events/PPathFragment.java create mode 100644 src/de/tudbut/tryumph/events/PQuery.java diff --git a/src/de/tudbut/tryumph/events/PBody.java b/src/de/tudbut/tryumph/events/PBody.java new file mode 100644 index 0000000..78715e7 --- /dev/null +++ b/src/de/tudbut/tryumph/events/PBody.java @@ -0,0 +1,13 @@ +package de.tudbut.tryumph.events; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target(ElementType.PARAMETER) +@Retention(RetentionPolicy.RUNTIME) +public @interface PBody { + + String value(); +} diff --git a/src/de/tudbut/tryumph/events/PCookie.java b/src/de/tudbut/tryumph/events/PCookie.java new file mode 100644 index 0000000..40a3922 --- /dev/null +++ b/src/de/tudbut/tryumph/events/PCookie.java @@ -0,0 +1,13 @@ +package de.tudbut.tryumph.events; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target(ElementType.PARAMETER) +@Retention(RetentionPolicy.RUNTIME) +public @interface PCookie { + + String value(); +} diff --git a/src/de/tudbut/tryumph/events/PData.java b/src/de/tudbut/tryumph/events/PData.java new file mode 100644 index 0000000..9dfcccc --- /dev/null +++ b/src/de/tudbut/tryumph/events/PData.java @@ -0,0 +1,13 @@ +package de.tudbut.tryumph.events; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target(ElementType.PARAMETER) +@Retention(RetentionPolicy.RUNTIME) +public @interface PData { + + String value(); +} diff --git a/src/de/tudbut/tryumph/events/PHeader.java b/src/de/tudbut/tryumph/events/PHeader.java new file mode 100644 index 0000000..6129ec0 --- /dev/null +++ b/src/de/tudbut/tryumph/events/PHeader.java @@ -0,0 +1,13 @@ +package de.tudbut.tryumph.events; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target(ElementType.PARAMETER) +@Retention(RetentionPolicy.RUNTIME) +public @interface PHeader { + + String value(); +} diff --git a/src/de/tudbut/tryumph/events/PPathFragment.java b/src/de/tudbut/tryumph/events/PPathFragment.java new file mode 100644 index 0000000..4281fd1 --- /dev/null +++ b/src/de/tudbut/tryumph/events/PPathFragment.java @@ -0,0 +1,13 @@ +package de.tudbut.tryumph.events; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target(ElementType.PARAMETER) +@Retention(RetentionPolicy.RUNTIME) +public @interface PPathFragment { + + int value(); +} diff --git a/src/de/tudbut/tryumph/events/PQuery.java b/src/de/tudbut/tryumph/events/PQuery.java new file mode 100644 index 0000000..61e1b3e --- /dev/null +++ b/src/de/tudbut/tryumph/events/PQuery.java @@ -0,0 +1,13 @@ +package de.tudbut.tryumph.events; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target(ElementType.PARAMETER) +@Retention(RetentionPolicy.RUNTIME) +public @interface PQuery { + + String value(); +}