Interface StaticContentService

All Superinterfaces:
HttpService, ServerLifecycle

@Deprecated(forRemoval=true, since="4.1.5") public interface StaticContentService extends HttpService
Deprecated, for removal: This API element is subject to removal in a future version.
static content has been refactored to use server feature, with a new service, using new configuration approach, use StaticContentFeature instead, or if specific services are desired, kindly use StaticContentFeature.createService(ClasspathHandlerConfig) and/or StaticContentFeature.createService(FileSystemHandlerConfig)
Serves 'static content' (files) from filesystem or using a classloader to the WebServer HttpRouting. It is possible to register it on the routing.

 // Serve content of attached '/static/pictures' on '/pics'
 Routing.builder()
        .register("/pics", StaticContentSupport.create("/static/pictures"))
        .build()
 

Content is served ONLY on HTTP GET method.