Skip navigation links
A B C D E F G H I J K M N P R S T U V X 

A

accept(String) - Method in class me.hao0.common.http.Http
 
acceptCharset(String) - Method in class me.hao0.common.http.Https
设置Accept-Charset
acceptType(String) - Method in class me.hao0.common.http.Https
设置Accept
addDays(Date, int) - Static method in class me.hao0.common.date.Dates
增加天数
addHours(Date, int) - Static method in class me.hao0.common.date.Dates
增加小时
addMinutes(Date, int) - Static method in class me.hao0.common.date.Dates
增加分钟
addMonths(Date, int) - Static method in class me.hao0.common.date.Dates
增加月份
addWeeks(Date, int) - Static method in class me.hao0.common.date.Dates
增加周
addYears(Date, int) - Static method in class me.hao0.common.date.Dates
增加年

B

base64Decode(String) - Static method in class me.hao0.common.security.RSA
decode with Base64
base64Encode(byte[]) - Static method in class me.hao0.common.security.RSA
encode with Base64
body(String) - Method in class me.hao0.common.http.Http
请求body
body(String) - Method in class me.hao0.common.http.Https
设置request body
bodyCharset(String) - Method in class me.hao0.common.http.Https
设置request body字符编码
build() - Method in class me.hao0.common.xml.XmlWriters
 

C

charset(String) - Method in class me.hao0.common.http.Http
 
checkArgument(boolean) - Static method in class me.hao0.common.util.Preconditions
Ensures the truth of an expression involving one or more parameters to the calling method.
checkArgument(boolean, Object) - Static method in class me.hao0.common.util.Preconditions
Ensures the truth of an expression involving one or more parameters to the calling method.
checkArgument(boolean, String, Object...) - Static method in class me.hao0.common.util.Preconditions
Ensures the truth of an expression involving one or more parameters to the calling method.
checkElementIndex(int, int) - Static method in class me.hao0.common.util.Preconditions
Ensures that index specifies a valid element in an array, list or string of size size.
checkElementIndex(int, int, String) - Static method in class me.hao0.common.util.Preconditions
Ensures that index specifies a valid element in an array, list or string of size size.
checkNegative(Number, String) - Static method in class me.hao0.common.util.Preconditions
 
checkNotNull(T) - Static method in class me.hao0.common.util.Preconditions
Ensures that an object reference passed as a parameter to the calling method is not null.
checkNotNull(T, Object) - Static method in class me.hao0.common.util.Preconditions
Ensures that an object reference passed as a parameter to the calling method is not null.
checkNotNull(T, String, Object...) - Static method in class me.hao0.common.util.Preconditions
Ensures that an object reference passed as a parameter to the calling method is not null.
checkNotNullAndEmpty(String, String) - Static method in class me.hao0.common.util.Preconditions
 
checkNotNullAndEmpty(Collection<?>, String) - Static method in class me.hao0.common.util.Preconditions
 
checkPositionIndex(int, int) - Static method in class me.hao0.common.util.Preconditions
Ensures that index specifies a valid position in an array, list or string of size size.
checkPositionIndex(int, int, String) - Static method in class me.hao0.common.util.Preconditions
Ensures that index specifies a valid position in an array, list or string of size size.
checkPositionIndexes(int, int, int) - Static method in class me.hao0.common.util.Preconditions
Ensures that start and end specify a valid positions in an array, list or string of size size, and are in order.
checkPositive(Number, String) - Static method in class me.hao0.common.util.Preconditions
 
checkState(boolean) - Static method in class me.hao0.common.util.Preconditions
Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method.
checkState(boolean, Object) - Static method in class me.hao0.common.util.Preconditions
Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method.
checkState(boolean, String, Object...) - Static method in class me.hao0.common.util.Preconditions
Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method.
connectTimeout(int) - Method in class me.hao0.common.http.Https
设置连接超时,默认5s
connectType(String) - Method in class me.hao0.common.http.Https
设置Connection
connTimeout(Integer) - Method in class me.hao0.common.http.Http
set connect timeout
contentType(String) - Method in class me.hao0.common.http.Http
 
