Class RestEndpointModel
- java.lang.Object
-
- fish.payara.appserver.rest.endpoints.RestEndpointModel
-
public class RestEndpointModel extends Object
A model representing the endpoint specified by a method contains apath
and arequest method
- Author:
- Matt Gill
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RestEndpointModel
generateFromMethod(Method method)
Gets the endpoint of a given method, relative to the jersey application root.String
getPath()
String
getRequestMethod()
-
-
-
Method Detail
-
generateFromMethod
public static RestEndpointModel generateFromMethod(Method method)
Gets the endpoint of a given method, relative to the jersey application root. Will return an endpoint path with a leading slash but no trailing slashes (e.g. /test/path/{name})- Parameters:
method
- the method to parse- Returns:
- a
RestEndpointModel
specific to the method
-
getPath
public String getPath()
- Returns:
- the path of the endpoint.
-
getRequestMethod
public String getRequestMethod()
- Returns:
- the
HttpMethod
of the endpoint.
-
-