Interface HttpResourceArchitect
- All Known Implementing Classes:
HttpResourceArchitectEmployer
public interface HttpResourceArchitect
Builds the
HttpResource for WebArchitect.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionaddHttpResources(String protocolLocation) AddsHttpResourceinstances via aResourceSystemFactory.addHttpResources(ResourceSystemFactory resourceSystemService, String location) AddsHttpResourceinstances.voidFlags to disable the defaultHttpResourceStore.getResource(String resourcePath) Obtains theOfficeFlowSinkNodeto send theHttpResource.voidInforms theWebArchitectof the necessaryHttpResourceinstances.
-
Method Details
-
getResource
Obtains theOfficeFlowSinkNodeto send theHttpResource.- Parameters:
resourcePath- Path to theHttpResource.- Returns:
OfficeFlowSinkNodeto send theHttpResource.
-
addHttpResources
Adds
HttpResourceinstances.The
ResourceSysteminstances will be interrogated in the order they are added for aHttpResource.- Parameters:
resourceSystemService-ResourceSystemFactoryto create theResourceSystemto provide the resources backing theHttpResourceinstances.location-ResourceSystemFactoryspecific location of the resources.- Returns:
HttpResourcesBuilder.
-
addHttpResources
Adds
HttpResourceinstances via aResourceSystemFactory.The
ResourceSysteminstances will be interrogated in the order they are added for aHttpResource.- Parameters:
protocolLocation- String configuration of[protocol]:locationto configure aResourceSystemfromResourceSystemFactory.- Returns:
HttpResourcesBuilder.- See Also:
-
disableDefaultHttpResources
void disableDefaultHttpResources()Flags to disable the defaultHttpResourceStore. -
informWebArchitect
Informs theWebArchitectof the necessaryHttpResourceinstances. This is to be invoked once allHttpResourceinstances are configured.- Throws:
IOException- If fails to configure resources.
-