contentType(String) - Method in class me.hao0.common.http.Https
设置Content-Type
create(String) - Static method in class me.hao0.common.xml.XmlReaders
 
create(String, String) - Static method in class me.hao0.common.xml.XmlReaders
 
create(InputStream) - Static method in class me.hao0.common.xml.XmlReaders
 
create() - Static method in class me.hao0.common.xml.XmlWriters
 
createCollectionType(Class<?>, Class<?>...) - Method in class me.hao0.common.json.Jsons
construct collection type

D

Dates - Class in me.hao0.common.date
Author: haolin Email: haolin.h0@gmail.com Date: 17/10/15
Dates() - Constructor for class me.hao0.common.date.Dates
 
dayOfMonth(Integer) - Static method in class me.hao0.common.date.Dates
获取本月第几天日期对象
dayOfWeek(Integer) - Static method in class me.hao0.common.date.Dates
获取本周周几的日期对象
dayOfYear(Integer) - Static method in class me.hao0.common.date.Dates
获取本年第几天日期对象
decryptByPrivateKey(byte[], String) - Static method in class me.hao0.common.security.RSA
decrypt data with private key
decryptByPublicKey(byte[], String) - Static method in class me.hao0.common.security.RSA
decrypt data with public key
DEFAULT - Static variable in class me.hao0.common.json.Jsons
默认不排除任何属性
delete(String) - Static method in class me.hao0.common.http.Http
 
download(String, File) - Static method in class me.hao0.common.http.Http
download a file
download(String, OutputStream) - Static method in class me.hao0.common.http.Http
download a file

E

E(String, Object) - Constructor for class me.hao0.common.xml.XmlWriters.E
 
element(String, String) - Method in class me.hao0.common.xml.XmlWriters
 
element(String, Number) - Method in class me.hao0.common.xml.XmlWriters
 
element(String, String, String) - Method in class me.hao0.common.xml.XmlWriters
 
element(String, String, Number) - Method in class me.hao0.common.xml.XmlWriters
 
element(String, Object...) - Method in class me.hao0.common.xml.XmlWriters
构建包含多个子元素的元素
element(String, XmlWriters.E) - Method in class me.hao0.common.xml.XmlWriters
 
element(String, List<XmlWriters.E>) - Method in class me.hao0.common.xml.XmlWriters
 
empty() - Static method in class me.hao0.common.model.Page
 
encode(Boolean) - Method in class me.hao0.common.http.Http
 
encryptByPrivateKey(byte[], String) - Static method in class me.hao0.common.security.RSA
encrypt data with private key
encryptByPublicKey(byte[], String) - Static method in class me.hao0.common.security.RSA
encrypt data with public key
endDateOfMonth(Date) - Static method in class me.hao0.common.date.Dates
获得当前月的最后一天
endDateOfWeek(Date) - Static method in class me.hao0.common.date.Dates
获得当前周最后一天 周日
endOfDay(Date) - Static method in class me.hao0.common.date.Dates
获取指定日期当天的结束时间
EXCLUDE_DEFAULT - Static variable in class me.hao0.common.json.Jsons
忽略对象中值为默认值的属性
EXCLUDE_EMPTY - Static variable in class me.hao0.common.json.Jsons
忽略对象中值为NULL或""的属性

F

Fields - Class in me.hao0.common.util
高效的反射工具类
Fields() - Constructor for class me.hao0.common.util.Fields
 
format(Date, String) - Static method in class me.hao0.common.date.Dates
格式化日期对象
format(Date) - Static method in class me.hao0.common.date.Dates
格式化日期对象,格式为yyyy-MM-dd HH:mm:ss
format(Long) - Static method in class me.hao0.common.date.Dates
格式化日期对象,格式为yyyy-MM-dd HH:mm:ss
format(Long, String) - Static method in class me.hao0.common.date.Dates
格式化日期对象
fromJson(String, Class<T>) - Method in class me.hao0.common.json.Jsons
deserialize a json to target class object
fromJson(String, JavaType) - Method in class me.hao0.common.json.Jsons
反序列化

G

generate(String, boolean) - Static method in class me.hao0.common.security.MD5
 
get(String) - Static method in class me.hao0.common.http.Http
 
get(String) - Static method in class me.hao0.common.http.Https
 
