|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.abstracthorizon.danube.webdav.util.SimpleHTMLCollectionRenderer
public class SimpleHTMLCollectionRenderer
Simple HTML collection renderer. It is similar to other popular products' dir rendering
| Field Summary | |
|---|---|
static SimpleDateFormat |
dateFormat
Date format |
static long |
GIGABYTE
Number of bytes in a gigabyte |
static long |
KILOBYTE
Number of bytes in a kilobyte |
static long |
MEGABYTE
Number of bytes in a megabyte |
static long |
TERABYTE
Number of bytes in a terabyte |
| Constructor Summary | |
|---|---|
SimpleHTMLCollectionRenderer()
|
|
| Method Summary | |
|---|---|
protected String |
encode(String string)
URL encodes given string |
protected String |
getLengthAsString(ResourceAdapter adapter,
Object f)
Returns file length as a string |
void |
render(HTTPConnection httpConnection,
ResourceAdapter adapter,
Object dir)
Renders the html |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final SimpleDateFormat dateFormat
public static final long KILOBYTE
public static final long MEGABYTE
public static final long GIGABYTE
public static final long TERABYTE
| Constructor Detail |
|---|
public SimpleHTMLCollectionRenderer()
| Method Detail |
|---|
public void render(HTTPConnection httpConnection,
ResourceAdapter adapter,
Object dir)
render in interface CollectionHTMLRendererhttpConnection - connectionadapter - resource adapterdir - resource
protected String getLengthAsString(ResourceAdapter adapter,
Object f)
f - file
protected String encode(String string)
string - string to be encoded
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||