This commit is contained in:
@@ -691,6 +691,19 @@ public class HttpRequest extends Request<HttpContext> {
|
||||
return header.getShortValue(name, defaultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定的header的short值, 没有返回默认short值
|
||||
*
|
||||
* @param radix 进制数
|
||||
* @param name header名
|
||||
* @param defaultValue 默认short值
|
||||
*
|
||||
* @return header值
|
||||
*/
|
||||
public short getShortHeader(int radix, String name, short defaultValue) {
|
||||
return header.getShortValue(name, defaultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定的header的short值, 没有返回默认short值
|
||||
*
|
||||
@@ -703,6 +716,19 @@ public class HttpRequest extends Request<HttpContext> {
|
||||
return header.getShortValue(name, (short) defaultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定的header的short值, 没有返回默认short值
|
||||
*
|
||||
* @param radix 进制数
|
||||
* @param name header名
|
||||
* @param defaultValue 默认short值
|
||||
*
|
||||
* @return header值
|
||||
*/
|
||||
public short getShortHeader(int radix, String name, int defaultValue) {
|
||||
return header.getShortValue(radix, name, (short) defaultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定的header的int值, 没有返回默认int值
|
||||
*
|
||||
@@ -715,6 +741,19 @@ public class HttpRequest extends Request<HttpContext> {
|
||||
return header.getIntValue(name, defaultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定的header的int值, 没有返回默认int值
|
||||
*
|
||||
* @param radix 进制数
|
||||
* @param name header名
|
||||
* @param defaultValue 默认int值
|
||||
*
|
||||
* @return header值
|
||||
*/
|
||||
public int getIntHeader(int radix, String name, int defaultValue) {
|
||||
return header.getIntValue(radix, name, defaultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定的header的long值, 没有返回默认long值
|
||||
*
|
||||
@@ -727,6 +766,19 @@ public class HttpRequest extends Request<HttpContext> {
|
||||
return header.getLongValue(name, defaultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定的header的long值, 没有返回默认long值
|
||||
*
|
||||
* @param radix 进制数
|
||||
* @param name header名
|
||||
* @param defaultValue 默认long值
|
||||
*
|
||||
* @return header值
|
||||
*/
|
||||
public long getLongHeader(int radix, String name, long defaultValue) {
|
||||
return header.getLongValue(radix, name, defaultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定的header的float值, 没有返回默认float值
|
||||
*
|
||||
@@ -842,6 +894,20 @@ public class HttpRequest extends Request<HttpContext> {
|
||||
return params.getShortValue(name, defaultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定的参数short值, 没有返回默认short值
|
||||
*
|
||||
* @param radix 进制数
|
||||
* @param name 参数名
|
||||
* @param defaultValue 默认short值
|
||||
*
|
||||
* @return 参数值
|
||||
*/
|
||||
public short getShortParameter(int radix, String name, short defaultValue) {
|
||||
parseBody();
|
||||
return params.getShortValue(radix, name, defaultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定的参数short值, 没有返回默认short值
|
||||
*
|
||||
@@ -855,6 +921,20 @@ public class HttpRequest extends Request<HttpContext> {
|
||||
return params.getShortValue(name, (short) defaultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定的参数int值, 没有返回默认int值
|
||||
*
|
||||
* @param radix 进制数
|
||||
* @param name 参数名
|
||||
* @param defaultValue 默认int值
|
||||
*
|
||||
* @return 参数值
|
||||
*/
|
||||
public int getIntParameter(int radix, String name, int defaultValue) {
|
||||
parseBody();
|
||||
return params.getIntValue(radix, name, defaultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定的参数int值, 没有返回默认int值
|
||||
*
|
||||
@@ -881,6 +961,20 @@ public class HttpRequest extends Request<HttpContext> {
|
||||
return params.getLongValue(name, defaultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定的参数long值, 没有返回默认long值
|
||||
*
|
||||
* @param radix 进制数
|
||||
* @param name 参数名
|
||||
* @param defaultValue 默认long值
|
||||
*
|
||||
* @return 参数值
|
||||
*/
|
||||
public long getLongParameter(int radix, String name, long defaultValue) {
|
||||
parseBody();
|
||||
return params.getLongValue(radix, name, defaultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定的参数float值, 没有返回默认float值
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user