This commit is contained in:
wentch
2016-01-04 16:41:24 +08:00
parent 52d5efced6
commit efd9542c6e
173 changed files with 489 additions and 321 deletions

View File

@@ -37,7 +37,7 @@ import org.w3c.dom.*;
* 最后进行Service、Servlet与其他资源之间的依赖注入。 * 最后进行Service、Servlet与其他资源之间的依赖注入。
* *
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public final class Application { public final class Application {

View File

@@ -22,7 +22,7 @@ import java.util.regex.*;
/** /**
* class过滤器 符合条件的class会保留下来存入FilterEntry。 * class过滤器 符合条件的class会保留下来存入FilterEntry。
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <T> * @param <T>
*/ */

View File

@@ -18,7 +18,7 @@ import java.util.logging.Formatter;
/** /**
* 自定义的日志存储类 * 自定义的日志存储类
* <p> * <p>
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public class LogFileHandler extends Handler { public class LogFileHandler extends Handler {

View File

@@ -25,7 +25,7 @@ import org.redkale.util.*;
/** /**
* HTTP Server节点的配置Server * HTTP Server节点的配置Server
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
@NodeProtocol({"HTTP"}) @NodeProtocol({"HTTP"})

View File

@@ -9,7 +9,7 @@ import java.lang.annotation.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
@Target({ElementType.TYPE}) @Target({ElementType.TYPE})

View File

@@ -30,7 +30,7 @@ import org.redkale.util.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public abstract class NodeServer { public abstract class NodeServer {

View File

@@ -13,7 +13,7 @@ import org.redkale.util.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
@NodeProtocol({"SNCP"}) @NodeProtocol({"SNCP"})

View File

@@ -10,7 +10,7 @@ import java.lang.reflect.Type;
/** /**
* 对不明类型的对象进行序列化; BSON序列化时将对象的类名写入WriterJSON则不写入。 * 对不明类型的对象进行序列化; BSON序列化时将对象的类名写入WriterJSON则不写入。
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <T> * @param <T>
*/ */

View File

@@ -13,7 +13,7 @@ import java.util.*;
* 数组长度不能超过 32767。 在BSON中数组长度设定的是short对于大于32767长度的数组传输会影响性能所以没有采用int存储。 * 数组长度不能超过 32767。 在BSON中数组长度设定的是short对于大于32767长度的数组传输会影响性能所以没有采用int存储。
* 支持一定程度的泛型。 * 支持一定程度的泛型。
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <T> * @param <T>
*/ */

View File

@@ -12,7 +12,7 @@ import java.lang.reflect.*;
* 数组长度不能超过 32767。 在BSON中数组长度设定的是short对于大于32767长度的数组传输会影响性能所以没有必要采用int存储。 * 数组长度不能超过 32767。 在BSON中数组长度设定的是short对于大于32767长度的数组传输会影响性能所以没有必要采用int存储。
* 支持一定程度的泛型。 * 支持一定程度的泛型。
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <T> * @param <T>
*/ */

View File

@@ -15,7 +15,7 @@ import java.util.Collection;
* 集合大小不能超过 32767。 在BSON中集合大小设定的是short对于大于32767长度的集合传输会影响性能所以没有采用int存储。 * 集合大小不能超过 32767。 在BSON中集合大小设定的是short对于大于32767长度的集合传输会影响性能所以没有采用int存储。
* 支持一定程度的泛型。 * 支持一定程度的泛型。
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <T> * @param <T>
*/ */

View File

@@ -13,7 +13,7 @@ import java.util.Collection;
* 集合大小不能超过 32767。 在BSON中集合大小设定的是short对于大于32767长度的集合传输会影响性能所以没有采用int存储。 * 集合大小不能超过 32767。 在BSON中集合大小设定的是short对于大于32767长度的集合传输会影响性能所以没有采用int存储。
* 支持一定程度的泛型。 * 支持一定程度的泛型。
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <T> * @param <T>
*/ */

View File

@@ -8,7 +8,7 @@ package org.redkale.convert;
/** /**
* 序列化操作类 * 序列化操作类
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -12,7 +12,7 @@ import static java.lang.annotation.RetentionPolicy.*;
/** /**
* 依附在setter、getter方法、字段进行简单的配置 * 依附在setter、getter方法、字段进行简单的配置
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
@Inherited @Inherited

View File

@@ -8,7 +8,7 @@ package org.redkale.convert;
/** /**
* ConvertColumn 对应的实体类 * ConvertColumn 对应的实体类
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public final class ConvertColumnEntry { public final class ConvertColumnEntry {

View File

@@ -12,7 +12,7 @@ import static java.lang.annotation.RetentionPolicy.*;
/** /**
* ConvertColumn 的多用类 * ConvertColumn 的多用类
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
@Inherited @Inherited

View File

@@ -14,7 +14,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
* 该值必须是全局唯一 * 该值必须是全局唯一
* 使用场景: 当BSON序列化为了不指定class可以使用@ConvertEntity来取个别名。关联方法: Reader.readClassName() 和 Writer.wirteClassName(String value) 。 * 使用场景: 当BSON序列化为了不指定class可以使用@ConvertEntity来取个别名。关联方法: Reader.readClassName() 和 Writer.wirteClassName(String value) 。
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
@Inherited @Inherited

View File

@@ -6,7 +6,7 @@ package org.redkale.convert;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public class ConvertException extends RuntimeException { public class ConvertException extends RuntimeException {

View File

@@ -7,7 +7,7 @@ package org.redkale.convert;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public enum ConvertType { public enum ConvertType {

View File

@@ -9,7 +9,7 @@ import org.redkale.util.Attribute;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <T> * @param <T>

View File

@@ -9,7 +9,7 @@ import java.lang.reflect.Type;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <T> * @param <T>

View File

@@ -9,7 +9,7 @@ import org.redkale.util.Attribute;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <W> * @param <W>
* @param <T> * @param <T>

View File

@@ -9,7 +9,7 @@ import java.lang.reflect.Type;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <W> * @param <W>
* @param <T> * @param <T>
@@ -21,7 +21,7 @@ public interface Encodeable<W extends Writer, T> {
/** /**
* 泛型映射接口 * 泛型映射接口
* *
* @return * @return 返回序列化对象类的数据类型
*/ */
public Type getType(); public Type getType();

View File

@@ -21,7 +21,7 @@ import org.redkale.util.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -12,7 +12,7 @@ import java.util.Map;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <K> * @param <K>
* @param <V> * @param <V>

View File

@@ -11,7 +11,7 @@ import java.util.Map;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <K> * @param <K>
* @param <V> * @param <V>

View File

@@ -15,7 +15,7 @@ import org.redkale.util.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <T> * @param <T>

View File

@@ -12,7 +12,7 @@ import org.redkale.util.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <W> * @param <W>
* @param <T> * @param <T>

View File

@@ -9,7 +9,7 @@ import java.util.concurrent.atomic.AtomicInteger;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public interface Reader { public interface Reader {

View File

@@ -10,7 +10,7 @@ import java.lang.reflect.Type;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -9,7 +9,7 @@ import org.redkale.util.Attribute;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public interface Writer { public interface Writer {

View File

@@ -10,7 +10,7 @@ import java.util.function.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public final class BsonByteBufferWriter extends BsonWriter { public final class BsonByteBufferWriter extends BsonWriter {

View File

@@ -29,7 +29,7 @@ import org.redkale.util.*;
* 5. SIGN_NONEXT 标记位值固定为0 (byte) * 5. SIGN_NONEXT 标记位值固定为0 (byte)
* 6. SIGN_OBJECTE 标记位值固定为0xEE (short) * 6. SIGN_OBJECTE 标记位值固定为0xEE (short)
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public final class BsonConvert extends Convert<BsonReader, BsonWriter> { public final class BsonConvert extends Convert<BsonReader, BsonWriter> {

View File

@@ -10,7 +10,7 @@ import org.redkale.convert.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public final class BsonFactory extends Factory<BsonReader, BsonWriter> { public final class BsonFactory extends Factory<BsonReader, BsonWriter> {

View File

@@ -14,7 +14,7 @@ import org.redkale.util.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public class BsonReader implements Reader { public class BsonReader implements Reader {

View File

@@ -9,7 +9,7 @@ import org.redkale.convert.SimpledCoder;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <T> * @param <T>
*/ */

View File

@@ -12,7 +12,7 @@ import org.redkale.util.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public class BsonWriter implements Writer { public class BsonWriter implements Writer {

View File

@@ -12,7 +12,7 @@ import java.math.BigInteger;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -11,7 +11,7 @@ import org.redkale.convert.Writer;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -11,7 +11,7 @@ import org.redkale.convert.Writer;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -11,7 +11,7 @@ import org.redkale.convert.Writer;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -11,7 +11,7 @@ import org.redkale.convert.Writer;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -11,7 +11,7 @@ import org.redkale.convert.Writer;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -9,7 +9,7 @@ import org.redkale.convert.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -12,7 +12,7 @@ import org.redkale.convert.Writer;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -10,7 +10,7 @@ import org.redkale.convert.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -12,7 +12,7 @@ import org.redkale.util.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -12,7 +12,7 @@ import java.util.Date;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -11,7 +11,7 @@ import org.redkale.convert.Writer;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -11,7 +11,7 @@ import org.redkale.convert.Writer;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -11,7 +11,9 @@ import org.redkale.convert.Writer;
/** /**
* *
* @see http://www.redkale.org * <p>
* 详情见: http://www.redkale.org
*
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -11,7 +11,7 @@ import org.redkale.convert.Writer;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -11,7 +11,7 @@ import org.redkale.convert.Writer;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -12,7 +12,7 @@ import java.net.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -11,7 +11,7 @@ import org.redkale.convert.Writer;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -11,7 +11,7 @@ import org.redkale.convert.Writer;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -11,7 +11,7 @@ import org.redkale.convert.Writer;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -12,7 +12,7 @@ import org.redkale.convert.Writer;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -11,7 +11,7 @@ import org.redkale.convert.Writer;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -10,7 +10,7 @@ import org.redkale.convert.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -11,7 +11,7 @@ import org.redkale.convert.Writer;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -11,7 +11,7 @@ import org.redkale.convert.Writer;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -11,7 +11,7 @@ import org.redkale.convert.Writer;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -11,7 +11,7 @@ import org.redkale.convert.Writer;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -11,7 +11,7 @@ import org.redkale.convert.SimpledCoder;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <W> * @param <W>

View File

@@ -13,7 +13,7 @@ import org.redkale.util.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public final class JsonByteBufferWriter extends JsonWriter { public final class JsonByteBufferWriter extends JsonWriter {

View File

@@ -14,7 +14,7 @@ import org.redkale.util.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")

View File

@@ -14,7 +14,7 @@ import org.redkale.util.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public final class JsonFactory extends Factory<JsonReader, JsonWriter> { public final class JsonFactory extends Factory<JsonReader, JsonWriter> {

View File

@@ -13,7 +13,7 @@ import org.redkale.util.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public class JsonReader implements Reader { public class JsonReader implements Reader {

View File

@@ -9,7 +9,7 @@ import org.redkale.convert.SimpledCoder;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <T> * @param <T>
*/ */

View File

@@ -14,7 +14,7 @@ import org.redkale.util.*;
* *
* writeTo系列的方法输出的字符不能含特殊字符 * writeTo系列的方法输出的字符不能含特殊字符
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public class JsonWriter implements Writer { public class JsonWriter implements Writer {

View File

@@ -14,7 +14,7 @@ import java.util.concurrent.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public abstract class AsyncConnection implements AsynchronousByteChannel, AutoCloseable { public abstract class AsyncConnection implements AsynchronousByteChannel, AutoCloseable {

View File

@@ -18,7 +18,7 @@ import org.redkale.watch.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public class Context { public class Context {

View File

@@ -12,7 +12,7 @@ import org.redkale.util.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")

View File

@@ -13,7 +13,7 @@ import java.util.logging.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <P> * @param <P>

View File

@@ -14,7 +14,7 @@ import java.util.concurrent.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public abstract class ProtocolServer { public abstract class ProtocolServer {

View File

@@ -12,7 +12,7 @@ import org.redkale.convert.json.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public abstract class Request { public abstract class Request {

View File

@@ -10,7 +10,7 @@ import java.nio.channels.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
*/ */

View File

@@ -19,7 +19,7 @@ import org.redkale.watch.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public abstract class Server { public abstract class Server {

View File

@@ -10,7 +10,7 @@ import java.io.IOException;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* @param <R> * @param <R>
* @param <P> * @param <P>

View File

@@ -18,7 +18,7 @@ import org.redkale.watch.*;
/** /**
* 传输客户端 * 传输客户端
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public final class Transport { public final class Transport {

View File

@@ -9,7 +9,7 @@ import java.util.concurrent.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public class WorkThread extends Thread { public class WorkThread extends Thread {

View File

@@ -22,7 +22,7 @@ import static jdk.internal.org.objectweb.asm.Opcodes.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public abstract class BasedHttpServlet extends HttpServlet { public abstract class BasedHttpServlet extends HttpServlet {
@@ -31,7 +31,7 @@ public abstract class BasedHttpServlet extends HttpServlet {
* 配合 BasedHttpServlet 使用。 * 配合 BasedHttpServlet 使用。
* 当标记为 @AuthIgnore 的方法不会再调用之前调用authenticate 方法。 * 当标记为 @AuthIgnore 的方法不会再调用之前调用authenticate 方法。
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
@Inherited @Inherited
@@ -46,7 +46,7 @@ public abstract class BasedHttpServlet extends HttpServlet {
* 配合 BasedHttpServlet 使用。 * 配合 BasedHttpServlet 使用。
* 用于对@WebServlet对应的url进行细分。 其 url * 用于对@WebServlet对应的url进行细分。 其 url
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
@Target({ElementType.METHOD}) @Target({ElementType.METHOD})
@@ -64,7 +64,7 @@ public abstract class BasedHttpServlet extends HttpServlet {
* 当标记为 @HttpCacheable 的方法使用response.finish的参数将被缓存一定时间(默认值timeout=15秒)。 * 当标记为 @HttpCacheable 的方法使用response.finish的参数将被缓存一定时间(默认值timeout=15秒)。
* 通常情况下 @HttpCacheable 需要与 @AuthIgnore 一起使用,因为没有标记@AuthIgnore的方法一般输出的结果与当前用户信息有关。 * 通常情况下 @HttpCacheable 需要与 @AuthIgnore 一起使用,因为没有标记@AuthIgnore的方法一般输出的结果与当前用户信息有关。
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
@Target({ElementType.METHOD}) @Target({ElementType.METHOD})

View File

@@ -17,7 +17,7 @@ import org.redkale.watch.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public class HttpContext extends Context { public class HttpContext extends Context {

View File

@@ -18,7 +18,7 @@ import org.redkale.watch.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public final class HttpPrepareServlet extends PrepareServlet<HttpRequest, HttpResponse<HttpRequest>> { public final class HttpPrepareServlet extends PrepareServlet<HttpRequest, HttpResponse<HttpRequest>> {

View File

@@ -23,7 +23,7 @@ import org.redkale.net.*;
* 获取页号: int page = request.getRequstURIPath("page:", 1); * 获取页号: int page = request.getRequstURIPath("page:", 1);
* 获取行数: int size = request.getRequstURIPath("size:", 10); * 获取行数: int size = request.getRequstURIPath("size:", 10);
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public class HttpRequest extends Request { public class HttpRequest extends Request {

View File

@@ -21,7 +21,7 @@ import org.redkale.util.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public final class HttpResourceServlet extends HttpServlet { public final class HttpResourceServlet extends HttpServlet {

View File

@@ -24,7 +24,7 @@ import org.redkale.util.*;
* 同时提供发送json的系列接口: public void finishJson(Type type, Object obj) * 同时提供发送json的系列接口: public void finishJson(Type type, Object obj)
* RedKale提倡http+json的接口风格 所以主要输出的数据格式为json 同时提供异步接口。 * RedKale提倡http+json的接口风格 所以主要输出的数据格式为json 同时提供异步接口。
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
* *
* @param <R> * @param <R>

View File

@@ -15,7 +15,7 @@ import org.redkale.watch.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public final class HttpServer extends Server { public final class HttpServer extends Server {

View File

@@ -10,7 +10,7 @@ import org.redkale.util.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public abstract class HttpServlet extends Servlet<HttpRequest, HttpResponse<HttpRequest>> { public abstract class HttpServlet extends Servlet<HttpRequest, HttpResponse<HttpRequest>> {

View File

@@ -9,7 +9,7 @@ import java.util.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public class MimeType { public class MimeType {

View File

@@ -15,7 +15,7 @@ import java.util.regex.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public final class MultiContext { public final class MultiContext {

View File

@@ -10,7 +10,7 @@ import java.util.concurrent.atomic.AtomicLong;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public final class MultiPart { public final class MultiPart {

View File

@@ -10,7 +10,7 @@ import java.lang.annotation.*;
/** /**
* 功能同JSR 315 (java-servlet 3.0) 规范中的 @WebInitParam * 功能同JSR 315 (java-servlet 3.0) 规范中的 @WebInitParam
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
@Target({ElementType.TYPE}) @Target({ElementType.TYPE})

View File

@@ -11,7 +11,7 @@ import java.lang.annotation.*;
* 功能同JSR 315 (java-servlet 3.0) 规范中的 @WebServlet * 功能同JSR 315 (java-servlet 3.0) 规范中的 @WebServlet
* *
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
@Documented @Documented

View File

@@ -13,6 +13,7 @@ import java.util.concurrent.ConcurrentHashMap;
import org.redkale.net.*; import org.redkale.net.*;
/** /**
* <blockquote><pre>
* 一个WebSocket连接对应一个WebSocket实体即一个WebSocket会绑定一个TCP连接。 * 一个WebSocket连接对应一个WebSocket实体即一个WebSocket会绑定一个TCP连接。
* WebSocket 有两种模式: * WebSocket 有两种模式:
* 1) 普通模式: 协议上符合HTML5规范, 其流程顺序如下: * 1) 普通模式: 协议上符合HTML5规范, 其流程顺序如下:
@@ -30,10 +31,11 @@ import org.redkale.net.*;
* 2.3 onRead WebSocket成功连接后回调此方法 由此方法处理原始的TCP连接 同时业务代码去控制WebSocket的关闭。 * 2.3 onRead WebSocket成功连接后回调此方法 由此方法处理原始的TCP连接 同时业务代码去控制WebSocket的关闭。
* *
* 此模式下 以上方法都应该被重载。 * 此模式下 以上方法都应该被重载。
* </pre></blockquote>
* <p> * <p>
* *
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public abstract class WebSocket { public abstract class WebSocket {

View File

@@ -12,7 +12,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
/** /**
* 被标记为 @WebSocketBinary 的WebSocketServlet 将使用原始的TCP传输, 通常用于类似音频/视频传输场景 * 被标记为 @WebSocketBinary 的WebSocketServlet 将使用原始的TCP传输, 通常用于类似音频/视频传输场景
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
@Inherited @Inherited

View File

@@ -15,7 +15,7 @@ import org.redkale.util.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public final class WebSocketEngine { public final class WebSocketEngine {

View File

@@ -12,7 +12,7 @@ import java.util.stream.Stream;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public final class WebSocketGroup { public final class WebSocketGroup {

View File

@@ -18,7 +18,7 @@ import org.redkale.util.*;
/** /**
* *
* @see http://www.redkale.org * <p> 详情见: http://www.redkale.org
* @author zhangjx * @author zhangjx
*/ */
public abstract class WebSocketNode { public abstract class WebSocketNode {

Some files were not shown because too many files have changed in this diff Show More