Class HttpResourceArchitectEmployer
- java.lang.Object
-
- net.officefloor.web.resource.build.HttpResourceArchitectEmployer
-
- All Implemented Interfaces:
HttpResourceArchitect
public class HttpResourceArchitectEmployer extends java.lang.Object implements HttpResourceArchitect
Employs aHttpResourceArchitect.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResourcesBuilderaddHttpResources(java.lang.String protocolLocation)AddsHttpResourceinstances via aResourceSystemFactory.HttpResourcesBuilderaddHttpResources(ResourceSystemFactory resourceSystemService, java.lang.String location)AddsHttpResourceinstances.voiddisableDefaultHttpResources()Flags to disable the defaultHttpResourceStore.static HttpResourceArchitectemployHttpResourceArchitect(WebArchitect webArchitect, HttpSecurityArchitect securityArchitect, OfficeArchitect officeArchitect, OfficeSourceContext officeSourceContext)Employs theHttpResourceArchitect.OfficeFlowSinkNodegetResource(java.lang.String resourcePath)Obtains theOfficeFlowSinkNodeto send theHttpResource.voidinformWebArchitect()Informs theWebArchitectof the necessaryHttpResourceinstances.
-
-
-
Method Detail
-
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
public OfficeFlowSinkNode getResource(java.lang.String resourcePath)
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, java.lang.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
public HttpResourcesBuilder addHttpResources(java.lang.String protocolLocation)
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:
ResourceSystemFactory
-
disableDefaultHttpResources
public void disableDefaultHttpResources()
Description copied from interface:HttpResourceArchitectFlags to disable the defaultHttpResourceStore.- Specified by:
disableDefaultHttpResourcesin interfaceHttpResourceArchitect
-
informWebArchitect
public void informWebArchitect() throws java.io.IOExceptionDescription copied from interface:HttpResourceArchitectInforms theWebArchitectof the necessaryHttpResourceinstances. This is to be invoked once allHttpResourceinstances are configured.- Specified by:
informWebArchitectin interfaceHttpResourceArchitect- Throws:
java.io.IOException- If fails to configure resources.
-
-