Class StaticContentResource

  • All Implemented Interfaces:
    ResourceHandler

    public class StaticContentResource
    extends java.lang.Object
    implements ResourceHandler
    REST resource to serve static content.
    Since:
    10.0
    • Constructor Summary

      Constructors 
      Constructor Description
      StaticContentResource​(java.nio.file.Path dir, java.lang.String urlPath)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.infinispan.rest.framework.impl.Invocations getInvocations()
      Return the Invocations handled by this ResourceHandler.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StaticContentResource

        public StaticContentResource​(java.nio.file.Path dir,
                                     java.lang.String urlPath)
        Parameters:
        dir - The path to serve files from
        urlPath - The url path to serve the files
    • Method Detail

      • getInvocations

        public org.infinispan.rest.framework.impl.Invocations getInvocations()
        Description copied from interface: ResourceHandler
        Return the Invocations handled by this ResourceHandler.
        Specified by:
        getInvocations in interface ResourceHandler