get(String, Boolean) - Static method in class me.hao0.common.http.Https
 
get(Object, String) - Static method in class me.hao0.common.util.Fields
get field of target object
get(Object, Field) - Static method in class me.hao0.common.util.Fields
get field of target object
getData() - Method in class me.hao0.common.model.Page
 
getHostName() - Static method in class me.hao0.common.util.Networks
获取主机名
getNode(String) - Method in class me.hao0.common.xml.XmlReaders
 
getNodeFloat(String) - Method in class me.hao0.common.xml.XmlReaders
获取某个节点的Float,若有多个该节点,只会返回第一个
getNodeInt(String) - Method in class me.hao0.common.xml.XmlReaders
获取某个节点的Integer,若有多个该节点,只会返回第一个
getNodeLong(String) - Method in class me.hao0.common.xml.XmlReaders
获取某个节点的Long值,若有多个该节点,只会返回第一个
getNodes(String) - Method in class me.hao0.common.xml.XmlReaders
 
getNodeStr(String) - Method in class me.hao0.common.xml.XmlReaders
获取某个节点的文本内容,若有多个该节点,只会返回第一个
getPrivateKey(Map<String, Object>) - Static method in class me.hao0.common.security.RSA
get encoded private key
getPublicKey(Map<String, Object>) - Static method in class me.hao0.common.security.RSA
get encoded public key
getSiteIp() - Static method in class me.hao0.common.util.Networks
获取内网IP
getTotal() - Method in class me.hao0.common.model.Page
 

H

header(String, String) - Method in class me.hao0.common.http.Https
设置请求header
headers(Map<String, String>) - Method in class me.hao0.common.http.Http
 
Http - Class in me.hao0.common.http
HttpRequest Wrapper Author: haolin Email: haolin.h0@gmail.com Date: 14/10/15
HttpException - Exception in me.hao0.common.exception
Author: haolin Email: haolin.h0@gmail.com Date: 10/11/15
HttpException() - Constructor for exception me.hao0.common.exception.HttpException
 
HttpException(String) - Constructor for exception me.hao0.common.exception.HttpException
 
HttpException(String, Throwable) - Constructor for exception me.hao0.common.exception.HttpException
 
HttpException(Throwable) - Constructor for exception me.hao0.common.exception.HttpException
 
HttpException(String, Throwable, boolean, boolean) - Constructor for exception me.hao0.common.exception.HttpException
 
HttpMethod - Enum in me.hao0.common.http
 
Https - Class in me.hao0.common.http
简单的Https请求工具 Author: haolin Email: haolin.h0@gmail.com Date: 1/12/15
HttpsException - Exception in me.hao0.common.exception
Author: haolin Email: haolin.h0@gmail.com Date: 10/11/15
HttpsException() - Constructor for exception me.hao0.common.exception.HttpsException
 
HttpsException(String) - Constructor for exception me.hao0.common.exception.HttpsException
 
HttpsException(String, Throwable) - Constructor for exception me.hao0.common.exception.HttpsException
 
HttpsException(Throwable) - Constructor for exception me.hao0.common.exception.HttpsException
 
HttpsException(String, Throwable, boolean, boolean) - Constructor for exception me.hao0.common.exception.HttpsException
 

I

initKey() - Static method in class me.hao0.common.security.RSA
init a public/private key pair
ip2Num(String) - Static method in class me.hao0.common.util.Networks
把IP按点号分4段,每段一整型就一个字节来表示,通过左移位来实现。 第一段放到最高的8位,需要左移24位,依此类推即可
isAfter(Date, Date) - Static method in class me.hao0.common.date.Dates
日期a是否大于日期b
isAfterNow(Date) - Static method in class me.hao0.common.date.Dates
日期a是否大于当前日期
isBefore(Date, Date) - Static method in class me.hao0.common.date.Dates
日期a是否小于日期b
isBefore(Date) - Static method in class me.hao0.common.date.Dates
日期a是否大于当前日期
isNullOrEmpty(String) - Static method in class me.hao0.common.util.Strings
判断字符串是否为null或""
isValidDate(String) - Static method in class me.hao0.common.date.Dates
简单的日期格式校验(yyyy-MM-dd)
isValidDate(String, String) - Static method in class me.hao0.common.date.Dates
简单的日期格式校验(yyyy-MM-dd)

