public class RouteDefinition extends Object
| 构造器和说明 |
|---|
RouteDefinition(String servicePath,
String[] produces,
String[] consumes,
Method method) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<Argument> |
getArguments() |
String[] |
getConsumes() |
String |
getHttpMethod() |
Method |
getMethod() |
String |
getMethodPath() |
String[] |
getProduces() |
Class<?> |
getReturnType() |
String |
getRoutePath() |
String |
getServicePath() |
boolean |
hasBody() |
boolean |
hasCookies() |
boolean |
pathIsRegex() |
void |
setArguments(List<Argument> arguments) |
void |
setConsumes(String[] consumes) |
void |
setHttpMethod(String httpMethod) |
void |
setMethod(Method method) |
void |
setMethodPath(String methodPath) |
void |
setProduces(String[] produces) |
void |
setReturnType(Class<?> returnType) |
void |
setServicePath(String servicePath) |
String |
toString() |
public String getServicePath()
public void setServicePath(String servicePath)
public String getMethodPath()
public void setMethodPath(String methodPath)
public void setConsumes(String[] consumes)
public void setProduces(String[] produces)
public void setHttpMethod(String httpMethod)
public void setMethod(Method method)
public void setReturnType(Class<?> returnType)
public String getRoutePath()
public String[] getConsumes()
public String[] getProduces()
public String getHttpMethod()
public Method getMethod()
public Class<?> getReturnType()
public boolean pathIsRegex()
public boolean hasBody()
public boolean hasCookies()
Copyright © 2016~2019–2019 dinstone. All rights reserved.