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

public Interface RangeAwareResource

extends Resource
Known Direct Implementers
io.undertow.server.handlers.resource.URLResource, io.undertow.server.handlers.resource.CachedResource, io.undertow.server.handlers.resource.PathResource
Imports
io.undertow.io.IoCallback, .Sender, io.undertow.server.HttpServerExchange

A resource implementation that
Author
Stuart Douglas

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if this resource supports range requests
isRangeSupported
()

It is possible that some resources managers may only support range requests on a subset of their resources,

public void
serveRange(final Sender
The sender to use.
sender
,
final HttpServerExchange
The exchange
exchange
,
long start, long end, final IoCallback completionCallback)

Serve the resource, and call the provided callback when complete.

Inherited from io.undertow.server.handlers.resource.Resource:
getCacheKeygetContentLengthgetContentTypegetETaggetFilegetFilePathgetLastModifiedgetLastModifiedStringgetNamegetPathgetResourceManagerRootgetResourceManagerRootPathgetUrlisDirectorylistserve

Method Detail

isRangeSupportedback to summary
public boolean isRangeSupported()

It is possible that some resources managers may only support range requests on a subset of their resources,

Returns:boolean

true if this resource supports range requests

serveRangeback to summary
public void serveRange(final Sender sender, final HttpServerExchange exchange, long start, long end, final IoCallback completionCallback)

Serve the resource, and call the provided callback when complete.

Parameters
sender:Sender

The sender to use.

exchange:HttpServerExchange

The exchange