This commit is contained in:
Redkale
2016-09-14 13:11:08 +08:00
parent d3163a6e0d
commit 15d36735da
9 changed files with 16 additions and 19 deletions

View File

@@ -212,7 +212,7 @@ public abstract class ConvertFactory<R extends Reader, W extends Writer> {
/** /**
* 使所有类的所有被声明为ConvertColumn.ignore = true 的字段或方法变为ConvertColumn.ignore = false * 使所有类的所有被声明为ConvertColumn.ignore = true 的字段或方法变为ConvertColumn.ignore = false
* *
* @param skipIgnore * @param skipIgnore 忽略ignore
* *
* @return 自身 * @return 自身
*/ */

View File

@@ -13,7 +13,7 @@ import org.redkale.util.Attribute;
* 详情见: http://redkale.org * 详情见: http://redkale.org
* *
* @author zhangjx * @author zhangjx
* @param <T> * @param <T> 当前用户对象类型
*/ */
public abstract class RestHttpServlet<T> extends HttpBaseServlet { public abstract class RestHttpServlet<T> extends HttpBaseServlet {

View File

@@ -13,7 +13,6 @@ import static java.lang.annotation.RetentionPolicy.*;
* 只能依附在Service实现类的public方法上 * 只能依附在Service实现类的public方法上
* value默认为"/" + Service的类名去掉Service字样的小写字符串 (如HelloService的默认路径为/hello)。 * value默认为"/" + Service的类名去掉Service字样的小写字符串 (如HelloService的默认路径为/hello)。
* <p> * <p>
* <p>
* 详情见: http://redkale.org * 详情见: http://redkale.org
* *
* @author zhangjx * @author zhangjx
@@ -46,6 +45,5 @@ public @interface RestMapping {
String[] methods() default {};//允许方法(不区分大小写),如:GET/POST/PUT,为空表示允许所有方法, 对应&#64;WebAction.methods String[] methods() default {};//允许方法(不区分大小写),如:GET/POST/PUT,为空表示允许所有方法, 对应&#64;WebAction.methods
//String contentType() default ""; //设置Response的ContentType 默认值为 text/plain; charset=utf-8 //String contentType() default ""; //设置Response的ContentType 默认值为 text/plain; charset=utf-8
String jsvar() default ""; //以application/javascript输出对象是指明js的对象名该值存在时则忽略contentType()的值 String jsvar() default ""; //以application/javascript输出对象是指明js的对象名该值存在时则忽略contentType()的值
} }

View File

@@ -15,7 +15,7 @@ import java.util.*;
* 详情见: http://redkale.org * 详情见: http://redkale.org
* *
* @author zhangjx * @author zhangjx
* @param <T> * @param <T> 结果对象的类型
*/ */
public class RestOutput<T> { public class RestOutput<T> {

View File

@@ -10,7 +10,7 @@ import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME; import static java.lang.annotation.RetentionPolicy.RUNTIME;
/** /**
* 只能依附在Service类的方法的参数上, name值不能是'&' * 只能依附在Service类的方法的参数上, name值不能是'&#38;'
* name='#'表示截取uri最后一段 * name='#'表示截取uri最后一段
* name='#xxx:'表示从uri中/pipes/xxx:v/截取xxx:的值 * name='#xxx:'表示从uri中/pipes/xxx:v/截取xxx:的值
* <p> * <p>

View File

@@ -12,7 +12,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
/** /**
* 只能依附在Service类上value默认为Service的类名去掉Service字样的字符串小写 (如HelloService的默认路径为 hello)。 * 只能依附在Service类上value默认为Service的类名去掉Service字样的字符串小写 (如HelloService的默认路径为 hello)。
* <p> * <p>
* <p>
* 详情见: http://redkale.org * 详情见: http://redkale.org
* *
* @author zhangjx * @author zhangjx

View File

@@ -23,7 +23,7 @@ import org.redkale.util.*;
* WebSocketServlet * WebSocketServlet
* | * |
* | * |
* WebSocketEngine & WebSocketNode * WebSocketEngine &#38; WebSocketNode
* / \ * / \
* / \ * / \
* / \ * / \

View File

@@ -13,7 +13,7 @@ import java.io.Serializable;
* 详情见: http://redkale.org * 详情见: http://redkale.org
* *
* @author zhangjx * @author zhangjx
* @param <T> * @param <T> Entity类型
*/ */
public interface DistributeTableStrategy<T> { public interface DistributeTableStrategy<T> {

View File

@@ -94,7 +94,7 @@ public final class ByteArray {
/** /**
* 将buf内容覆盖到本对象内容中 * 将buf内容覆盖到本对象内容中
* *
* @param buf * @param buf 目标容器
*/ */
public void copyTo(byte[] buf) { public void copyTo(byte[] buf) {
System.arraycopy(this.content, 0, buf, 0, count); System.arraycopy(this.content, 0, buf, 0, count);
@@ -103,7 +103,7 @@ public final class ByteArray {
/** /**
* 将array的内容引用复制给本对象 * 将array的内容引用复制给本对象
* *
* @param array * @param array ByteArray
*/ */
public void directFrom(ByteArray array) { public void directFrom(ByteArray array) {
if (array != null) { if (array != null) {
@@ -115,7 +115,7 @@ public final class ByteArray {
/** /**
* 将本对象的内容引用复制给array * 将本对象的内容引用复制给array
* *
* @param array * @param array ByteArray
*/ */
public void directTo(ByteArray array) { public void directTo(ByteArray array) {
if (array != null) { if (array != null) {
@@ -270,8 +270,8 @@ public final class ByteArray {
/** /**
* 写入ByteBuffer指定长度的数据 * 写入ByteBuffer指定长度的数据
* *
* @param buffer * @param buffer 数据
* @param len * @param len 指定长度
*/ */
public void write(ByteBuffer buffer, int len) { public void write(ByteBuffer buffer, int len) {
if (len < 1) return; if (len < 1) return;
@@ -294,7 +294,7 @@ public final class ByteArray {
* *
* @param charset 字符集 * @param charset 字符集
* *
* @return * @return 字符串
*/ */
public String toString(final Charset charset) { public String toString(final Charset charset) {
return toString(0, count, charset); return toString(0, count, charset);
@@ -305,7 +305,7 @@ public final class ByteArray {
* *
* @param charset 字符集 * @param charset 字符集
* *
* @return * @return 字符串
*/ */
public String toStringAndClear(final Charset charset) { public String toStringAndClear(final Charset charset) {
String str = toString(0, count, charset); String str = toString(0, count, charset);
@@ -320,7 +320,7 @@ public final class ByteArray {
* @param len 长度 * @param len 长度
* @param charset 字符集 * @param charset 字符集
* *
* @return * @return 字符串
*/ */
public String toString(final int offset, int len, final Charset charset) { public String toString(final int offset, int len, final Charset charset) {
if (charset == null) return new String(Utility.decodeUTF8(content, offset, len)); if (charset == null) return new String(Utility.decodeUTF8(content, offset, len));
@@ -334,7 +334,7 @@ public final class ByteArray {
* @param len 长度 * @param len 长度
* @param charset 字符集 * @param charset 字符集
* *
* @return * @return 字符串
*/ */
public String toDecodeString(final int offset, int len, final Charset charset) { public String toDecodeString(final int offset, int len, final Charset charset) {
int index = offset; int index = offset;