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 HttpResourcesBuilder
addHttpResources(java.lang.String protocolLocation)
AddsHttpResource
instances via aResourceSystemFactory
.HttpResourcesBuilder
addHttpResources(ResourceSystemFactory resourceSystemService, java.lang.String location)
AddsHttpResource
instances.void
disableDefaultHttpResources()
Flags to disable the defaultHttpResourceStore
.static HttpResourceArchitect
employHttpResourceArchitect(WebArchitect webArchitect, HttpSecurityArchitect securityArchitect, OfficeArchitect officeArchitect, OfficeSourceContext officeSourceContext)
Employs theHttpResourceArchitect
.OfficeFlowSinkNode
getResource(java.lang.String resourcePath)
Obtains theOfficeFlowSinkNode
to send theHttpResource
.void
informWebArchitect()
Informs theWebArchitect
of the necessaryHttpResource
instances.
-
-
-
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:HttpResourceArchitect
Obtains theOfficeFlowSinkNode
to send theHttpResource
.- Specified by:
getResource
in interfaceHttpResourceArchitect
- Parameters:
resourcePath
- Path to theHttpResource
.- Returns:
OfficeFlowSinkNode
to send theHttpResource
.
-
addHttpResources
public HttpResourcesBuilder addHttpResources(ResourceSystemFactory resourceSystemService, java.lang.String location)
Description copied from interface:HttpResourceArchitect
Adds
HttpResource
instances.The
ResourceSystem
instances will be interrogated in the order they are added for aHttpResource
.- Specified by:
addHttpResources
in interfaceHttpResourceArchitect
- Parameters:
resourceSystemService
-ResourceSystemFactory
to create theResourceSystem
to provide the resources backing theHttpResource
instances.location
-ResourceSystemFactory
specific location of the resources.- Returns:
HttpResourcesBuilder
.
-
addHttpResources
public HttpResourcesBuilder addHttpResources(java.lang.String protocolLocation)
Description copied from interface:HttpResourceArchitect
Adds
HttpResource
instances via aResourceSystemFactory
.The
ResourceSystem
instances will be interrogated in the order they are added for aHttpResource
.- Specified by:
addHttpResources
in interfaceHttpResourceArchitect
- Parameters:
protocolLocation
- String configuration of[protocol]:location
to configure aResourceSystem
fromResourceSystemFactory
.- Returns:
HttpResourcesBuilder
.- See Also:
ResourceSystemFactory
-
disableDefaultHttpResources
public void disableDefaultHttpResources()
Description copied from interface:HttpResourceArchitect
Flags to disable the defaultHttpResourceStore
.- Specified by:
disableDefaultHttpResources
in interfaceHttpResourceArchitect
-
informWebArchitect
public void informWebArchitect() throws java.io.IOException
Description copied from interface:HttpResourceArchitect
Informs theWebArchitect
of the necessaryHttpResource
instances. This is to be invoked once allHttpResource
instances are configured.- Specified by:
informWebArchitect
in interfaceHttpResourceArchitect
- Throws:
java.io.IOException
- If fails to configure resources.
-
-