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 apathand arequest method- Author:
- Matt Gill
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RestEndpointModelgenerateFromMethod(Method method)Gets the endpoint of a given method, relative to the jersey application root.StringgetPath()StringgetRequestMethod()
-
-
-
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
RestEndpointModelspecific to the method
-
getPath
public String getPath()
- Returns:
- the path of the endpoint.
-
getRequestMethod
public String getRequestMethod()
- Returns:
- the
HttpMethodof the endpoint.
-
-