Package org.infinispan.rest.resources
Class StaticContentResource
- java.lang.Object
-
- org.infinispan.rest.resources.StaticContentResource
-
- All Implemented Interfaces:
ResourceHandler
public class StaticContentResource extends Object implements ResourceHandler
REST resource to serve static content.- Since:
- 10.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStaticContentResource.ResourceResolver
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_RESOURCE
-
Constructor Summary
Constructors Constructor Description StaticContentResource(Path dir, String urlPath)StaticContentResource(Path dir, String urlPath, StaticContentResource.ResourceResolver resourceResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InvocationsgetInvocations()Return theInvocationshandled by this ResourceHandler.
-
-
-
Field Detail
-
DEFAULT_RESOURCE
public static final String DEFAULT_RESOURCE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StaticContentResource
public StaticContentResource(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
-
-
Method Detail
-
getInvocations
public Invocations getInvocations()
Description copied from interface:ResourceHandlerReturn theInvocationshandled by this ResourceHandler.- Specified by:
getInvocationsin interfaceResourceHandler
-
-