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
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStaticContentResource(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.ResourceResolverto resolve requests into resources
-
StaticContentResource
-
-
Method Details
-
getInvocations
Description copied from interface:ResourceHandlerReturn theInvocationshandled by this ResourceHandler.- Specified by:
getInvocationsin interfaceResourceHandler
-