Package org.infinispan.rest.resources
Class StaticContentResource
java.lang.Object
org.infinispan.rest.resources.StaticContentResource
- All Implemented Interfaces:
ResourceHandler
REST resource to serve static content.
- Since:
- 10.0
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionStaticContentResource
(InvocationHelper invocationHelper, Path dir, String urlPath) StaticContentResource
(InvocationHelper invocationHelper, Path dir, String urlPath, StaticContentResource.ResourceResolver resourceResolver) -
Method Summary
-
Field Details
-
DEFAULT_RESOURCE
- See Also:
-
-
Constructor Details
-
StaticContentResource
public StaticContentResource(InvocationHelper invocationHelper, Path dir, String urlPath, StaticContentResource.ResourceResolver resourceResolver) - Parameters:
dir
- The path to serve files fromurlPath
- The url path to serve the file.resourceResolver
- aStaticContentResource.ResourceResolver
to resolve requests into resources
-
StaticContentResource
-
-
Method Details
-
getInvocations
Description copied from interface:ResourceHandler
Return theInvocations
handled by this ResourceHandler.- Specified by:
getInvocations
in interfaceResourceHandler
-