public class DefaultDirectoryWriter extends java.lang.Object implements DirectoryWriter
| Constructor and Description |
|---|
DefaultDirectoryWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected com.netflix.genie.web.resources.writers.DefaultDirectoryWriter.Directory |
getDirectory(java.io.File directory,
java.lang.String requestUrl,
boolean includeParent) |
java.lang.String |
toHtml(@NotNull java.io.File directory,
@URL java.lang.String requestURL,
boolean includeParent)
Convert a given directory to an String containing a full valid HTML page.
|
java.lang.String |
toJson(@NotNull java.io.File directory,
@URL java.lang.String requestURL,
boolean includeParent)
Convert a given directory to an String of JSON.
|
public java.lang.String toHtml(@NotNull
@NotNull java.io.File directory,
@URL
@URL java.lang.String requestURL,
boolean includeParent)
throws java.io.IOException
toHtml in interface DirectoryWriterdirectory - The directory to convert. Not null. Is directory.requestURL - The URL of the request that kicked off this processincludeParent - Whether the conversion should include reference to the parent directory.java.io.IOExceptionorg.apache.catalina.servlets.DefaultServletpublic java.lang.String toJson(@NotNull
@NotNull java.io.File directory,
@URL
@URL java.lang.String requestURL,
boolean includeParent)
throws java.lang.Exception
toJson in interface DirectoryWriterdirectory - The directory to convert. Not null. Is directory.requestURL - The URL of the request that kicked off this processincludeParent - Whether the conversion should include reference to the parent directory.java.lang.Exception - for any conversion problemprotected com.netflix.genie.web.resources.writers.DefaultDirectoryWriter.Directory getDirectory(java.io.File directory,
java.lang.String requestUrl,
boolean includeParent)