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

public Class DefaultResourceSupplier

extends Object
implements ResourceSupplier
Class Inheritance
All Implemented Interfaces
io.undertow.server.handlers.resource.ResourceSupplier
Imports
java.io.IOException, io.undertow.server.HttpServerExchange

A resource supplier that just delegates directly to a resource manager
Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private final ResourceManager

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Resource
getResource(HttpServerExchange
The current exchange
exchange
,
String
The path to resolve
path
)

Implements io.undertow.server.handlers.resource.ResourceSupplier.getResource.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

resourceManagerback to summary
private final ResourceManager resourceManager

Constructor Detail

DefaultResourceSupplierback to summary
public DefaultResourceSupplier(ResourceManager resourceManager)

Method Detail

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

Implements io.undertow.server.handlers.resource.ResourceSupplier.getResource.

Parameters
exchange:HttpServerExchange

Doc from io.undertow.server.handlers.resource.ResourceSupplier.getResource.

The current exchange

path:String

Doc from io.undertow.server.handlers.resource.ResourceSupplier.getResource.

The path to resolve

Returns:Resource

Doc from io.undertow.server.handlers.resource.ResourceSupplier.getResource.

A resource to serve

Annotations
@Override
Exceptions
IOException:

Doc from io.undertow.server.handlers.resource.ResourceSupplier.getResource.

if an error ocured resolving the resource