J

JsonException - Exception in me.hao0.common.exception
Author: haolin Email: haolin.h0@gmail.com Date: 10/11/15
JsonException() - Constructor for exception me.hao0.common.exception.JsonException
 
JsonException(String) - Constructor for exception me.hao0.common.exception.JsonException
 
JsonException(String, Throwable) - Constructor for exception me.hao0.common.exception.JsonException
 
JsonException(Throwable) - Constructor for exception me.hao0.common.exception.JsonException
 
JsonException(String, Throwable, boolean, boolean) - Constructor for exception me.hao0.common.exception.JsonException
 
Jsons - Class in me.hao0.common.json
Json Util based on Jackson Author: haolin On: 11/8/14

K

KEY_ALGORITHM - Static variable in class me.hao0.common.security.RSA
encrypt algorithm

M

MD5 - Class in me.hao0.common.security
 
MD5() - Constructor for class me.hao0.common.security.MD5
 
me.hao0.common.date - package me.hao0.common.date
 
me.hao0.common.exception - package me.hao0.common.exception
 
me.hao0.common.http - package me.hao0.common.http
 
me.hao0.common.json - package me.hao0.common.json
 
me.hao0.common.model - package me.hao0.common.model
 
me.hao0.common.security - package me.hao0.common.security
 
me.hao0.common.util - package me.hao0.common.util
 
me.hao0.common.xml - package me.hao0.common.xml
 

N

Networks - Class in me.hao0.common.util
Author: haolin Email: haolin.h0@gmail.com Date: 29/9/15
Networks() - Constructor for class me.hao0.common.util.Networks
 
newElement(String, Object...) - Method in class me.hao0.common.xml.XmlWriters
构建包含多个子元素的元素
now() - Static method in class me.hao0.common.date.Dates
获取当前日期对象
now(String) - Static method in class me.hao0.common.date.Dates
获取当前日期字符串
num2Ip(int) - Static method in class me.hao0.common.util.Networks
把整数分为4个字节,通过右移位得到IP地址中4个点分段的值
NumberE(String, Serializable) - Constructor for class me.hao0.common.xml.XmlWriters.NumberE
 

P

Page<T> - Class in me.hao0.common.model
分页对象
Page(Long, List<T>) - Constructor for class me.hao0.common.model.Page
 
params(Map<String, ?>) - Method in class me.hao0.common.http.Http
 
post(String) - Static method in class me.hao0.common.http.Http
 
post(String) - Static method in class me.hao0.common.http.Https
 
post(String, Boolean) - Static method in class me.hao0.common.http.Https
 
Preconditions - Class in me.hao0.common.util
 
put(String) - Static method in class me.hao0.common.http.Http
 
put(Object, String, Object) - Static method in class me.hao0.common.util.Fields
put field to target object
put(Object, Field, Object) - Static method in class me.hao0.common.util.Fields
put field to target object

R

readTimeout(Integer) - Method in class me.hao0.common.http.Http
set read timeout
readTimeout(int) - Method in class me.hao0.common.http.Https
设置读取超时,默认5s
render() - Method in class me.hao0.common.xml.XmlWriters.E
 
render() - Method in class me.hao0.common.xml.XmlWriters.NumberE
 
render() - Method in class me.hao0.common.xml.XmlWriters.TextE
 
request() - Method in class me.hao0.common.http.Http
 
request(JavaType) - Method in class me.hao0.common.http.Http
 
request() - Method in class me.hao0.common.http.Https
获取请求响应内容
RSA - Class in me.hao0.common.security
RSA Util Author: haolin On: 12/1/14
RSA() - Constructor for class me.hao0.common.security.RSA
 

S

SecurityException - Exception in me.hao0.common.exception
Author: haolin Email: haolin.h0@gmail.com Date: 10/11/15
SecurityException() - Constructor for exception me.hao0.common.exception.SecurityException
 
SecurityException(String) - Constructor for exception me.hao0.common.exception.SecurityException
 
