Package net.officefloor.web.rest.build
Class RestEmployer
java.lang.Object
net.officefloor.web.rest.build.RestEmployer
Employs the REST architecture.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classComposed REST endpoint.protected static classRestArchitectimplementation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static RestEmployer.ComposedEndpointcreateComposedEndpoint(ComposeContext<?> context) static RestArchitectemployRestArchitect(OfficeArchitect officeArchitect, WebArchitect webArchitect, ComposeArchitect composeArchitect, OfficeSourceContext officeSourceContext) Employs theRestArchitect.static booleanisRestAvailable(String resourceDirectory) Determines if REST endpoints are configured.protected static booleanisRestCompositionFile(String itemName)
-
Constructor Details
-
RestEmployer
public RestEmployer()
-
-
Method Details
-
employRestArchitect
public static RestArchitect employRestArchitect(OfficeArchitect officeArchitect, WebArchitect webArchitect, ComposeArchitect composeArchitect, OfficeSourceContext officeSourceContext) Employs theRestArchitect.- Parameters:
officeArchitect-OfficeArchitect.webArchitect-WebArchitect.composeArchitect-ComposeArchitect.officeSourceContext-OfficeSourceContext.- Returns:
RestArchitect.
-
isRestAvailable
Determines if REST endpoints are configured.- Parameters:
resourceDirectory- Directory containing the REST configuration.- Returns:
trueif REST endpoint configuration available.- Throws:
Exception- If fails to check for REST configuration files.
-
isRestCompositionFile
- Parameters:
itemName- Item name.- Returns:
- Whether the item is a REST composition file.
-
createComposedEndpoint
- Parameters:
context-ComposeContext.- Returns:
RestEmployer.ComposedEndpoint.
-