Class HttpResourceArchitectEmployer
java.lang.Object
net.officefloor.web.resource.build.HttpResourceArchitectEmployer
- All Implemented Interfaces:
HttpResourceArchitect
Employs a
HttpResourceArchitect.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionaddHttpResources(String protocolLocation) AddsHttpResourceinstances via aResourceSystemFactory.addHttpResources(ResourceSystemFactory resourceSystemService, String location) AddsHttpResourceinstances.voidFlags to disable the defaultHttpResourceStore.static HttpResourceArchitectemployHttpResourceArchitect(WebArchitect webArchitect, HttpSecurityArchitect securityArchitect, OfficeArchitect officeArchitect, OfficeSourceContext officeSourceContext) Employs theHttpResourceArchitect.getResource(String resourcePath) Obtains theOfficeFlowSinkNodeto send theHttpResource.voidInforms theWebArchitectof the necessaryHttpResourceinstances.
-
Method Details
-
employHttpResourceArchitect
public static HttpResourceArchitect employHttpResourceArchitect(WebArchitect webArchitect, HttpSecurityArchitect securityArchitect, OfficeArchitect officeArchitect, OfficeSourceContext officeSourceContext) Employs theHttpResourceArchitect.- Parameters:
webArchitect-WebArchitect.securityArchitect-HttpSecurityArchitect.officeArchitect-OfficeArchitect.officeSourceContext-OfficeSourceContext.- Returns:
HttpResourceArchitect.
-
getResource
Description copied from interface:HttpResourceArchitectObtains theOfficeFlowSinkNodeto send theHttpResource.- Specified by:
getResourcein interfaceHttpResourceArchitect- Parameters:
resourcePath- Path to theHttpResource.- Returns:
OfficeFlowSinkNodeto send theHttpResource.
-
addHttpResources
public HttpResourcesBuilder addHttpResources(ResourceSystemFactory resourceSystemService, String location) Description copied from interface:HttpResourceArchitectAdds
HttpResourceinstances.The
ResourceSysteminstances will be interrogated in the order they are added for aHttpResource.- Specified by:
addHttpResourcesin interfaceHttpResourceArchitect- Parameters:
resourceSystemService-ResourceSystemFactoryto create theResourceSystemto provide the resources backing theHttpResourceinstances.location-ResourceSystemFactoryspecific location of the resources.- Returns:
HttpResourcesBuilder.
-
addHttpResources
Description copied from interface:HttpResourceArchitectAdds
HttpResourceinstances via aResourceSystemFactory.The
ResourceSysteminstances will be interrogated in the order they are added for aHttpResource.- Specified by:
addHttpResourcesin interfaceHttpResourceArchitect- Parameters:
protocolLocation- String configuration of[protocol]:locationto configure aResourceSystemfromResourceSystemFactory.- Returns:
HttpResourcesBuilder.- See Also:
-
disableDefaultHttpResources
public void disableDefaultHttpResources()Description copied from interface:HttpResourceArchitectFlags to disable the defaultHttpResourceStore.- Specified by:
disableDefaultHttpResourcesin interfaceHttpResourceArchitect
-
informWebArchitect
Description copied from interface:HttpResourceArchitectInforms theWebArchitectof the necessaryHttpResourceinstances. This is to be invoked once allHttpResourceinstances are configured.- Specified by:
informWebArchitectin interfaceHttpResourceArchitect- Throws:
IOException- If fails to configure resources.
-