| Package | Description |
|---|---|
| org.coodex.concrete.jaxrs | |
| org.coodex.concrete.jaxrs.struct |
| Modifier and Type | Method and Description |
|---|---|
static Unit |
JaxRSHelper.getUnitFromContext(DefinitionContext context) |
| Modifier and Type | Method and Description |
|---|---|
static String |
Predicates.getHttpMethod(Unit unit)
默认的谓词:
update(更新)/set(更新部分)开头,使用PUT
new(获取初始值)/get(根据id获取)/find(查询)开头,使用GET
del,使用DELETE
save, POST
其它:
无参数时用GET
其余POST
可通过jaxrs.predicates.properties重载
|
static Param |
JaxRSHelper.getSubmitBody(Unit unit) |
| Modifier and Type | Method and Description |
|---|---|
protected Unit |
Module.buildUnit(Method method) |
protected Unit[] |
Module.toArrays(List<Unit> units) |
| Modifier and Type | Method and Description |
|---|---|
protected Unit[] |
Module.toArrays(List<Unit> units) |
Copyright © 2018. All rights reserved.