Interface HttpResourceArchitect
-
- All Known Implementing Classes:
HttpResourceArchitectEmployer
public interface HttpResourceArchitect
Builds theHttpResource
forWebArchitect
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract 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
.OfficeFlowSinkNode
getResource(java.lang.String resourcePath)
Obtains theOfficeFlowSinkNode
to send theHttpResource
.void
informWebArchitect()
Informs theWebArchitect
of the necessaryHttpResource
instances.
-
-
-
Method Detail
-
getResource
OfficeFlowSinkNode getResource(java.lang.String resourcePath)
Obtains theOfficeFlowSinkNode
to send theHttpResource
.- Parameters:
resourcePath
- Path to theHttpResource
.- Returns:
OfficeFlowSinkNode
to send theHttpResource
.
-
addHttpResources
HttpResourcesBuilder addHttpResources(ResourceSystemFactory resourceSystemService, java.lang.String location)
Adds
HttpResource
instances.The
ResourceSystem
instances will be interrogated in the order they are added for aHttpResource
.- Parameters:
resourceSystemService
-ResourceSystemFactory
to create theResourceSystem
to provide the resources backing theHttpResource
instances.location
-ResourceSystemFactory
specific location of the resources.- Returns:
HttpResourcesBuilder
.
-
addHttpResources
HttpResourcesBuilder addHttpResources(java.lang.String protocolLocation)
Adds
HttpResource
instances via aResourceSystemFactory
.The
ResourceSystem
instances will be interrogated in the order they are added for aHttpResource
.- Parameters:
protocolLocation
- String configuration of[protocol]:location
to configure aResourceSystem
fromResourceSystemFactory
.- Returns:
HttpResourcesBuilder
.- See Also:
ResourceSystemFactory
-
disableDefaultHttpResources
void disableDefaultHttpResources()
Flags to disable the defaultHttpResourceStore
.
-
informWebArchitect
void informWebArchitect() throws java.io.IOException
Informs theWebArchitect
of the necessaryHttpResource
instances. This is to be invoked once allHttpResource
instances are configured.- Throws:
java.io.IOException
- If fails to configure resources.
-
-