Top Inners Constructors Methods
io.undertow.server.handlers.resource

public Class DirectoryUtils

extends Object
Class Inheritance
Imports
io.undertow.UndertowLogger, io.undertow.predicate.PathPrefixPredicate, .Predicate, .PathPrefixPredicate.PathPrefixMatchRecord, io.undertow.server.HttpServerExchange, io.undertow.util.DateUtils, .ETag, .ETagUtils, .FlexBase64, .Headers, .Methods, .RedirectBuilder, .StatusCodes, org.xnio.channels.Channels, java.io.IOException, .UnsupportedEncodingException, java.nio.ByteBuffer, java.nio.charset.StandardCharsets, java.security.MessageDigest, .NoSuchAlgorithmException, java.text.SimpleDateFormat, java.util.Date, .Locale, .Map

Author
Stuart Douglas

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
DirectoryUtils.Blobs

Constant Content

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static StringBuilder
formatSize(StringBuilder builder, Long size)

private static String
md5(byte[] buffer)

Generate the MD5 hash out of the given ByteBuffer

public static StringBuilder
renderDirectoryListing(String path, final Resource resource)
Deprecated for removal since 2.3.6.Final.

public static StringBuilder
renderDirectoryListing(final HttpServerExchange exchange, String path, final Resource resource)

public static void
public static boolean

Returns:

true if resources were served
sendRequestedBlobs
(HttpServerExchange
The exchange
exchange
)

Serve static resource for the directory listing

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DirectoryUtilsback to summary
private DirectoryUtils()

Method Detail

formatSizeback to summary
private static StringBuilder formatSize(StringBuilder builder, Long size)
md5back to summary
private static String md5(byte[] buffer)

Generate the MD5 hash out of the given ByteBuffer

renderDirectoryListingback to summary
public static StringBuilder renderDirectoryListing(String path, final Resource resource)

Deprecated

for removal since 2.3.6.Final.

Annotations
@Deprecated
forRemoval:true
since:2.3.6.Final
renderDirectoryListingback to summary
public static StringBuilder renderDirectoryListing(final HttpServerExchange exchange, String path, final Resource resource)
renderDirectoryListingback to summary
public static void renderDirectoryListing(HttpServerExchange exchange, Resource resource)
sendRequestedBlobsback to summary
public static boolean sendRequestedBlobs(HttpServerExchange exchange)

Serve static resource for the directory listing

Parameters
exchange:HttpServerExchange

The exchange

Returns:boolean

true if resources were served

io.undertow.server.handlers.resource back to summary

public Class DirectoryUtils.Blobs

extends Object
Class Inheritance

Constant Content
Author
Jason T. Greene

Field Summary

Modifier and TypeField and Description
public static final String
public static final ByteBuffer
public static final String
public static final String
public static final String
public static final ByteBuffer
public static final String
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

FILE_CSSback to summary
public static final String FILE_CSS
FILE_CSS_BUFFERback to summary
public static final ByteBuffer FILE_CSS_BUFFER
FILE_CSS_ETAGback to summary
public static final String FILE_CSS_ETAG
FILE_CSS_ETAG_QUOTEDback to summary
public static final String FILE_CSS_ETAG_QUOTED
FILE_JSback to summary
public static final String FILE_JS
FILE_JS_BUFFERback to summary
public static final ByteBuffer FILE_JS_BUFFER
FILE_JS_ETAGback to summary
public static final String FILE_JS_ETAG
FILE_JS_ETAG_QUOTEDback to summary
public static final String FILE_JS_ETAG_QUOTED

Constructor Detail

Blobsback to summary
public Blobs()