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 interface
StaticContentResource.ResourceResolver
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_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 Invocations
getInvocations()
Return theInvocations
handled 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.ResourceResolver
to resolve requests into resources
-
-
Method Detail
-
getInvocations
public Invocations getInvocations()
Description copied from interface:ResourceHandler
Return theInvocations
handled by this ResourceHandler.- Specified by:
getInvocations
in interfaceResourceHandler
-
-