From a59bf92ee74029e5517dc5d99d8bcd963aa49fd1 Mon Sep 17 00:00:00 2001
From: Redkale <22250530@qq.com>
Date: Tue, 23 May 2017 09:32:52 +0800
Subject: [PATCH]
---
src/org/redkale/net/http/RestOnMessage.java | 39 +++++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 src/org/redkale/net/http/RestOnMessage.java
diff --git a/src/org/redkale/net/http/RestOnMessage.java b/src/org/redkale/net/http/RestOnMessage.java
new file mode 100644
index 000000000..1da2a919a
--- /dev/null
+++ b/src/org/redkale/net/http/RestOnMessage.java
@@ -0,0 +1,39 @@
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package org.redkale.net.http;
+
+import java.lang.annotation.*;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+/**
+ * 标记在RestWebSocket的接收消息方法上
+ *
+ *
+ * 详情见: https://redkale.org + * + * @author zhangjx + */ +@Inherited +@Documented +@Target({METHOD}) +@Retention(RUNTIME) +public @interface RestOnMessage { + + /** + * 请求的方法名, 不能含特殊字符,不能以数字开头(能作为变量名) + * + * @return String + */ + String name() default ""; + + /** + * 备注描述 + * + * @return String + */ + String comment() default ""; +}