Interface ResourceSupplier
-
- All Known Implementing Classes:
DefaultResourceSupplier
,PreCompressedResourceSupplier
public interface ResourceSupplier
Interface that allows for more flexibility when resolving a resource than is currently provided byResourceManager
.- Author:
- Stuart Douglas
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Resource
getResource(HttpServerExchange exchange, java.lang.String path)
-
-
-
Method Detail
-
getResource
Resource getResource(HttpServerExchange exchange, java.lang.String path) throws java.io.IOException
- Parameters:
exchange
- The current exchangepath
- The path to resolve- Returns:
- A resource to serve
- Throws:
java.io.IOException
- if an error ocured resolving the resource
-
-