SecurityException(String, Throwable) - Constructor for exception me.hao0.common.exception.SecurityException
 
SecurityException(Throwable) - Constructor for exception me.hao0.common.exception.SecurityException
 
SecurityException(String, Throwable, boolean, boolean) - Constructor for exception me.hao0.common.exception.SecurityException
 
setData(List<T>) - Method in class me.hao0.common.model.Page
 
setTotal(Long) - Method in class me.hao0.common.model.Page
 
sign(String, String, String) - Static method in class me.hao0.common.security.RSA
generate signed data with private key
sign(byte[], String) - Static method in class me.hao0.common.security.RSA
generate signed data with private key
SIGNATURE_ALGORITHM - Static variable in class me.hao0.common.security.RSA
signature algorithm
ssl() - Method in class me.hao0.common.http.Http
 
ssLSocketFactory(SSLSocketFactory) - Method in class me.hao0.common.http.Https
设置SSLSocketFactory
startDateOfMonth(Date) - Static method in class me.hao0.common.date.Dates
获得当前月的第一天
startDateOfWeek(Date) - Static method in class me.hao0.common.date.Dates
获得当前周第一天,周一
startOfDay(Date) - Static method in class me.hao0.common.date.Dates
获取指定日期当天的开始时间
Strings - Class in me.hao0.common.util
Author: haolin Email: haolin.h0@gmail.com Date: 20/11/15
Strings() - Constructor for class me.hao0.common.util.Strings
 

T

TextE(String, Serializable) - Constructor for class me.hao0.common.xml.XmlWriters.TextE
 
timeInterval(Date, Date) - Static method in class me.hao0.common.date.Dates
计算两个日期的时间差(单位:秒)
toDate(String) - Static method in class me.hao0.common.date.Dates
转换日期字符串为日期对象(默认格式: yyyy-MM-dd HH:mm:ss)
toDate(String, String) - Static method in class me.hao0.common.date.Dates
转换日期即字符串为Date对象
toDate(long) - Static method in class me.hao0.common.date.Dates
生成时间
toJson(Object) - Method in class me.hao0.common.json.Jsons
convert an object(POJO, Collection, ...) to json string
toString() - Method in class me.hao0.common.model.Page
 

U

upload(String, String, String, byte[], Map<String, String>) - Static method in class me.hao0.common.http.Http
upload file
upload(String, String, String, InputStream, Map<String, String>) - Static method in class me.hao0.common.http.Http
upload file
useCache(boolean) - Method in class me.hao0.common.http.Https
设置UseCaches

V

valueOf(String) - Static method in enum me.hao0.common.http.HttpMethod
Returns the enum constant of this type with the specified name.
values() - Static method in enum me.hao0.common.http.HttpMethod
Returns an array containing the constants of this enum type, in the order they are declared.
verify(String, String, String, String) - Static method in class me.hao0.common.security.RSA
verify signed data with public key
verify(byte[], String, String) - Static method in class me.hao0.common.security.RSA
verify signed data with public key

X

XmlException - Exception in me.hao0.common.exception
Author: haolin Email: haolin.h0@gmail.com Date: 11/11/15
XmlException() - Constructor for exception me.hao0.common.exception.XmlException
 
XmlException(String) - Constructor for exception me.hao0.common.exception.XmlException
 
XmlException(String, Throwable) - Constructor for exception me.hao0.common.exception.XmlException
 
XmlException(Throwable) - Constructor for exception me.hao0.common.exception.XmlException
 
XmlException(String, Throwable, boolean, boolean) - Constructor for exception me.hao0.common.exception.XmlException
 
XmlReaders - Class in me.hao0.common.xml
简陋的XML读取器 Author: haolin Email: haolin.h0@gmail.com Date: 9/11/15
XmlWriters - Class in me.hao0.common.xml
简陋的XML构建器 Author: haolin Email: haolin.h0@gmail.com Date: 6/11/15
XmlWriters.E - Class in me.hao0.common.xml
 
XmlWriters.NumberE - Class in me.hao0.common.xml
 
XmlWriters.TextE - Class in me.hao0.common.xml
 
A B C D E F G H I J K M N P R S T U V X 
Skip navigation links

Copyright © 2018. All rights reserved.