Top Description Methods
io.undertow.server.handlers.resource

public Interface ResourceSupplier

Known Direct Implementers
io.undertow.server.handlers.resource.DefaultResourceSupplier, io.undertow.server.handlers.resource.PreCompressedResourceSupplier
Imports
java.io.IOException, io.undertow.server.HttpServerExchange

Interface that allows for more flexibility when resolving a resource than is currently provided by ResourceManager.
Author
Stuart Douglas

Method Summary

Modifier and TypeMethod and Description
public Resource

Returns:

A resource to serve
getResource
(HttpServerExchange
The current exchange
exchange
,
String
The path to resolve
path
)

Method Detail

getResourceback to summary
public Resource getResource(HttpServerExchange exchange, String path) throws IOException
Parameters
exchange:HttpServerExchange

The current exchange

path:String

The path to resolve

Returns:Resource

A resource to serve

Exceptions
IOException:
if an error ocured resolving the resource