Constructor and Description |
---|
HttpUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
detectHttpMethod(Method m,
boolean detectMethod,
String def)
Given a method name, infers the REST method name.
|
static String |
detectHttpPath(Method m,
boolean detectMethod)
Given a Java method, infers the REST path.
|
static String |
getMethodArgsSignature(Method m,
boolean full)
Given a Java method, returns the arguments signature.
|
public HttpUtils()
public static String detectHttpMethod(Method m, boolean detectMethod, String def)
m
- The Java method.detectMethod
- Whether we should auto-detect the HTTP method name from the Java method name.def
- The default HTTP method if not detected.public static String detectHttpPath(Method m, boolean detectMethod)
m
- The Java method.detectMethod
- Whether we should auto-detect the HTTP method name from the Java method name.public static String getMethodArgsSignature(Method m, boolean full)
m
- The Java method.full
- Whether fully-qualified names should be used for arguments.Copyright © 2018 Apache. All rights reserved.