Package net.officefloor.web.rest.build
Class RestEndpointImpl
java.lang.Object
net.officefloor.web.rest.build.RestEndpointImpl
- All Implemented Interfaces:
RestEndpoint
RestEndpoint implementation.-
Constructor Summary
ConstructorsConstructorDescriptionRestEndpointImpl(String path, List<RestMethod> restMethods) Instantiate theRestEndpoint. -
Method Summary
Modifier and TypeMethodDescriptiongetPath()Obtains the path for theRestEndpoint.Obtains theRestMethodinstances supported by thisRestEndpoint.
-
Constructor Details
-
RestEndpointImpl
Instantiate theRestEndpoint.- Parameters:
path- Path for theRestEndpoint.restMethods-RestMethodinstances for thisRestEndpoint.
-
-
Method Details
-
getPath
Description copied from interface:RestEndpointObtains the path for theRestEndpoint.- Specified by:
getPathin interfaceRestEndpoint- Returns:
- Path for the
RestEndpoint.
-
getRestMethods
Description copied from interface:RestEndpointObtains theRestMethodinstances supported by thisRestEndpoint.- Specified by:
getRestMethodsin interfaceRestEndpoint- Returns:
RestMethodinstances supported by thisRestEndpoint.
-