This commit is contained in:
wentch
2015-12-15 15:47:30 +08:00
parent d2f7f63d67
commit 0e3d6042af
172 changed files with 180 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -29,6 +29,7 @@ import org.redkale.util.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
public abstract class NodeServer {

View File

@@ -13,6 +13,7 @@ import org.redkale.util.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
@NodeProtocol({"SNCP"})

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -13,6 +13,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
* 用于类名的别名, 类似javax.persistence.Table
* 该值必须是全局唯一
*
* @see http://www.redkale.org
* @author zhangjx
*/
@Inherited

View File

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

View File

@@ -7,6 +7,7 @@ package org.redkale.convert;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
public enum ConvertType {

View File

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

View File

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

View File

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

View File

@@ -9,6 +9,7 @@ import java.lang.reflect.Type;
/**
*
* @see http://www.redkale.org
* @author zhangjx
* @param <W>
* @param <T>

View File

@@ -20,6 +20,7 @@ import org.redkale.util.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
* @param <R>
* @param <W>

View File

@@ -9,6 +9,7 @@ import java.lang.reflect.*;
/**
* 只增不减的伪Map类
*
* @see http://www.redkale.org
* @author zhangjx
* @param <K>
* @param <V>

View File

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

View File

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

View File

@@ -15,6 +15,7 @@ import java.util.concurrent.atomic.AtomicInteger;
/**
*
* @see http://www.redkale.org
* @author zhangjx
* @param <R>
* @param <T>

View File

@@ -11,6 +11,7 @@ import java.util.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
* @param <W>
* @param <T>

View File

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

View File

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

View File

@@ -9,6 +9,7 @@ import org.redkale.util.Attribute;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
public interface Writer {

View File

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

View File

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

View File

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

View File

@@ -14,6 +14,7 @@ import org.redkale.util.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
public final class BsonReader implements Reader {

View File

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

View File

@@ -12,6 +12,7 @@ import org.redkale.util.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
public class BsonWriter implements Writer {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -9,6 +9,7 @@ import org.redkale.util.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
public class DLongJsonSimpledCoder extends JsonSimpledCoder<DLong> {

View File

@@ -11,6 +11,7 @@ import org.redkale.convert.ext.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
* @param <R>
* @param <W>

View File

@@ -13,6 +13,7 @@ import org.redkale.util.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
public final class JsonByteBufferWriter extends JsonWriter {

View File

@@ -14,6 +14,7 @@ import org.redkale.util.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
@SuppressWarnings("unchecked")

View File

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

View File

@@ -13,6 +13,7 @@ import org.redkale.util.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
public final class JsonReader implements Reader {

View File

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

View File

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

View File

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

View File

@@ -18,6 +18,7 @@ import org.redkale.watch.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
public class Context {

View File

@@ -12,6 +12,7 @@ import org.redkale.util.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
@SuppressWarnings("unchecked")

View File

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

View File

@@ -14,6 +14,7 @@ import java.util.concurrent.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
public abstract class ProtocolServer {

View File

@@ -12,6 +12,7 @@ import org.redkale.convert.json.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
public abstract class Request {

View File

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

View File

@@ -19,6 +19,7 @@ import org.redkale.watch.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
public abstract class Server {

View File

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

View File

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

View File

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

View File

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

View File

@@ -17,6 +17,7 @@ import org.redkale.watch.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
public final class HttpContext extends Context {

View File

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

View File

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

View File

@@ -21,6 +21,7 @@ import org.redkale.util.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
public final class HttpResourceServlet extends HttpServlet {

View File

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

View File

@@ -15,6 +15,7 @@ import org.redkale.watch.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
public final class HttpServer extends Server {

View File

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

View File

@@ -9,6 +9,7 @@ import java.util.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
public class MimeType {

View File

@@ -15,6 +15,7 @@ import java.util.regex.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
public final class MultiContext {

View File

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

View File

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

View File

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

View File

@@ -31,6 +31,7 @@ import org.redkale.net.*;
* 此模式下 以上方法都应该被重载。
* <p>
*
* @see http://www.redkale.org
* @author zhangjx
*/
public abstract class WebSocket {

View File

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

View File

@@ -16,6 +16,7 @@ import org.redkale.util.*;
/**
*
* @see http://www.redkale.org
* @author zhangjx
*/
public final class WebSocketEngine {

View File

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

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